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"
28 class QTreeWidgetItem
;
31 class CategoryEditDialog_base
;
34 namespace CalendarSupport
{
38 namespace IncidenceEditorNG
{
40 class INCIDENCEEDITORS_NG_EXPORT CategoryEditDialog
: public KDialog
44 explicit CategoryEditDialog( CalendarSupport::CategoryConfig
*categoryConfig
,
45 QWidget
*parent
= 0 );
47 ~CategoryEditDialog();
57 void slotTextChanged( const QString
&text
);
58 void slotSelectionChanged();
60 void addSubcategory();
62 void editItem( QTreeWidgetItem
*item
);
63 void expandIfToplevel( QTreeWidgetItem
*item
);
66 void categoryConfigChanged();
72 void deleteItem( QTreeWidgetItem
*item
, QList
<QTreeWidgetItem
*> &to_remove
);
73 CalendarSupport::CategoryConfig
*mCategoryConfig
;
74 Ui::CategoryEditDialog_base
*mWidgets
;