subform2bc.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 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 __SUBFORM2BC1_H
00023 #define __SUBFORM2BC1_H
00024 
00025 #include "empresa.h"
00026 #include "qtable2.h"
00027 #include "subform.h"
00028 #include "subform3.h"
00029 
00030 #include "busquedafecha2.h"
00031 
00032 
00033 class SubForm2Bc;
00034 
00036 
00037 class QSubForm2BcDelegate : public QItemDelegate, public PEmpresaBase {
00038 private:
00040     SubForm2Bc *m_subform;
00041 
00042 public:
00043     QSubForm2BcDelegate(QObject *);
00044     ~QSubForm2BcDelegate();
00045     void setEditorData(QWidget *, const QModelIndex &index) const;
00046     void setModelData(QWidget *editor,  QAbstractItemModel *model, const QModelIndex &index) const;
00047     QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
00048     virtual bool eventFilter(QObject *obj, QEvent *event);
00049 };
00050 
00051 
00052 class SubForm2Bc : public SubForm3 {
00053     Q_OBJECT
00054 
00055 public:
00056     QSubForm2BcDelegate *m_delegate;
00057 
00058 public:
00059     Empresa *empresaBase();
00060     SubForm2Bc(QWidget *parent = 0);
00061     virtual ~SubForm2Bc();
00062     virtual void boton_asiento();
00063     virtual void boton_extracto1(int);
00064     virtual void boton_balance1(int);
00065     virtual void boton_diario1(int);
00066     virtual void creaMenu(QMenu *);
00067     virtual void procesaMenu(QAction *);
00068     virtual void setEmpresaBase(EmpresaBase *c);
00069     virtual void on_mui_list_cellChanged(int row, int col);
00070 
00071 public slots:
00072     virtual void on_mui_list_pressedSlash(int row, int col);
00073     virtual void on_mui_list_pressedAsterisk(int row, int col);
00074 };
00075 
00076 #endif
00077 

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