By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2665
Collapse All | Expand All

(-)a/doc/help_en.docbook (+3 lines)
Lines 352-357 Link Here
352
				<para>
352
				<para>
353
					<menuchoice><guimenu>Call Flag Automatically</guimenu></menuchoice> This option will automatically declare you the winner of the match if your opponent's clock runs out of time.
353
					<menuchoice><guimenu>Call Flag Automatically</guimenu></menuchoice> This option will automatically declare you the winner of the match if your opponent's clock runs out of time.
354
				</para>
354
				</para>
355
				<para>
356
					<menuchoice><guimenu>Delete Log Files on Exit</guimenu></menuchoice> 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
357
				</para>
355
		</sect1>
358
		</sect1>
356
		<sect1 id="configure-display">
359
		<sect1 id="configure-display">
357
			<title>Display</title>
360
			<title>Display</title>
(-)a/knights/knights.cpp (+20 lines)
Lines 49-54 Knights::Knights(TDECmdLineArgs *Args, TQWidget *parent, const char *name) : TDE Link Here
49
	SplashScreen = NULL;
49
	SplashScreen = NULL;
50
	setFocusPolicy( TQ_ClickFocus );
50
	setFocusPolicy( TQ_ClickFocus );
51
}
51
}
52
52
Knights::~Knights()
53
Knights::~Knights()
53
{
54
{
54
	if( !InitAll )
55
	if( !InitAll )
Lines 101-106 void Knights::menuClose(void) Link Here
101
{
102
{
102
	if( !queryClose() )
103
	if( !queryClose() )
103
		return;
104
		return;
105
		
104
	tqApp->quit();
106
	tqApp->quit();
105
}
107
}
106
///////////////////////////////////////
108
///////////////////////////////////////
Lines 114-119 bool Knights::queryClose(void) Link Here
114
}
116
}
115
///////////////////////////////////////
117
///////////////////////////////////////
116
//
118
//
119
//	Knights::aboutToQuit
120
//
121
///////////////////////////////////////
122
void Knights::aboutToQuit(void)
123
{
124
	if (Resource->OPTION_Delete_Logs)	
125
	{
126
		// Delete log files on exit. Only files named "game.###" and "log.###"
127
		// placed in the user home folder will be removed
128
		TQDir userdir( TQDir::homeDirPath(), "game.[0-9][0-9]*;log.[0-9][0-9]*" );
129
    for ( int i = 0; i < userdir.count(); i++ )
130
    {
131
        userdir.remove( userdir.absFilePath(userdir[i]), TRUE );
132
    }
133
	}
134
}
135
///////////////////////////////////////
136
//
117
//	Knights::KillAll
137
//	Knights::KillAll
118
//
138
//
119
///////////////////////////////////////
139
///////////////////////////////////////
(-)a/knights/knights.h (+1 lines)
Lines 72-77 class Knights : public TDEMainWindow Link Here
72
	public slots:
72
	public slots:
73
		void						KillAll( void );
73
		void						KillAll( void );
74
		void						menuClose( void );
74
		void						menuClose( void );
75
    void            aboutToQuit( void );
75
		/**		Yeah, they're sloppy, but I need my own geometry managment routines
76
		/**		Yeah, they're sloppy, but I need my own geometry managment routines
76
					because I don't like the "default" look my statusbar was getting
77
					because I don't like the "default" look my statusbar was getting
77
					( double-height ). Plus, I want the console to appear only when needed. */
78
					( double-height ). Plus, I want the console to appear only when needed. */
(-)a/knights/main.cpp (+1 lines)
Lines 81-85 int main(int argc, char *argv[]) Link Here
81
	/* Without this connection, the destructors are not called, and some
81
	/* Without this connection, the destructors are not called, and some
82
			housecleaning ( like destroying child processes ) isn't done */
82
			housecleaning ( like destroying child processes ) isn't done */
83
	a.connect( &a, TQT_SIGNAL( shutDown () ), knights, TQT_SLOT( KillAll() ) );
83
	a.connect( &a, TQT_SIGNAL( shutDown () ), knights, TQT_SLOT( KillAll() ) );
84
  a.connect( &a, SIGNAL( aboutToQuit() ), knights, SLOT( aboutToQuit() ) );
84
	return a.exec();
85
	return a.exec();
85
}
86
}
(-)a/knights/resource.cpp (+2 lines)
Lines 159-164 void resource::ConfigRead( void ) Link Here
159
	OPTION_Book_White = CFG->readBoolEntry( "BookWhite", FALSE );
159
	OPTION_Book_White = CFG->readBoolEntry( "BookWhite", FALSE );
160
	OPTION_Book_Black = CFG->readBoolEntry( "BookBlack", FALSE );
160
	OPTION_Book_Black = CFG->readBoolEntry( "BookBlack", FALSE );
161
	OPTION_Pause_On_Minimize = CFG->readBoolEntry( "PauseOnMinimize", TRUE );
161
	OPTION_Pause_On_Minimize = CFG->readBoolEntry( "PauseOnMinimize", TRUE );
162
	OPTION_Delete_Logs = CFG->readBoolEntry( "DeleteLogOnExit", FALSE );
162
	OPTION_Reuse_PGN = CFG->readBoolEntry( "ReusePGN", FALSE );
163
	OPTION_Reuse_PGN = CFG->readBoolEntry( "ReusePGN", FALSE );
163
	PGN_Filename = CFG->readEntry( "PGNFilename", TQString() );
164
	PGN_Filename = CFG->readEntry( "PGNFilename", TQString() );
164
	SCID_Image_Path = CFG->readEntry( "SCIDImages", TQString() );
165
	SCID_Image_Path = CFG->readEntry( "SCIDImages", TQString() );
Lines 235-240 void resource::ConfigWrite( void ) Link Here
235
	CFG->writeEntry( "BookBlack", OPTION_Book_Black );
236
	CFG->writeEntry( "BookBlack", OPTION_Book_Black );
236
	CFG->writeEntry( "BoardOrientation", OPTION_Board_Orientation );
237
	CFG->writeEntry( "BoardOrientation", OPTION_Board_Orientation );
237
	CFG->writeEntry( "PauseOnMinimize", OPTION_Pause_On_Minimize );
238
	CFG->writeEntry( "PauseOnMinimize", OPTION_Pause_On_Minimize );
239
	CFG->writeEntry( "DeleteLogOnExit", OPTION_Delete_Logs );
238
	CFG->writeEntry( "ReusePGN", OPTION_Reuse_PGN );
240
	CFG->writeEntry( "ReusePGN", OPTION_Reuse_PGN );
239
	CFG->writeEntry( "PGNFilename", PGN_Filename );
241
	CFG->writeEntry( "PGNFilename", PGN_Filename );
240
	CFG->writeEntry( "AutoCloseLastICS", OPTION_Auto_Close_Last_ICS );
242
	CFG->writeEntry( "AutoCloseLastICS", OPTION_Auto_Close_Last_ICS );
(-)a/knights/resource.h (+1 lines)
Lines 109-114 class resource Link Here
109
		bool									OPTION_Book_White;
109
		bool									OPTION_Book_White;
110
		bool									OPTION_Book_Black;
110
		bool									OPTION_Book_Black;
111
		bool									OPTION_Board_Orientation;
111
		bool									OPTION_Board_Orientation;
112
		bool									OPTION_Delete_Logs;
112
		bool									OPTION_Ponder;
113
		bool									OPTION_Ponder;
113
		bool									OPTION_Show_Coord;
114
		bool									OPTION_Show_Coord;
114
		bool									OPTION_Show_Last_Move;
115
		bool									OPTION_Show_Last_Move;
(-)a/knights/setpagegeneral.cpp (+20 lines)
Lines 18-23 Link Here
18
#include <tdefiledialog.h>
18
#include <tdefiledialog.h>
19
#include <kicontheme.h>
19
#include <kicontheme.h>
20
#include "setpagegeneral.moc"
20
#include "setpagegeneral.moc"
21
#include <tqwhatsthis.h>
21
22
22
setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
23
setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
23
{
24
{
Lines 95-100 setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout Link Here
95
	connect(	BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ),
96
	connect(	BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ),
96
						this, TQT_SLOT( slot_Auto_Flag(bool) ) );
97
						this, TQT_SLOT( slot_Auto_Flag(bool) ) );
97
	addWidget( BUTTON_Auto_Flag );
98
	addWidget( BUTTON_Auto_Flag );
99
100
	BUTTON_Delete_Logs = new TQCheckBox( i18n( "Delete Log Files on Exit" ), parent );
101
  TQWhatsThis::add( BUTTON_Delete_Logs, i18n("If set, chess engine log files will be deleted on exit. "
102
          "Only files named \"game.###\" and \"log.###\" placed in the user home folder will be removed"));
103
	BUTTON_Delete_Logs->setChecked( Resource->OPTION_Delete_Logs );
104
	connect(	BUTTON_Delete_Logs, TQT_SIGNAL( toggled(bool) ),
105
						this, TQT_SLOT( slot_Delete_Logs(bool) ) );
106
	addWidget( BUTTON_Delete_Logs );
107
98
}
108
}
99
setPageGeneral::~setPageGeneral()
109
setPageGeneral::~setPageGeneral()
100
{
110
{
Lines 173-178 void setPageGeneral::slot_Auto_Flag( bool state ) Link Here
173
}
183
}
174
///////////////////////////////////////
184
///////////////////////////////////////
175
//
185
//
186
//	setPageGeneral::slot_Delete_Logs
187
//
188
///////////////////////////////////////
189
void setPageGeneral::slot_Delete_Logs( bool state )
190
{
191
	Resource->OPTION_Delete_Logs = state;
192
	emit enableApply();
193
}
194
///////////////////////////////////////
195
//
176
//	setPageGeneral::slot_UserName
196
//	setPageGeneral::slot_UserName
177
//
197
//
178
///////////////////////////////////////
198
///////////////////////////////////////
(-)a/knights/setpagegeneral.h (+2 lines)
Lines 50-55 class setPageGeneral : public TQVBoxLayout Link Here
50
		void						slot_Pause_On_Minimize( bool state );
50
		void						slot_Pause_On_Minimize( bool state );
51
		void						slot_Auto_Queen( bool state );
51
		void						slot_Auto_Queen( bool state );
52
		void						slot_Auto_Flag( bool state );
52
		void						slot_Auto_Flag( bool state );
53
		void						slot_Delete_Logs( bool state );
53
		void						slot_Reuse_PGN( bool );
54
		void						slot_Reuse_PGN( bool );
54
		void						slot_PGN_Filename( const TQString& );
55
		void						slot_PGN_Filename( const TQString& );
55
		void						slot_PGN_Filename_Button( void );
56
		void						slot_PGN_Filename_Button( void );
Lines 76-81 class setPageGeneral : public TQVBoxLayout Link Here
76
		TQCheckBox							*BUTTON_Pause_On_Minimize;
77
		TQCheckBox							*BUTTON_Pause_On_Minimize;
77
		TQCheckBox							*BUTTON_Auto_Queen;
78
		TQCheckBox							*BUTTON_Auto_Queen;
78
		TQCheckBox							*BUTTON_Auto_Flag;
79
		TQCheckBox							*BUTTON_Auto_Flag;
80
		TQCheckBox							*BUTTON_Delete_Logs;
79
};
81
};
80
82
81
#endif
83
#endif

Return to bug 2665