Warning, /frameworks/kconfig/autotests/kconfig_compiler/test2.cpp.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf5 from test2.kcfg.
0002 // All changes you do to this file will be lost.
0003 
0004 #include "test2.h"
0005 
0006 Test2::Test2( )
0007   : MyPrefs( QStringLiteral( "korganizerrc" ) )
0008 {
0009   setCurrentGroup( QStringLiteral( "General" ) );
0010 
0011   mAutoSaveItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), mAutoSave, false );
0012   mAutoSaveItem->setLabel( QCoreApplication::translate("Test2", "Enable automatic saving of calendar") );
0013   mAutoSaveItem->setWhatsThis( QCoreApplication::translate("Test2", "WhatsThis text for AutoSave option") );
0014   addItem( mAutoSaveItem, QStringLiteral( "AutoSave" ) );
0015   mAutoSaveIntervalItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Auto Save Interval" ), mAutoSaveInterval, 10 );
0016   mAutoSaveIntervalItem->setLabel( QCoreApplication::translate("Test2", "Auto Save Interval") );
0017   addItem( mAutoSaveIntervalItem, QStringLiteral( "AutoSaveInterval" ) );
0018   mConfirmItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Confirm Deletes" ), mConfirm, true );
0019   mConfirmItem->setLabel( QCoreApplication::translate("Test2", "Confirm deletes") );
0020   addItem( mConfirmItem, QStringLiteral( "Confirm" ) );
0021   mArchiveFileItem = new MyPrefs::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile );
0022   mArchiveFileItem->setLabel( QCoreApplication::translate("Test2", "Archive File") );
0023   addItem( mArchiveFileItem, QStringLiteral( "ArchiveFile" ) );
0024   QList<MyPrefs::ItemEnum::Choice> valuesDestination;
0025   {
0026     MyPrefs::ItemEnum::Choice choice;
0027     choice.name = QStringLiteral("standardDestination");
0028     valuesDestination.append( choice );
0029   }
0030   {
0031     MyPrefs::ItemEnum::Choice choice;
0032     choice.name = QStringLiteral("askDestination");
0033     valuesDestination.append( choice );
0034   }
0035   {
0036     MyPrefs::ItemEnum::Choice choice;
0037     choice.name = QStringLiteral("argl1");
0038     choice.label = QCoreApplication::translate("Test2", "Argl1 Label");
0039     valuesDestination.append( choice );
0040   }
0041   {
0042     MyPrefs::ItemEnum::Choice choice;
0043     choice.name = QStringLiteral("argl2");
0044     choice.whatsThis = QCoreApplication::translate("Test2", "Argl2 Whatsthis");
0045     valuesDestination.append( choice );
0046   }
0047   {
0048     MyPrefs::ItemEnum::Choice choice;
0049     choice.name = QStringLiteral("argl3");
0050     choice.label = QCoreApplication::translate("Test2", "Argl3 Label");
0051     choice.whatsThis = QCoreApplication::translate("Test2", "Argl3 Whatsthis");
0052     valuesDestination.append( choice );
0053   }
0054   mDestinationItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "Destination" ), mDestination, valuesDestination, standardDestination );
0055   mDestinationItem->setLabel( QCoreApplication::translate("Test2", "New Events/Todos Should") );
0056   addItem( mDestinationItem, QStringLiteral( "Destination" ) );
0057 
0058   setCurrentGroup( QStringLiteral( "Views" ) );
0059 
0060   mHourSizeItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Hour Size" ), mHourSize, 10 );
0061   mHourSizeItem->setLabel( QCoreApplication::translate("Test2", "Hour Size") );
0062   addItem( mHourSizeItem, QStringLiteral( "HourSize" ) );
0063   mSelectionStartsEditorItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
0064   mSelectionStartsEditorItem->setLabel( QCoreApplication::translate("Test2", "Time range selection in agenda view starts event editor") );
0065   addItem( mSelectionStartsEditorItem, QStringLiteral( "SelectionStartsEditor" ) );
0066 
0067   setCurrentGroup( QStringLiteral( "KOrganizer Plugins" ) );
0068 
0069   QStringList defaultSelectedPlugins;
0070   defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
0071   defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
0072 
0073   mSelectedPluginsItem = new MyPrefs::ItemStringList( currentGroup(), QStringLiteral( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
0074   mSelectedPluginsItem->setLabel( QCoreApplication::translate("Test2", "SelectedPlugins") );
0075   addItem( mSelectedPluginsItem, QStringLiteral( "SelectedPlugins" ) );
0076 
0077   setCurrentGroup( QStringLiteral( "Colors" ) );
0078 
0079   mHighlightColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
0080   mHighlightColorItem->setLabel( QCoreApplication::translate("Test2", "Highlight color") );
0081   addItem( mHighlightColorItem, QStringLiteral( "HighlightColor" ) );
0082   mAgendaBgColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
0083   mAgendaBgColorItem->setLabel( QCoreApplication::translate("Test2", "Agenda view background color") );
0084   addItem( mAgendaBgColorItem, QStringLiteral( "AgendaBgColor" ) );
0085 
0086   setCurrentGroup( QStringLiteral( "Fonts" ) );
0087 
0088   mTimeBarFontItem = new MyPrefs::ItemFont( currentGroup(), QStringLiteral( "TimeBar Font" ), mTimeBarFont );
0089   mTimeBarFontItem->setLabel( QCoreApplication::translate("Test2", "Time bar") );
0090   addItem( mTimeBarFontItem, QStringLiteral( "TimeBarFont" ) );
0091 }
0092 
0093 Test2::~Test2()
0094 {
0095 }
0096