korganizer Library API Documentation

koprefsdialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2000,2001,2002,2003 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 <libkdepim/kprefsdialog.h>
00027 
00028 #include <qdict.h>
00029 
00030 class QLineEdit;
00031 class QLabel;
00032 class QSpinBox;
00033 class QComboBox;
00034 class KColorButton;
00035 class QColor;
00036 class QListView;
00037 
00038 class KOPrefsDialogMain : public KPrefsModule
00039 {
00040     Q_OBJECT
00041   public:
00042     KOPrefsDialogMain( QWidget *parent, const char *name );
00043 
00044   protected:
00045     void usrReadConfig();
00046     void usrWriteConfig();
00047 
00048   protected slots:
00049     void toggleEmailSettings( bool on );
00050 
00051   private:
00052     QLineEdit *mNameEdit;
00053     QLineEdit *mEmailEdit;
00054     QLabel *mNameLabel;
00055     QLabel *mEmailLabel;
00056     QSpinBox  *mAutoSaveIntervalSpin;
00057 };
00058 
00059 class KOPrefsDialogColors : public KPrefsModule
00060 {
00061     Q_OBJECT
00062   public:
00063     KOPrefsDialogColors( QWidget *parent, const char *name );
00064 
00065   protected:
00066     void usrWriteConfig();
00067     void usrReadConfig();
00068 
00069   protected slots:
00070     void updateCategories();
00071     void setCategoryColor();
00072     void updateCategoryColor();
00073 
00074     void updateResources();
00075     void setResourceColor();
00076     void updateResourceColor();
00077   private:
00078     QComboBox     *mCategoryCombo;
00079     KColorButton  *mCategoryButton;
00080     QDict<QColor> mCategoryDict;
00081 
00082     QComboBox     *mResourceCombo;
00083     KColorButton  *mResourceButton;
00084     QDict<QColor> mResourceDict;
00085     //For translation Identifier <->idx in Combo
00086     QStringList mResourceIdentifier;
00087 };
00088 
00089 class KOPrefsDialogGroupScheduling : public KPrefsModule
00090 {
00091     Q_OBJECT
00092   public:
00093     KOPrefsDialogGroupScheduling( QWidget *parent, const char *name );
00094 
00095   protected:
00096     void usrReadConfig();
00097     void usrWriteConfig();
00098   
00099   protected slots:
00100     void addItem();
00101     void removeItem();
00102     void updateItem();
00103     void updateInput();
00104 
00105   private:
00106     QListView *mAMails;
00107     QLineEdit *aEmailsEdit;
00108 };
00109 
00110 class KOGroupwarePrefsPage;
00111 
00112 class KOPrefsDialogGroupwareScheduling : public KPrefsModule
00113 {
00114     Q_OBJECT
00115   public:
00116     KOPrefsDialogGroupwareScheduling( QWidget *parent, const char *name );
00117 
00118   protected:
00119     void usrReadConfig();
00120     void usrWriteConfig();
00121 
00122   private:
00123     KOGroupwarePrefsPage* mGroupwarePage;
00124 };
00125 
00126 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:25:45 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003