korganizer

exportwebdialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004     Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef _EXPORTWEBDIALOG_H
00025 #define _EXPORTWEBDIALOG_H
00026 
00027 #include <libkdepim/kprefsdialog.h>
00028 
00029 class HTMLExportSettings;
00030 class TQGroupBox;
00031 using namespace KCal;
00032 
00033 
00038 class ExportWebDialog : public KDialogBase, public KPrefsWidManager
00039 {
00040     Q_OBJECT
00041   public:
00042     ExportWebDialog( HTMLExportSettings *settings, TQWidget *parent = 0,
00043                      const char *name = 0 );
00044     virtual ~ExportWebDialog();
00045 
00046   public slots:
00047     void slotTextChanged( const TQString & _text);
00048 
00049   protected:
00050     void setupGeneralPage();
00051     void setupEventPage();
00052     void setupTodoPage();
00053 //    void setupJournalPage();
00054 //    void setupFreeBusyPage();
00055 //    void setupAdvancedPage();
00056 
00057   public slots:
00058     void setDefaults();
00059     void readConfig();
00060     void writeConfig();
00061 
00062   signals:
00063     void configChanged();
00064     void exportHTML( HTMLExportSettings* );
00065 
00066   protected slots:
00067     void slotOk();
00068     void slotApply();
00069     void slotDefault();
00070 
00071   protected:
00072     virtual void usrReadConfig() {}
00073     virtual void usrWriteConfig() {}
00074 
00075   private slots:
00076     void updateState();  
00077     
00078   private:
00079     HTMLExportSettings* mSettings;
00080     TQFrame *mGeneralPage;
00081     TQFrame *mEventPage;
00082     TQFrame *mTodoPage;
00083 //    TQFrame *mJournalPage;
00084 //    TQFrame *mFreeBusyPage;
00085 //    TQFrame *mAdvancedPage;
00086 
00087     TQCheckBox *mMonthViewCheckBox;
00088     TQCheckBox *mEventListCheckBox;
00089     TQGroupBox *mDateRangeBox;
00090 };
00091 
00092 #endif // _EXPORTWEBDIALOG_H