libtdepim

kcmdesignerfields.h
1 /*
2  This file is part of libtdepim.
3 
4  Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
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_KCMDESIGNERFIELDS_H
23 #define KPIM_KCMDESIGNERFIELDS_H
24 
25 #include <tdecmodule.h>
26 #include <tdemacros.h>
27 
28 class TDEListView;
29 
30 class TQLabel;
31 class TQListViewItem;
32 class TQPushButton;
33 
34 namespace KPIM {
35 
36 class TDE_EXPORT KCMDesignerFields : public TDECModule
37 {
38  TQ_OBJECT
39 
40 
41  public:
42  KCMDesignerFields( TQWidget *parent = 0, const char *name = 0 );
43 
44  virtual void load();
45  virtual void save();
46  virtual void defaults();
47 
48  protected:
49  void loadUiFiles();
50  void loadActivePages(const TQStringList&);
51  TQStringList saveActivePages();
52 
53  virtual TQString localUiDir() = 0;
54  virtual TQString uiPath() = 0;
55  virtual void writeActivePages( const TQStringList & ) = 0;
56  virtual TQStringList readActivePages() = 0;
57  virtual TQString applicationName() = 0;
58 
59  private slots:
60  void updatePreview( TQListViewItem* );
61  void itemClicked( TQListViewItem* );
62  void startDesigner();
63  void rebuildList();
64  void deleteFile();
65  void importFile();
66  void delayedInit();
67 
68  private:
69  void initGUI();
70 
71  TDEListView *mPageView;
72  TQLabel *mPagePreview;
73  TQLabel *mPageDetails;
74  TQPushButton *mDeleteButton;
75  TQPushButton *mImportButton;
76  TQPushButton *mDesignerButton;
77 };
78 
79 }
80 
81 #endif
TDEPIM classes for drag and drop of mails.