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 TQt, and distribute the resulting executable,
00022     without including the source code for TQt in the source distribution.
00023 */
00024 #ifndef _EXPORTWEBDIALOG_H
00025 #define _EXPORTWEBDIALOG_H
00026 
00027 #include <libtdepim/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   
00042   public:
00043     ExportWebDialog( HTMLExportSettings *settings, TQWidget *parent = 0,
00044                      const char *name = 0 );
00045     virtual ~ExportWebDialog();
00046 
00047   public slots:
00048     void slotTextChanged( const TQString & _text);
00049 
00050   protected:
00051     void setupGeneralPage();
00052     void setupEventPage();
00053     void setupTodoPage();
00054 //    void setupJournalPage();
00055 //    void setupFreeBusyPage();
00056 //    void setupAdvancedPage();
00057 
00058   public slots:
00059     void setDefaults();
00060     void readConfig();
00061     void writeConfig();
00062 
00063   signals:
00064     void configChanged();
00065     void exportHTML( HTMLExportSettings* );
00066 
00067   protected slots:
00068     void slotOk();
00069     void slotApply();
00070     void slotDefault();
00071 
00072   protected:
00073     virtual void usrReadConfig() {}
00074     virtual void usrWriteConfig() {}
00075 
00076   private slots:
00077     void updateState();  
00078     
00079   private:
00080     HTMLExportSettings* mSettings;
00081     TQFrame *mGeneralPage;
00082     TQFrame *mEventPage;
00083     TQFrame *mTodoPage;
00084 //    TQFrame *mJournalPage;
00085 //    TQFrame *mFreeBusyPage;
00086 //    TQFrame *mAdvancedPage;
00087 
00088     TQCheckBox *mMonthViewCheckBox;
00089     TQCheckBox *mEventListCheckBox;
00090     TQGroupBox *mDateRangeBox;
00091 };
00092 
00093 #endif // _EXPORTWEBDIALOG_H