contratoslist.h

Go to the documentation of this file.
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 CONTRATOSLIST_H
00022 #define CONTRATOSLIST_H
00023 
00024 #include "pgimportfiles.h"
00025 #include "company.h"
00026 #include "subform2bf.h"
00027 #include "listado.h"
00028 #include "bulmafact.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 
00051 class ContratosListSubform : public SubForm2Bf {
00052     Q_OBJECT
00053 
00054 public:
00055     ContratosListSubform(QWidget *parent = 0, const char *name = 0);
00056     ~ContratosListSubform();
00057 };
00058 
00059 
00060 #include "ui_contratoslistbase.h"
00061 
00062 
00067 
00068 class ContratosList : public Listado, public Ui_ContratosListBase, public pgimportfiles {
00069     Q_OBJECT
00070 
00071 public:
00072     enum edmode
00073     {
00074         EditMode = 0,
00075         SelectMode = 1
00076     };
00077 
00078 private:
00080     edmode m_modo;
00082     QString mdb_idcontrato;
00084     QString mdb_nomcontrato;
00086     QString mdb_refcontrato;
00087 
00088 
00089 public:
00090     ContratosList(Company *, QWidget *parent = 0, Qt::WFlags flag = 0, edmode editmode = EditMode);
00091     ~ContratosList();
00092     void selectMode();
00093     void editMode();
00094     void presenta();
00095     QString idcontrato();
00096     QString nomcontrato();
00097     QString refcontrato();
00098     void hideBotonera();
00099     void showBotonera();
00100     void hideBusqueda();
00101     void showBusqueda();
00102     void editar(int);
00103     virtual void on_mui_actualizar_clicked();
00104 
00105 public slots:
00106     virtual void on_m_filtro_textChanged(const QString &text);
00107     void on_mui_list_itemDoubleClicked(QTableWidgetItem *);
00108     virtual void on_mui_crear_clicked();
00109     virtual void on_mui_editar_clicked();
00110     virtual void on_mui_imprimir_clicked();
00111 
00112     virtual void on_mui_borrar_clicked();
00113     virtual void on_mui_configurar_toggled(bool checked);
00114 
00115 signals:
00116     void selected(QString);
00117 };
00118 
00119 #endif
00120 

Generated on Sat Dec 15 00:01:06 2007 for BulmaGes by  doxygen 1.5.1