00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Josep Burcion * 00003 * josep@burcion.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 #ifndef BSELECTOR_H 00021 #define BSELECTOR_H 00022 00023 #include <qevent.h> 00024 00025 #include "abreempresaview.h" 00026 #include "uiselector.h" 00027 #include "bconfiguracion.h" 00028 #include "bmodcontabilidad.h" 00029 #include "bmodventas.h" 00030 #include "bmodcompras.h" 00031 #include "bmodproduccion.h" 00032 #include "bmodalmacen.h" 00033 #include "bmodnominas.h" 00034 00035 00036 class BModContabilidad; 00037 class BModVentas; 00038 class BModCompras; 00039 class BModAlmacen; 00040 class BModProduccion; 00041 class BModNominas; 00042 00045 class BSelector : public UIselector { 00046 Q_OBJECT 00047 00048 public: 00049 BSelector(QWidget * parent=0,const char * name=0); 00050 ~BSelector(); 00051 00052 //protected: 00053 // void showEvent(QShowEvent *); 00054 00055 public slots: 00056 virtual void seleccionaempresa_clicked(); 00057 00058 private slots: 00059 virtual void salir_clicked(); 00060 virtual void configura_clicked(); 00061 virtual void ventas_clicked(); 00062 virtual void compras_clicked(); 00063 virtual void contabilidad_clicked(); 00064 virtual void produccion_clicked(); 00065 virtual void almacen_clicked(); 00066 virtual void nominas_clicked(); 00067 00068 virtual void closeEvent(QCloseEvent * e); 00069 00070 public: 00071 QString NombreUsuario; 00072 QString PasswordUsuario; 00073 QString NombreBaseDatos; 00074 QString ejercicioMetaDB; 00075 00076 BModContabilidad * ModuloContabilidad; 00077 BModVentas * ModuloVentas; 00078 BModCompras * ModuloCompras; 00079 BModProduccion * ModuloProduccion; 00080 BModAlmacen * ModuloAlmacen; 00081 BModNominas * ModuloNominas; 00082 00083 }; 00084 00085 #endif