You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.4 KiB
83 lines
3.4 KiB
12 years ago
|
// This file is generated by tdeconfig_compiler from test5.kcfg.
|
||
15 years ago
|
// 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( )
|
||
12 years ago
|
: TDEConfigSkeleton( TQString::fromLatin1( "test4rc" ) )
|
||
15 years ago
|
{
|
||
|
mSelf = this;
|
||
13 years ago
|
setCurrentGroup( TQString::fromLatin1( "Foo" ) );
|
||
15 years ago
|
|
||
15 years ago
|
TQColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };
|
||
12 years ago
|
TDEConfigSkeleton::ItemColor *itemColor[4];
|
||
|
itemColor[0] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #0" ), mColor[0], defaultColor[0] );
|
||
13 years ago
|
addItem( itemColor[0], TQString::fromLatin1( "Color0" ) );
|
||
12 years ago
|
itemColor[1] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #1" ), mColor[1], defaultColor[1] );
|
||
13 years ago
|
addItem( itemColor[1], TQString::fromLatin1( "Color1" ) );
|
||
12 years ago
|
itemColor[2] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #2" ), mColor[2], defaultColor[2] );
|
||
13 years ago
|
addItem( itemColor[2], TQString::fromLatin1( "Color2" ) );
|
||
12 years ago
|
itemColor[3] = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "color #3" ), mColor[3], defaultColor[3] );
|
||
13 years ago
|
addItem( itemColor[3], TQString::fromLatin1( "Color3" ) );
|
||
12 years ago
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesMouseAction;
|
||
15 years ago
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "Encrypt" );
|
||
15 years ago
|
valuesMouseAction.append( choice );
|
||
|
}
|
||
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "Decrypt" );
|
||
15 years ago
|
valuesMouseAction.append( choice );
|
||
|
}
|
||
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "CrashNBurn" );
|
||
15 years ago
|
valuesMouseAction.append( choice );
|
||
|
}
|
||
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "PumpNDump" );
|
||
15 years ago
|
valuesMouseAction.append( choice );
|
||
|
}
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum *itemMouseAction[3];
|
||
|
itemMouseAction[0] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "right_mouse_action" ), mMouseAction[0], valuesMouseAction, Decrypt );
|
||
13 years ago
|
addItem( itemMouseAction[0], TQString::fromLatin1( "MouseActionright" ) );
|
||
12 years ago
|
itemMouseAction[1] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, Encrypt );
|
||
13 years ago
|
addItem( itemMouseAction[1], TQString::fromLatin1( "MouseActionmid" ) );
|
||
12 years ago
|
itemMouseAction[2] = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, PumpNDump );
|
||
13 years ago
|
addItem( itemMouseAction[2], TQString::fromLatin1( "MouseActionleft" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemString *itemFooBar;
|
||
|
itemFooBar = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "foo bar" ), mFooBar );
|
||
13 years ago
|
addItem( itemFooBar, TQString::fromLatin1( "FooBar" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemInt *itemAge;
|
||
|
itemAge = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Age" ), mAge, 35 );
|
||
15 years ago
|
itemAge->setMinValue(8);
|
||
|
itemAge->setMaxValue(88);
|
||
13 years ago
|
addItem( itemAge, TQString::fromLatin1( "Age" ) );
|
||
15 years ago
|
}
|
||
|
|
||
|
Test5::~Test5()
|
||
|
{
|
||
|
if ( mSelf == this )
|
||
|
staticTest5Deleter.setObject( mSelf, 0, false );
|
||
|
}
|
||
|
|