From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/koprefsdialog.h | 152 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 korganizer/koprefsdialog.h (limited to 'korganizer/koprefsdialog.h') diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h new file mode 100644 index 000000000..797c50e5b --- /dev/null +++ b/korganizer/koprefsdialog.h @@ -0,0 +1,152 @@ +/* + This file is part of KOrganizer. + Copyright (c) 2000,2001,2002,2003 Cornelius Schumacher + Copyright (c) 2003-2004 Reinhold Kainhofer + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + As a special exception, permission is given to link this program + with any edition of Qt, and distribute the resulting executable, + without including the source code for Qt in the source distribution. +*/ +#ifndef KOPREFSDIALOG_H +#define KOPREFSDIALOG_H + +#include +#include + +#include + +class QLineEdit; +class QLabel; +class QSpinBox; +class QComboBox; +class KColorButton; +class KPushButton; +class QColor; +class QListView; + +class KDE_EXPORT KOPrefsDialogMain : public KPrefsModule +{ + Q_OBJECT + public: + KOPrefsDialogMain( QWidget *parent, const char *name ); + + protected slots: + void toggleEmailSettings( bool on ); + private: + QWidget *mUserEmailSettings; +}; + +class KDE_EXPORT KOPrefsDialogColors : public KPrefsModule +{ + Q_OBJECT + public: + KOPrefsDialogColors( QWidget *parent, const char *name ); + + protected: + void usrWriteConfig(); + void usrReadConfig(); + + protected slots: + void updateCategories(); + void setCategoryColor(); + void updateCategoryColor(); + + void updateResources(); + void setResourceColor(); + void updateResourceColor(); + private: + QComboBox *mCategoryCombo; + KColorButton *mCategoryButton; + QDict mCategoryDict; + + QComboBox *mResourceCombo; + KColorButton *mResourceButton; + QDict mResourceDict; + //For translation Identifier <->idx in Combo + QStringList mResourceIdentifier; +}; + +class KDE_EXPORT KOPrefsDialogGroupScheduling : public KPrefsModule +{ + Q_OBJECT + public: + KOPrefsDialogGroupScheduling( QWidget *parent, const char *name ); + + protected: + void usrReadConfig(); + void usrWriteConfig(); + + protected slots: + void addItem(); + void removeItem(); + void updateItem(); + void updateInput(); + + private: + QListView *mAMails; + QLineEdit *aEmailsEdit; +}; + +class KOGroupwarePrefsPage; + +class KDE_EXPORT KOPrefsDialogGroupwareScheduling : public KPrefsModule +{ + Q_OBJECT + public: + KOPrefsDialogGroupwareScheduling( QWidget *parent, const char *name ); + + protected: + void usrReadConfig(); + void usrWriteConfig(); + + private: + KOGroupwarePrefsPage* mGroupwarePage; +}; + +class KDE_EXPORT KOPrefsDialogPlugins : public KPrefsModule +{ + Q_OBJECT + public: + KOPrefsDialogPlugins( QWidget *parent, const char *name ); + + protected slots: + void usrReadConfig(); + void usrWriteConfig(); + void configure(); + void selectionChanged( QListViewItem* ); + + private: + void buildList(); + QListView *mListView; + QLabel *mDescription; + KPushButton *mConfigureButton; +}; + +class KDE_EXPORT KOPrefsDesignerFields : public KPIM::KCMDesignerFields +{ + public: + KOPrefsDesignerFields( QWidget *parent = 0, const char *name = 0 ); + + protected: + QString localUiDir(); + QString uiPath(); + void writeActivePages( const QStringList & ); + QStringList readActivePages(); + QString applicationName(); +}; + +#endif -- cgit v1.2.1