korganizer

exportwebdialog.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program 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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of TQt, and distribute the resulting executable,
22  without including the source code for TQt in the source distribution.
23 */
24 #ifndef _EXPORTWEBDIALOG_H
25 #define _EXPORTWEBDIALOG_H
26 
27 #include <libtdepim/kprefsdialog.h>
28 
29 class HTMLExportSettings;
30 class TQGroupBox;
31 using namespace KCal;
32 
33 
38 class ExportWebDialog : public KDialogBase, public KPrefsWidManager
39 {
40  TQ_OBJECT
41 
42  public:
43  ExportWebDialog( HTMLExportSettings *settings, TQWidget *parent = 0,
44  const char *name = 0 );
45  virtual ~ExportWebDialog();
46 
47  public slots:
48  void slotTextChanged( const TQString & _text);
49 
50  protected:
51  void setupGeneralPage();
52  void setupEventPage();
53  void setupTodoPage();
54 // void setupJournalPage();
55 // void setupFreeBusyPage();
56 // void setupAdvancedPage();
57 
58  public slots:
59  void setDefaults();
60  void readConfig();
61  void writeConfig();
62 
63  signals:
64  void configChanged();
65  void exportHTML( HTMLExportSettings* );
66 
67  protected slots:
68  void slotOk();
69  void slotApply();
70  void slotDefault();
71 
72  protected:
73  virtual void usrReadConfig() {}
74  virtual void usrWriteConfig() {}
75 
76  private slots:
77  void updateState();
78 
79  private:
80  HTMLExportSettings* mSettings;
81  TQFrame *mGeneralPage;
82  TQFrame *mEventPage;
83  TQFrame *mTodoPage;
84 // TQFrame *mJournalPage;
85 // TQFrame *mFreeBusyPage;
86 // TQFrame *mAdvancedPage;
87 
88  TQCheckBox *mMonthViewCheckBox;
89  TQCheckBox *mEventListCheckBox;
90  TQGroupBox *mDateRangeBox;
91 };
92 
93 #endif // _EXPORTWEBDIALOG_H
ExportWebDialog is a class that provides the dialog and functions to export a calendar as web page.