// This file is generated by kconfig_compiler_kf5 from kcalprefs.kcfg.
// All changes you do to this file will be lost.

#include "kcalprefs_base.h"

#include <klocalizedstring.h>

using namespace CalendarSupport;

KCalPrefsBase::KCalPrefsBase(  )
  : KConfigSkeleton( QStringLiteral( "korganizerrc" ) )
{
  setCurrentGroup( QStringLiteral( "Personal Settings" ) );

  mEmailControlCenterItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Use Control Center Email" ), mEmailControlCenter, true );
  mEmailControlCenterItem->setLabel( i18nd("calendarsupport", "Use email settings from System Settings") );
  mEmailControlCenterItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mEmailControlCenterItem, QStringLiteral( "EmailControlCenter" ) );

  setCurrentGroup( QStringLiteral( "Default Datetimes" ) );

  mStartTimeItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QStringLiteral( "StartTime" ), mStartTime, QDateTime(QDate(1752,1,1), QTime(10,0)) );
  mStartTimeItem->setLabel( i18nd("calendarsupport", "Default appointment time") );
  mStartTimeItem->setWhatsThis( i18nd("calendarsupport", "Enter the default time for events here. The default is used if you do not supply a start time.") );
  addItem( mStartTimeItem, QStringLiteral( "StartTime" ) );
  mDefaultDurationItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QStringLiteral( "DefaultDuration" ), mDefaultDuration, QDateTime(QDate(1752,1,1), QTime(1,0)) );
  mDefaultDurationItem->setLabel( i18nd("calendarsupport", "Default duration of new appointment (HH:MM)") );
  mDefaultDurationItem->setWhatsThis( i18nd("calendarsupport", "Enter default duration for events here. The default is used if you do not supply an end time.") );
  addItem( mDefaultDurationItem, QStringLiteral( "DefaultDuration" ) );
  mDefaultAudioFileRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Enable Default Audio File" ), mDefaultAudioFileReminders, false );
  mDefaultAudioFileRemindersItem->setLabel( i18nd("calendarsupport", "Enable a default sound file for audio reminders") );
  mDefaultAudioFileRemindersItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mDefaultAudioFileRemindersItem, QStringLiteral( "defaultAudioFileReminders" ) );
  mAudioFilePathItem = new KConfigSkeleton::ItemPath( currentGroup(), QStringLiteral( "Reminder Audio File" ), mAudioFilePath );
  mAudioFilePathItem->setLabel( i18nd("calendarsupport", "Default audio file") );
  mAudioFilePathItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mAudioFilePathItem, QStringLiteral( "audioFilePath" ) );
  mDefaultEventRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Enable Event Reminders" ), mDefaultEventReminders, false );
  mDefaultEventRemindersItem->setLabel( i18nd("calendarsupport", "Enable reminders for new Events") );
  mDefaultEventRemindersItem->setToolTip( i18nd("calendarsupport", "By default, enable reminders for new events") );
  mDefaultEventRemindersItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mDefaultEventRemindersItem, QStringLiteral( "defaultEventReminders" ) );
  mDefaultTodoRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Enable To-do Reminders" ), mDefaultTodoReminders, false );
  mDefaultTodoRemindersItem->setLabel( i18nd("calendarsupport", "Enable reminders for new To-dos") );
  mDefaultTodoRemindersItem->setToolTip( i18nd("calendarsupport", "By default, enable reminders for new to-dos") );
  mDefaultTodoRemindersItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mDefaultTodoRemindersItem, QStringLiteral( "defaultTodoReminders" ) );
  mReminderTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Default Reminder Time" ), mReminderTime, 15 );
  mReminderTimeItem->setLabel( i18nd("calendarsupport", "Default reminder time") );
  mReminderTimeItem->setToolTip( i18nd("calendarsupport", "Default time for reminders") );
  mReminderTimeItem->setWhatsThis( i18nd("calendarsupport", "Enter the default reminder time for all newly created items. The time unit is specified in the adjacent combobox.") );
  addItem( mReminderTimeItem, QStringLiteral( "ReminderTime" ) );
  mReminderTimeUnitsItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Default Reminder Time Units" ), mReminderTimeUnits, 0 );
  mReminderTimeUnitsItem->setLabel( i18nd("calendarsupport", "Default Reminder Time Units") );
  mReminderTimeUnitsItem->setToolTip( i18nd("calendarsupport", "Default time unit for reminders") );
  mReminderTimeUnitsItem->setWhatsThis( i18nd("calendarsupport", "Enter the default reminder time units for all newly created items. The time is specified in the adjacent spinbox.") );
  addItem( mReminderTimeUnitsItem, QStringLiteral( "ReminderTimeUnits" ) );

  setCurrentGroup( QStringLiteral( "Time & Date" ) );

  mDayBeginsItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QStringLiteral( "DayBegins" ), mDayBegins, QDateTime(QDate(1752,1,1), QTime(7,0)) );
  mDayBeginsItem->setLabel( i18nd("calendarsupport", "Day begins at") );
  mDayBeginsItem->setWhatsThis( i18nd("calendarsupport", "Enter the start time for events here. This time should be the earliest time that you use for events.") );
  addItem( mDayBeginsItem, QStringLiteral( "DayBegins" ) );
  mExcludeHolidaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Exclude Holidays" ), mExcludeHolidays, true );
  mExcludeHolidaysItem->setLabel( i18nd("calendarsupport", "Exclude holidays") );
  mExcludeHolidaysItem->setWhatsThis( i18nd("calendarsupport", "Check this box to prevent KOrganizer from marking the working hours on holidays.") );
  addItem( mExcludeHolidaysItem, QStringLiteral( "ExcludeHolidays" ) );
  mHolidaysItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "Holidays" ), mHolidays );
  mHolidaysItem->setLabel( i18nd("calendarsupport", "Use holiday region:") );
  mHolidaysItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mHolidaysItem, QStringLiteral( "Holidays" ) );

  setCurrentGroup( QStringLiteral( "Group Scheduling" ) );

  mUseGroupwareCommunicationItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Use Groupware Communication" ), mUseGroupwareCommunication, true );
  mUseGroupwareCommunicationItem->setLabel( i18nd("calendarsupport", "Use Groupware communication") );
  mUseGroupwareCommunicationItem->setWhatsThis( i18nd("calendarsupport", "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).") );
  addItem( mUseGroupwareCommunicationItem, QStringLiteral( "UseGroupwareCommunication" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesSendPolicy;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("InvitationPolicySend");
    choice.label = i18nd("calendarsupport", "Send mails without asking.");
    valuesSendPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("InvitationPolicyAsk");
    choice.label = i18nd("calendarsupport", "Ask for every individual attendee what to do.");
    valuesSendPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("InvitationPolicyDontSend");
    choice.label = i18nd("calendarsupport", "Do not send invitation emails at all (this can break group scheduling for iTip compliant clients).");
    valuesSendPolicy.append( choice );
  }
  mSendPolicyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "Send Policy" ), mSendPolicy, valuesSendPolicy, InvitationPolicySend );
  mSendPolicyItem->setLabel( i18nd("calendarsupport", "Default policy for invitations to other users:") );
  addItem( mSendPolicyItem, QStringLiteral( "SendPolicy" ) );
  mAdditionalMailsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "AdditionalMails" ), mAdditionalMails );
  mAdditionalMailsItem->setLabel( i18nd("calendarsupport", "AdditionalMails") );
  addItem( mAdditionalMailsItem, QStringLiteral( "AdditionalMails" ) );

  setCurrentGroup( QStringLiteral( "Hidden Options" ) );

  mShowTimeZoneSelectorInIncidenceEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ShowTimeZoneSelectorInIncidenceEditor" ), mShowTimeZoneSelectorInIncidenceEditor, true );
  mShowTimeZoneSelectorInIncidenceEditorItem->setLabel( i18nd("calendarsupport", "Show timezone selectors in the event and todo editor dialog.") );
  addItem( mShowTimeZoneSelectorInIncidenceEditorItem, QStringLiteral( "ShowTimeZoneSelectorInIncidenceEditor" ) );

  setCurrentGroup( QStringLiteral( "Archive Dialog" ) );

  mAutoArchiveItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Auto Archive" ), mAutoArchive, false );
  mAutoArchiveItem->setLabel( i18nd("calendarsupport", "Regularly archive events") );
  addItem( mAutoArchiveItem, QStringLiteral( "AutoArchive" ) );
  mExpiryTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Expiry Time" ), mExpiryTime, 1 );
  mExpiryTimeItem->setLabel( i18nd("calendarsupport", "If auto-archiving is enabled, events older than this amount will be archived. The unit of this value is specified in another field.") );
  addItem( mExpiryTimeItem, QStringLiteral( "ExpiryTime" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesExpiryUnit;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("UnitDays");
    choice.label = i18nd("calendarsupport", "In days");
    valuesExpiryUnit.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("UnitWeeks");
    choice.label = i18nd("calendarsupport", "In weeks");
    valuesExpiryUnit.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("UnitMonths");
    choice.label = i18nd("calendarsupport", "In months");
    valuesExpiryUnit.append( choice );
  }
  mExpiryUnitItem = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "Expiry Unit" ), mExpiryUnit, valuesExpiryUnit, UnitMonths );
  mExpiryUnitItem->setLabel( i18nd("calendarsupport", "The unit in which the expiry time is expressed.") );
  addItem( mExpiryUnitItem, QStringLiteral( "ExpiryUnit" ) );
  mArchiveFileItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile );
  mArchiveFileItem->setLabel( i18nd("calendarsupport", "URL of the file where old events should be archived") );
  addItem( mArchiveFileItem, QStringLiteral( "ArchiveFile" ) );
  mArchiveEventsItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Archive Events" ), mArchiveEvents, true );
  mArchiveEventsItem->setLabel( i18nd("calendarsupport", "Archive events") );
  addItem( mArchiveEventsItem, QStringLiteral( "ArchiveEvents" ) );
  mArchiveTodosItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Archive Todos" ), mArchiveTodos, true );
  mArchiveTodosItem->setLabel( i18nd("calendarsupport", "Archive to-dos") );
  addItem( mArchiveTodosItem, QStringLiteral( "ArchiveTodos" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesArchiveAction;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("actionDelete");
    choice.label = i18nd("calendarsupport", "Delete old events");
    valuesArchiveAction.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("actionArchive");
    choice.label = i18nd("calendarsupport", "Archive old events to a separate file");
    valuesArchiveAction.append( choice );
  }
  mArchiveActionItem = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "Archive Action" ), mArchiveAction, valuesArchiveAction, actionArchive );
  mArchiveActionItem->setLabel( i18nd("calendarsupport", "What to do when archiving") );
  addItem( mArchiveActionItem, QStringLiteral( "ArchiveAction" ) );

  setCurrentGroup( QStringLiteral( "Internal Settings" ) );

  mWorkWeekMaskItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Work Week Mask" ), mWorkWeekMask, 31 );
  mWorkWeekMaskItem->setLabel( i18nd("calendarsupport", "Work Week Mask") );
  addItem( mWorkWeekMaskItem, QStringLiteral( "WorkWeekMask" ) );
  mUserNameItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "user_name" ), mUserName, i18n("Anonymous") );
  mUserNameItem->setLabel( i18nd("calendarsupport", "Full &name") );
  mUserNameItem->setWhatsThis( i18nd("calendarsupport", "Enter your full name here. This name will be displayed as \"Organizer\" in to-dos and events you create.") );
  addItem( mUserNameItem, QStringLiteral( "UserName" ) );
  mUserEmailItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "user_email" ), mUserEmail, i18n("nobody@nowhere") );
  mUserEmailItem->setLabel( i18nd("calendarsupport", "E&mail address") );
  mUserEmailItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mUserEmailItem, QStringLiteral( "UserEmail" ) );
  mEventTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "EventTemplates" ), mEventTemplates );
  mEventTemplatesItem->setLabel( i18nd("calendarsupport", "EventTemplates") );
  addItem( mEventTemplatesItem, QStringLiteral( "EventTemplates" ) );
  mTodoTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "TodoTemplates" ), mTodoTemplates );
  mTodoTemplatesItem->setLabel( i18nd("calendarsupport", "TodoTemplates") );
  addItem( mTodoTemplatesItem, QStringLiteral( "TodoTemplates" ) );
  mJournalTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "JournalTemplates" ), mJournalTemplates );
  mJournalTemplatesItem->setLabel( i18nd("calendarsupport", "JournalTemplates") );
  addItem( mJournalTemplatesItem, QStringLiteral( "JournalTemplates" ) );
  mActiveDesignerFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "ActiveDesignerFields" ), mActiveDesignerFields );
  mActiveDesignerFieldsItem->setLabel( i18nd("calendarsupport", "ActiveDesignerFields") );
  addItem( mActiveDesignerFieldsItem, QStringLiteral( "ActiveDesignerFields" ) );

  setCurrentGroup( QStringLiteral( "Colors" ) );

  mUnsetCategoryColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "Unset Category Color" ), mUnsetCategoryColor, QColor( 151, 235, 121 ) );
  mUnsetCategoryColorItem->setLabel( i18nd("calendarsupport", "\"No category\" color (for \"Only category\" drawing schemes)") );
  mUnsetCategoryColorItem->setToolTip( i18nd("calendarsupport", "Use this color when drawing items without a category") );
  mUnsetCategoryColorItem->setWhatsThis( i18nd("calendarsupport", "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.") );
  addItem( mUnsetCategoryColorItem, QStringLiteral( "UnsetCategoryColor" ) );
}

KCalPrefsBase::~KCalPrefsBase()
{
}

