aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test11a.cpp.ref
blob: cad39428bd3b3710597459b9825be35f2a75973f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// This file is generated by kconfig_compiler_kf5 from test11a.kcfg.
// All changes you do to this file will be lost.

#include "test11a.h"

Test11a::Test11a( )
  : MyPrefs( QStringLiteral( "korganizerrc" ) )
{
  setCurrentGroup( QStringLiteral( "General" ) );

  mAutoSaveItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), mAutoSave, false );
  mAutoSaveItem->setLabel( QCoreApplication::translate("Test11a", "Enable automatic saving of calendar") );
  mAutoSaveItem->setWhatsThis( QCoreApplication::translate("Test11a", "WhatsThis text for AutoSave option") );
  addItem( mAutoSaveItem, QStringLiteral( "AutoSave" ) );
  mAutoSaveIntervalItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Auto Save Interval" ), mAutoSaveInterval, 10 );
  mAutoSaveIntervalItem->setLabel( QCoreApplication::translate("Test11a", "Auto Save Interval") );
  addItem( mAutoSaveIntervalItem, QStringLiteral( "AutoSaveInterval" ) );
  mConfirmItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Confirm Deletes" ), mConfirm, true );
  mConfirmItem->setLabel( QCoreApplication::translate("Test11a", "Confirm deletes") );
  addItem( mConfirmItem, QStringLiteral( "Confirm" ) );
  mArchiveFileItem = new MyPrefs::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile );
  mArchiveFileItem->setLabel( QCoreApplication::translate("Test11a", "Archive File") );
  addItem( mArchiveFileItem, QStringLiteral( "ArchiveFile" ) );
  QList<MyPrefs::ItemEnum::Choice> valuesDestination;
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("standardDestination");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("askDestination");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("argl1");
    choice.label = QCoreApplication::translate("Test11a", "Argl1 Label");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("argl2");
    choice.whatsThis = QCoreApplication::translate("Test11a", "Argl2 Whatsthis");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("argl3");
    choice.label = QCoreApplication::translate("Test11a", "Argl3 Label");
    choice.whatsThis = QCoreApplication::translate("Test11a", "Argl3 Whatsthis");
    valuesDestination.append( choice );
  }
  mDestinationItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "Destination" ), mDestination, valuesDestination, EnumDestination::standardDestination );
  mDestinationItem->setLabel( QCoreApplication::translate("Test11a", "New Events/Todos Should") );
  addItem( mDestinationItem, QStringLiteral( "Destination" ) );

  setCurrentGroup( QStringLiteral( "Views" ) );

  mHourSizeItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Hour Size" ), mHourSize, 10 );
  mHourSizeItem->setLabel( QCoreApplication::translate("Test11a", "Hour Size") );
  addItem( mHourSizeItem, QStringLiteral( "HourSize" ) );
  mSelectionStartsEditorItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
  mSelectionStartsEditorItem->setLabel( QCoreApplication::translate("Test11a", "Time range selection in agenda view starts event editor") );
  addItem( mSelectionStartsEditorItem, QStringLiteral( "SelectionStartsEditor" ) );

  setCurrentGroup( QStringLiteral( "KOrganizer Plugins" ) );

  QStringList defaultSelectedPlugins;
  defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
  defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );

  mSelectedPluginsItem = new MyPrefs::ItemStringList( currentGroup(), QStringLiteral( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
  mSelectedPluginsItem->setLabel( QCoreApplication::translate("Test11a", "SelectedPlugins") );
  addItem( mSelectedPluginsItem, QStringLiteral( "SelectedPlugins" ) );

  setCurrentGroup( QStringLiteral( "Colors" ) );

  mHighlightColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
  mHighlightColorItem->setLabel( QCoreApplication::translate("Test11a", "Highlight color") );
  addItem( mHighlightColorItem, QStringLiteral( "HighlightColor" ) );
  mAgendaBgColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
  mAgendaBgColorItem->setLabel( QCoreApplication::translate("Test11a", "Agenda view background color") );
  addItem( mAgendaBgColorItem, QStringLiteral( "AgendaBgColor" ) );

  setCurrentGroup( QStringLiteral( "Fonts" ) );

  mTimeBarFontItem = new MyPrefs::ItemFont( currentGroup(), QStringLiteral( "TimeBar Font" ), mTimeBarFont );
  mTimeBarFontItem->setLabel( QCoreApplication::translate("Test11a", "Time bar") );
  addItem( mTimeBarFontItem, QStringLiteral( "TimeBarFont" ) );

  setCurrentGroup( QStringLiteral( "Email" ) );

  QList<MyPrefs::ItemEnum::Choice> valuesEmailClient;
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("sendmail");
    choice.label = /*: @option */ QCoreApplication::translate("Test11a", "Sendmail");
    valuesEmailClient.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("kmail");
    choice.label = /*: @option */ QCoreApplication::translate("Test11a", "KMail");
    valuesEmailClient.append( choice );
  }
  mEmailClientItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "EmailClient" ), mEmailClient, valuesEmailClient, kmail );
  mEmailClientItem->setLabel( /*: @label */ QCoreApplication::translate("Test11a", "Email client") );
  mEmailClientItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11a", "<para>How to send email when an email alarm is triggered.<list><item>KMail: The email is sent automatically via <application>KMail</application>. <application>KMail</application> is started first if necessary.</item><item>Sendmail: The email is sent automatically. This option will only work if your system is configured to use <application>sendmail</application> or a sendmail compatible mail transport agent.</item></list></para>") );
  addItem( mEmailClientItem, QStringLiteral( "EmailClient" ) );
  QList<MyPrefs::ItemEnum::Choice> valuesDefaultReminderUnits;
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Minutes");
    valuesDefaultReminderUnits.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("HoursMinutes");
    choice.label = /*: @option */ QCoreApplication::translate("Test11a", "Hours/Minutes");
    valuesDefaultReminderUnits.append( choice );
  }
  mDefaultReminderUnitsItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "RemindUnits" ), mDefaultReminderUnits, valuesDefaultReminderUnits, TimePeriod::HoursMinutes );
  mDefaultReminderUnitsItem->setLabel( /*: @label */ QCoreApplication::translate("Test11a", "Reminder units") );
  mDefaultReminderUnitsItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11a", "Default reminder time units in the alarm edit dialog.") );
  addItem( mDefaultReminderUnitsItem, QStringLiteral( "DefaultReminderUnits" ) );

  setCurrentGroup( QStringLiteral( "QueueRates" ) );

  QList< QList<int> > defaultRate;
  QList< int > defaultRateInit;

  defaultRateInit.append( 15 );
  defaultRateInit.append( 60 );
  defaultRateInit.append( 0 );
  defaultRate.append( defaultRateInit );

  defaultRateInit.clear();
  defaultRateInit.append( 40 );
  defaultRateInit.append( 60 );
  defaultRateInit.append( 0 );
  defaultRate.append( defaultRateInit );

  defaultRateInit.clear();
  defaultRateInit.append( 1 );
  defaultRateInit.append( 1 );
  defaultRateInit.append( 0 );
  defaultRate.append( defaultRateInit );
        
  QList<int> defaultqueueRate;

  mQueueRateItem[0] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 0" ), mQueueRate[0], defaultRate[0] );
  mQueueRateItem[0]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[0], QStringLiteral( "queueRate0" ) );
  mQueueRateItem[1] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 1" ), mQueueRate[1], defaultqueueRate );
  mQueueRateItem[1]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[1], QStringLiteral( "queueRate1" ) );
  mQueueRateItem[2] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 2" ), mQueueRate[2], defaultRate[2] );
  mQueueRateItem[2]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
  addItem( mQueueRateItem[2], QStringLiteral( "queueRate2" ) );
  mShowQueueTunerItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "ShowQueueTuner" ), mShowQueueTuner, false );
  mShowQueueTunerItem->setLabel( QCoreApplication::translate("Test11a", "ShowQueueTuner") );
  addItem( mShowQueueTunerItem, QStringLiteral( "ShowQueueTuner" ) );
}

int Test11a::defaultDestinationValue_helper() const
{

  return EnumDestination::standardDestination;
}

bool Test11a::defaultSelectionStartsEditorValue_helper() const
{

  return false;
}

int Test11a::defaultDefaultReminderUnitsValue_helper() const
{

  return TimePeriod::HoursMinutes;
}

Test11a::~Test11a()
{
}