korganizer Library API Documentation

koprefsdialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
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     //additional emails
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     // widgets holding preferences data
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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:31 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001