summaryrefslogtreecommitdiffstats
path: root/tdecore/tdeconfig_compiler/tests/test2.cpp.ref
blob: cc3f67b5e3116fe226758405b8234760735c8fd4 (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
// This file is generated by tdeconfig_compiler from test2.kcfg.
// All changes you do to this file will be lost.

#include "test2.h"

#include <klocale.h>

Test2::Test2(  )
  : MyPrefs( TQString::fromLatin1( "korganizerrc" ) )
{
  setCurrentGroup( TQString::fromLatin1( "General" ) );

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

  setCurrentGroup( TQString::fromLatin1( "Views" ) );

  mHourSizeItem = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Hour Size" ), mHourSize, 10 );
  mHourSizeItem->setLabel( i18n("Hour Size") );
  addItem( mHourSizeItem, TQString::fromLatin1( "HourSize" ) );
  mSelectionStartsEditorItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
  mSelectionStartsEditorItem->setLabel( i18n("Time range selection in agenda view starts event editor") );
  addItem( mSelectionStartsEditorItem, TQString::fromLatin1( "SelectionStartsEditor" ) );

  setCurrentGroup( TQString::fromLatin1( "KOrganizer Plugins" ) );

  TQStringList defaultSelectedPlugins;
  defaultSelectedPlugins.append( TQString::fromUtf8( "holidays" ) );
  defaultSelectedPlugins.append( TQString::fromUtf8( "webexport" ) );

  mSelectedPluginsItem = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
  mSelectedPluginsItem->setLabel( i18n("SelectedPlugins") );
  addItem( mSelectedPluginsItem, TQString::fromLatin1( "SelectedPlugins" ) );

  setCurrentGroup( TQString::fromLatin1( "Colors" ) );

  mHighlightColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Highlight Color" ), mHighlightColor, TQColor( 100, 100, 255 ) );
  mHighlightColorItem->setLabel( i18n("Highlight color") );
  addItem( mHighlightColorItem, TQString::fromLatin1( "HighlightColor" ) );
  mAgendaBgColorItem = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "Agenda Background Color" ), mAgendaBgColor, TQColor( 255, 255, 255 ) );
  mAgendaBgColorItem->setLabel( i18n("Agenda view background color") );
  addItem( mAgendaBgColorItem, TQString::fromLatin1( "AgendaBgColor" ) );

  setCurrentGroup( TQString::fromLatin1( "Fonts" ) );

  mTimeBarFontItem = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "TimeBar Font" ), mTimeBarFont );
  mTimeBarFontItem->setLabel( i18n("Time bar") );
  addItem( mTimeBarFontItem, TQString::fromLatin1( "TimeBarFont" ) );
}

Test2::~Test2()
{
}