~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to khotkeys/kcontrol/gesture_triggers_tab.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 
 
3
 KHotKeys
 
4
 
 
5
 Copyright (C) 1999-2002 Lubos Lunak <l.lunak@kde.org>
 
6
 
 
7
 Distributed under the terms of the GNU General Public License version 2.
 
8
 
 
9
****************************************************************************/
 
10
 
 
11
#ifndef _GESTURE_TRIGGERS_TAB_H_
 
12
#define _GESTURE_TRIGGERS_TAB_H_
 
13
 
 
14
#include <gesture_triggers_tab_ui.h>
 
15
 
 
16
 
 
17
 
 
18
#include <kdialog.h>
 
19
 
 
20
namespace KHotKeys
 
21
{
 
22
 
 
23
class Trigger_list;
 
24
class Action_data;
 
25
 
 
26
class Gesture_triggers_tab
 
27
    : public Gesture_triggers_tab_ui
 
28
    {
 
29
    Q_OBJECT
 
30
    public:
 
31
        Gesture_triggers_tab( QWidget* parent_P = NULL, const char* name_P = NULL );
 
32
        void set_data( const Trigger_list* triggers_P );
 
33
        Trigger_list* get_data( Action_data* data_P ) const;
 
34
    protected:
 
35
        virtual void edit_gesture_pressed1();
 
36
        virtual void edit_gesture_pressed2();
 
37
        virtual void edit_gesture_pressed3();
 
38
    public Q_SLOTS:
 
39
        void clear_data();
 
40
    private:
 
41
        QString gesture1, gesture2, gesture3;
 
42
    };
 
43
 
 
44
class GestureRecordPage;
 
45
 
 
46
class Gesture_edit_dialog
 
47
    : public KDialog
 
48
    {
 
49
    Q_OBJECT
 
50
    public:
 
51
        Gesture_edit_dialog( const QString& gesture_P );
 
52
        QString edit_gesture();
 
53
    private:
 
54
        // CHECKME accept() ?
 
55
        QString _gesture;
 
56
        GestureRecordPage *_page;
 
57
    };        
 
58
            
 
59
 
 
60
//***************************************************************************
 
61
// Inline
 
62
//***************************************************************************
 
63
 
 
64
} // namespace KHotKeys
 
65
 
 
66
#endif