summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ButtonPrefs.h
authorpohly <pohly>2004-08-24 20:52:45 (UTC)
committer pohly <pohly>2004-08-24 20:52:45 (UTC)
commit73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (side-by-side diff)
tree1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/ButtonPrefs.h
parente90847c784c48bd21bf8768cb38edb853b832697 (diff)
downloadopie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2
updated source to opie-reader 0.7g
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 @@
+/****************************************************************************
+** Form interface generated from reading ui file 'Prefs.ui'
+**
+** Created: Tue Feb 11 23:53:32 2003
+** by: The User Interface Compiler (uic)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+#ifndef __BUTTON_PREFS_H
+#define __BUTTON_PREFS_H
+
+#include <qvariant.h>
+#include <qwidget.h>
+#include <qtabdialog.h>
+#include <qtabwidget.h>
+#include <qspinbox.h>
+#include <qcheckbox.h>
+#include <qlineedit.h>
+
+#define USECOMBO
+
+#ifdef USECOMBO
+#include <qcombobox.h>
+#else
+#include <qpe/menubutton.h>
+#endif
+
+#include "orkey.h"
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+//class QCheckBox;
+class QLabel;
+//class QSpinBox;
+class QListViewItem;
+
+class QListView;
+class QListViewItem;
+
+class CButtonPrefs : public QWidget
+{
+ Q_OBJECT
+
+ QMap<orKey, int> *kmap;
+ QMap<orKey, QListViewItem*> listmap;
+ QListView* lb;
+ void keyPressEvent(QKeyEvent* e);
+#ifdef USECOMBO
+ void populate(QComboBox*);
+#else
+ void populate(MenuButton*);
+#endif
+
+#ifdef USECOMBO
+ QComboBox *action;
+#else
+ MenuButton *action;
+#endif
+ QSpinBox* debounce;
+ signals:
+ void Closed();
+ private slots:
+ void slotClosed() { emit Closed(); }
+
+public:
+
+ CButtonPrefs( QMap<orKey, int>*, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ ~CButtonPrefs();
+ int Debounce() { return debounce->value(); }
+ void Debounce(int v) { debounce->setValue(v); }
+ void mapkey(Qt::ButtonState st, int key);
+ void mapkey(Qt::ButtonState st, int key, int _fn);
+ private slots:
+ void erasemapping();
+};
+#endif // CPREFS_H