diff options
author | Darrell Anderson <[email protected]> | 2013-03-02 15:57:34 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2013-03-02 15:57:34 -0600 |
commit | 7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch) | |
tree | c76702a7f6310fbe9d437e347535422e836e94e9 /tdecore/tdeconfig_compiler/tests/test5.cpp.ref | |
parent | a2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff) | |
parent | 27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff) | |
download | tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdecore/tdeconfig_compiler/tests/test5.cpp.ref')
-rw-r--r-- | tdecore/tdeconfig_compiler/tests/test5.cpp.ref | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/tdecore/tdeconfig_compiler/tests/test5.cpp.ref b/tdecore/tdeconfig_compiler/tests/test5.cpp.ref new file mode 100644 index 000000000..17965999b --- /dev/null +++ b/tdecore/tdeconfig_compiler/tests/test5.cpp.ref @@ -0,0 +1,82 @@ +// This file is generated by tdeconfig_compiler from test5.kcfg. +// All changes you do to this file will be lost. + +#include "test5.h" + +#include <kstaticdeleter.h> + +Test5 *Test5::mSelf = 0; +static KStaticDeleter<Test5> staticTest5Deleter; + +Test5 *Test5::self() +{ + if ( !mSelf ) { + staticTest5Deleter.setObject( mSelf, new Test5() ); + mSelf->readConfig(); + } + + return mSelf; +} + +const char* const Test5::EnumButtonToString[] = { "right", "mid", "left" }; + +Test5::Test5( ) + : TDEConfigSkeleton( TQString::fromLatin1( "test4rc" ) ) +{ + mSelf = this; + setCurrentGroup( TQString::fromLatin1( "Foo" ) ); + +TQColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::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, Decrypt ); + addItem( itemMouseAction[0], TQString::fromLatin1( "MouseActionright" ) ); + itemMouseAction[1] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, Encrypt ); + addItem( itemMouseAction[1], TQString::fromLatin1( "MouseActionmid" ) ); + itemMouseAction[2] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, 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" ) ); +} + +Test5::~Test5() +{ + if ( mSelf == this ) + staticTest5Deleter.setObject( mSelf, 0, false ); +} + |