korganizer
koprefsdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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
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
|