Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / khotkeys / kcontrol / gesture_triggers_tab.h
blob47dbd52049eac46f20e5745533794f20a1616385
1 /****************************************************************************
3 KHotKeys
5 Copyright (C) 1999-2002 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
11 #ifndef _GESTURE_TRIGGERS_TAB_H_
12 #define _GESTURE_TRIGGERS_TAB_H_
14 #include <ui_gesture_triggers_tab_ui.h>
18 #include <kdialog.h>
20 namespace KHotKeys
23 class Trigger_list;
24 class Action_data;
26 class Gesture_triggers_tab_ui : public QWidget, public Ui::Gesture_triggers_tab_ui
28 public:
29 Gesture_triggers_tab_ui( QWidget *parent ) : QWidget( parent ) {
30 setupUi( this );
34 class Gesture_triggers_tab
35 : public Gesture_triggers_tab_ui
37 Q_OBJECT
38 public:
39 Gesture_triggers_tab( QWidget* parent_P = NULL, const char* name_P = NULL );
40 void set_data( const Trigger_list* triggers_P );
41 Trigger_list* get_data( Action_data* data_P ) const;
42 protected slots:
43 virtual void edit_gesture_pressed1();
44 virtual void edit_gesture_pressed2();
45 virtual void edit_gesture_pressed3();
46 public Q_SLOTS:
47 void clear_data();
48 private:
49 QString gesture1, gesture2, gesture3;
52 class GestureRecordPage;
54 class Gesture_edit_dialog
55 : public KDialog
57 Q_OBJECT
58 public:
59 Gesture_edit_dialog( const QString& gesture_P );
60 QString edit_gesture();
61 private:
62 // CHECKME accept() ?
63 QString _gesture;
64 GestureRecordPage *_page;
65 };
68 //***************************************************************************
69 // Inline
70 //***************************************************************************
72 } // namespace KHotKeys
74 #endif