libtdepim

categoryeditdialog.h
1 /*
2  This file is part of libtdepim.
3 
4  Copyright (c) 2000, 2001, 2002 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 #ifndef KPIM_CATEGORYEDITDIALOG_H
23 #define KPIM_CATEGORYEDITDIALOG_H
24 
25 #include <kdialogbase.h>
26 #include <tdemacros.h>
27 
28 class KPimPrefs;
29 
30 namespace KPIM {
31 
32 class TDE_EXPORT CategoryEditDialog : public KDialogBase
33 {
34  TQ_OBJECT
35 
36  public:
37  CategoryEditDialog( KPimPrefs *prefs, TQWidget* parent = 0,
38  const char* name = 0,
39  bool modal = false );
40  ~CategoryEditDialog();
41 
42  public slots:
43  void reload();
44 
45  protected slots:
46  void slotOk();
47  void slotApply();
48  void slotCancel();
49  void add();
50  void edit();
51  void remove();
52 
53  signals:
54  void categoryConfigChanged();
55 
56  protected:
57  void fillList();
58 
59  private:
60  KPimPrefs *mPrefs;
61  class Private;
62  Private* const d;
63 };
64 
65 }
66 
67 #endif
TDEPIM classes for drag and drop of mails.