00001 /*************************************************************************** 00002 * Copyright (C) 2004 by J. M. Estopa Rey * 00003 * pepma@telefonica.net * 00004 * http://www.iglues.org * 00005 * * 00006 * This program is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 2 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program; if not, write to the * 00018 * Free Software Foundation, Inc., * 00019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00020 ***************************************************************************/ 00021 00022 #ifndef clientslist_H 00023 #define clientslist_H 00024 00025 #include "pgimportfiles.h" 00026 #include "company.h" 00027 #include "subform2bf.h" 00028 #include "listado.h" 00029 00030 00034 class ClienteListSubform : public SubForm2Bf { 00035 Q_OBJECT 00036 00037 public: 00038 ClienteListSubform(QWidget *parent = 0, const char *name = 0); 00039 ~ClienteListSubform(); 00040 }; 00041 00042 00043 #include "ui_clientslistbase.h" 00044 00045 00050 00051 class ClientsList : public Listado, public Ui_ClientsListBase, public pgimportfiles { 00052 Q_OBJECT 00053 00054 private: 00056 QString mdb_idcliente; 00058 QString mdb_nomcliente; 00060 QString mdb_cifcliente; 00061 00062 public: 00063 ClientsList(Company *, QWidget *parent = 0, Qt::WFlags flag = 0, edmode editmode = EditMode); 00064 virtual ~ClientsList(); 00065 void presentar(); 00066 void editar(int); 00067 void imprimir(); 00068 void crear(); 00069 void borrar(); 00070 QString idclient(); 00071 QString nomclient(); 00072 QString cifclient(); 00073 void submenu(const QPoint &); 00074 00075 public slots: 00076 virtual void on_mui_exportar_clicked(); 00077 virtual void on_mui_importar_clicked(); 00078 00079 signals: 00080 void selected(QString); 00081 }; 00082 00083 #endif 00084
1.5.1