aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test2.cpp.ref
blob: 53b0935fdc2f5b4a5edd8a20533d594a8840a71d (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
// This file is generated by kconfig_compiler_kf5 from test2.kcfg.
// All changes you do to this file will be lost.

#include "test2.h"

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

  mAutoSaveItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), mAutoSave, false );
  mAutoSaveItem->setLabel( QCoreApplication::translate("Test2", "Enable automatic saving of calendar") );
  mAutoSaveItem->setWhatsThis( QCoreApplication::translate("Test2", "WhatsThis text for AutoSave option") );
  addItem( mAutoSaveItem, QStringLiteral( "AutoSave" ) );
  mAutoSaveIntervalItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Auto Save Interval" ), mAutoSaveInterval, 10 );
  mAutoSaveIntervalItem->setLabel( QCoreApplication::translate("Test2", "Auto Save Interval") );
  addItem( mAutoSaveIntervalItem, QStringLiteral( "AutoSaveInterval" ) );
  mConfirmItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Confirm Deletes" ), mConfirm, true );
  mConfirmItem->setLabel( QCoreApplication::translate("Test2", "Confirm deletes") );
  addItem( mConfirmItem, QStringLiteral( "Confirm" ) );
  mArchiveFileItem = new MyPrefs::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile );
  mArchiveFileItem->setLabel( QCoreApplication::translate("Test2", "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("Test2", "Argl1 Label");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("argl2");
    choice.whatsThis = QCoreApplication::translate("Test2", "Argl2 Whatsthis");
    valuesDestination.append( choice );
  }
  {
    MyPrefs::ItemEnum::Choice choice;
    choice.name = QStringLiteral("argl3");
    choice.label = QCoreApplication::translate("Test2", "Argl3 Label");
    choice.whatsThis = QCoreApplication::translate("Test2", "Argl3 Whatsthis");
    valuesDestination.append( choice );
  }
  mDestinationItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "Destination" ), mDestination, valuesDestination, standardDestination );
  mDestinationItem->setLabel( QCoreApplication::translate("Test2", "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("Test2", "Hour Size") );
  addItem( mHourSizeItem, QStringLiteral( "HourSize" ) );
  mSelectionStartsEditorItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
  mSelectionStartsEditorItem->setLabel( QCoreApplication::translate("Test2", "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("Test2", "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("Test2", "Highlight color") );
  addItem( mHighlightColorItem, QStringLiteral( "HighlightColor" ) );
  mAgendaBgColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
  mAgendaBgColorItem->setLabel( QCoreApplication::translate("Test2", "Agenda view background color") );
  addItem( mAgendaBgColorItem, QStringLiteral( "AgendaBgColor" ) );

  setCurrentGroup( QStringLiteral( "Fonts" ) );

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

Test2::~Test2()
{
}