summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ButtonPrefs.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/ButtonPrefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ButtonPrefs.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/ButtonPrefs.h b/noncore/apps/opie-reader/ButtonPrefs.h
new file mode 100644
index 0000000..9af04e1
--- a/dev/null
+++ b/noncore/apps/opie-reader/ButtonPrefs.h
@@ -0,0 +1,77 @@
1/****************************************************************************
2** Form interface generated from reading ui file 'Prefs.ui'
3**
4** Created: Tue Feb 11 23:53:32 2003
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#ifndef __BUTTON_PREFS_H
10#define __BUTTON_PREFS_H
11
12#include <qvariant.h>
13#include <qwidget.h>
14#include <qtabdialog.h>
15#include <qtabwidget.h>
16#include <qspinbox.h>
17#include <qcheckbox.h>
18#include <qlineedit.h>
19
20#define USECOMBO
21
22#ifdef USECOMBO
23#include <qcombobox.h>
24#else
25#include <qpe/menubutton.h>
26#endif
27
28#include "orkey.h"
29
30class QVBoxLayout;
31class QHBoxLayout;
32class QGridLayout;
33//class QCheckBox;
34class QLabel;
35//class QSpinBox;
36class QListViewItem;
37
38class QListView;
39class QListViewItem;
40
41class CButtonPrefs : public QWidget
42{
43 Q_OBJECT
44
45 QMap<orKey, int> *kmap;
46 QMap<orKey, QListViewItem*> listmap;
47 QListView* lb;
48 void keyPressEvent(QKeyEvent* e);
49#ifdef USECOMBO
50 void populate(QComboBox*);
51#else
52 void populate(MenuButton*);
53#endif
54
55#ifdef USECOMBO
56 QComboBox *action;
57#else
58 MenuButton *action;
59#endif
60 QSpinBox* debounce;
61 signals:
62 void Closed();
63 private slots:
64 void slotClosed() { emit Closed(); }
65
66public:
67
68 CButtonPrefs( QMap<orKey, int>*, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
69 ~CButtonPrefs();
70 int Debounce() { return debounce->value(); }
71 void Debounce(int v) { debounce->setValue(v); }
72 void mapkey(Qt::ButtonState st, int key);
73 void mapkey(Qt::ButtonState st, int key, int _fn);
74 private slots:
75 void erasemapping();
76};
77#endif // CPREFS_H