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.
73 lines
3.7 KiB
73 lines
3.7 KiB
12 years ago
|
// This file is generated by tdeconfig_compiler from test1.kcfg.
|
||
15 years ago
|
// All changes you do to this file will be lost.
|
||
|
|
||
|
#include "test1.h"
|
||
|
|
||
14 years ago
|
Test1::Test1( const TQString & transport, const TQString & folder )
|
||
12 years ago
|
: TDEConfigSkeleton( TQString::fromLatin1( "examplerc" ) )
|
||
15 years ago
|
, mParamtransport(transport)
|
||
|
, mParamfolder(folder)
|
||
|
{
|
||
13 years ago
|
setCurrentGroup( TQString::fromLatin1( "General-%1" ).arg( mParamfolder ) );
|
||
15 years ago
|
|
||
12 years ago
|
TDEConfigSkeleton::ItemBool *itemOneOption;
|
||
|
itemOneOption = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OneOption" ), mOneOption, true );
|
||
13 years ago
|
addItem( itemOneOption, TQString::fromLatin1( "OneOption" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemInt *itemAnotherOption;
|
||
|
itemAnotherOption = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Another Option" ), mAnotherOption, 5 );
|
||
13 years ago
|
addItem( itemAnotherOption, TQString::fromLatin1( "AnotherOption" ) );
|
||
12 years ago
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesListOption;
|
||
15 years ago
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "One" );
|
||
15 years ago
|
valuesListOption.append( choice );
|
||
|
}
|
||
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "Two" );
|
||
15 years ago
|
valuesListOption.append( choice );
|
||
|
}
|
||
|
{
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum::Choice choice;
|
||
13 years ago
|
choice.name = TQString::fromLatin1( "Three" );
|
||
15 years ago
|
valuesListOption.append( choice );
|
||
|
}
|
||
12 years ago
|
TDEConfigSkeleton::ItemEnum *itemListOption;
|
||
|
itemListOption = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "ListOption" ), mListOption, valuesListOption, EnumListOption::One );
|
||
13 years ago
|
addItem( itemListOption, TQString::fromLatin1( "ListOption" ) );
|
||
15 years ago
|
|
||
13 years ago
|
setCurrentGroup( TQString::fromLatin1( "MyOptions" ) );
|
||
15 years ago
|
|
||
12 years ago
|
TDEConfigSkeleton::ItemString *itemMyString;
|
||
|
itemMyString = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MyString" ), mMyString, TQString::fromLatin1( "Default String" ) );
|
||
13 years ago
|
addItem( itemMyString, TQString::fromLatin1( "MyString" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemPath *itemMyPath;
|
||
|
itemMyPath = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "MyPath" ), mMyPath, TQDir::homeDirPath()+TQString::fromLatin1(".hidden_file") );
|
||
13 years ago
|
addItem( itemMyPath, TQString::fromLatin1( "MyPath" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemInt *itemAnotherOption2;
|
||
|
itemAnotherOption2 = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "Another Option" ), mAnotherOption2, 10 );
|
||
13 years ago
|
addItem( itemAnotherOption2, TQString::fromLatin1( "AnotherOption2" ) );
|
||
14 years ago
|
TQStringList defaultMyStringList;
|
||
|
defaultMyStringList.append( TQString::fromUtf8( "up" ) );
|
||
|
defaultMyStringList.append( TQString::fromUtf8( "down" ) );
|
||
15 years ago
|
|
||
12 years ago
|
TDEConfigSkeleton::ItemStringList *itemMyStringList;
|
||
|
itemMyStringList = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "MyStringList" ), mMyStringList, defaultMyStringList );
|
||
13 years ago
|
addItem( itemMyStringList, TQString::fromLatin1( "MyStringList" ) );
|
||
14 years ago
|
TQStringList defaultMyStringListHidden;
|
||
|
defaultMyStringListHidden.append( TQString::fromUtf8( "up" ) );
|
||
|
defaultMyStringListHidden.append( TQString::fromUtf8( "down" ) );
|
||
15 years ago
|
|
||
12 years ago
|
TDEConfigSkeleton::ItemStringList *itemMyStringListHidden;
|
||
|
itemMyStringListHidden = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "MyStringListHidden" ), mMyStringListHidden, defaultMyStringListHidden );
|
||
13 years ago
|
addItem( itemMyStringListHidden, TQString::fromLatin1( "MyStringListHidden" ) );
|
||
12 years ago
|
TDEConfigSkeleton::ItemInt *itemMyNumber;
|
||
|
itemMyNumber = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "List-%1-%2" ).arg( mParamtransport ).arg( mParamfolder ), mMyNumber, 1 );
|
||
13 years ago
|
addItem( itemMyNumber, TQString::fromLatin1( "MyNumber" ) );
|
||
15 years ago
|
}
|
||
|
|
||
|
Test1::~Test1()
|
||
|
{
|
||
|
}
|
||
|
|