summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/gesture_triggers_tab.h
blob: c11787d034191ca0ddfd31056ff837a7ef7f6c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 <tqstring.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( TQWidget* 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:
        TQString gesture1, gesture2, gesture3;
    };

class GestureRecordPage;

class Gesture_edit_dialog
    : public KDialogBase
    {
    Q_OBJECT
    public:
        Gesture_edit_dialog( const TQString& gesture_P );
        TQString edit_gesture();
    private:
        // CHECKME accept() ?
        TQString _gesture;
        GestureRecordPage *_page;
    };        
            

//***************************************************************************
// Inline
//***************************************************************************

} // namespace KHotKeys

#endif