You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/khotkeys/kcontrol/gesturerecordpage.h

62 lines
1.2 KiB

/****************************************************************************
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