File indexing completed on 2025-01-19 03:59:48
0001 // This file is generated by kconfig_compiler_kf5 from breezesettingsdata.kcfg. 0002 // All changes you do to this file will be lost. 0003 #ifndef BREEZE_INTERNALSETTINGS_H 0004 #define BREEZE_INTERNALSETTINGS_H 0005 0006 #include <qglobal.h> 0007 #include <kconfigskeleton.h> 0008 #include <QCoreApplication> 0009 #include <QDebug> 0010 0011 namespace Breeze { 0012 0013 class InternalSettings : public KConfigSkeleton 0014 { 0015 public: 0016 enum EnumShadowSize { ShadowNone, ShadowSmall, ShadowMedium, ShadowLarge, ShadowVeryLarge }; 0017 enum EnumBorderSize { BorderNone, BorderNoSides, BorderTiny, BorderNormal, BorderLarge, BorderVeryLarge, BorderHuge, BorderVeryHuge, BorderOversized }; 0018 enum EnumTitleAlignment { AlignLeft, AlignCenter, AlignCenterFullWidth, AlignRight }; 0019 enum EnumButtonSize { ButtonTiny, ButtonSmall, ButtonDefault, ButtonLarge, ButtonVeryLarge }; 0020 enum EnumExceptionType { ExceptionWindowClassName, ExceptionWindowTitle }; 0021 0022 InternalSettings( ); 0023 ~InternalSettings() override; 0024 0025 /** 0026 Set ShadowStrength 0027 */ 0028 void setShadowStrength( int v ) 0029 { 0030 if (v < 25) 0031 { 0032 qDebug() << "setShadowStrength: value " << v << " is less than the minimum value of 25"; 0033 v = 25; 0034 } 0035 0036 if (v > 255) 0037 { 0038 qDebug() << "setShadowStrength: value " << v << " is greater than the maximum value of 255"; 0039 v = 255; 0040 } 0041 0042 if (!isShadowStrengthImmutable()) 0043 mShadowStrength = v; 0044 } 0045 0046 /** 0047 Get ShadowStrength 0048 */ 0049 int shadowStrength() const 0050 { 0051 return mShadowStrength; 0052 } 0053 0054 /** 0055 Is ShadowStrength Immutable 0056 */ 0057 bool isShadowStrengthImmutable() const 0058 { 0059 return isImmutable( QStringLiteral( "ShadowStrength" ) ); 0060 } 0061 0062 /** 0063 Set ShadowSize 0064 */ 0065 void setShadowSize( int v ) 0066 { 0067 if (!isShadowSizeImmutable()) 0068 mShadowSize = v; 0069 } 0070 0071 /** 0072 Get ShadowSize 0073 */ 0074 int shadowSize() const 0075 { 0076 return mShadowSize; 0077 } 0078 0079 /** 0080 Is ShadowSize Immutable 0081 */ 0082 bool isShadowSizeImmutable() const 0083 { 0084 return isImmutable( QStringLiteral( "ShadowSize" ) ); 0085 } 0086 0087 /** 0088 Set ShadowColor 0089 */ 0090 void setShadowColor( const QColor & v ) 0091 { 0092 if (!isShadowColorImmutable()) 0093 mShadowColor = v; 0094 } 0095 0096 /** 0097 Get ShadowColor 0098 */ 0099 QColor shadowColor() const 0100 { 0101 return mShadowColor; 0102 } 0103 0104 /** 0105 Is ShadowColor Immutable 0106 */ 0107 bool isShadowColorImmutable() const 0108 { 0109 return isImmutable( QStringLiteral( "ShadowColor" ) ); 0110 } 0111 0112 /** 0113 Set OutlineCloseButton 0114 */ 0115 void setOutlineCloseButton( bool v ) 0116 { 0117 if (!isOutlineCloseButtonImmutable()) 0118 mOutlineCloseButton = v; 0119 } 0120 0121 /** 0122 Get OutlineCloseButton 0123 */ 0124 bool outlineCloseButton() const 0125 { 0126 return mOutlineCloseButton; 0127 } 0128 0129 /** 0130 Is OutlineCloseButton Immutable 0131 */ 0132 bool isOutlineCloseButtonImmutable() const 0133 { 0134 return isImmutable( QStringLiteral( "OutlineCloseButton" ) ); 0135 } 0136 0137 /** 0138 Set BorderSize 0139 */ 0140 void setBorderSize( int v ) 0141 { 0142 if (!isBorderSizeImmutable()) 0143 mBorderSize = v; 0144 } 0145 0146 /** 0147 Get BorderSize 0148 */ 0149 int borderSize() const 0150 { 0151 return mBorderSize; 0152 } 0153 0154 /** 0155 Is BorderSize Immutable 0156 */ 0157 bool isBorderSizeImmutable() const 0158 { 0159 return isImmutable( QStringLiteral( "BorderSize" ) ); 0160 } 0161 0162 /** 0163 Set TitleAlignment 0164 */ 0165 void setTitleAlignment( int v ) 0166 { 0167 if (!isTitleAlignmentImmutable()) 0168 mTitleAlignment = v; 0169 } 0170 0171 /** 0172 Get TitleAlignment 0173 */ 0174 int titleAlignment() const 0175 { 0176 return mTitleAlignment; 0177 } 0178 0179 /** 0180 Is TitleAlignment Immutable 0181 */ 0182 bool isTitleAlignmentImmutable() const 0183 { 0184 return isImmutable( QStringLiteral( "TitleAlignment" ) ); 0185 } 0186 0187 /** 0188 Set ButtonSize 0189 */ 0190 void setButtonSize( int v ) 0191 { 0192 if (!isButtonSizeImmutable()) 0193 mButtonSize = v; 0194 } 0195 0196 /** 0197 Get ButtonSize 0198 */ 0199 int buttonSize() const 0200 { 0201 return mButtonSize; 0202 } 0203 0204 /** 0205 Is ButtonSize Immutable 0206 */ 0207 bool isButtonSizeImmutable() const 0208 { 0209 return isImmutable( QStringLiteral( "ButtonSize" ) ); 0210 } 0211 0212 /** 0213 Set DrawBorderOnMaximizedWindows 0214 */ 0215 void setDrawBorderOnMaximizedWindows( bool v ) 0216 { 0217 if (!isDrawBorderOnMaximizedWindowsImmutable()) 0218 mDrawBorderOnMaximizedWindows = v; 0219 } 0220 0221 /** 0222 Get DrawBorderOnMaximizedWindows 0223 */ 0224 bool drawBorderOnMaximizedWindows() const 0225 { 0226 return mDrawBorderOnMaximizedWindows; 0227 } 0228 0229 /** 0230 Is DrawBorderOnMaximizedWindows Immutable 0231 */ 0232 bool isDrawBorderOnMaximizedWindowsImmutable() const 0233 { 0234 return isImmutable( QStringLiteral( "DrawBorderOnMaximizedWindows" ) ); 0235 } 0236 0237 /** 0238 Set DrawBackgroundGradient 0239 */ 0240 void setDrawBackgroundGradient( bool v ) 0241 { 0242 if (!isDrawBackgroundGradientImmutable()) 0243 mDrawBackgroundGradient = v; 0244 } 0245 0246 /** 0247 Get DrawBackgroundGradient 0248 */ 0249 bool drawBackgroundGradient() const 0250 { 0251 return mDrawBackgroundGradient; 0252 } 0253 0254 /** 0255 Is DrawBackgroundGradient Immutable 0256 */ 0257 bool isDrawBackgroundGradientImmutable() const 0258 { 0259 return isImmutable( QStringLiteral( "DrawBackgroundGradient" ) ); 0260 } 0261 0262 /** 0263 Set HideTitleBar 0264 */ 0265 void setHideTitleBar( bool v ) 0266 { 0267 if (!isHideTitleBarImmutable()) 0268 mHideTitleBar = v; 0269 } 0270 0271 /** 0272 Get HideTitleBar 0273 */ 0274 bool hideTitleBar() const 0275 { 0276 return mHideTitleBar; 0277 } 0278 0279 /** 0280 Is HideTitleBar Immutable 0281 */ 0282 bool isHideTitleBarImmutable() const 0283 { 0284 return isImmutable( QStringLiteral( "HideTitleBar" ) ); 0285 } 0286 0287 /** 0288 Set ExceptionType 0289 */ 0290 void setExceptionType( int v ) 0291 { 0292 if (!isExceptionTypeImmutable()) 0293 mExceptionType = v; 0294 } 0295 0296 /** 0297 Get ExceptionType 0298 */ 0299 int exceptionType() const 0300 { 0301 return mExceptionType; 0302 } 0303 0304 /** 0305 Is ExceptionType Immutable 0306 */ 0307 bool isExceptionTypeImmutable() const 0308 { 0309 return isImmutable( QStringLiteral( "ExceptionType" ) ); 0310 } 0311 0312 /** 0313 Set ExceptionPattern 0314 */ 0315 void setExceptionPattern( const QString & v ) 0316 { 0317 if (!isExceptionPatternImmutable()) 0318 mExceptionPattern = v; 0319 } 0320 0321 /** 0322 Get ExceptionPattern 0323 */ 0324 QString exceptionPattern() const 0325 { 0326 return mExceptionPattern; 0327 } 0328 0329 /** 0330 Is ExceptionPattern Immutable 0331 */ 0332 bool isExceptionPatternImmutable() const 0333 { 0334 return isImmutable( QStringLiteral( "ExceptionPattern" ) ); 0335 } 0336 0337 /** 0338 Set Enabled 0339 */ 0340 void setEnabled( bool v ) 0341 { 0342 if (!isEnabledImmutable()) 0343 mEnabled = v; 0344 } 0345 0346 /** 0347 Get Enabled 0348 */ 0349 bool enabled() const 0350 { 0351 return mEnabled; 0352 } 0353 0354 /** 0355 Is Enabled Immutable 0356 */ 0357 bool isEnabledImmutable() const 0358 { 0359 return isImmutable( QStringLiteral( "Enabled" ) ); 0360 } 0361 0362 /** 0363 Set Mask 0364 */ 0365 void setMask( int v ) 0366 { 0367 if (!isMaskImmutable()) 0368 mMask = v; 0369 } 0370 0371 /** 0372 Get Mask 0373 */ 0374 int mask() const 0375 { 0376 return mMask; 0377 } 0378 0379 /** 0380 Is Mask Immutable 0381 */ 0382 bool isMaskImmutable() const 0383 { 0384 return isImmutable( QStringLiteral( "Mask" ) ); 0385 } 0386 0387 protected: 0388 0389 // Common 0390 int mShadowStrength; 0391 int mShadowSize; 0392 QColor mShadowColor; 0393 bool mOutlineCloseButton; 0394 0395 // Windeco 0396 int mBorderSize; 0397 int mTitleAlignment; 0398 int mButtonSize; 0399 bool mDrawBorderOnMaximizedWindows; 0400 bool mDrawBackgroundGradient; 0401 bool mHideTitleBar; 0402 int mExceptionType; 0403 QString mExceptionPattern; 0404 bool mEnabled; 0405 int mMask; 0406 0407 private: 0408 }; 0409 0410 } 0411 0412 #endif 0413