diff options
author | Michele Calgaro <[email protected]> | 2016-11-20 23:58:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2016-11-20 23:58:22 +0900 |
commit | b6887381d7062e2150c5511d50ac03421bcc211d (patch) | |
tree | 7235f10c87eda8b99e976f6eebf8a35ae1fbe75a /tdeioslave/trash/ktrashpropsdlgplugin.h | |
parent | 6110a523f9acb34a704fda02b2aa9d5e555358f5 (diff) | |
download | tdebase-b6887381d7062e2150c5511d50ac03421bcc211d.tar.gz tdebase-b6887381d7062e2150c5511d50ac03421bcc211d.zip |
Trash limit: add "fixed size" configuration option and code
improvements. This relates to bug 1923.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/trash/ktrashpropsdlgplugin.h')
-rw-r--r-- | tdeioslave/trash/ktrashpropsdlgplugin.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/tdeioslave/trash/ktrashpropsdlgplugin.h b/tdeioslave/trash/ktrashpropsdlgplugin.h index b62ba127d..d21dd4578 100644 --- a/tdeioslave/trash/ktrashpropsdlgplugin.h +++ b/tdeioslave/trash/ktrashpropsdlgplugin.h @@ -22,13 +22,14 @@ #ifndef KTRASHPROPSDLGPLUGIN_H #define KTRASHPROPSDLGPLUGIN_H -#include <kpropertiesdialog.h> +#include "kpropertiesdialog.h" class KDoubleSpinBox; class TQCheckBox; class TQComboBox; class TQFrame; class TQLabel; +class TQRadioButton; class TQSpinBox; class TrashImpl; @@ -43,21 +44,29 @@ class KTrashPropsDlgPlugin : public KPropsDlgPlugin virtual void applyChanges(); private slots: - void percentChanged( double ); + void percentSizeChanged( double ); + void fixedSizeChanged( double ); + void fixedSizeUnitActivated ( int ); + void rbPercentSizeToggled( bool ); + void rbFixedSizeToggled( bool ); void trashChanged( int ); void useTypeChanged(); - + private: void readConfig(); void writeConfig(); void setupGui( TQFrame *frame ); TQCheckBox *mUseTimeLimit; - TQSpinBox *mDays; + TQSpinBox *mDays; TQCheckBox *mUseSizeLimit; - TQWidget *mSizeWidget; - KDoubleSpinBox *mPercent; - TQLabel *mSizeLabel; + int mSizeLimitType; + TQWidget *mSizeWidget; + TQRadioButton *mRbPercentSize, *mRbFixedSize; + KDoubleSpinBox *mPercentSize; + KDoubleSpinBox *mFixedSize; + TQComboBox *mFixedSizeUnit; + TQLabel *mSizeLabel; TQComboBox *mLimitReachedAction; TrashImpl *mTrashImpl; @@ -67,7 +76,10 @@ class KTrashPropsDlgPlugin : public KPropsDlgPlugin bool useTimeLimit; int days; bool useSizeLimit; + int sizeLimitType; double percent; + double fixedSize; + int fixedSizeUnit; int actionType; } ConfigEntry; |