From 4aed2c8219774f5d797760606b8489a92ddc5163 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khotkeys/kcontrol/gesturerecordpage.h | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 khotkeys/kcontrol/gesturerecordpage.h (limited to 'khotkeys/kcontrol/gesturerecordpage.h') diff --git a/khotkeys/kcontrol/gesturerecordpage.h b/khotkeys/kcontrol/gesturerecordpage.h new file mode 100644 index 000000000..2636b47b3 --- /dev/null +++ b/khotkeys/kcontrol/gesturerecordpage.h @@ -0,0 +1,61 @@ +/**************************************************************************** + + KHotKeys + + Copyright (C) 2003 Mike Pilone + Copyright (C) 2003 Lubos Lunak + + Distributed under the terms of the GNU General Public License version 2. + +****************************************************************************/ + +#ifndef GESTURE_RECORD_PAGE_H +#define GESTURE_RECORD_PAGE_H + +#include + +#include "gesturedrawer.h" + +class QWidget; +class QPushButton; +class QLabel; + +namespace KHotKeys +{ + +class Gesture; +class GestureRecorder; + +class GestureRecordPage : public QVBox + { + Q_OBJECT + + public: + GestureRecordPage(const QString &gesture, + QWidget *parent, const char *name); + ~GestureRecordPage(); + + const QString &getGesture() const { return _gest; } + + protected slots: + void slotRecorded(const QString &data); + void slotResetClicked(); + + signals: + void gestureRecorded(bool); + + private: + GestureRecorder *_recorder; + QPushButton *_resetButton; + GestureDrawer *_tryOne; + GestureDrawer *_tryTwo; + GestureDrawer *_tryThree; + + QString _gest; + + Q_UINT32 _tryCount; + }; + +} // namespace KHotKeys + +#endif -- cgit v1.2.1