Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 7 months ago
parent 789fb7a1f7
commit 1d296b0a23
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -237,7 +237,7 @@ void board_2d::redrawAll( void )
if( init ) if( init )
return; return;
/* Set Qt::Orientation */ /* Set Orientation */
orientation = myResource->OPTION_Board_Orientation; orientation = myResource->OPTION_Board_Orientation;
if( localArmy != WHITE ) if( localArmy != WHITE )
orientation = !orientation; orientation = !orientation;
@ -507,11 +507,11 @@ void board_2d::mouseReleaseEvent( TQMouseEvent *event )
lastMoveWasDrag = TRUE; lastMoveWasDrag = TRUE;
} }
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
{ {
emit leftClick( position( event->pos() ) ); emit leftClick( position( event->pos() ) );
} }
if(event->button() == Qt::RightButton) if(event->button() == TQt::RightButton)
{ {
emit rightClick( position( event->pos() ) ); emit rightClick( position( event->pos() ) );
} }
@ -536,7 +536,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event )
event->accept(); event->accept();
if( DragSprite == NULL ) if( DragSprite == NULL )
{ {
if( event->state() & Qt::LeftButton ) if( event->state() & TQt::LeftButton )
{ {
if( abs( pressPoint.x() - event->pos().x() ) + abs( pressPoint.y() - event->pos().y() ) > 6 ) if( abs( pressPoint.x() - event->pos().x() ) + abs( pressPoint.y() - event->pos().y() ) > 6 )
{ {
@ -565,7 +565,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event )
else else
/* Not enough dragging */ /* Not enough dragging */
return; return;
} // End ( event->state() & Qt::LeftButton ) } // End ( event->state() & TQt::LeftButton )
else else
return; /* No dragging. Most events should end up here */ return; /* No dragging. Most events should end up here */
} }

@ -60,13 +60,13 @@ void Challenge_Graph_View::contentsMousePressEvent(TQMouseEvent* e)
{ {
Challenge_Rectangle *cr = dynamic_cast<Challenge_Rectangle *>(*it); Challenge_Rectangle *cr = dynamic_cast<Challenge_Rectangle *>(*it);
Challenge_Game *g = cr->getGame(); Challenge_Game *g = cr->getGame();
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
emit leftClick( g->id() ); emit leftClick( g->id() );
if( e->button() == Qt::RightButton ) if( e->button() == TQt::RightButton )
emit rightClick( g, e->globalPos() ); emit rightClick( g, e->globalPos() );
return; return;
} }
if( e->button() == Qt::RightButton ) if( e->button() == TQt::RightButton )
emit rightClick( NULL, e->globalPos() ); // We need to catch all right clicks emit rightClick( NULL, e->globalPos() ); // We need to catch all right clicks
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -756,7 +756,7 @@ void core::matchMenu( int opt )
case MENU_HINT: case MENU_HINT:
currentMatch->requestHint(); currentMatch->requestHint();
break; break;
/* Qt::Orientation */ /* Orientation */
case MENU_ORIENTATION: case MENU_ORIENTATION:
currentMatch->flip(); currentMatch->flip();
break; break;

@ -36,12 +36,12 @@ dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc
LABEL_Headline = new TQLabel( BOX_Parent ); LABEL_Headline = new TQLabel( BOX_Parent );
COMBO_Rated = new KComboBox( BOX_Parent ); COMBO_Rated = new KComboBox( BOX_Parent );
BOX_Time = new TQHBox( BOX_Parent ); BOX_Time = new TQHBox( BOX_Parent );
BOX_White = new TQGroupBox( 2, Qt::Horizontal, "-", BOX_Time ); BOX_White = new TQGroupBox( 2, TQt::Horizontal, "-", BOX_Time );
BOX_WhiteBase = new TQSpinBox( BOX_White ); BOX_WhiteBase = new TQSpinBox( BOX_White );
LABEL_WhiteBase = new TQLabel( BOX_White ); LABEL_WhiteBase = new TQLabel( BOX_White );
BOX_WhiteInc = new TQSpinBox( BOX_White ); BOX_WhiteInc = new TQSpinBox( BOX_White );
LABEL_WhiteInc = new TQLabel( BOX_White ); LABEL_WhiteInc = new TQLabel( BOX_White );
BOX_Black = new TQGroupBox( 2, Qt::Horizontal, "-", BOX_Time ); BOX_Black = new TQGroupBox( 2, TQt::Horizontal, "-", BOX_Time );
BOX_BlackBase = new TQSpinBox( BOX_Black ); BOX_BlackBase = new TQSpinBox( BOX_Black );
LABEL_BlackBase = new TQLabel( BOX_Black ); LABEL_BlackBase = new TQLabel( BOX_Black );
BOX_BlackInc = new TQSpinBox( BOX_Black ); BOX_BlackInc = new TQSpinBox( BOX_Black );

@ -34,28 +34,28 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Parent = makeVBoxMainWidget(); BOX_Parent = makeVBoxMainWidget();
BOX_NameProto = new TQHBox( BOX_Parent ); BOX_NameProto = new TQHBox( BOX_Parent );
BOX_Name = new TQGroupBox( 1, BOX_Name = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Engine Name" ), i18n( "Engine Name" ),
BOX_NameProto ); BOX_NameProto );
EDIT_Name = new KLineEdit( BOX_Name ); EDIT_Name = new KLineEdit( BOX_Name );
BOX_Protocol = new TQGroupBox( 1, BOX_Protocol = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Protocol" ), i18n( "Protocol" ),
BOX_NameProto ); BOX_NameProto );
EDIT_Protocol = new KComboBox( BOX_Protocol ); EDIT_Protocol = new KComboBox( BOX_Protocol );
BOX_Filename = new TQGroupBox( 2, BOX_Filename = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Engine Filename" ), i18n( "Engine Filename" ),
BOX_Parent ); BOX_Parent );
EDIT_Filename = new KLineEdit( BOX_Filename ); EDIT_Filename = new KLineEdit( BOX_Filename );
BUTTON_Filename = new TQPushButton( BOX_Filename ); BUTTON_Filename = new TQPushButton( BOX_Filename );
BOX_Arguments = new TQGroupBox( 1, BOX_Arguments = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Command Line Arguments" ), i18n( "Command Line Arguments" ),
BOX_Parent ); BOX_Parent );
EDIT_Arguments = new KLineEdit( BOX_Arguments ); EDIT_Arguments = new KLineEdit( BOX_Arguments );
BOX_LogFile = new TQGroupBox( 2, BOX_LogFile = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Log File" ), i18n( "Log File" ),
BOX_Parent ); BOX_Parent );
EDIT_LogFile = new KLineEdit( BOX_LogFile ); EDIT_LogFile = new KLineEdit( BOX_LogFile );

@ -29,7 +29,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
BOX_Parent = makeVBoxMainWidget(); BOX_Parent = makeVBoxMainWidget();
/* Select which server to connect to */ /* Select which server to connect to */
GROUP_Select_Server = new TQGroupBox( 1, Qt::Vertical, i18n( "Select Server" ), BOX_Parent ); GROUP_Select_Server = new TQGroupBox( 1, TQt::Vertical, i18n( "Select Server" ), BOX_Parent );
COMBO_Select_Server = new KComboBox ( GROUP_Select_Server ); COMBO_Select_Server = new KComboBox ( GROUP_Select_Server );
COMBO_Select_Server->setEditable( FALSE ); COMBO_Select_Server->setEditable( FALSE );
@ -48,7 +48,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
/* connect to right signal to the combobox */ /* connect to right signal to the combobox */
connect( COMBO_Select_Server, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotUpdateUser(const TQString &) ) ); connect( COMBO_Select_Server, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotUpdateUser(const TQString &) ) );
GROUP_Username = new TQGroupBox( 1, Qt::Horizontal, i18n("User info"), BOX_Parent); GROUP_Username = new TQGroupBox( 1, TQt::Horizontal, i18n("User info"), BOX_Parent);
BOX_ALIGN = new TQHBox( GROUP_Username ); BOX_ALIGN = new TQHBox( GROUP_Username );
BOX_TEXT = new TQVBox( BOX_ALIGN ); BOX_TEXT = new TQVBox( BOX_ALIGN );
TEXT_Login = new TQLabel( BOX_TEXT ); TEXT_Login = new TQLabel( BOX_TEXT );

@ -42,8 +42,8 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
BOX_Parent = makeHBoxMainWidget(); BOX_Parent = makeHBoxMainWidget();
BOX_Players = new TQVBox( BOX_Parent ); BOX_Players = new TQVBox( BOX_Parent );
BOX_White = new TQGroupBox(3, Qt::Horizontal, i18n("White"), BOX_Players ); BOX_White = new TQGroupBox(3, TQt::Horizontal, i18n("White"), BOX_Players );
BOX_Black = new TQGroupBox(3, Qt::Horizontal, i18n("Black"), BOX_Players ); BOX_Black = new TQGroupBox(3, TQt::Horizontal, i18n("Black"), BOX_Players );
IMAGE_White = new TQLabel( BOX_White ); IMAGE_White = new TQLabel( BOX_White );
IMAGE_Black = new TQLabel( BOX_Black ); IMAGE_Black = new TQLabel( BOX_Black );
@ -54,14 +54,14 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
LABEL_White_Name = new TQLabel( BOX_White_Detail ); LABEL_White_Name = new TQLabel( BOX_White_Detail );
LABEL_Black_Name = new TQLabel( BOX_Black_Detail ); LABEL_Black_Name = new TQLabel( BOX_Black_Detail );
GROUP_White_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_White_Detail ); GROUP_White_Type = new TQButtonGroup( 3, TQt::Vertical, BOX_White_Detail );
GROUP_White_Type->setExclusive( TRUE ); GROUP_White_Type->setExclusive( TRUE );
RADIO_White_Human = new TQRadioButton( i18n("Human"), GROUP_White_Type ); RADIO_White_Human = new TQRadioButton( i18n("Human"), GROUP_White_Type );
RADIO_White_PC = new TQRadioButton( i18n("Computer"), GROUP_White_Type ); RADIO_White_PC = new TQRadioButton( i18n("Computer"), GROUP_White_Type );
RADIO_White_Email = new TQRadioButton( i18n("Email"), GROUP_White_Type ); RADIO_White_Email = new TQRadioButton( i18n("Email"), GROUP_White_Type );
connect( GROUP_White_Type, TQT_SIGNAL( clicked(int)), this, TQT_SLOT( slotWhiteType(int))); connect( GROUP_White_Type, TQT_SIGNAL( clicked(int)), this, TQT_SLOT( slotWhiteType(int)));
GROUP_Black_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_Black_Detail ); GROUP_Black_Type = new TQButtonGroup( 3, TQt::Vertical, BOX_Black_Detail );
GROUP_Black_Type->setExclusive( TRUE ); GROUP_Black_Type->setExclusive( TRUE );
RADIO_Black_Human = new TQRadioButton( i18n("Human"), GROUP_Black_Type ); RADIO_Black_Human = new TQRadioButton( i18n("Human"), GROUP_Black_Type );
RADIO_Black_PC = new TQRadioButton( i18n("Computer"), GROUP_Black_Type ); RADIO_Black_PC = new TQRadioButton( i18n("Computer"), GROUP_Black_Type );
@ -81,7 +81,7 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
} }
/* Time for White */ /* Time for White */
GRID_White_Time = new TQGrid( 2, Qt::Horizontal, BOX_White ); GRID_White_Time = new TQGrid( 2, TQt::Horizontal, BOX_White );
LABEL_White_Base = new TQLabel( i18n("Base Time:"), GRID_White_Time ); LABEL_White_Base = new TQLabel( i18n("Base Time:"), GRID_White_Time );
SPIN_White_Base = new TQSpinBox( 0, 120, 1, GRID_White_Time ); SPIN_White_Base = new TQSpinBox( 0, 120, 1, GRID_White_Time );
SPIN_White_Base->setSuffix( i18n(" min.") ); SPIN_White_Base->setSuffix( i18n(" min.") );
@ -98,7 +98,7 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
connect( SPIN_White_Inc, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteInc(int))); connect( SPIN_White_Inc, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteInc(int)));
/* Time for Black */ /* Time for Black */
GRID_Black_Time = new TQGrid( 2, Qt::Horizontal, BOX_Black ); GRID_Black_Time = new TQGrid( 2, TQt::Horizontal, BOX_Black );
LABEL_Black_Base = new TQLabel( i18n("Base Time:"), GRID_Black_Time ); LABEL_Black_Base = new TQLabel( i18n("Base Time:"), GRID_Black_Time );
SPIN_Black_Base = new TQSpinBox( 0, 120, 1, GRID_Black_Time ); SPIN_Black_Base = new TQSpinBox( 0, 120, 1, GRID_Black_Time );
SPIN_Black_Base->setSuffix( i18n(" min.") ); SPIN_Black_Base->setSuffix( i18n(" min.") );

@ -37,14 +37,14 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
BOX_Parent = makeVBoxMainWidget(); BOX_Parent = makeVBoxMainWidget();
BOX_Engine = new TQGroupBox( 1, BOX_Engine = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Computer Players" ), i18n( "Computer Players" ),
BOX_Parent ); BOX_Parent );
COMBO_Engine = new KComboBox( BOX_Engine ); COMBO_Engine = new KComboBox( BOX_Engine );
COMBO_Engine->setEditable( FALSE ); COMBO_Engine->setEditable( FALSE );
// BOX_EngineHelper = new TQGroupBox( 1, // BOX_EngineHelper = new TQGroupBox( 1,
// Qt::Horizontal, // TQt::Horizontal,
// i18n( "Computer Players' Helper" ), // i18n( "Computer Players' Helper" ),
// BOX_Parent ); // BOX_Parent );
// COMBO_EngineHelper = new KComboBox( BOX_Engine ); // COMBO_EngineHelper = new KComboBox( BOX_Engine );
@ -57,7 +57,7 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
GROUP_Strength = new TQGroupBox( 3, GROUP_Strength = new TQGroupBox( 3,
Qt::Horizontal, TQt::Horizontal,
i18n( "Player Strength" ), i18n( "Player Strength" ),
BOX_Parent ); BOX_Parent );
LABEL_Str_Min = new TQLabel( i18n( "Weak" ), GROUP_Strength ); LABEL_Str_Min = new TQLabel( i18n( "Weak" ), GROUP_Strength );
@ -65,7 +65,7 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
7, 7,
1, 1,
Resource->Strength[ 1 * ( Army == BLACK ) ], Resource->Strength[ 1 * ( Army == BLACK ) ],
Qt::Horizontal, TQt::Horizontal,
GROUP_Strength ); GROUP_Strength );
LABEL_Str_Max = new TQLabel( i18n( "Strong" ), GROUP_Strength ); LABEL_Str_Max = new TQLabel( i18n( "Strong" ), GROUP_Strength );
SLIDER_Strength->setTickmarks( TQSlider::Below ); SLIDER_Strength->setTickmarks( TQSlider::Below );

@ -33,26 +33,26 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Parent = makeVBoxMainWidget(); BOX_Parent = makeVBoxMainWidget();
BOX_Name = new TQGroupBox( 1, BOX_Name = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Server Name" ), i18n( "Server Name" ),
BOX_Parent ); BOX_Parent );
EDIT_Name = new KLineEdit( BOX_Name ); EDIT_Name = new KLineEdit( BOX_Name );
BOX_URLPort = new TQHBox( BOX_Parent ); BOX_URLPort = new TQHBox( BOX_Parent );
BOX_URL = new TQGroupBox( 1, BOX_URL = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Server URL" ), i18n( "Server URL" ),
BOX_URLPort ); BOX_URLPort );
EDIT_URL = new KLineEdit( BOX_URL ); EDIT_URL = new KLineEdit( BOX_URL );
BOX_Port = new TQGroupBox( 1, BOX_Port = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Server Port" ), i18n( "Server Port" ),
BOX_URLPort ); BOX_URLPort );
EDIT_Port = new KLineEdit( BOX_Port ); EDIT_Port = new KLineEdit( BOX_Port );
BOX_UNameStore = new TQHBox( BOX_Parent ); BOX_UNameStore = new TQHBox( BOX_Parent );
BOX_UserName = new TQGroupBox( 1, BOX_UserName = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Username" ), i18n( "Username" ),
BOX_UNameStore ); BOX_UNameStore );
EDIT_UserName = new KLineEdit( BOX_UserName ); EDIT_UserName = new KLineEdit( BOX_UserName );
@ -60,14 +60,14 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Pass = new TQHBox( BOX_Parent ); BOX_Pass = new TQHBox( BOX_Parent );
BOX_Password = new TQGroupBox( 1, BOX_Password = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Password" ), i18n( "Password" ),
BOX_Pass ); BOX_Pass );
EDIT_Password = new KLineEdit( BOX_Password ); EDIT_Password = new KLineEdit( BOX_Password );
EDIT_Password->setEchoMode( TQLineEdit::Password ); EDIT_Password->setEchoMode( TQLineEdit::Password );
BOX_PasswordRetype = new TQGroupBox( 1, BOX_PasswordRetype = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Confirm Password" ), i18n( "Confirm Password" ),
BOX_Pass ); BOX_Pass );
EDIT_PasswordRetype = new KLineEdit( BOX_PasswordRetype ); EDIT_PasswordRetype = new KLineEdit( BOX_PasswordRetype );
@ -75,7 +75,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
/* Use Timeseal? */ /* Use Timeseal? */
GROUP_Timeseal = new TQGroupBox( 2, GROUP_Timeseal = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Timeseal" ), i18n( "Timeseal" ),
BOX_Parent ); BOX_Parent );
EDIT_Timeseal = new KLineEdit( GROUP_Timeseal ); EDIT_Timeseal = new KLineEdit( GROUP_Timeseal );
@ -84,7 +84,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
connect( BUTTON_Timeseal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Timeseal() ) ); connect( BUTTON_Timeseal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Timeseal() ) );
BOX_LogFile = new TQGroupBox( 2, BOX_LogFile = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Log File" ), i18n( "Log File" ),
BOX_Parent ); BOX_Parent );
EDIT_LogFile = new KLineEdit( BOX_LogFile ); EDIT_LogFile = new KLineEdit( BOX_LogFile );

@ -77,7 +77,7 @@ KnightsTextView::~KnightsTextView()
/////////////////////////////////////// ///////////////////////////////////////
void KnightsTextView::viewportMousePressEvent( TQMouseEvent *e ) void KnightsTextView::viewportMousePressEvent( TQMouseEvent *e )
{ {
if( e->button() == Qt::RightButton ) if( e->button() == TQt::RightButton )
{ {
emit rightButtonClicked( e->globalPos() ); emit rightButtonClicked( e->globalPos() );
display_menuView( e->globalPos() ); display_menuView( e->globalPos() );

@ -32,7 +32,7 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
this, TQT_SLOT( slot_enableAudio(bool) ) ); this, TQT_SLOT( slot_enableAudio(bool) ) );
GROUP_Theme = new TQGroupBox( 1, GROUP_Theme = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Audio Themes" ), i18n( "Audio Themes" ),
parent ); parent );
addWidget( GROUP_Theme ); addWidget( GROUP_Theme );
@ -44,9 +44,9 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
BOX_Main = new TQHBox( parent ); BOX_Main = new TQHBox( parent );
addWidget( BOX_Main ); addWidget( BOX_Main );
GROUP_Volume = new TQGroupBox( 3, Qt::Vertical, i18n( "Volume" ), BOX_Main ); GROUP_Volume = new TQGroupBox( 3, TQt::Vertical, i18n( "Volume" ), BOX_Main );
Vol_Max = new TQLabel( i18n( "Maximum" ), GROUP_Volume ); Vol_Max = new TQLabel( i18n( "Maximum" ), GROUP_Volume );
Current_Volume = new TQSlider ( 0, 100, 10, Resource->Audio_Volume, Qt::Vertical, GROUP_Volume ); Current_Volume = new TQSlider ( 0, 100, 10, Resource->Audio_Volume, TQt::Vertical, GROUP_Volume );
connect( Current_Volume, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_currentVolume(int) ) ); connect( Current_Volume, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_currentVolume(int) ) );
Current_Volume->setTickmarks( TQSlider::Right ); Current_Volume->setTickmarks( TQSlider::Right );
Vol_Min = new TQLabel( i18n( "Minimum" ), GROUP_Volume ); Vol_Min = new TQLabel( i18n( "Minimum" ), GROUP_Volume );

@ -70,18 +70,18 @@ void setPageDisplay::initTab1( void )
Tab1->setMargin( margin ); Tab1->setMargin( margin );
BOX_Themes = new TQHBox( Tab1 ); BOX_Themes = new TQHBox( Tab1 );
GROUP_Boards = new TQGroupBox( 1, GROUP_Boards = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Board Themes" ), i18n( "Board Themes" ),
BOX_Themes ); BOX_Themes );
Current_Boards = new KComboBox ( GROUP_Boards ); Current_Boards = new KComboBox ( GROUP_Boards );
GROUP_Chessmen = new TQGroupBox( 1, GROUP_Chessmen = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Chessman Themes" ), i18n( "Chessman Themes" ),
BOX_Themes ); BOX_Themes );
Current_Chessmen = new KComboBox ( GROUP_Chessmen ); Current_Chessmen = new KComboBox ( GROUP_Chessmen );
GROUP_Theme_Size = new TQGroupBox( 3, GROUP_Theme_Size = new TQGroupBox( 3,
Qt::Horizontal, TQt::Horizontal,
i18n( "Theme Size" ), i18n( "Theme Size" ),
Tab1 ); Tab1 );
@ -90,11 +90,11 @@ void setPageDisplay::initTab1( void )
14, 14,
2, 2,
( Resource->ThemeSize - IMAGE_MIN ) / 8 , ( Resource->ThemeSize - IMAGE_MIN ) / 8 ,
Qt::Horizontal, TQt::Horizontal,
GROUP_Theme_Size ); GROUP_Theme_Size );
Size_Max = new TQLabel( i18n( "Large" ), GROUP_Theme_Size ); Size_Max = new TQLabel( i18n( "Large" ), GROUP_Theme_Size );
GROUP_SCID_Images = new TQGroupBox( 2, Qt::Horizontal, i18n("Player Images File:"), Tab1 ); GROUP_SCID_Images = new TQGroupBox( 2, TQt::Horizontal, i18n("Player Images File:"), Tab1 );
EDIT_SCID_Images = new KLineEdit( GROUP_SCID_Images ); EDIT_SCID_Images = new KLineEdit( GROUP_SCID_Images );
EDIT_SCID_Images->setText( Resource->SCID_Image_Path ); EDIT_SCID_Images->setText( Resource->SCID_Image_Path );
connect( EDIT_SCID_Images, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_SCID_Images(const TQString&) ) ); connect( EDIT_SCID_Images, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_SCID_Images(const TQString&) ) );
@ -103,7 +103,7 @@ void setPageDisplay::initTab1( void )
connect( BUTTON_SCID_Images, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_SCID_Images_Button() ) ); connect( BUTTON_SCID_Images, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_SCID_Images_Button() ) );
GROUP_General_Graphics = new TQGroupBox( 4, GROUP_General_Graphics = new TQGroupBox( 4,
Qt::Vertical, TQt::Vertical,
i18n( "Other Display Options" ), i18n( "Other Display Options" ),
Tab1 ); Tab1 );

@ -29,7 +29,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Engines to play White */ /* Engines to play White */
GROUP_White_Current = new TQGroupBox( 3, GROUP_White_Current = new TQGroupBox( 3,
Qt::Vertical, TQt::Vertical,
i18n( "Engines to Play White" ), i18n( "Engines to Play White" ),
BOX_Current ); BOX_Current );
@ -41,7 +41,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Engines to play Black */ /* Engines to play Black */
GROUP_Black_Current = new TQGroupBox( 3, GROUP_Black_Current = new TQGroupBox( 3,
Qt::Vertical, TQt::Vertical,
i18n( "Engines to Play Black" ), i18n( "Engines to Play Black" ),
BOX_Current ); BOX_Current );
@ -53,7 +53,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
/* Chess Engines ListView */ /* Chess Engines ListView */
GROUP_Engines = new TQGroupBox( 2, GROUP_Engines = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Chess Engines" ), i18n( "Chess Engines" ),
parent ); parent );
addWidget( GROUP_Engines ); addWidget( GROUP_Engines );
@ -69,7 +69,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
Engines_ListView->setShowSortIndicator( TRUE ); Engines_ListView->setShowSortIndicator( TRUE );
Engines_ListView->restoreLayout( kapp->config(), "Engines_ListView" ); Engines_ListView->restoreLayout( kapp->config(), "Engines_ListView" );
Engines_ButtonBox = new KButtonBox( GROUP_Engines,Qt::Vertical ); Engines_ButtonBox = new KButtonBox( GROUP_Engines,TQt::Vertical );
Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) ); Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) );
Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) ); Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) ); Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );

@ -26,7 +26,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
Resource = Rsrc; Resource = Rsrc;
GROUP_UserName = new TQGroupBox( 1, GROUP_UserName = new TQGroupBox( 1,
Qt::Horizontal, TQt::Horizontal,
i18n( "Your Name:" ), i18n( "Your Name:" ),
parent ); parent );
addWidget( GROUP_UserName ); addWidget( GROUP_UserName );
@ -37,7 +37,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
BOX_SaveInit = new TQHBox( parent ); BOX_SaveInit = new TQHBox( parent );
addWidget( BOX_SaveInit ); addWidget( BOX_SaveInit );
GROUP_OnInit = new TQButtonGroup( 3, Qt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit ); GROUP_OnInit = new TQButtonGroup( 3, TQt::Vertical, i18n("When Knights Begins It Should:"), BOX_SaveInit );
BUTTON_Init_Nothing = new TQRadioButton( i18n( "Do Nothing" ), GROUP_OnInit ); BUTTON_Init_Nothing = new TQRadioButton( i18n( "Do Nothing" ), GROUP_OnInit );
BUTTON_Init_VsPC = new TQRadioButton( i18n( "Start a Match vs. PC" ), GROUP_OnInit ); BUTTON_Init_VsPC = new TQRadioButton( i18n( "Start a Match vs. PC" ), GROUP_OnInit );
BUTTON_Init_Connect = new TQRadioButton( i18n( "Connect to ICS" ), GROUP_OnInit ); BUTTON_Init_Connect = new TQRadioButton( i18n( "Connect to ICS" ), GROUP_OnInit );
@ -48,7 +48,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
connect( GROUP_OnInit, TQT_SIGNAL( clicked(int) ), connect( GROUP_OnInit, TQT_SIGNAL( clicked(int) ),
this, TQT_SLOT( slot_Init(int) ) ); this, TQT_SLOT( slot_Init(int) ) );
GROUP_AutoSave = new TQButtonGroup( 3, Qt::Vertical, i18n("Save Match on Close?"), BOX_SaveInit ); GROUP_AutoSave = new TQButtonGroup( 3, TQt::Vertical, i18n("Save Match on Close?"), BOX_SaveInit );
BUTTON_AutoSave_Yes = new TQRadioButton( i18n( "Yes" ), GROUP_AutoSave ); BUTTON_AutoSave_Yes = new TQRadioButton( i18n( "Yes" ), GROUP_AutoSave );
BUTTON_AutoSave_No = new TQRadioButton( i18n( "No" ), GROUP_AutoSave ); BUTTON_AutoSave_No = new TQRadioButton( i18n( "No" ), GROUP_AutoSave );
BUTTON_AutoSave_Ask = new TQRadioButton( i18n( "Ask" ), GROUP_AutoSave ); BUTTON_AutoSave_Ask = new TQRadioButton( i18n( "Ask" ), GROUP_AutoSave );
@ -60,7 +60,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
this, TQT_SLOT( slot_AutoSave(int) ) ); this, TQT_SLOT( slot_AutoSave(int) ) );
GROUP_Reuse_PGN = new TQGroupBox( 2, GROUP_Reuse_PGN = new TQGroupBox( 2,
Qt::Vertical, TQt::Vertical,
i18n( "Append to Save File:" ), i18n( "Append to Save File:" ),
parent ); parent );
addWidget( GROUP_Reuse_PGN ); addWidget( GROUP_Reuse_PGN );

@ -52,7 +52,7 @@ void setPageServers::initTab1( void )
/* Current Server */ /* Current Server */
GROUP_Current = new TQGroupBox( 1, GROUP_Current = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Current Server" ), i18n( "Current Server" ),
Tab1 ); Tab1 );
@ -61,7 +61,7 @@ void setPageServers::initTab1( void )
/* Chess Servers ListView */ /* Chess Servers ListView */
GROUP_Servers = new TQGroupBox( 2, GROUP_Servers = new TQGroupBox( 2,
Qt::Horizontal, TQt::Horizontal,
i18n( "Chess Servers" ), i18n( "Chess Servers" ),
Tab1 ); Tab1 );
@ -73,7 +73,7 @@ void setPageServers::initTab1( void )
Servers_ListView->setShowSortIndicator( TRUE ); Servers_ListView->setShowSortIndicator( TRUE );
Servers_ListView->restoreLayout( kapp->config(), "Servers_ListView" ); Servers_ListView->restoreLayout( kapp->config(), "Servers_ListView" );
Servers_ButtonBox = new KButtonBox( GROUP_Servers,Qt::Vertical ); Servers_ButtonBox = new KButtonBox( GROUP_Servers,TQt::Vertical );
Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) ); Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) );
Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) ); Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) );
Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) ); Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) );
@ -102,7 +102,7 @@ void setPageServers::initTab2( void )
/* Current Profanity Filter */ /* Current Profanity Filter */
BOX_Profanity = new TQGroupBox( 1, BOX_Profanity = new TQGroupBox( 1,
Qt::Vertical, TQt::Vertical,
i18n( "Profanity Filter" ), i18n( "Profanity Filter" ),
Tab2 ); Tab2 );
COMBO_Profanity = new KComboBox ( BOX_Profanity ); COMBO_Profanity = new KComboBox ( BOX_Profanity );

@ -60,7 +60,7 @@ void TabGrip::paintEvent( TQPaintEvent* )
void TabGrip::mousePressEvent( TQMouseEvent *event ) void TabGrip::mousePressEvent( TQMouseEvent *event )
{ {
event->accept(); event->accept();
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
{ {
couldDrag = TRUE; couldDrag = TRUE;
offset = mapToGlobal( event->pos() ); offset = mapToGlobal( event->pos() );
@ -96,7 +96,7 @@ void TabGrip::mouseMoveEvent( TQMouseEvent *event )
void TabGrip::mouseReleaseEvent( TQMouseEvent *event ) void TabGrip::mouseReleaseEvent( TQMouseEvent *event )
{ {
event->accept(); event->accept();
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
{ {
couldDrag = FALSE; couldDrag = FALSE;
if( isDragging ) if( isDragging )

@ -219,7 +219,7 @@ void thinbuttons::mousePressEvent( TQMouseEvent *event )
int margin, xpos(0), index(0); int margin, xpos(0), index(0);
/* We only want RightClick */ /* We only want RightClick */
if(event->button() != Qt::RightButton) if(event->button() != TQt::RightButton)
{ {
return; return;
} }

@ -97,7 +97,7 @@ void wiz_setup::initPage2( void )
pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) ); pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) );
P2B1->addWidget( pgnExplain, 1, 3 ); P2B1->addWidget( pgnExplain, 1, 3 );
pgnButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights handle PGN files?" ), Page2 ); pgnButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights handle PGN files?" ), Page2 );
pgnYes = new TQRadioButton( i18n( "Yes" ), pgnButtons ); pgnYes = new TQRadioButton( i18n( "Yes" ), pgnButtons );
pgnNo = new TQRadioButton( i18n( "No" ), pgnButtons ); pgnNo = new TQRadioButton( i18n( "No" ), pgnButtons );
pgnButtons->setButton( 0 ); pgnButtons->setButton( 0 );
@ -125,7 +125,7 @@ void wiz_setup::initPage3( void )
engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) ); engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) );
P3B1->addWidget( engineExplain, 1, 3 ); P3B1->addWidget( engineExplain, 1, 3 );
engineButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights search for chess engines?" ), Page3 ); engineButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights search for chess engines?" ), Page3 );
engineYes = new TQRadioButton( i18n( "Yes" ), engineButtons ); engineYes = new TQRadioButton( i18n( "Yes" ), engineButtons );
engineNo = new TQRadioButton( i18n( "No" ), engineButtons ); engineNo = new TQRadioButton( i18n( "No" ), engineButtons );
engineButtons->setButton( 0 ); engineButtons->setButton( 0 );
@ -153,7 +153,7 @@ void wiz_setup::initPage4( void )
serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) ); serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) );
P4B1->addWidget( serverExplain, 1, 3 ); P4B1->addWidget( serverExplain, 1, 3 );
serverButtons = new TQButtonGroup( 2, Qt::Vertical, i18n( "Let Knights configure chess servers?" ), Page4 ); serverButtons = new TQButtonGroup( 2, TQt::Vertical, i18n( "Let Knights configure chess servers?" ), Page4 );
serverYes = new TQRadioButton( i18n( "Yes" ), serverButtons ); serverYes = new TQRadioButton( i18n( "Yes" ), serverButtons );
serverNo = new TQRadioButton( i18n( "No" ), serverButtons ); serverNo = new TQRadioButton( i18n( "No" ), serverButtons );
serverButtons->setButton( 0 ); serverButtons->setButton( 0 );
@ -210,7 +210,7 @@ void wiz_setup::initPage6( void )
licenseText.append( "</K_STD>" ); licenseText.append( "</K_STD>" );
licenseView->setText( licenseText ); licenseView->setText( licenseText );
licenseButtons = new TQButtonGroup( 2, Qt::Horizontal, i18n( "Do you accept the terms of our license?" ), Page6 ); licenseButtons = new TQButtonGroup( 2, TQt::Horizontal, i18n( "Do you accept the terms of our license?" ), Page6 );
licenseYes = new TQRadioButton( i18n( "Yes" ), licenseButtons ); licenseYes = new TQRadioButton( i18n( "Yes" ), licenseButtons );
licenseNo = new TQRadioButton( i18n( "No" ), licenseButtons ); licenseNo = new TQRadioButton( i18n( "No" ), licenseButtons );
licenseButtons->setButton( 1 ); licenseButtons->setButton( 1 );

Loading…
Cancel
Save