00001 /*************************************************************************** 00002 * Copyright (C) 2007 by Asociación Iglues * 00003 * info@iglues.org * 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 00021 #ifndef ZLIST_H 00022 #define ZLIST_H 00023 00024 #include "company.h" 00025 #include "subform2bf.h" 00026 #include "listado.h" 00027 #include "bulmafact.h" 00028 #include "ui_zlistbase.h" 00029 00030 class myplugincont : public QObject { 00031 Q_OBJECT 00032 00033 public: 00034 postgresiface2 *m_conexionbase; 00035 Bulmafact *m_bulmafact; 00036 00037 public: 00038 myplugincont(); 00039 ~myplugincont(); 00040 void inicializa(Bulmafact *); 00041 00042 public slots: 00043 void elslot(); 00044 }; 00045 00046 00047 00052 00053 00054 00055 class ZList : public Listado, public Ui_ZListBase { 00056 Q_OBJECT 00057 00058 private: 00059 QString m_idz; 00060 00061 public: 00062 ZList(Company *comp = NULL, QWidget *parent = 0, Qt::WFlags flag = 0); 00063 ~ZList(); 00064 void presentar(); 00065 void editar(int); 00066 void borrar(); 00067 void crear(); 00068 QString idalmacen(); 00069 void setEmpresaBase (Company *comp); 00070 void imprimir(); 00071 QString generaFiltro(); 00072 void iniciaForm(); 00073 00074 00075 signals: 00076 void selected(QString); 00077 }; 00078 00079 #endif 00080
1.5.1