00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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