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

korganizer

  • sources
  • kde-4.14
  • kdepim
  • korganizer
  • prefs
koprefsdialog.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2000,2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 #ifndef KORG_KOPREFSDIALOG_H
26 #define KORG_KOPREFSDIALOG_H
27 
28 #include "korganizer_export.h"
29 #include "kcmdesignerfields.h"
30 #include <QSet>
31 #include <libkdepim/prefs/kprefsdialog.h>
32 
33 namespace Ui {
34  class KOGroupwarePrefsPage;
35 }
36 
37 namespace Akonadi {
38  class CollectionComboBox;
39 }
40 
41 class QRadioButton;
42 
43 class KCM_KORGANIZER_EXPORT KOPrefsDialogMain : public KPIM::KPrefsModule
44 {
45  Q_OBJECT
46  public:
47  KOPrefsDialogMain( const KComponentData &inst, QWidget *parent );
48 
49  protected:
50  void usrWriteConfig();
51 
52  protected slots:
53  void toggleEmailSettings( bool on );
54 
55  private:
56  QWidget *mUserEmailSettings;
57 };
58 
59 class KCM_KORGANIZER_EXPORT KOPrefsDialogColorsAndFonts : public KPIM::KPrefsModule
60 {
61  Q_OBJECT
62  public:
63  KOPrefsDialogColorsAndFonts( const KComponentData &inst, QWidget *parent );
64 
65  protected:
66  void usrWriteConfig();
67  void usrReadConfig();
68 
69  protected slots:
70  void updateCategories();
71  void setCategoryColor();
72  void updateCategoryColor();
73 
74  void updateResources();
75  void setResourceColor();
76  void updateResourceColor();
77 
78  private:
79  KComboBox *mCategoryCombo;
80  KColorButton *mCategoryButton;
81  QHash<QString,QColor> mCategoryDict;
82 
83  Akonadi::CollectionComboBox *mResourceCombo;
84  KColorButton *mResourceButton;
85  QHash<QString, QColor> mResourceDict;
86 };
87 
88 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupScheduling : public KPIM::KPrefsModule
89 {
90  Q_OBJECT
91  public:
92  KOPrefsDialogGroupScheduling( const KComponentData &inst, QWidget *parent );
93 
94  protected:
95  void usrReadConfig();
96  void usrWriteConfig();
97 };
98 
99 class KOGroupwarePrefsPage;
100 
101 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupwareScheduling : public KPIM::KPrefsModule
102 {
103  Q_OBJECT
104  public:
105  KOPrefsDialogGroupwareScheduling( const KComponentData &inst, QWidget *parent );
106  ~KOPrefsDialogGroupwareScheduling();
107 
108  protected:
109  void usrReadConfig();
110  void usrWriteConfig();
111 
112  private:
113  Ui::KOGroupwarePrefsPage *mGroupwarePage;
114 };
115 
116 class KCM_KORGANIZER_EXPORT KOPrefsDialogPlugins : public KPIM::KPrefsModule
117 {
118  Q_OBJECT
119  public:
120  KOPrefsDialogPlugins( const KComponentData &inst, QWidget *parent );
121 
122  protected slots:
123  void usrReadConfig();
124  void usrWriteConfig();
125  void configure();
126  void selectionChanged();
127  void positioningChanged();
128 
129  private:
130  void buildList();
131  QTreeWidget *mTreeWidget;
132  QLabel *mDescription;
133  KPushButton *mConfigureButton;
134  QGroupBox *mPositioningGroupBox;
135 
136  //Decorations are not implemented in month view yet
137  //QCheckBox *mPositionMonthTop;
138 
139  QRadioButton *mPositionAgendaTop;
140  QRadioButton *mPositionAgendaBottom;
141  QSet<QString> mDecorationsAtMonthViewTop;
142  QSet<QString> mDecorationsAtAgendaViewTop;
143  QSet<QString> mDecorationsAtAgendaViewBottom;
144 };
145 
146 class KCM_KORGANIZER_EXPORT KOPrefsDesignerFields : public KCMDesignerFields
147 {
148  public:
149  explicit KOPrefsDesignerFields( const KComponentData &inst, QWidget *parent = 0 );
150 
151  protected:
152  QString localUiDir();
153  QString uiPath();
154  void writeActivePages( const QStringList & );
155  QStringList readActivePages();
156  QString applicationName();
157 };
158 
159 /*class KCM_KORGANIZER_EXPORT KOPrefsDialogThemes : public KPrefsModule
160 {
161  Q_OBJECT
162  public:
163  KOPrefsDialogThemes( const KComponentData &inst, QWidget *parent );
164 
165  protected slots:
166  void usrReadConfig();
167  void usrWriteConfig();
168  void importTheme();
169  void exportTheme();
170 };*/
171 
172 #endif
QWidget
KOPrefsDesignerFields
Definition: koprefsdialog.h:146
KCMDesignerFields::writeActivePages
virtual void writeActivePages(const QStringList &)=0
kcmdesignerfields.h
KOPrefsDialogPlugins
Definition: koprefsdialog.h:116
QTreeWidget
QGroupBox
KCM_KORGANIZER_EXPORT
#define KCM_KORGANIZER_EXPORT
Definition: korganizer_export.h:113
QHash< QString, QColor >
KCMDesignerFields::uiPath
virtual QString uiPath()=0
QSet< QString >
QString
QStringList
KOPrefsDialogGroupScheduling
Definition: koprefsdialog.h:88
korganizer_export.h
QRadioButton
KOPrefsDialogMain
Definition: koprefsdialog.h:43
KCMDesignerFields::applicationName
virtual QString applicationName()=0
KOPrefsDialogGroupwareScheduling
Definition: koprefsdialog.h:101
KCMDesignerFields::localUiDir
virtual QString localUiDir()=0
QLabel
KCMDesignerFields
Definition: kcmdesignerfields.h:35
KOPrefsDialogColorsAndFonts
Definition: koprefsdialog.h:59
KCMDesignerFields::readActivePages
virtual QStringList readActivePages()=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal