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.
99 lines
4.7 KiB
99 lines
4.7 KiB
// This file is generated by kconfig_compiler from test2.kcfg.
|
|
// All changes you do to this file will be lost.
|
|
|
|
#include "test2.h"
|
|
|
|
#include <klocale.h>
|
|
|
|
Test2::Test2( )
|
|
: MyPrefs( QString::fromLatin1( "korganizerrc" ) )
|
|
{
|
|
setCurrentGroup( QString::fromLatin1( "General" ) );
|
|
|
|
mAutoSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Auto Save" ), mAutoSave, false );
|
|
mAutoSaveItem->setLabel( i18n("Enable automatic saving of calendar") );
|
|
mAutoSaveItem->setWhatsThis( i18n("WhatsThis text for AutoSave option") );
|
|
addItem( mAutoSaveItem, QString::fromLatin1( "AutoSave" ) );
|
|
mAutoSaveIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Auto Save Interval" ), mAutoSaveInterval, 10 );
|
|
mAutoSaveIntervalItem->setLabel( i18n("Auto Save Interval") );
|
|
addItem( mAutoSaveIntervalItem, QString::fromLatin1( "AutoSaveInterval" ) );
|
|
mConfirmItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Confirm Deletes" ), mConfirm, true );
|
|
mConfirmItem->setLabel( i18n("Confirm deletes") );
|
|
addItem( mConfirmItem, QString::fromLatin1( "Confirm" ) );
|
|
mArchiveFileItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Archive File" ), mArchiveFile );
|
|
mArchiveFileItem->setLabel( i18n("Archive File") );
|
|
addItem( mArchiveFileItem, QString::fromLatin1( "ArchiveFile" ) );
|
|
QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDestination;
|
|
{
|
|
KConfigSkeleton::ItemEnum::Choice choice;
|
|
choice.name = QString::fromLatin1( "standardDestination" );
|
|
valuesDestination.append( choice );
|
|
}
|
|
{
|
|
KConfigSkeleton::ItemEnum::Choice choice;
|
|
choice.name = QString::fromLatin1( "askDestination" );
|
|
valuesDestination.append( choice );
|
|
}
|
|
{
|
|
KConfigSkeleton::ItemEnum::Choice choice;
|
|
choice.name = QString::fromLatin1( "argl1" );
|
|
choice.label = i18n("Argl1 Label");
|
|
valuesDestination.append( choice );
|
|
}
|
|
{
|
|
KConfigSkeleton::ItemEnum::Choice choice;
|
|
choice.name = QString::fromLatin1( "argl2" );
|
|
choice.whatsThis = i18n("Argl2 Whatsthis");
|
|
valuesDestination.append( choice );
|
|
}
|
|
{
|
|
KConfigSkeleton::ItemEnum::Choice choice;
|
|
choice.name = QString::fromLatin1( "argl3" );
|
|
choice.label = i18n("Argl3 Label");
|
|
choice.whatsThis = i18n("Argl3 Whatsthis");
|
|
valuesDestination.append( choice );
|
|
}
|
|
mDestinationItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Destination" ), mDestination, valuesDestination, standardDestination );
|
|
mDestinationItem->setLabel( i18n("New Events/Todos Should") );
|
|
addItem( mDestinationItem, QString::fromLatin1( "Destination" ) );
|
|
|
|
setCurrentGroup( QString::fromLatin1( "Views" ) );
|
|
|
|
mHourSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Hour Size" ), mHourSize, 10 );
|
|
mHourSizeItem->setLabel( i18n("Hour Size") );
|
|
addItem( mHourSizeItem, QString::fromLatin1( "HourSize" ) );
|
|
mSelectionStartsEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
|
|
mSelectionStartsEditorItem->setLabel( i18n("Time range selection in agenda view starts event editor") );
|
|
addItem( mSelectionStartsEditorItem, QString::fromLatin1( "SelectionStartsEditor" ) );
|
|
|
|
setCurrentGroup( QString::fromLatin1( "KOrganizer Plugins" ) );
|
|
|
|
QStringList defaultSelectedPlugins;
|
|
defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
|
|
defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
|
|
|
|
mSelectedPluginsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
|
|
mSelectedPluginsItem->setLabel( i18n("SelectedPlugins") );
|
|
addItem( mSelectedPluginsItem, QString::fromLatin1( "SelectedPlugins" ) );
|
|
|
|
setCurrentGroup( QString::fromLatin1( "Colors" ) );
|
|
|
|
mHighlightColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
|
|
mHighlightColorItem->setLabel( i18n("Highlight color") );
|
|
addItem( mHighlightColorItem, QString::fromLatin1( "HighlightColor" ) );
|
|
mAgendaBgColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
|
|
mAgendaBgColorItem->setLabel( i18n("Agenda view background color") );
|
|
addItem( mAgendaBgColorItem, QString::fromLatin1( "AgendaBgColor" ) );
|
|
|
|
setCurrentGroup( QString::fromLatin1( "Fonts" ) );
|
|
|
|
mTimeBarFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "TimeBar Font" ), mTimeBarFont );
|
|
mTimeBarFontItem->setLabel( i18n("Time bar") );
|
|
addItem( mTimeBarFontItem, QString::fromLatin1( "TimeBarFont" ) );
|
|
}
|
|
|
|
Test2::~Test2()
|
|
{
|
|
}
|
|
|