summaryrefslogtreecommitdiffstats
path: root/src/kbconfig.cpp
blob: 67639268ba21908229cb990189f95444bbb09735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// This file is generated by tdeconfig_compiler from kbconfig.kcfg.
// All changes you do to this file will be lost.

#include "kbconfig.h"

#include <kstaticdeleter.h>

KbConfig *KbConfig::mSelf = 0;
static KStaticDeleter<KbConfig> staticKbConfigDeleter;

KbConfig *KbConfig::self()
{
  if ( !mSelf ) {
    staticKbConfigDeleter.setObject( mSelf, new KbConfig() );
    mSelf->readConfig();
  }

  return mSelf;
}

KbConfig::KbConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kasablancarc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "general" ) );

  TDEConfigSkeleton::ItemString  *itemSkiplist;
  itemSkiplist = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Skiplist" ), mSkiplist );
  addItem( itemSkiplist, TQString::fromLatin1( "Skiplist" ) );
  TDEConfigSkeleton::ItemString  *itemPrioritylist;
  itemPrioritylist = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Prioritylist" ), mPrioritylist );
  addItem( itemPrioritylist, TQString::fromLatin1( "Prioritylist" ) );
  TDEConfigSkeleton::ItemBool  *itemDirCachingIsEnabled;
  itemDirCachingIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DirCachingIsEnabled" ), mDirCachingIsEnabled, false );
  addItem( itemDirCachingIsEnabled, TQString::fromLatin1( "DirCachingIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemDeleteMovesIntoTrashIsEnabled;
  itemDeleteMovesIntoTrashIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DeleteMovesIntoTrashIsEnabled" ), mDeleteMovesIntoTrashIsEnabled, false );
  addItem( itemDeleteMovesIntoTrashIsEnabled, TQString::fromLatin1( "DeleteMovesIntoTrashIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemSkiplistIsEnabled;
  itemSkiplistIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SkiplistIsEnabled" ), mSkiplistIsEnabled, false );
  addItem( itemSkiplistIsEnabled, TQString::fromLatin1( "SkiplistIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemPrioritylistIsEnabled;
  itemPrioritylistIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "PrioritylistIsEnabled" ), mPrioritylistIsEnabled, false );
  addItem( itemPrioritylistIsEnabled, TQString::fromLatin1( "PrioritylistIsEnabled" ) );
  TDEConfigSkeleton::ItemString  *itemOnQueueFinished;
  itemOnQueueFinished = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "OnQueueFinished" ), mOnQueueFinished );
  addItem( itemOnQueueFinished, TQString::fromLatin1( "OnQueueFinished" ) );
  TDEConfigSkeleton::ItemBool  *itemOnQueueFinishedIsEnabled;
  itemOnQueueFinishedIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnQueueFinishedIsEnabled" ), mOnQueueFinishedIsEnabled, false );
  addItem( itemOnQueueFinishedIsEnabled, TQString::fromLatin1( "OnQueueFinishedIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemOnFileExistsOverwrite;
  itemOnFileExistsOverwrite = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnFileExistsOverwrite" ), mOnFileExistsOverwrite, false );
  addItem( itemOnFileExistsOverwrite, TQString::fromLatin1( "OnFileExistsOverwrite" ) );
  TDEConfigSkeleton::ItemBool  *itemOnFileExistsResume;
  itemOnFileExistsResume = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnFileExistsResume" ), mOnFileExistsResume, true );
  addItem( itemOnFileExistsResume, TQString::fromLatin1( "OnFileExistsResume" ) );
  TDEConfigSkeleton::ItemBool  *itemOnFileExistsSkip;
  itemOnFileExistsSkip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnFileExistsSkip" ), mOnFileExistsSkip, false );
  addItem( itemOnFileExistsSkip, TQString::fromLatin1( "OnFileExistsSkip" ) );
  TDEConfigSkeleton::ItemBool  *itemOnFileExistsIsEnabled;
  itemOnFileExistsIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OnFileExistsIsEnabled" ), mOnFileExistsIsEnabled, false );
  addItem( itemOnFileExistsIsEnabled, TQString::fromLatin1( "OnFileExistsIsEnabled" ) );

  setCurrentGroup( TQString::fromLatin1( "ui" ) );

  TDEConfigSkeleton::ItemBool  *itemSystrayIsEnabled;
  itemSystrayIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SystrayIsEnabled" ), mSystrayIsEnabled, false );
  addItem( itemSystrayIsEnabled, TQString::fromLatin1( "SystrayIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemCommandLineIsEnabled;
  itemCommandLineIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CommandLineIsEnabled" ), mCommandLineIsEnabled, true );
  addItem( itemCommandLineIsEnabled, TQString::fromLatin1( "CommandLineIsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemHideHiddenFilesIsEnabled;
  itemHideHiddenFilesIsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "HideHiddenFilesIsEnabled" ), mHideHiddenFilesIsEnabled, false );
  addItem( itemHideHiddenFilesIsEnabled, TQString::fromLatin1( "HideHiddenFilesIsEnabled" ) );
  TDEConfigSkeleton::ItemFont  *itemLogwindowFont;
  itemLogwindowFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "LogwindowFont" ), mLogwindowFont, TQFont( "DEC Terminal" ) );
  addItem( itemLogwindowFont, TQString::fromLatin1( "LogwindowFont" ) );

  setCurrentGroup( TQString::fromLatin1( "colors" ) );

  TDEConfigSkeleton::ItemColor  *itemLocalColor;
  itemLocalColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "LocalColor" ), mLocalColor, TQColor( 244,247,66 ) );
  addItem( itemLocalColor, TQString::fromLatin1( "LocalColor" ) );
  TDEConfigSkeleton::ItemColor  *itemSuccessColor;
  itemSuccessColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "SuccessColor" ), mSuccessColor, TQColor( 0,188,53 ) );
  addItem( itemSuccessColor, TQString::fromLatin1( "SuccessColor" ) );
  TDEConfigSkeleton::ItemColor  *itemBackgroundColor;
  itemBackgroundColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackgroundColor" ), mBackgroundColor, TQColor( 0,90,128 ) );
  addItem( itemBackgroundColor, TQString::fromLatin1( "BackgroundColor" ) );
  TDEConfigSkeleton::ItemColor  *itemFailureColor;
  itemFailureColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "FailureColor" ), mFailureColor, TQColor( 222,9,48 ) );
  addItem( itemFailureColor, TQString::fromLatin1( "FailureColor" ) );
}

KbConfig::~KbConfig()
{
  if ( mSelf == this )
    staticKbConfigDeleter.setObject( mSelf, 0, false );
}