summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/gesturerecordpage.h
blob: 2636b47b3d3f5375b7ee2602f0ddd7cde2e5808b (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
/****************************************************************************

 KHotKeys
 
 Copyright (C) 2003 Mike Pilone <mpilone@slac.com>
 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>

 Distributed under the terms of the GNU General Public License version 2.
 
****************************************************************************/

#ifndef GESTURE_RECORD_PAGE_H
#define GESTURE_RECORD_PAGE_H

#include <qvbox.h>

#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