00001 /*************************************************************************** 00002 diarioview1.h - description 00003 ------------------- 00004 begin : Thu Jan 9 2003 00005 copyright : (C) 2003 by Tomeu Borr� 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 DIARIOVIEW1_H 00018 #define DIARIOVIEW1_H 00019 00020 #include "diariodlg1.h" 00021 00022 #include "qlineedit1.h" 00023 #include "qtable1.h" 00024 #include "postgresiface2.h" 00025 00026 #include "filtrardiarioview.h" 00027 #include "intapunts3view.h" 00028 #include "extractoview1.h" 00029 #include "balanceview.h" 00030 00031 class empresa; 00032 class intapunts3view; 00033 class extractoview1; 00034 class balanceview; 00035 00045 class diarioview1 : public diariodlg1 { 00046 Q_OBJECT 00047 private: 00049 intapunts3view *introapunts; 00050 extractoview1 *extracto; 00051 balanceview *balance; 00053 QTable1 *listado; 00055 postgresiface2 *conexionbase; 00057 int ccostes[200]; 00059 filtrardiarioview *filt; 00061 empresa *empresaactual; 00062 public: 00063 diarioview1(empresa *, QWidget *parent=0, const char *name=0, int flags=0); 00064 ~diarioview1(); 00065 void accept(); 00067 void inicializa1(QString, QString, int); 00069 void inicializa2(intapunts3view *, extractoview1 *, balanceview *); 00070 private: 00072 void presentar(); 00073 public slots: 00075 virtual void boton_imprimir(); 00077 virtual void boton_guardar(); 00079 virtual void boton_filtrar(); 00080 private slots: 00082 virtual void boton_extracto1(int); 00084 virtual void boton_balance1(int); 00086 virtual void boton_asiento(); 00088 virtual void return_fechainicial(); 00090 virtual void return_fechafinal(); 00092 virtual void contextmenu(int , int , const QPoint &); 00094 virtual void textChanged(const QString &); 00096 virtual void boton_fechainicial(); 00098 virtual void boton_fechafinal(); 00099 }; 00100 #endif