00001 /*************************************************************************** 00002 balancesview.h - description 00003 ------------------- 00004 begin : sáb oct 18 2003 00005 copyright : (C) 2003 by Tomeu Borrás Riera 00006 email : tborras@conetxia.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef BALANCESVIEW_H 00018 #define BALANCESVIEW_H 00019 00020 #include <qwidget.h> 00021 #include <balancesdlg.h> 00022 00023 #include "postgresiface2.h" 00024 00034 class empresa; 00035 00036 class balancesview : public balancesdlg { 00037 Q_OBJECT 00038 private: 00040 empresa *empresaactual; 00042 postgresiface2 *conexionbase; 00044 int m_modo; 00046 QString m_nomBalance; 00048 QString m_idBalance; 00049 00050 public: 00051 balancesview(empresa *, QWidget *parent=0, const char *name=0); 00052 ~balancesview(); 00053 void inicializatabla(); 00055 void setmodoselector() {m_modo = 1;} 00057 void setmodoeditor() {m_modo = 0;} 00059 QString nomBalance() {return m_nomBalance;} 00061 QString idBalance() {return m_idBalance;} 00062 00063 private slots: 00065 virtual void nuevo(); 00067 virtual void borrar(); 00069 virtual void imprimir(); 00071 virtual void dbtabla(int, int, int, const QPoint &); 00073 virtual void boton_exportar(); 00075 virtual void boton_importar(); 00077 virtual void s_abrirBalance(); 00078 00079 }; 00080 00081 #endif