Better wording
[kdepim.git] / incidenceeditor-ng / categoryeditdialog.h
blob75dd02ee05e4f1c49600879969f9da2f86b66c62
1 /*
2 Copyright (c) 2000, 2001, 2002 Cornelius Schumacher <schumacher@kde.org>
3 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
4 Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
21 #ifndef INCIDENCEEDITOR_CATEGORYEDITDIALOG_H
22 #define INCIDENCEEDITOR_CATEGORYEDITDIALOG_H
24 #include "incidenceeditors-ng_export.h"
26 #include <KDialog>
28 class QTreeWidgetItem;
30 namespace Ui {
31 class CategoryEditDialog_base;
34 namespace CalendarSupport {
35 class CategoryConfig;
38 namespace IncidenceEditorNG {
40 class INCIDENCEEDITORS_NG_EXPORT CategoryEditDialog : public KDialog
42 Q_OBJECT
43 public:
44 explicit CategoryEditDialog( CalendarSupport::CategoryConfig *categoryConfig,
45 QWidget *parent = 0 );
47 ~CategoryEditDialog();
49 public Q_SLOTS:
50 void reload();
51 virtual void show();
53 protected Q_SLOTS:
54 void slotOk();
55 void slotApply();
56 void slotCancel();
57 void slotTextChanged( const QString &text );
58 void slotSelectionChanged();
59 void add();
60 void addSubcategory();
61 void remove();
62 void editItem( QTreeWidgetItem *item );
63 void expandIfToplevel( QTreeWidgetItem *item );
65 Q_SIGNALS:
66 void categoryConfigChanged();
68 protected:
69 void fillList();
71 private:
72 void deleteItem( QTreeWidgetItem *item, QList<QTreeWidgetItem *> &to_remove );
73 CalendarSupport::CategoryConfig *mCategoryConfig;
74 Ui::CategoryEditDialog_base *mWidgets;
79 #endif