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