Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ButtonPrefs.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form interface generated from reading ui file 'Prefs.ui'
00003 **
00004 ** Created: Tue Feb 11 23:53:32 2003
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 #ifndef __BUTTON_PREFS_H
00010 #define __BUTTON_PREFS_H
00011 
00012 #include <qvariant.h>
00013 #include <qwidget.h>
00014 #include <qtabdialog.h>
00015 #include <qtabwidget.h>
00016 #include <qspinbox.h>
00017 #include <qcheckbox.h>
00018 #include <qlineedit.h>
00019 
00020 #define USECOMBO
00021 
00022 #ifdef USECOMBO
00023 #include <qcombobox.h>
00024 #else
00025 #include <qpe/menubutton.h>
00026 #endif
00027 
00028 #include "orkey.h"
00029 
00030 class QVBoxLayout; 
00031 class QHBoxLayout; 
00032 class QGridLayout; 
00033 //class QCheckBox;
00034 class QLabel;
00035 //class QSpinBox;
00036 class QListViewItem;
00037 
00038 class QListView;
00039 class QListViewItem;
00040 
00041 class CButtonPrefs : public QWidget
00042 {
00043   Q_OBJECT
00044 
00045   QMap<orKey, int> *kmap;
00046   QMap<orKey, QListViewItem*> listmap;
00047   QListView* lb;
00048   void keyPressEvent(QKeyEvent* e);
00049 #ifdef USECOMBO
00050     void populate(QComboBox*);
00051 #else
00052     void populate(MenuButton*);
00053 #endif
00054 
00055 #ifdef USECOMBO
00056     QComboBox *action;
00057 #else
00058     MenuButton *action;
00059 #endif
00060     QSpinBox* debounce;
00061  signals:
00062     void Closed();
00063  private slots:
00064      void slotClosed() { emit Closed(); }
00065 
00066 public:
00067 
00068     CButtonPrefs( QMap<orKey, int>*, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00069     ~CButtonPrefs();
00070     int Debounce() { return debounce->value(); }
00071     void Debounce(int v) { debounce->setValue(v); }
00072     void mapkey(Qt::ButtonState st, int key);
00073     void mapkey(Qt::ButtonState st, int key, int _fn);
00074  private slots:
00075     void erasemapping();
00076 };
00077 #endif // CPREFS_H

Generated on Sat Nov 5 16:16:53 2005 for OPIE by  doxygen 1.4.2