File indexing completed on 2025-01-19 03:59:48

0001 // This file is generated by kconfig_compiler_kf5 from breeze.kcfg.
0002 // All changes you do to this file will be lost.
0003 
0004 #include "breezestyleconfigdata.h"
0005 
0006 #include <qglobal.h>
0007 #include <QFile>
0008 
0009 using namespace Breeze;
0010 
0011 namespace Breeze {
0012 
0013 class StyleConfigDataHelper
0014 {
0015   public:
0016     StyleConfigDataHelper() : q(nullptr) {}
0017     ~StyleConfigDataHelper() { delete q; q = nullptr; }
0018     StyleConfigDataHelper(const StyleConfigDataHelper&) = delete;
0019     StyleConfigDataHelper& operator=(const StyleConfigDataHelper&) = delete;
0020     StyleConfigData *q;
0021 };
0022 
0023 }
0024 Q_GLOBAL_STATIC(StyleConfigDataHelper, s_globalStyleConfigData)
0025 StyleConfigData *StyleConfigData::self()
0026 {
0027   if (!s_globalStyleConfigData()->q) {
0028     new StyleConfigData;
0029     s_globalStyleConfigData()->q->read();
0030   }
0031 
0032   return s_globalStyleConfigData()->q;
0033 }
0034 
0035 StyleConfigData::StyleConfigData( )
0036   : KConfigSkeleton( QStringLiteral( "breezerc" ) )
0037 {
0038   Q_ASSERT(!s_globalStyleConfigData()->q);
0039   s_globalStyleConfigData()->q = this;
0040   setCurrentGroup( QStringLiteral( "Common" ) );
0041 
0042   KConfigSkeleton::ItemInt  *itemShadowStrength;
0043   itemShadowStrength = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "ShadowStrength" ), mShadowStrength, 255 );
0044   itemShadowStrength->setMinValue(25);
0045   itemShadowStrength->setMaxValue(255);
0046   addItem( itemShadowStrength, QStringLiteral( "ShadowStrength" ) );
0047   QList<KConfigSkeleton::ItemEnum::Choice> valuesShadowSize;
0048   {
0049     KConfigSkeleton::ItemEnum::Choice choice;
0050     choice.name = QStringLiteral("ShadowNone");
0051     valuesShadowSize.append( choice );
0052   }
0053   {
0054     KConfigSkeleton::ItemEnum::Choice choice;
0055     choice.name = QStringLiteral("ShadowSmall");
0056     valuesShadowSize.append( choice );
0057   }
0058   {
0059     KConfigSkeleton::ItemEnum::Choice choice;
0060     choice.name = QStringLiteral("ShadowMedium");
0061     valuesShadowSize.append( choice );
0062   }
0063   {
0064     KConfigSkeleton::ItemEnum::Choice choice;
0065     choice.name = QStringLiteral("ShadowLarge");
0066     valuesShadowSize.append( choice );
0067   }
0068   {
0069     KConfigSkeleton::ItemEnum::Choice choice;
0070     choice.name = QStringLiteral("ShadowVeryLarge");
0071     valuesShadowSize.append( choice );
0072   }
0073   KConfigSkeleton::ItemEnum  *itemShadowSize;
0074   itemShadowSize = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "ShadowSize" ), mShadowSize, valuesShadowSize, ShadowLarge );
0075   addItem( itemShadowSize, QStringLiteral( "ShadowSize" ) );
0076   KConfigSkeleton::ItemColor  *itemShadowColor;
0077   itemShadowColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "ShadowColor" ), mShadowColor, QColor( 0, 0, 0 ) );
0078   addItem( itemShadowColor, QStringLiteral( "ShadowColor" ) );
0079   KConfigSkeleton::ItemBool  *itemOutlineCloseButton;
0080   itemOutlineCloseButton = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "OutlineCloseButton" ), mOutlineCloseButton, false );
0081   addItem( itemOutlineCloseButton, QStringLiteral( "OutlineCloseButton" ) );
0082 
0083   setCurrentGroup( QStringLiteral( "Style" ) );
0084 
0085   KConfigSkeleton::ItemBool  *itemAnimationsEnabled;
0086   itemAnimationsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AnimationsEnabled" ), mAnimationsEnabled, true );
0087   addItem( itemAnimationsEnabled, QStringLiteral( "AnimationsEnabled" ) );
0088   KConfigSkeleton::ItemInt  *itemAnimationSteps;
0089   itemAnimationSteps = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "AnimationSteps" ), mAnimationSteps, 10 );
0090   addItem( itemAnimationSteps, QStringLiteral( "AnimationSteps" ) );
0091   KConfigSkeleton::ItemInt  *itemAnimationsDuration;
0092   itemAnimationsDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "AnimationsDuration" ), mAnimationsDuration, 100 );
0093   addItem( itemAnimationsDuration, QStringLiteral( "AnimationsDuration" ) );
0094   KConfigSkeleton::ItemBool  *itemStackedWidgetTransitionsEnabled;
0095   itemStackedWidgetTransitionsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StackedWidgetTransitionsEnabled" ), mStackedWidgetTransitionsEnabled, false );
0096   addItem( itemStackedWidgetTransitionsEnabled, QStringLiteral( "StackedWidgetTransitionsEnabled" ) );
0097   KConfigSkeleton::ItemBool  *itemProgressBarAnimated;
0098   itemProgressBarAnimated = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ProgressBarAnimated" ), mProgressBarAnimated, true );
0099   addItem( itemProgressBarAnimated, QStringLiteral( "ProgressBarAnimated" ) );
0100   KConfigSkeleton::ItemInt  *itemProgressBarBusyStepDuration;
0101   itemProgressBarBusyStepDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "ProgressBarBusyStepDuration" ), mProgressBarBusyStepDuration, 800 );
0102   addItem( itemProgressBarBusyStepDuration, QStringLiteral( "ProgressBarBusyStepDuration" ) );
0103   KConfigSkeleton::ItemInt  *itemScrollBarAddLineButtons;
0104   itemScrollBarAddLineButtons = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "ScrollBarAddLineButtons" ), mScrollBarAddLineButtons, 0 );
0105   addItem( itemScrollBarAddLineButtons, QStringLiteral( "ScrollBarAddLineButtons" ) );
0106   KConfigSkeleton::ItemInt  *itemScrollBarSubLineButtons;
0107   itemScrollBarSubLineButtons = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "ScrollBarSubLineButtons" ), mScrollBarSubLineButtons, 0 );
0108   addItem( itemScrollBarSubLineButtons, QStringLiteral( "ScrollBarSubLineButtons" ) );
0109   QList<KConfigSkeleton::ItemEnum::Choice> valuesMnemonicsMode;
0110   {
0111     KConfigSkeleton::ItemEnum::Choice choice;
0112     choice.name = QStringLiteral("MN_NEVER");
0113     valuesMnemonicsMode.append( choice );
0114   }
0115   {
0116     KConfigSkeleton::ItemEnum::Choice choice;
0117     choice.name = QStringLiteral("MN_AUTO");
0118     valuesMnemonicsMode.append( choice );
0119   }
0120   {
0121     KConfigSkeleton::ItemEnum::Choice choice;
0122     choice.name = QStringLiteral("MN_ALWAYS");
0123     valuesMnemonicsMode.append( choice );
0124   }
0125   KConfigSkeleton::ItemEnum  *itemMnemonicsMode;
0126   itemMnemonicsMode = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "MnemonicsMode" ), mMnemonicsMode, valuesMnemonicsMode, MN_AUTO );
0127   addItem( itemMnemonicsMode, QStringLiteral( "MnemonicsMode" ) );
0128   KConfigSkeleton::ItemBool  *itemToolBarDrawItemSeparator;
0129   itemToolBarDrawItemSeparator = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ToolBarDrawItemSeparator" ), mToolBarDrawItemSeparator, true );
0130   addItem( itemToolBarDrawItemSeparator, QStringLiteral( "ToolBarDrawItemSeparator" ) );
0131   KConfigSkeleton::ItemBool  *itemViewDrawFocusIndicator;
0132   itemViewDrawFocusIndicator = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ViewDrawFocusIndicator" ), mViewDrawFocusIndicator, true );
0133   addItem( itemViewDrawFocusIndicator, QStringLiteral( "ViewDrawFocusIndicator" ) );
0134   KConfigSkeleton::ItemBool  *itemSliderDrawTickMarks;
0135   itemSliderDrawTickMarks = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SliderDrawTickMarks" ), mSliderDrawTickMarks, true );
0136   addItem( itemSliderDrawTickMarks, QStringLiteral( "SliderDrawTickMarks" ) );
0137   KConfigSkeleton::ItemBool  *itemViewDrawTreeBranchLines;
0138   itemViewDrawTreeBranchLines = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ViewDrawTreeBranchLines" ), mViewDrawTreeBranchLines, true );
0139   addItem( itemViewDrawTreeBranchLines, QStringLiteral( "ViewDrawTreeBranchLines" ) );
0140   KConfigSkeleton::ItemBool  *itemViewInvertSortIndicator;
0141   itemViewInvertSortIndicator = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ViewInvertSortIndicator" ), mViewInvertSortIndicator, true );
0142   addItem( itemViewInvertSortIndicator, QStringLiteral( "ViewInvertSortIndicator" ) );
0143   KConfigSkeleton::ItemBool  *itemTabBarDrawCenteredTabs;
0144   itemTabBarDrawCenteredTabs = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "TabBarDrawCenteredTabs" ), mTabBarDrawCenteredTabs, false );
0145   addItem( itemTabBarDrawCenteredTabs, QStringLiteral( "TabBarDrawCenteredTabs" ) );
0146   KConfigSkeleton::ItemBool  *itemDockWidgetDrawFrame;
0147   itemDockWidgetDrawFrame = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DockWidgetDrawFrame" ), mDockWidgetDrawFrame, false );
0148   addItem( itemDockWidgetDrawFrame, QStringLiteral( "DockWidgetDrawFrame" ) );
0149   KConfigSkeleton::ItemBool  *itemSidePanelDrawFrame;
0150   itemSidePanelDrawFrame = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SidePanelDrawFrame" ), mSidePanelDrawFrame, false );
0151   addItem( itemSidePanelDrawFrame, QStringLiteral( "SidePanelDrawFrame" ) );
0152   KConfigSkeleton::ItemBool  *itemMenuItemDrawStrongFocus;
0153   itemMenuItemDrawStrongFocus = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "MenuItemDrawStrongFocus" ), mMenuItemDrawStrongFocus, true );
0154   addItem( itemMenuItemDrawStrongFocus, QStringLiteral( "MenuItemDrawStrongFocus" ) );
0155   QList<KConfigSkeleton::ItemEnum::Choice> valuesWindowDragMode;
0156   {
0157     KConfigSkeleton::ItemEnum::Choice choice;
0158     choice.name = QStringLiteral("WD_NONE");
0159     valuesWindowDragMode.append( choice );
0160   }
0161   {
0162     KConfigSkeleton::ItemEnum::Choice choice;
0163     choice.name = QStringLiteral("WD_MINIMAL");
0164     valuesWindowDragMode.append( choice );
0165   }
0166   {
0167     KConfigSkeleton::ItemEnum::Choice choice;
0168     choice.name = QStringLiteral("WD_FULL");
0169     valuesWindowDragMode.append( choice );
0170   }
0171   KConfigSkeleton::ItemEnum  *itemWindowDragMode;
0172   itemWindowDragMode = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "WindowDragMode" ), mWindowDragMode, valuesWindowDragMode, WD_FULL );
0173   addItem( itemWindowDragMode, QStringLiteral( "WindowDragMode" ) );
0174   KConfigSkeleton::ItemStringList  *itemWindowDragWhiteList;
0175   itemWindowDragWhiteList = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "WindowDragWhiteList" ), mWindowDragWhiteList );
0176   addItem( itemWindowDragWhiteList, QStringLiteral( "WindowDragWhiteList" ) );
0177   KConfigSkeleton::ItemStringList  *itemWindowDragBlackList;
0178   itemWindowDragBlackList = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "WindowDragBlackList" ), mWindowDragBlackList );
0179   addItem( itemWindowDragBlackList, QStringLiteral( "WindowDragBlackList" ) );
0180   KConfigSkeleton::ItemBool  *itemSplitterProxyEnabled;
0181   itemSplitterProxyEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SplitterProxyEnabled" ), mSplitterProxyEnabled, true );
0182   addItem( itemSplitterProxyEnabled, QStringLiteral( "SplitterProxyEnabled" ) );
0183   KConfigSkeleton::ItemInt  *itemSplitterProxyWidth;
0184   itemSplitterProxyWidth = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "SplitterProxyWidth" ), mSplitterProxyWidth, 12 );
0185   addItem( itemSplitterProxyWidth, QStringLiteral( "SplitterProxyWidth" ) );
0186   KConfigSkeleton::ItemBool  *itemWidgetExplorerEnabled;
0187   itemWidgetExplorerEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "WidgetExplorerEnabled" ), mWidgetExplorerEnabled, false );
0188   addItem( itemWidgetExplorerEnabled, QStringLiteral( "WidgetExplorerEnabled" ) );
0189   KConfigSkeleton::ItemBool  *itemDrawWidgetRects;
0190   itemDrawWidgetRects = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DrawWidgetRects" ), mDrawWidgetRects, false );
0191   addItem( itemDrawWidgetRects, QStringLiteral( "DrawWidgetRects" ) );
0192   KConfigSkeleton::ItemInt  *itemMenuOpacity;
0193   itemMenuOpacity = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "MenuOpacity" ), mMenuOpacity, 100 );
0194   addItem( itemMenuOpacity, QStringLiteral( "MenuOpacity" ) );
0195 }
0196 
0197 StyleConfigData::~StyleConfigData()
0198 {
0199   if (s_globalStyleConfigData.exists() && !s_globalStyleConfigData.isDestroyed()) {
0200     s_globalStyleConfigData()->q = nullptr;
0201   }
0202 }
0203