diff options
Diffstat (limited to 'khotkeys/kcontrol/gesture_triggers_tab.h')
-rw-r--r-- | khotkeys/kcontrol/gesture_triggers_tab.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/khotkeys/kcontrol/gesture_triggers_tab.h b/khotkeys/kcontrol/gesture_triggers_tab.h new file mode 100644 index 000000000..1bdaaf694 --- /dev/null +++ b/khotkeys/kcontrol/gesture_triggers_tab.h @@ -0,0 +1,66 @@ +/**************************************************************************** + + KHotKeys + + Copyright (C) 1999-2002 Lubos Lunak <l.lunak@kde.org> + + Distributed under the terms of the GNU General Public License version 2. + +****************************************************************************/ + +#ifndef _GESTURE_TRIGGERS_TAB_H_ +#define _GESTURE_TRIGGERS_TAB_H_ + +#include <gesture_triggers_tab_ui.h> + +#include <qstring.h> + +#include <kdialogbase.h> + +namespace KHotKeys +{ + +class Trigger_list; +class Action_data; + +class Gesture_triggers_tab + : public Gesture_triggers_tab_ui + { + Q_OBJECT + public: + Gesture_triggers_tab( QWidget* parent_P = NULL, const char* name_P = NULL ); + void set_data( const Trigger_list* triggers_P ); + Trigger_list* get_data( Action_data* data_P ) const; + protected: + virtual void edit_gesture_pressed1(); + virtual void edit_gesture_pressed2(); + virtual void edit_gesture_pressed3(); + public slots: + void clear_data(); + private: + QString gesture1, gesture2, gesture3; + }; + +class GestureRecordPage; + +class Gesture_edit_dialog + : public KDialogBase + { + Q_OBJECT + public: + Gesture_edit_dialog( const QString& gesture_P ); + QString edit_gesture(); + private: + // CHECKME accept() ? + QString _gesture; + GestureRecordPage *_page; + }; + + +//*************************************************************************** +// Inline +//*************************************************************************** + +} // namespace KHotKeys + +#endif |