summaryrefslogtreecommitdiffstats
path: root/knights/setpagegeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/setpagegeneral.cpp')
-rw-r--r--knights/setpagegeneral.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/knights/setpagegeneral.cpp b/knights/setpagegeneral.cpp
index 7dcf58e..d3731b9 100644
--- a/knights/setpagegeneral.cpp
+++ b/knights/setpagegeneral.cpp
@@ -18,6 +18,7 @@
#include <tdefiledialog.h>
#include <kicontheme.h>
#include "setpagegeneral.moc"
+#include <tqwhatsthis.h>
setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{
@@ -95,6 +96,15 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
connect( BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slot_Auto_Flag(bool) ) );
addWidget( BUTTON_Auto_Flag );
+
+ BUTTON_Delete_Logs = new TQCheckBox( i18n( "Delete Log Files on Exit" ), parent );
+ TQWhatsThis::add( BUTTON_Delete_Logs, i18n("If set, chess engine log files will be deleted on exit. "
+ "Only files named \"game.###\" and \"log.###\" placed in the user home folder will be removed"));
+ BUTTON_Delete_Logs->setChecked( Resource->OPTION_Delete_Logs );
+ connect( BUTTON_Delete_Logs, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slot_Delete_Logs(bool) ) );
+ addWidget( BUTTON_Delete_Logs );
+
}
setPageGeneral::~setPageGeneral()
{
@@ -173,6 +183,16 @@ void setPageGeneral::slot_Auto_Flag( bool state )
}
///////////////////////////////////////
//
+// setPageGeneral::slot_Delete_Logs
+//
+///////////////////////////////////////
+void setPageGeneral::slot_Delete_Logs( bool state )
+{
+ Resource->OPTION_Delete_Logs = state;
+ emit enableApply();
+}
+///////////////////////////////////////
+//
// setPageGeneral::slot_UserName
//
///////////////////////////////////////