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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
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 "ui_accountscalendarwidget.h"
31 
32 #include <libkdepim/prefs/kprefsdialog.h>
33 
34 namespace Ui {
35  class KOGroupwarePrefsPage;
36 }
37 
38 namespace Akonadi {
39  class CollectionComboBox;
40 }
41 
42 class QRadioButton;
43 
44 class KCM_KORGANIZER_EXPORT KOPrefsDialogMain : public KPIM::KPrefsModule
45 {
46  Q_OBJECT
47  public:
48  KOPrefsDialogMain( const KComponentData &inst, QWidget *parent );
49 
50  protected slots:
51  void toggleEmailSettings( bool on );
52  void slotAccountSelected();
53  void slotAddAccount();
54  void slotModifySelectedAccount();
55  void slotRemoveSelectedAccount();
56 
57  private:
58  QWidget *mUserEmailSettings;
59  Ui_AccountsCalendarWidget mAccountsCalendar;
60 };
61 
62 class KCM_KORGANIZER_EXPORT KOPrefsDialogColorsAndFonts : public KPIM::KPrefsModule
63 {
64  Q_OBJECT
65  public:
66  KOPrefsDialogColorsAndFonts( const KComponentData &inst, QWidget *parent );
67 
68  protected:
69  void usrWriteConfig();
70  void usrReadConfig();
71 
72  protected slots:
73  void updateCategories();
74  void setCategoryColor();
75  void updateCategoryColor();
76 
77  void updateResources();
78  void setResourceColor();
79  void updateResourceColor();
80 
81  private:
82  KComboBox *mCategoryCombo;
83  KColorButton *mCategoryButton;
84  QHash<QString,QColor> mCategoryDict;
85 
86  Akonadi::CollectionComboBox *mResourceCombo;
87  KColorButton *mResourceButton;
88  QHash<QString, QColor> mResourceDict;
89 };
90 
91 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupScheduling : public KPIM::KPrefsModule
92 {
93  Q_OBJECT
94  public:
95  KOPrefsDialogGroupScheduling( const KComponentData &inst, QWidget *parent );
96 
97  protected:
98  void usrReadConfig();
99  void usrWriteConfig();
100 };
101 
102 class KOGroupwarePrefsPage;
103 
104 class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupwareScheduling : public KPIM::KPrefsModule
105 {
106  Q_OBJECT
107  public:
108  KOPrefsDialogGroupwareScheduling( const KComponentData &inst, QWidget *parent );
109  ~KOPrefsDialogGroupwareScheduling();
110 
111  protected:
112  void usrReadConfig();
113  void usrWriteConfig();
114 
115  private:
116  Ui::KOGroupwarePrefsPage *mGroupwarePage;
117 };
118 
119 class KCM_KORGANIZER_EXPORT KOPrefsDialogPlugins : public KPIM::KPrefsModule
120 {
121  Q_OBJECT
122  public:
123  KOPrefsDialogPlugins( const KComponentData &inst, QWidget *parent );
124 
125  protected slots:
126  void usrReadConfig();
127  void usrWriteConfig();
128  void configure();
129  void selectionChanged();
130  void positioningChanged();
131 
132  private:
133  void buildList();
134  QTreeWidget *mTreeWidget;
135  QLabel *mDescription;
136  KPushButton *mConfigureButton;
137  QGroupBox *mPositioningGroupBox;
138 
139  //Decorations are not implemented in month view yet
140  //QCheckBox *mPositionMonthTop;
141 
142  QRadioButton *mPositionAgendaTop;
143  QRadioButton *mPositionAgendaBottom;
144  QSet<QString> mDecorationsAtMonthViewTop;
145  QSet<QString> mDecorationsAtAgendaViewTop;
146  QSet<QString> mDecorationsAtAgendaViewBottom;
147 };
148 
149 class KCM_KORGANIZER_EXPORT KOPrefsDesignerFields : public KCMDesignerFields
150 {
151  public:
152  explicit KOPrefsDesignerFields( const KComponentData &inst, QWidget *parent = 0 );
153 
154  protected:
155  QString localUiDir();
156  QString uiPath();
157  void writeActivePages( const QStringList & );
158  QStringList readActivePages();
159  QString applicationName();
160 };
161 
162 /*class KCM_KORGANIZER_EXPORT KOPrefsDialogThemes : public KPrefsModule
163 {
164  Q_OBJECT
165  public:
166  KOPrefsDialogThemes( const KComponentData &inst, QWidget *parent );
167 
168  protected slots:
169  void usrReadConfig();
170  void usrWriteConfig();
171  void importTheme();
172  void exportTheme();
173 };*/
174 
175 #endif
KOPrefsDesignerFields
Definition: koprefsdialog.h:149
KCMDesignerFields::writeActivePages
virtual void writeActivePages(const QStringList &)=0
kcmdesignerfields.h
QWidget
KOPrefsDialogPlugins
Definition: koprefsdialog.h:119
KCM_KORGANIZER_EXPORT
#define KCM_KORGANIZER_EXPORT
Definition: korganizer_export.h:113
KCMDesignerFields::uiPath
virtual QString uiPath()=0
KOPrefsDialogGroupScheduling
Definition: koprefsdialog.h:91
korganizer_export.h
KOPrefsDialogMain
Definition: koprefsdialog.h:44
KCMDesignerFields::applicationName
virtual QString applicationName()=0
KOPrefsDialogGroupwareScheduling
Definition: koprefsdialog.h:104
KCMDesignerFields::localUiDir
virtual QString localUiDir()=0
KCMDesignerFields
Definition: kcmdesignerfields.h:35
KOPrefsDialogColorsAndFonts
Definition: koprefsdialog.h:62
KCMDesignerFields::readActivePages
virtual QStringList readActivePages()=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 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

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