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

#include "test4.h"

#include <kstaticdeleter.h>

Test4 *Test4::mSelf = 0;
static KStaticDeleter<Test4> staticTest4Deleter;

Test4 *Test4::self()
{
  if ( !mSelf ) {
    staticTest4Deleter.setObject( mSelf, new Test4() );
    mSelf->readConfig();
  }

  return mSelf;
}

const char* const Test4::EnumButton::enumToString[] = { "right", "mid", "left" };

Test4::Test4(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "test4rc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Foo" ) );

TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };
  TDEConfigSkeleton::ItemColor  *itemColor[4];
  itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
  addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );
  itemColor[1] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #1" ), mColor[1], defaultColor[1] );
  addItem( itemColor[1], TQString::fromLatin1( "Color1" ) );
  itemColor[2] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #2" ), mColor[2], defaultColor[2] );
  addItem( itemColor[2], TQString::fromLatin1( "Color2" ) );
  itemColor[3] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #3" ), mColor[3], defaultColor[3] );
  addItem( itemColor[3], TQString::fromLatin1( "Color3" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesMouseAction;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Encrypt" );
    valuesMouseAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Decrypt" );
    valuesMouseAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CrashNBurn" );
    valuesMouseAction.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "PumpNDump" );
    valuesMouseAction.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemMouseAction[3];
  itemMouseAction[0] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "right_mouse_action" ), mMouseAction[0], valuesMouseAction, EnumMouseAction::Decrypt );
  addItem( itemMouseAction[0], TQString::fromLatin1( "MouseActionright" ) );
  itemMouseAction[1] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, EnumMouseAction::Encrypt );
  addItem( itemMouseAction[1], TQString::fromLatin1( "MouseActionmid" ) );
  itemMouseAction[2] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, EnumMouseAction::PumpNDump );
  addItem( itemMouseAction[2], TQString::fromLatin1( "MouseActionleft" ) );
  TDEConfigSkeleton::ItemString  *itemFooBar;
  itemFooBar = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "foo bar" ), mFooBar );
  addItem( itemFooBar, TQString::fromLatin1( "FooBar" ) );
  TDEConfigSkeleton::ItemInt  *itemAge;
  itemAge = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Age" ), mAge, 35 );
  itemAge->setMinValue(8);
  itemAge->setMaxValue(88);
  addItem( itemAge, TQString::fromLatin1( "Age" ) );
}

Test4::~Test4()
{
  if ( mSelf == this )
    staticTest4Deleter.setObject( mSelf, 0, false );
}