korganizer

koprefsdialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2000,2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
00004     Copyright (c) 2003-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 KOPREFSDIALOG_H
00025 #define KOPREFSDIALOG_H
00026 
00027 #include <libkdepim/kprefsdialog.h>
00028 #include <libkdepim/kcmdesignerfields.h>
00029 
00030 #include <qdict.h>
00031 
00032 class QLineEdit;
00033 class QLabel;
00034 class QSpinBox;
00035 class QComboBox;
00036 class KColorButton;
00037 class KPushButton;
00038 class QColor;
00039 class QListView;
00040 
00041 class KDE_EXPORT KOPrefsDialogMain : public KPrefsModule
00042 {
00043     Q_OBJECT
00044   public:
00045     KOPrefsDialogMain( QWidget *parent, const char *name );
00046 
00047   protected slots:
00048     void toggleEmailSettings( bool on );
00049   private:
00050     QWidget *mUserEmailSettings;
00051 };
00052 
00053 class KDE_EXPORT KOPrefsDialogColors : public KPrefsModule
00054 {
00055     Q_OBJECT
00056   public:
00057     KOPrefsDialogColors( QWidget *parent, const char *name );
00058 
00059   protected:
00060     void usrWriteConfig();
00061     void usrReadConfig();
00062 
00063   protected slots:
00064     void updateCategories();
00065     void setCategoryColor();
00066     void updateCategoryColor();
00067 
00068     void updateResources();
00069     void setResourceColor();
00070     void updateResourceColor();
00071   private:
00072     QComboBox     *mCategoryCombo;
00073     KColorButton  *mCategoryButton;
00074     QDict<QColor> mCategoryDict;
00075 
00076     QComboBox     *mResourceCombo;
00077     KColorButton  *mResourceButton;
00078     QDict<QColor> mResourceDict;
00079     //For translation Identifier <->idx in Combo
00080     QStringList mResourceIdentifier;
00081 };
00082 
00083 class KDE_EXPORT KOPrefsDialogGroupScheduling : public KPrefsModule
00084 {
00085     Q_OBJECT
00086   public:
00087     KOPrefsDialogGroupScheduling( QWidget *parent, const char *name );
00088 
00089   protected:
00090     void usrReadConfig();
00091     void usrWriteConfig();
00092 
00093   protected slots:
00094     void addItem();
00095     void removeItem();
00096     void updateItem();
00097     void updateInput();
00098 
00099   private:
00100     QListView *mAMails;
00101     QLineEdit *aEmailsEdit;
00102 };
00103 
00104 class KOGroupwarePrefsPage;
00105 
00106 class KDE_EXPORT KOPrefsDialogGroupwareScheduling : public KPrefsModule
00107 {
00108     Q_OBJECT
00109   public:
00110     KOPrefsDialogGroupwareScheduling( QWidget *parent, const char *name );
00111 
00112   protected:
00113     void usrReadConfig();
00114     void usrWriteConfig();
00115 
00116   private:
00117     KOGroupwarePrefsPage* mGroupwarePage;
00118 };
00119 
00120 class KDE_EXPORT KOPrefsDialogPlugins : public KPrefsModule
00121 {
00122     Q_OBJECT
00123   public:
00124     KOPrefsDialogPlugins( QWidget *parent, const char *name );
00125 
00126   protected slots:
00127     void usrReadConfig();
00128     void usrWriteConfig();
00129     void configure();
00130     void selectionChanged( QListViewItem* );
00131 
00132   private:
00133     void buildList();
00134     QListView *mListView;
00135     QLabel *mDescription;
00136     KPushButton *mConfigureButton;
00137 };
00138 
00139 class KDE_EXPORT KOPrefsDesignerFields : public KPIM::KCMDesignerFields
00140 {
00141   public:
00142     KOPrefsDesignerFields( QWidget *parent = 0, const char *name = 0 );
00143 
00144   protected:
00145     QString localUiDir();
00146     QString uiPath();
00147     void writeActivePages( const QStringList & );
00148     QStringList readActivePages();
00149     QString applicationName();
00150 };
00151 
00152 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys