• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

koprefsdialog.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2000,2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 #ifndef KOPREFSDIALOG_H
00026 #define KOPREFSDIALOG_H
00027 
00028 #include "korganizer_export.h"
00029 
00030 #include <libkdepim/kprefsdialog.h>
00031 #include <libkdepim/kcmdesignerfields.h>
00032 
00033 #include <QHash>
00034 #include <QSet>
00035 
00036 class KLineEdit;
00037 class QLabel;
00038 class KComboBox;
00039 class KColorButton;
00040 class KPushButton;
00041 class QColor;
00042 class Q3ListView;
00043 class KComponentData;
00044 class QGroupBox;
00045 class QTreeWidget;
00046 
00047 using namespace KPIM;
00048 
00049 namespace Ui {
00050   class KOGroupwarePrefsPage;
00051 }
00052 
00053 class KCM_KORGANIZER_EXPORT KOPrefsDialogMain : public KPrefsModule
00054 {
00055   Q_OBJECT
00056   public:
00057     KOPrefsDialogMain( const KComponentData &inst, QWidget *parent );
00058 
00059   protected slots:
00060     void toggleEmailSettings( bool on );
00061 
00062   private:
00063     QWidget *mUserEmailSettings;
00064 };
00065 
00066 class KCM_KORGANIZER_EXPORT KOPrefsDialogColorsAndFonts : public KPrefsModule
00067 {
00068   Q_OBJECT
00069   public:
00070     KOPrefsDialogColorsAndFonts( const KComponentData &inst, QWidget *parent );
00071 
00072   protected:
00073     void usrWriteConfig();
00074     void usrReadConfig();
00075 
00076   protected slots:
00077     void updateCategories();
00078     void setCategoryColor();
00079     void updateCategoryColor();
00080 
00081     void updateResources();
00082     void setResourceColor();
00083     void updateResourceColor();
00084 
00085   private:
00086     KComboBox     *mCategoryCombo;
00087     KColorButton  *mCategoryButton;
00088     QHash<QString, QColor> mCategoryDict;
00089 
00090     KComboBox     *mResourceCombo;
00091     KColorButton  *mResourceButton;
00092     QHash<QString, QColor> mResourceDict;
00093     //For translation Identifier <->idx in Combo
00094     QStringList mResourceIdentifier;
00095 };
00096 
00097 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupScheduling : public KPrefsModule
00098 {
00099   Q_OBJECT
00100   public:
00101     KOPrefsDialogGroupScheduling( const KComponentData &inst, QWidget *parent );
00102 
00103   protected:
00104     void usrReadConfig();
00105     void usrWriteConfig();
00106 
00107   protected slots:
00108     void addItem();
00109     void removeItem();
00110     void updateItem();
00111     void checkEmptyMail();
00112     void updateInput();
00113 
00114   private:
00115     Q3ListView *mAMails;
00116     KLineEdit *aEmailsEdit;
00117 };
00118 
00119 class KOGroupwarePrefsPage;
00120 
00121 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupwareScheduling : public KPrefsModule
00122 {
00123   Q_OBJECT
00124   public:
00125     KOPrefsDialogGroupwareScheduling( const KComponentData &inst, QWidget *parent );
00126     ~KOPrefsDialogGroupwareScheduling();
00127 
00128   protected:
00129     void usrReadConfig();
00130     void usrWriteConfig();
00131 
00132   private:
00133     Ui::KOGroupwarePrefsPage *mGroupwarePage;
00134 };
00135 
00136 class KCM_KORGANIZER_EXPORT KOPrefsDialogPlugins : public KPrefsModule
00137 {
00138   Q_OBJECT
00139   public:
00140     KOPrefsDialogPlugins( const KComponentData &inst, QWidget *parent );
00141 
00142   protected slots:
00143     void usrReadConfig();
00144     void usrWriteConfig();
00145     void configure();
00146     void selectionChanged();
00147     void positioningChanged();
00148 
00149   private:
00150     void buildList();
00151     QTreeWidget *mTreeWidget;
00152     QLabel *mDescription;
00153     KPushButton *mConfigureButton;
00154     QGroupBox *mPositioningGroupBox;
00155     QCheckBox *mPositionMonthTop;
00156     QCheckBox *mPositionAgendaTop;
00157     QCheckBox *mPositionAgendaBottom;
00158     QSet<QString> mDecorationsAtMonthViewTop;
00159     QSet<QString> mDecorationsAtAgendaViewTop;
00160     QSet<QString> mDecorationsAtAgendaViewBottom;
00161 };
00162 
00163 class KCM_KORGANIZER_EXPORT KOPrefsDesignerFields : public KPIM::KCMDesignerFields
00164 {
00165   public:
00166     explicit KOPrefsDesignerFields( const KComponentData &inst, QWidget *parent = 0 );
00167 
00168   protected:
00169     QString localUiDir();
00170     QString uiPath();
00171     void writeActivePages( const QStringList & );
00172     QStringList readActivePages();
00173     QString applicationName();
00174 };
00175 
00176 /*class KCM_KORGANIZER_EXPORT KOPrefsDialogThemes : public KPrefsModule
00177 {
00178   Q_OBJECT
00179   public:
00180     KOPrefsDialogThemes( const KComponentData &inst, QWidget *parent );
00181 
00182   protected slots:
00183     void usrReadConfig();
00184     void usrWriteConfig();
00185     void importTheme();
00186     void exportTheme();
00187 };*/
00188 
00189 #endif

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal