diff options
Diffstat (limited to 'knights/dlg_engine.cpp')
-rw-r--r-- | knights/dlg_engine.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/knights/dlg_engine.cpp b/knights/dlg_engine.cpp index 09e23a4..dda8a59 100644 --- a/knights/dlg_engine.cpp +++ b/knights/dlg_engine.cpp @@ -22,11 +22,11 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQString ItemName ) : KDialogBase( parent, name, - TRUE, + true, i18n("Configure Engine"), Help|Ok|Apply|Cancel, Ok, - TRUE ) + true ) { Resource = Rsrc; Name = ItemName; @@ -69,7 +69,7 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr /* Protocol ComboBox */ EDIT_Protocol->insertItem( TQString( "XBoard" ) ); EDIT_Protocol->insertItem( TQString( "UCI" ) ); - EDIT_Protocol->setEditable( FALSE ); + EDIT_Protocol->setEditable( false ); /* Load in data if this is a modification */ if( !Name.isEmpty() ) { @@ -94,15 +94,15 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr } } /* Init the buttons */ - showButtonCancel( TRUE ); - showButtonOK( TRUE ); - showButtonApply( TRUE ); - showButton( Help, TRUE ); + showButtonCancel( true ); + showButtonOK( true ); + showButtonApply( true ); + showButton( Help, true ); - enableButtonCancel( TRUE ); - enableButtonOK( TRUE ); - enableButtonApply( FALSE ); - enableButton( Help, TRUE ); + enableButtonCancel( true ); + enableButtonOK( true ); + enableButtonApply( false ); + enableButton( Help, true ); setHelp( TQString( "configure-engines" ) ); /* Make Connections */ @@ -162,7 +162,7 @@ void dlg_engine::slotApply( void ) default: break; } - enableButtonApply( FALSE ); + enableButtonApply( false ); } /////////////////////////////////////// // @@ -194,7 +194,7 @@ void dlg_engine::slotFilenameDialog( void ) tmp = temp.findRev( '/' ); EDIT_Name->setText( temp.remove( 0, tmp + 1 ) ); } - enableButtonApply( TRUE ); + enableButtonApply( true ); } /////////////////////////////////////// // @@ -211,7 +211,7 @@ void dlg_engine::slotLogFileDialog( void ) TQString( "Find Log..." ) ); if( temp.isEmpty() ) return; EDIT_LogFile->setText( temp ); - enableButtonApply( TRUE ); + enableButtonApply( true ); } /////////////////////////////////////// // @@ -221,6 +221,6 @@ void dlg_engine::slotLogFileDialog( void ) void dlg_engine::slotProtocol( int Index ) { if(Index); // No-op to stop compile warning. - enableButtonApply( TRUE ); + enableButtonApply( true ); } |