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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
kcalprefs_base.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kcalprefs.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "kcalprefs_base.h"
5 
6 #include <klocale.h>
7 
8 using namespace CalendarSupport;
9 
10 KCalPrefsBase::KCalPrefsBase( )
11  : KConfigSkeleton( QLatin1String( "korganizerrc" ) )
12 {
13  setCurrentGroup( QLatin1String( "Personal Settings" ) );
14 
15  mEmailControlCenterItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Use Control Center Email" ), mEmailControlCenter, true );
16  mEmailControlCenterItem->setLabel( i18n("Use email settings from System Settings") );
17  mEmailControlCenterItem->setWhatsThis( i18n("Check this box to use the KDE-wide e-mail settings, which are defined using the System Settings \"About Me\" Module. Uncheck this box to be able to specify your full name and e-mail.") );
18  addItem( mEmailControlCenterItem, QLatin1String( "EmailControlCenter" ) );
19 
20  setCurrentGroup( QLatin1String( "Default Datetimes" ) );
21 
22  mStartTimeItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "StartTime" ), mStartTime, QDateTime(QDate(1752,1,1), QTime(10,0)) );
23  mStartTimeItem->setLabel( i18n("Default appointment time") );
24  mStartTimeItem->setWhatsThis( i18n("Enter the default time for events here. The default is used if you do not supply a start time.") );
25  addItem( mStartTimeItem, QLatin1String( "StartTime" ) );
26  mDefaultDurationItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "DefaultDuration" ), mDefaultDuration, QDateTime(QDate(1752,1,1), QTime(1,0)) );
27  mDefaultDurationItem->setLabel( i18n("Default duration of new appointment (HH:MM)") );
28  mDefaultDurationItem->setWhatsThis( i18n("Enter default duration for events here. The default is used if you do not supply an end time.") );
29  addItem( mDefaultDurationItem, QLatin1String( "DefaultDuration" ) );
30  mDefaultAudioFileRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Enable Default Audio File" ), mDefaultAudioFileReminders, false );
31  mDefaultAudioFileRemindersItem->setLabel( i18n("Enable a default sound file for audio reminders") );
32  mDefaultAudioFileRemindersItem->setWhatsThis( i18n("Check this box if you want to enable the specified file to be used as the default sound file for new reminders. You can always specify another file in the Reminder configuration accessible from the Event or To-do editors.") );
33  addItem( mDefaultAudioFileRemindersItem, QLatin1String( "defaultAudioFileReminders" ) );
34  mAudioFilePathItem = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "Reminder Audio File" ), mAudioFilePath );
35  mAudioFilePathItem->setLabel( i18n("Default audio file") );
36  mAudioFilePathItem->setWhatsThis( i18n("Set a file to be used as the default sound file for new reminders. You can always specify another file in the Reminder configuration accessible from the Event or To-do editors.") );
37  addItem( mAudioFilePathItem, QLatin1String( "audioFilePath" ) );
38  mDefaultEventRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Enable Event Reminders" ), mDefaultEventReminders, false );
39  mDefaultEventRemindersItem->setLabel( i18n("Enable reminders for new Events") );
40  mDefaultEventRemindersItem->setToolTip( i18n("By default, enable reminders for new events") );
41  mDefaultEventRemindersItem->setWhatsThis( i18n("Check this box if you want to enable reminders for all newly created Events. You can always turn-off the reminders in the Event editor dialog.") );
42  addItem( mDefaultEventRemindersItem, QLatin1String( "defaultEventReminders" ) );
43  mDefaultTodoRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Enable To-do Reminders" ), mDefaultTodoReminders, false );
44  mDefaultTodoRemindersItem->setLabel( i18n("Enable reminders for new To-dos") );
45  mDefaultTodoRemindersItem->setToolTip( i18n("By default, enable reminders for new to-dos") );
46  mDefaultTodoRemindersItem->setWhatsThis( i18n("Check this box if you want to enable reminders for all newly created To-dos. You can always turn-off the reminders in the To-do editor dialog.") );
47  addItem( mDefaultTodoRemindersItem, QLatin1String( "defaultTodoReminders" ) );
48  mReminderTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Default Reminder Time" ), mReminderTime, 15 );
49  mReminderTimeItem->setLabel( i18n("Default reminder time") );
50  mReminderTimeItem->setToolTip( i18n("Default time for reminders") );
51  mReminderTimeItem->setWhatsThis( i18n("Enter the default reminder time for all newly created items. The time unit is specified in the adjacent combobox.") );
52  addItem( mReminderTimeItem, QLatin1String( "ReminderTime" ) );
53  mReminderTimeUnitsItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Default Reminder Time Units" ), mReminderTimeUnits, 0 );
54  mReminderTimeUnitsItem->setLabel( i18n("Default Reminder Time Units") );
55  mReminderTimeUnitsItem->setToolTip( i18n("Default time unit for reminders") );
56  mReminderTimeUnitsItem->setWhatsThis( i18n("Enter the default reminder time units for all newly created items. The time is specified in the adjacent spinbox.") );
57  addItem( mReminderTimeUnitsItem, QLatin1String( "ReminderTimeUnits" ) );
58 
59  setCurrentGroup( QLatin1String( "Time & Date" ) );
60 
61  mExcludeHolidaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Exclude Holidays" ), mExcludeHolidays, true );
62  mExcludeHolidaysItem->setLabel( i18n("Exclude holidays") );
63  mExcludeHolidaysItem->setWhatsThis( i18n("Check this box to prevent KOrganizer from marking the working hours on holidays.") );
64  addItem( mExcludeHolidaysItem, QLatin1String( "ExcludeHolidays" ) );
65  mHolidaysItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Holidays" ), mHolidays );
66  mHolidaysItem->setLabel( i18n("Use holiday region:") );
67  mHolidaysItem->setWhatsThis( i18n("Select from which region you want to use the holidays here. Defined holidays are shown as non-working days in the date navigator, the agenda view, etc.") );
68  addItem( mHolidaysItem, QLatin1String( "Holidays" ) );
69 
70  setCurrentGroup( QLatin1String( "Group Scheduling" ) );
71 
72  mUseGroupwareCommunicationItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Use Groupware Communication" ), mUseGroupwareCommunication, true );
73  mUseGroupwareCommunicationItem->setLabel( i18n("Use Groupware communication") );
74  mUseGroupwareCommunicationItem->setWhatsThis( i18n("Check this box to enable automatic generation of mails when creating, updating or deleting events (or to-dos) involving other attendees. You should check this box if you want to use the groupware functionality (e.g. Configuring Kontact as a KDE Kolab client).") );
75  addItem( mUseGroupwareCommunicationItem, QLatin1String( "UseGroupwareCommunication" ) );
76  mAdditionalMailsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "AdditionalMails" ), mAdditionalMails );
77  mAdditionalMailsItem->setLabel( i18n("AdditionalMails") );
78  addItem( mAdditionalMailsItem, QLatin1String( "AdditionalMails" ) );
79 
80  setCurrentGroup( QLatin1String( "Hidden Options" ) );
81 
82  mShowTimeZoneSelectorInIncidenceEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowTimeZoneSelectorInIncidenceEditor" ), mShowTimeZoneSelectorInIncidenceEditor, true );
83  mShowTimeZoneSelectorInIncidenceEditorItem->setLabel( i18n("Show timezone selectors in the event and todo editor dialog.") );
84  addItem( mShowTimeZoneSelectorInIncidenceEditorItem, QLatin1String( "ShowTimeZoneSelectorInIncidenceEditor" ) );
85 
86  setCurrentGroup( QLatin1String( "Archive Dialog" ) );
87 
88  mAutoArchiveItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Auto Archive" ), mAutoArchive, false );
89  mAutoArchiveItem->setLabel( i18n("Regularly archive events") );
90  addItem( mAutoArchiveItem, QLatin1String( "AutoArchive" ) );
91  mExpiryTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Expiry Time" ), mExpiryTime, 1 );
92  mExpiryTimeItem->setLabel( i18n("If auto-archiving is enabled, events older than this amount will be archived. The unit of this value is specified in another field.") );
93  addItem( mExpiryTimeItem, QLatin1String( "ExpiryTime" ) );
94  QList<KConfigSkeleton::ItemEnum::Choice2> valuesExpiryUnit;
95  {
96  KConfigSkeleton::ItemEnum::Choice2 choice;
97  choice.name = QLatin1String("UnitDays");
98  choice.label = i18n("In days");
99  valuesExpiryUnit.append( choice );
100  }
101  {
102  KConfigSkeleton::ItemEnum::Choice2 choice;
103  choice.name = QLatin1String("UnitWeeks");
104  choice.label = i18n("In weeks");
105  valuesExpiryUnit.append( choice );
106  }
107  {
108  KConfigSkeleton::ItemEnum::Choice2 choice;
109  choice.name = QLatin1String("UnitMonths");
110  choice.label = i18n("In months");
111  valuesExpiryUnit.append( choice );
112  }
113  mExpiryUnitItem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "Expiry Unit" ), mExpiryUnit, valuesExpiryUnit, UnitMonths );
114  mExpiryUnitItem->setLabel( i18n("The unit in which the expiry time is expressed.") );
115  addItem( mExpiryUnitItem, QLatin1String( "ExpiryUnit" ) );
116  mArchiveFileItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Archive File" ), mArchiveFile );
117  mArchiveFileItem->setLabel( i18n("URL of the file where old events should be archived") );
118  addItem( mArchiveFileItem, QLatin1String( "ArchiveFile" ) );
119  mArchiveEventsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Archive Events" ), mArchiveEvents, true );
120  mArchiveEventsItem->setLabel( i18n("Archive events") );
121  addItem( mArchiveEventsItem, QLatin1String( "ArchiveEvents" ) );
122  mArchiveTodosItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Archive Todos" ), mArchiveTodos, true );
123  mArchiveTodosItem->setLabel( i18n("Archive to-dos") );
124  addItem( mArchiveTodosItem, QLatin1String( "ArchiveTodos" ) );
125  QList<KConfigSkeleton::ItemEnum::Choice2> valuesArchiveAction;
126  {
127  KConfigSkeleton::ItemEnum::Choice2 choice;
128  choice.name = QLatin1String("actionDelete");
129  choice.label = i18n("Delete old events");
130  valuesArchiveAction.append( choice );
131  }
132  {
133  KConfigSkeleton::ItemEnum::Choice2 choice;
134  choice.name = QLatin1String("actionArchive");
135  choice.label = i18n("Archive old events to a separate file");
136  valuesArchiveAction.append( choice );
137  }
138  mArchiveActionItem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "Archive Action" ), mArchiveAction, valuesArchiveAction, actionArchive );
139  mArchiveActionItem->setLabel( i18n("What to do when archiving") );
140  addItem( mArchiveActionItem, QLatin1String( "ArchiveAction" ) );
141 
142  setCurrentGroup( QLatin1String( "Internal Settings" ) );
143 
144  mWorkWeekMaskItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Work Week Mask" ), mWorkWeekMask, 31 );
145  mWorkWeekMaskItem->setLabel( i18n("Work Week Mask") );
146  addItem( mWorkWeekMaskItem, QLatin1String( "WorkWeekMask" ) );
147  mUserNameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "user_name" ), mUserName, i18n("Anonymous") );
148  mUserNameItem->setLabel( i18n("Full &name") );
149  mUserNameItem->setWhatsThis( i18n("Enter your full name here. This name will be displayed as \"Organizer\" in to-dos and events you create.") );
150  addItem( mUserNameItem, QLatin1String( "UserName" ) );
151  mUserEmailItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "user_email" ), mUserEmail, i18n("nobody@nowhere") );
152  mUserEmailItem->setLabel( i18n("E&mail address") );
153  mUserEmailItem->setWhatsThis( i18n("Enter here your e-mail address. This e-mail address will be used to identify the owner of the calendar, and displayed in events and to-dos you create.") );
154  addItem( mUserEmailItem, QLatin1String( "UserEmail" ) );
155  mEventTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "EventTemplates" ), mEventTemplates );
156  mEventTemplatesItem->setLabel( i18n("EventTemplates") );
157  addItem( mEventTemplatesItem, QLatin1String( "EventTemplates" ) );
158  mTodoTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "TodoTemplates" ), mTodoTemplates );
159  mTodoTemplatesItem->setLabel( i18n("TodoTemplates") );
160  addItem( mTodoTemplatesItem, QLatin1String( "TodoTemplates" ) );
161  mJournalTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "JournalTemplates" ), mJournalTemplates );
162  mJournalTemplatesItem->setLabel( i18n("JournalTemplates") );
163  addItem( mJournalTemplatesItem, QLatin1String( "JournalTemplates" ) );
164  mActiveDesignerFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "ActiveDesignerFields" ), mActiveDesignerFields );
165  mActiveDesignerFieldsItem->setLabel( i18n("ActiveDesignerFields") );
166  addItem( mActiveDesignerFieldsItem, QLatin1String( "ActiveDesignerFields" ) );
167 
168  setCurrentGroup( QLatin1String( "Colors" ) );
169 
170  mUnsetCategoryColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "Unset Category Color" ), mUnsetCategoryColor, QColor( 151, 235, 121 ) );
171  mUnsetCategoryColorItem->setLabel( i18n("\"No category\" color (for \"Only category\" drawing schemes)") );
172  mUnsetCategoryColorItem->setToolTip( i18n("Use this color when drawing items without a category") );
173  mUnsetCategoryColorItem->setWhatsThis( i18n("Select a color to use for the \"no category\" or \"unset category\" situation, when an item does not belong to any category. This color is used when drawing items in the agenda or month views using the \"Only category\" scheme.") );
174  addItem( mUnsetCategoryColorItem, QLatin1String( "UnsetCategoryColor" ) );
175 }
176 
177 KCalPrefsBase::~KCalPrefsBase()
178 {
179 }
180 
CalendarSupport::KCalPrefsBase::mTodoTemplates
QStringList mTodoTemplates
Definition: kcalprefs_base.h:790
kcalprefs_base.h
CalendarSupport::KCalPrefsBase::mUseGroupwareCommunication
bool mUseGroupwareCommunication
Definition: kcalprefs_base.h:770
CalendarSupport::KCalPrefsBase::mReminderTimeUnits
int mReminderTimeUnits
Definition: kcalprefs_base.h:763
CalendarSupport::KCalPrefsBase::mDefaultAudioFileReminders
bool mDefaultAudioFileReminders
Definition: kcalprefs_base.h:758
CalendarSupport::KCalPrefsBase::mStartTime
QDateTime mStartTime
Definition: kcalprefs_base.h:756
CalendarSupport::KCalPrefsBase::mDefaultDuration
QDateTime mDefaultDuration
Definition: kcalprefs_base.h:757
CalendarSupport::KCalPrefsBase::KCalPrefsBase
KCalPrefsBase()
Definition: kcalprefs_base.cpp:10
CalendarSupport::KCalPrefsBase::mEventTemplates
QStringList mEventTemplates
Definition: kcalprefs_base.h:789
CalendarSupport::KCalPrefsBase::mJournalTemplates
QStringList mJournalTemplates
Definition: kcalprefs_base.h:791
KConfigSkeleton
CalendarSupport::KCalPrefsBase::mAudioFilePath
QString mAudioFilePath
Definition: kcalprefs_base.h:759
CalendarSupport::KCalPrefsBase::mShowTimeZoneSelectorInIncidenceEditor
bool mShowTimeZoneSelectorInIncidenceEditor
Definition: kcalprefs_base.h:774
CalendarSupport::KCalPrefsBase::mHolidays
QString mHolidays
Definition: kcalprefs_base.h:767
CalendarSupport::KCalPrefsBase::mExpiryUnit
int mExpiryUnit
Definition: kcalprefs_base.h:779
CalendarSupport::KCalPrefsBase::mWorkWeekMask
int mWorkWeekMask
Definition: kcalprefs_base.h:786
CalendarSupport::KCalPrefsBase::mActiveDesignerFields
QStringList mActiveDesignerFields
Definition: kcalprefs_base.h:792
CalendarSupport::KCalPrefsBase::actionArchive
Definition: kcalprefs_base.h:19
CalendarSupport::KCalPrefsBase::mUnsetCategoryColor
QColor mUnsetCategoryColor
Definition: kcalprefs_base.h:795
CalendarSupport::KCalPrefsBase::mArchiveTodos
bool mArchiveTodos
Definition: kcalprefs_base.h:782
CalendarSupport::KCalPrefsBase::mDefaultEventReminders
bool mDefaultEventReminders
Definition: kcalprefs_base.h:760
CalendarSupport::KCalPrefsBase::mAdditionalMails
QStringList mAdditionalMails
Definition: kcalprefs_base.h:771
CalendarSupport::KCalPrefsBase::~KCalPrefsBase
~KCalPrefsBase()
Definition: kcalprefs_base.cpp:177
CalendarSupport::KCalPrefsBase::mArchiveFile
QString mArchiveFile
Definition: kcalprefs_base.h:780
CalendarSupport::KCalPrefsBase::mDefaultTodoReminders
bool mDefaultTodoReminders
Definition: kcalprefs_base.h:761
CalendarSupport::KCalPrefsBase::mArchiveEvents
bool mArchiveEvents
Definition: kcalprefs_base.h:781
CalendarSupport::KCalPrefsBase::mArchiveAction
int mArchiveAction
Definition: kcalprefs_base.h:783
CalendarSupport::KCalPrefsBase::mAutoArchive
bool mAutoArchive
Definition: kcalprefs_base.h:777
CalendarSupport::KCalPrefsBase::mReminderTime
int mReminderTime
Definition: kcalprefs_base.h:762
CalendarSupport::KCalPrefsBase::mEmailControlCenter
bool mEmailControlCenter
Definition: kcalprefs_base.h:753
CalendarSupport::KCalPrefsBase::mUserName
QString mUserName
Definition: kcalprefs_base.h:787
CalendarSupport::KCalPrefsBase::mExpiryTime
int mExpiryTime
Definition: kcalprefs_base.h:778
CalendarSupport::KCalPrefsBase::UnitMonths
Definition: kcalprefs_base.h:18
CalendarSupport::KCalPrefsBase::mExcludeHolidays
bool mExcludeHolidays
Definition: kcalprefs_base.h:766
CalendarSupport::KCalPrefsBase::mUserEmail
QString mUserEmail
Definition: kcalprefs_base.h:788
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

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

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