subform2bt.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                                                 *
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 SUBFORM2BT_H
00023 #define SUBFORM2BT_H
00024 
00025 #include <QEvent>
00026 
00027 #include "empresatpv.h"
00028 #include "qtable2.h"
00029 #include "subform.h"
00030 #include "subform3.h"
00031 
00032 #include "qdoublespinbox2.h"
00033 
00034 
00035 class SubForm2Bt;
00036 
00037 
00039 
00040 class QSubForm2BtDelegate : public QItemDelegate, public PEmpresaBase {
00041 protected:
00042     SubForm2Bt *m_subform;
00043 
00044 public:
00045     QSubForm2BtDelegate(QObject *);
00046     virtual ~QSubForm2BtDelegate();
00047     virtual void setEditorData(QWidget *, const QModelIndex &index) const;
00048     virtual void setModelData(QWidget *editor,  QAbstractItemModel *model, const QModelIndex &index) const;
00049     virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
00050     virtual bool eventFilter(QObject *obj, QEvent *event);
00051     virtual int cerrarEditor(QWidget *editor);
00052 };
00053 
00054 
00056 
00059 class SubForm2Bt : public SubForm3 {
00060     Q_OBJECT
00061 
00062 public:
00063     QSubForm2BtDelegate *m_delegate;
00064 
00065 protected:
00066     QString mdb_idcliente;
00067     QString mdb_idproveedor;
00068 
00069 public:
00070     SubForm2Bt(QWidget *parent = 0);
00071     virtual ~SubForm2Bt();
00072     virtual void cargar(QString query);
00073     virtual void setEmpresaBase(EmpresaBase *);
00074     virtual void on_mui_list_cellChanged(int row, int col);
00075     virtual int cerrarEditor();
00076     void setIdCliente(QString id);
00077     void setIdProveedor(QString id);
00078 
00079 public slots:
00080     virtual void on_mui_list_pressedSlash(int row, int col);
00081     virtual void on_mui_list_pressedAsterisk(int row, int col);
00082     virtual void on_mui_list_pressedMinus(int row, int col);
00083 };
00084 
00085 #endif
00086 

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