koprefsdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _KOPREFSDIALOG_H
00024 #define _KOPREFSDIALOG_H
00025
00026 #include <qframe.h>
00027 #include <qdict.h>
00028 #include <qcolor.h>
00029 #include <qlistview.h>
00030
00031 #include <kdialogbase.h>
00032
00033 #include <libkdepim/kprefsdialog.h>
00034
00035 class KColorButton;
00036 class QSpinBox;
00037 class QSlider;
00038 class KURLRequester;
00039 class QComboBox;
00040 class QLineEdit;
00041 class QStringList;
00042
00045 class KOPrefsDialog : public KPrefsDialog
00046 {
00047 Q_OBJECT
00048 public:
00050 KOPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false);
00051 ~KOPrefsDialog();
00052
00053 public slots:
00054 void showPrinterTab();
00055
00057 void updateCategories();
00058
00059 protected slots:
00060 void setCategoryColor();
00061 void updateCategoryColor();
00062
00063 void warningExperimental(bool on);
00064 void warningGroupScheduling();
00065 void warningProjectView();
00066
00067 void toggleEmailSettings(bool);
00068
00069
00070 void addItem();
00071 void removeItem();
00072 void updateItem();
00073 void updateInput();
00074
00075 protected:
00076 void usrReadConfig();
00077 void usrWriteConfig();
00078
00079 void setupMainTab();
00080 void setupTimeTab();
00081 void setupFontsTab();
00082 void setupColorsTab();
00083 void setupViewsTab();
00084 void setupDisplayTab();
00085 void setupPrinterTab();
00086 void setupGroupSchedulingTab();
00087 void setupGroupAutomationTab();
00088
00089 void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0);
00090
00091
00092 private:
00093 KPrefsWidBool *mEnableGroupScheduling;
00094 KPrefsWidBool *mEnableProjectView;
00095
00096 QFrame *mPrinterTab;
00097
00098 QLineEdit *nameEdit;
00099 QLineEdit *emailEdit;
00100
00101 QComboBox *timeCombo;
00102 QComboBox *tzCombo;
00103
00104
00105 QLineEdit *mNameEdit;
00106 QLineEdit *mEmailEdit;
00107 QLabel *mNameLabel;
00108 QLabel *mEmailLabel;
00109 QLineEdit *mAdditionalEdit;
00110 QSpinBox *mAutoSaveIntervalSpin;
00111 QListView *mAMails;
00112 QLineEdit *aEmailsEdit;
00113
00114 QComboBox *mTimeZoneCombo;
00115 QStringList tzonenames;
00116 QSpinBox *mStartTimeSpin;
00117 QSpinBox *mDefaultDurationSpin;
00118 QComboBox *mAlarmTimeCombo;
00119
00120 QComboBox *mCategoryCombo;
00121 KColorButton *mCategoryButton;
00122 QDict<QColor> mCategoryDict;
00123
00124 QSlider *mHourSizeSlider;
00125
00126 QSpinBox *mNextXDaysSpin;
00127 };
00128
00129 #endif
This file is part of the documentation for kdelibs Version 3.1.5.