diff options
author | Mavridis Philippe <[email protected]> | 2023-06-28 12:44:04 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2023-07-04 15:26:04 +0300 |
commit | 631172e074ee702ff468b81e3a5c956515a2061a (patch) | |
tree | e52693683e27857b6e594d225a8c21b2a579d6a2 /twin/kcmtwin/twinoptions/windows.h | |
parent | 5b1934dd5dc3245fcfd4a771fd45ed30dcaace54 (diff) | |
download | tdebase-631172e074ee702ff468b81e3a5c956515a2061a.tar.gz tdebase-631172e074ee702ff468b81e3a5c956515a2061a.zip |
kcmtwin: Move Active Borders options into a new tab
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'twin/kcmtwin/twinoptions/windows.h')
-rw-r--r-- | twin/kcmtwin/twinoptions/windows.h | 62 |
1 files changed, 41 insertions, 21 deletions
diff --git a/twin/kcmtwin/twinoptions/windows.h b/twin/kcmtwin/twinoptions/windows.h index 63bf75331..566f955b5 100644 --- a/twin/kcmtwin/twinoptions/windows.h +++ b/twin/kcmtwin/twinoptions/windows.h @@ -192,6 +192,47 @@ private: }; +class KActiveBorderConfig : public TDECModule +{ + TQ_OBJECT + public: + KActiveBorderConfig(bool _standAlone, TDEConfig *config, TQWidget *parent=0, const char *name = 0); + ~KActiveBorderConfig(); + + void load(); + void save(); + void defaults(); + + private slots: + // copied from kcontrol/konq/twindesktop, aleXXX + // original name: setEBorders() + void updateActiveBorders(); + + void changed() { emit TDECModule::changed(true); } + + private: + int getActiveBorders( void ); + int getActiveBorderDelay(); + int getActiveBorderDistance(); + void setActiveBorders( int ); + void setActiveBorderDelay( int ); + void setActiveBorderDistance( int ); + + TQButtonGroup *active_box; + TQRadioButton *active_disable; + TQRadioButton *active_desktop; + TQCheckBox *active_move; + TQRadioButton *active_tile; + TQCheckBox *active_maximize; + KIntNumInput *delays; + KIntNumInput *distance; + TQWidget *active_desktop_conf; + TQWidget *active_tile_conf; + + TDEConfig *config; + bool standAlone; +}; + class KAdvancedConfig : public TDECModule { Q_OBJECT @@ -206,9 +247,6 @@ public: private slots: void shadeHoverChanged(bool); - //copied from kcontrol/konq/twindesktop, aleXXX - void setEBorders(); - void changed() { emit TDECModule::changed(true); } private: @@ -226,24 +264,6 @@ private: TDEConfig *config; bool standAlone; - int getActiveBorders( void ); - int getActiveBorderDelay(); - int getActiveBorderDistance(); - void setActiveBorders( int ); - void setActiveBorderDelay( int ); - void setActiveBorderDistance( int ); - - TQButtonGroup *active_box; - TQRadioButton *active_disable; - TQRadioButton *active_desktop; - TQCheckBox *active_move; - TQRadioButton *active_tile; - TQCheckBox *active_maximize; - KIntNumInput *delays; - KIntNumInput *distance; - TQWidget *active_desktop_conf; - TQWidget *active_tile_conf; - void setHideUtilityWindowsForInactive( bool ); TQCheckBox* hideUtilityWindowsForInactive; |