1
#ifndef WINDOW_DEFINITION_LIST_WIDGET_H
2
#define WINDOW_DEFINITION_LIST_WIDGET_H
3
/* Copyright (C) 2009 Michael Jansen <kde@michael-jansen.biz>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
22
#include "hotkeys_widget_iface.h"
24
#include "ui_window_definition_list_widget.h"
25
#include "windows_helper/window_selection_list.h"
30
* @author Michael Jansen <kde@michael-jansen.biz>
32
class WindowDefinitionListWidget : public HotkeysWidgetIFace
41
WindowDefinitionListWidget(
42
KHotKeys::Windowdef_list *windowdef_list,
43
QWidget *parent = NULL);
45
WindowDefinitionListWidget(QWidget *parent);
50
virtual ~WindowDefinitionListWidget();
52
void setWindowDefinitions(KHotKeys::Windowdef_list *windowdef_list);
54
bool isChanged() const;
58
void emitChanged(bool);
62
void slotDelete(bool);
63
void slotDuplicate(bool);
69
void doCopyFromObject();
70
void doCopyToObject();
74
// The Windowdefinition list
75
KHotKeys::Windowdef_list *_windowdefs;
76
KHotKeys::Windowdef_list *_working;
79
Ui::WindowDefinitionListWidget ui;
86
class WindowDefinitionListDialog : public KDialog
92
WindowDefinitionListDialog(
93
KHotKeys::Windowdef_list *list,
98
def = new WindowDefinitionListWidget(list, this);
100
def->copyFromObject();
104
~WindowDefinitionListDialog()
110
virtual void accept()
118
WindowDefinitionListWidget *def;
121
#endif /* #ifndef WINDOW_DEFINITION_LIST_WIDGET_H */