listcuentasview1.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *   http://www.iglues.org Asociación Iglues -- Contabilidad Linux         *
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 LISTCUENTASVIEW1_H
00023 #define LISTCUENTASVIEW1_H
00024 
00025 #include <QEvent>
00026 
00027 #include "postgresiface2.h"
00028 #include "ui_listcuentasbase.h"
00029 #include "pgimportfiles.h"
00030 #include "fichabc.h"
00031 
00032 
00033 class Empresa;
00034 
00036 
00038 class listcuentasview1 : public FichaBc, public Ui_ListCuentasBase, public pgimportfiles {
00039     Q_OBJECT
00040 
00041 public:
00042     enum edmode
00043     {
00044         EditMode = 0,
00045         SelectMode = 1
00046     };
00047 
00048 private:
00049     int ccuenta, cdesccuenta;
00050     int cidcuenta, cbloqueada, cnodebe, cnohaber, cregularizacion, cimputacion, ctipocuenta;
00052     int cdebe;
00054     int chaber;
00055     int cgrupo;
00057     edmode m_modo;
00059     unsigned int numdigitos;
00061     QString mdb_codcuenta;
00063     QString mdb_idcuenta;
00064     QString mdb_desccuenta;
00065 
00066 public:
00067     void selectMode();
00068     void editMode();
00069     QString codcuenta();
00070     QString idcuenta();
00071     QString desccuenta();
00072 
00073 public:
00074     listcuentasview1(Empresa *, QWidget *parent = 0, Qt::WFlags flag = 0, edmode editmode = EditMode);
00075     ~listcuentasview1();
00076     int inicializa();
00077     virtual void on_mui_borrar_clicked();
00078 
00079 private:
00080     void inicializatabla();
00081 
00082 private slots:
00083     virtual void on_ListView1_itemClicked(QTreeWidgetItem *, int);
00084     virtual void on_ListView1_itemDoubleClicked(QTreeWidgetItem *, int);
00085 
00086 public slots:
00087     virtual void on_tablacuentas_doubleClicked(int, int, int, const QPoint &);
00088     virtual void on_mui_editar_clicked();
00089     virtual void on_mui_crear_clicked();
00090     virtual void on_mui_busqueda_textChanged(const QString &);
00091     virtual void on_mui_busqueda_editFinished();
00092     virtual bool eventFilter(QObject *, QEvent *);
00093     virtual void on_mui_imprimir_clicked();
00094     virtual void on_mui_exportar_clicked();
00095     virtual void on_mui_importar_clicked();
00096     virtual void on_mui_actualizar_clicked();
00097 
00098 signals:
00099     void selected(QString);
00100 };
00101 
00102 #endif
00103 

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