00001 #ifndef _QDBTCOMBOEDITOR_H
00002 #define _QDBTCOMBOEDITOR_H
00003
00004 #include <qpopupmenu.h>
00005
00006 #include <qdbt/qdbtglobal.h>
00007 #include <qdbt/qdbtsingleton.h>
00008 #include <qdbt/qdbteditorbase.h>
00009
00010 class QdbtBaseTabular;
00011
00012 class QdbtComboEditor : public QPopupMenu, public QdbtEditorBase, public QdbtSingletonObject
00013 {
00014 Q_OBJECT
00015
00016 QdbtComboEditor( const QdbtComboEditor & );
00017 void operator=( const QdbtComboEditor & );
00018
00019 int _itemSelected, _saveRow, _saveCol;
00020
00021 public:
00022 QdbtComboEditor( QdbtBaseTabular *p = 0, const char *name = 0 );
00023 int selectedItem();
00024
00025 protected slots:
00026 void itemSelected( int itemID );
00027 void propagateResult();
00028
00029 protected:
00030 void hideEvent( QHideEvent * );
00031 };
00032
00033 #endif