summaryrefslogtreecommitdiffstats
path: root/korganizer/koprefsdialog.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /korganizer/koprefsdialog.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
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
Diffstat (limited to 'korganizer/koprefsdialog.h')
-rw-r--r--korganizer/koprefsdialog.h152
1 files changed, 152 insertions, 0 deletions
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 <schumacher@kde.org>
+ Copyright (c) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
+
+ 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 <libkdepim/kprefsdialog.h>
+#include <libkdepim/kcmdesignerfields.h>
+
+#include <qdict.h>
+
+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<QColor> mCategoryDict;
+
+ QComboBox *mResourceCombo;
+ KColorButton *mResourceButton;
+ QDict<QColor> 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