1
/* Copyright (C) 2009 Michael Jansen <kde@michael-jansen.biz>
3
This library is free software; you can redistribute it and/or
4
modify it under the terms of the GNU Library General Public
5
License as published by the Free Software Foundation; either
6
version 2 of the License, or (at your option) any later version.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
19
#include "gesture_widget.h"
20
#include "helper_widgets/edit_gesture_dialog.h"
23
GestureWidget::GestureWidget(QWidget *parent)
28
connect(ui.edit_button, SIGNAL(clicked(bool)),
33
GestureWidget::~GestureWidget()
38
void GestureWidget::edit()
40
EditGestureDialog dia(ui.gesture->pointData());
43
case KDialog::Accepted:
44
setPointData(dia.pointData(), true);
47
case KDialog::Rejected:
58
KHotKeys::StrokePoints GestureWidget::pointData() const
60
return ui.gesture->pointData();
64
void GestureWidget::setPointData(const KHotKeys::StrokePoints &data , bool emitSignal)
66
ui.gesture->setPointData(data);
71
#include "moc_gesture_widget.cpp"