Rename KIcon to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent e7c39a6e14
commit 64b0307ae8

@ -638,7 +638,7 @@ TQPixmap board_2d::getChessman( const int &pos )
} }
if( ( pos == premoveFrom ) || ( pos == premoveTo ) ) if( ( pos == premoveFrom ) || ( pos == premoveTo ) )
{ {
KIconEffect::semiTransparent( tmp ); TDEIconEffect::semiTransparent( tmp );
} }
return tmp; return tmp;
} }

@ -78,7 +78,7 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL ); menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL );
menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS ); menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER ); menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER );
menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), KIcon::Small ) ), menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), TDEIcon::Small ) ),
i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY ); i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
menuSeek->insertSeparator(); menuSeek->insertSeparator();
menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY ); menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );

@ -61,8 +61,8 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr
EDIT_LogFile = new KLineEdit( BOX_LogFile ); EDIT_LogFile = new KLineEdit( BOX_LogFile );
BUTTON_LogFile = new TQPushButton( BOX_LogFile ); BUTTON_LogFile = new TQPushButton( BOX_LogFile );
setMainWidget( BOX_Parent ); setMainWidget( BOX_Parent );
BUTTON_Filename->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_Filename->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
BUTTON_LogFile->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_LogFile->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
EDIT_Name->setMinimumWidth( 150 ); EDIT_Name->setMinimumWidth( 150 );
EDIT_Filename->setMinimumWidth( 300 ); EDIT_Filename->setMinimumWidth( 300 );
EDIT_Arguments->setMinimumWidth( 300 ); EDIT_Arguments->setMinimumWidth( 300 );

@ -80,7 +80,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BOX_Parent ); BOX_Parent );
EDIT_Timeseal = new KLineEdit( GROUP_Timeseal ); EDIT_Timeseal = new KLineEdit( GROUP_Timeseal );
BUTTON_Timeseal = new TQPushButton( GROUP_Timeseal ); BUTTON_Timeseal = new TQPushButton( GROUP_Timeseal );
BUTTON_Timeseal->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_Timeseal->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
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,
@ -91,7 +91,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
BUTTON_LogFile = new TQPushButton( BOX_LogFile ); BUTTON_LogFile = new TQPushButton( BOX_LogFile );
setMainWidget( BOX_Parent ); setMainWidget( BOX_Parent );
BUTTON_LogFile->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_LogFile->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
EDIT_Name->setMinimumWidth( 120 ); EDIT_Name->setMinimumWidth( 120 );
EDIT_URL->setMinimumWidth( 120 ); EDIT_URL->setMinimumWidth( 120 );
EDIT_UserName->setMinimumWidth( 120 ); EDIT_UserName->setMinimumWidth( 120 );

@ -61,21 +61,21 @@ dlg_settings::dlg_settings(TQWidget *parent, const char *name, resource *Rsrc )
/* Audio Page */ /* Audio Page */
FRAME_Audio = addPage( i18n( "Audio" ), FRAME_Audio = addPage( i18n( "Audio" ),
i18n( "These settings determine what Knights sounds like." ), i18n( "These settings determine what Knights sounds like." ),
Resource->LoadIcon( TQString("multimedia"), KIcon::Panel ) ); Resource->LoadIcon( TQString("multimedia"), TDEIcon::Panel ) );
PAGE_Audio = new setPageAudio( FRAME_Audio, Resource ); PAGE_Audio = new setPageAudio( FRAME_Audio, Resource );
connect( PAGE_Audio, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) ); connect( PAGE_Audio, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
/* Engines Page */ /* Engines Page */
FRAME_Engines = addPage( i18n( "Computer Opponents" ), FRAME_Engines = addPage( i18n( "Computer Opponents" ),
i18n( "Configure your chess engines here." ), i18n( "Configure your chess engines here." ),
Resource->LoadIcon( TQString("gear"), KIcon::Panel ) ); Resource->LoadIcon( TQString("gear"), TDEIcon::Panel ) );
PAGE_Engines = new setPageEngines( FRAME_Engines, Resource ); PAGE_Engines = new setPageEngines( FRAME_Engines, Resource );
connect( PAGE_Engines, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) ); connect( PAGE_Engines, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
/* Servers Page */ /* Servers Page */
FRAME_Servers = addPage( i18n( "Chess Servers" ), FRAME_Servers = addPage( i18n( "Chess Servers" ),
i18n( "Configure your internet chess servers here." ), i18n( "Configure your internet chess servers here." ),
Resource->LoadIcon( TQString("network"), KIcon::Panel ) ); Resource->LoadIcon( TQString("network"), TDEIcon::Panel ) );
PAGE_Servers = new setPageServers( FRAME_Servers, Resource ); PAGE_Servers = new setPageServers( FRAME_Servers, Resource );
connect( PAGE_Servers, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) ); connect( PAGE_Servers, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );

@ -247,7 +247,7 @@ void Knights::initMenus( void )
matchMenu->insertItem( i18n( "&Draw" ), drawMenu, MENU_DRAW ); matchMenu->insertItem( i18n( "&Draw" ), drawMenu, MENU_DRAW );
matchMenu->setItemEnabled( MENU_DRAW, FALSE ); matchMenu->setItemEnabled( MENU_DRAW, FALSE );
// MENU_RETRACT // MENU_RETRACT
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), TDEIcon::Small ) ),
i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT ); i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT );
matchMenu->setItemEnabled( MENU_RETRACT, FALSE ); matchMenu->setItemEnabled( MENU_RETRACT, FALSE );
matchMenu->setWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) ); matchMenu->setWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) );
@ -278,7 +278,7 @@ void Knights::initMenus( void )
matchMenu->setWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) ); matchMenu->setWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) );
matchMenu->insertSeparator(); matchMenu->insertSeparator();
// MENU_PAUSE // MENU_PAUSE
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("player_pause"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("player_pause"), TDEIcon::Small ) ),
i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE ); i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE );
matchMenu->setItemEnabled( MENU_PAUSE, FALSE ); matchMenu->setItemEnabled( MENU_PAUSE, FALSE );
matchMenu->setWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) ); matchMenu->setWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) );
@ -301,38 +301,38 @@ void Knights::initMenus( void )
fileMenu menu fileMenu menu
*/ */
// MENU_NEWGAME // MENU_NEWGAME
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), TDEIcon::Small ) ),
i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME ); i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME );
fileMenu->setWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) ); fileMenu->setWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) );
// MENU_LOAD // MENU_LOAD
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), TDEIcon::Small ) ),
i18n( "&Load Match..." ), Core, TQT_SLOT( load() ), CTRL+Key_L, MENU_LOAD ); i18n( "&Load Match..." ), Core, TQT_SLOT( load() ), CTRL+Key_L, MENU_LOAD );
fileMenu->setWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) ); fileMenu->setWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_SAVE // MENU_SAVE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), TDEIcon::Small ) ),
i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE ); i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE );
fileMenu->setItemEnabled( MENU_SAVE, FALSE ); fileMenu->setItemEnabled( MENU_SAVE, FALSE );
fileMenu->setWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) ); fileMenu->setWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
// MENU_SAVEAS // MENU_SAVEAS
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), TDEIcon::Small ) ),
i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS ); i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS );
fileMenu->setItemEnabled( MENU_SAVEAS, FALSE ); fileMenu->setItemEnabled( MENU_SAVEAS, FALSE );
fileMenu->setWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) ); fileMenu->setWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_CONNECT // MENU_CONNECT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), TDEIcon::Small ) ),
i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT ); i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT );
fileMenu->setWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) ); fileMenu->setWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_PRINT // MENU_PRINT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), TDEIcon::Small ) ),
i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT ); i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT );
fileMenu->setItemEnabled( MENU_PRINT, FALSE ); fileMenu->setItemEnabled( MENU_PRINT, FALSE );
fileMenu->setWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) ); fileMenu->setWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_CLOSE // MENU_CLOSE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), TDEIcon::Small ) ),
i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE ); i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
fileMenu->setItemEnabled( MENU_CLOSE, FALSE ); fileMenu->setItemEnabled( MENU_CLOSE, FALSE );
fileMenu->setWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) ); fileMenu->setWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) );
@ -342,7 +342,7 @@ void Knights::initMenus( void )
fileMenu->setWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) ); fileMenu->setWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_QUIT // MENU_QUIT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), TDEIcon::Small ) ),
i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_QUIT ); i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_QUIT );
fileMenu->setWhatsThis( MENU_QUIT, i18n( "The Quit command will stop all matches and exit Knights." ) ); fileMenu->setWhatsThis( MENU_QUIT, i18n( "The Quit command will stop all matches and exit Knights." ) );
/* /*
@ -352,11 +352,11 @@ void Knights::initMenus( void )
settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES ); settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES );
settingsMenu->setWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) ); settingsMenu->setWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) );
// MENU_BINDINGS_DIALOG // MENU_BINDINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), KIcon::Small ) ), settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), TDEIcon::Small ) ),
i18n( "Configure &Key Bindings..." ), this, TQT_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG ); i18n( "Configure &Key Bindings..." ), this, TQT_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG );
settingsMenu->setWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) ); settingsMenu->setWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) );
// MENU_SETTINGS_DIALOG // MENU_SETTINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), KIcon::Small ) ), settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), TDEIcon::Small ) ),
i18n( "&Configure Knights..." ), this, TQT_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG ); i18n( "&Configure Knights..." ), this, TQT_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG );
settingsMenu->setWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) ); settingsMenu->setWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) );
/* /*
@ -838,14 +838,14 @@ void Knights::netConnect( void )
if(Core->isOnline()) if(Core->isOnline())
{ {
fileMenu->changeItem( MENU_CONNECT, TQIconSet( Resource->LoadIcon( TQString("connect_creating"), fileMenu->changeItem( MENU_CONNECT, TQIconSet( Resource->LoadIcon( TQString("connect_creating"),
KIcon::Small ) ), i18n( "Connect to Server" )); TDEIcon::Small ) ), i18n( "Connect to Server" ));
Core->goOffline(); Core->goOffline();
setCursor( Resource->CURSOR_Standard ); setCursor( Resource->CURSOR_Standard );
} }
else else
{ {
fileMenu->changeItem( MENU_CONNECT, TQIconSet( Resource->LoadIcon( TQString("connect_no"), fileMenu->changeItem( MENU_CONNECT, TQIconSet( Resource->LoadIcon( TQString("connect_no"),
KIcon::Small ) ), i18n( "Disconnect from Server" ) ); TDEIcon::Small ) ), i18n( "Disconnect from Server" ) );
/* /*
By passing Null as the ID, we're telling core that we're By passing Null as the ID, we're telling core that we're
creating a new internetio, not reusing an exsisting one. creating a new internetio, not reusing an exsisting one.
@ -914,13 +914,13 @@ void Knights::Settings(int opt)
if( Core->paused() ) if( Core->paused() )
{ {
matchMenu->changeItem( MENU_PAUSE, matchMenu->changeItem( MENU_PAUSE,
TQIconSet( Resource->LoadIcon( TQString("player_pause"), KIcon::Small ) ), TQIconSet( Resource->LoadIcon( TQString("player_pause"), TDEIcon::Small ) ),
i18n( "Pause" ) ); i18n( "Pause" ) );
} }
else else
{ {
matchMenu->changeItem( MENU_PAUSE, matchMenu->changeItem( MENU_PAUSE,
TQIconSet( Resource->LoadIcon( TQString("1rightarrow"), KIcon::Small ) ), TQIconSet( Resource->LoadIcon( TQString("1rightarrow"), TDEIcon::Small ) ),
i18n( "Resume" ) ); i18n( "Resume" ) );
} }
Core->matchMenu( MENU_PAUSE ); Core->matchMenu( MENU_PAUSE );

@ -40,21 +40,21 @@ KnightsTextView::KnightsTextView(TQWidget *parent, resource *Rsrc ) : TQTextBrow
/* /*
Configure functions in the View right click menu Configure functions in the View right click menu
*/ */
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("editcopy"), KIcon::Small ) ), menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("editcopy"), TDEIcon::Small ) ),
i18n( "&Copy" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_C, MENU_COPY ); i18n( "&Copy" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_C, MENU_COPY );
menuView->insertItem( i18n("Select &All"), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_A, MENU_SELECT_ALL ); menuView->insertItem( i18n("Select &All"), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_A, MENU_SELECT_ALL );
menuView->insertSeparator(); menuView->insertSeparator();
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("fileprint"), KIcon::Small ) ), menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("fileprint"), TDEIcon::Small ) ),
i18n( "&Print" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_P, MENU_PRINT ); i18n( "&Print" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_P, MENU_PRINT );
// menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("find"), KIcon::Small ) ), // menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("find"), TDEIcon::Small ) ),
// i18n( "&Find" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_F, MENU_FIND ); // i18n( "&Find" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_F, MENU_FIND );
// menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("next"), KIcon::Small ) ), // menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("next"), TDEIcon::Small ) ),
// i18n( "Find &Next" ), this, TQT_SLOT( menuFunct(int) ), Key_F3, MENU_FIND_NEXT ); // i18n( "Find &Next" ), this, TQT_SLOT( menuFunct(int) ), Key_F3, MENU_FIND_NEXT );
// menuView->insertSeparator(); // menuView->insertSeparator();
menuView->insertSeparator(); menuView->insertSeparator();
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("viewmag+"), KIcon::Small ) ), menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("viewmag+"), TDEIcon::Small ) ),
i18n( "Zoom &In" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_IN ); i18n( "Zoom &In" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_IN );
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("viewmag-"), KIcon::Small ) ), menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("viewmag-"), TDEIcon::Small ) ),
i18n( "Zoom &Out" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_OUT ); i18n( "Zoom &Out" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_OUT );
/* disconnect the linkClicked signal so we can replace it with our own */ /* disconnect the linkClicked signal so we can replace it with our own */

@ -48,7 +48,7 @@ resource::resource(TDECmdLineArgs *args)
{ {
GlobalDataDir = ""; GlobalDataDir = "";
Widget_Height = 20; // prevents max_size error for thinbuttons on init Widget_Height = 20; // prevents max_size error for thinbuttons on init
Icons = new KIconLoader( TQString( "knights" ) ); Icons = new TDEIconLoader( TQString( "knights" ) );
Audio = new audio(); Audio = new audio();
/* Define ConsoleStyle, our RichText */ /* Define ConsoleStyle, our RichText */
@ -774,7 +774,7 @@ void resource::resizeTheme( const int &size )
/////////////////////////////////////// ///////////////////////////////////////
TQPixmap resource::LoadIcon( TQString Name, int Group ) TQPixmap resource::LoadIcon( TQString Name, int Group )
{ {
return Icons->loadIcon( Name, (KIcon::Group)Group ); return Icons->loadIcon( Name, (TDEIcon::Group)Group );
} }
/////////////////////////////////////// ///////////////////////////////////////
// //

@ -208,7 +208,7 @@ class resource
TQStringList Boards; TQStringList Boards;
TQStringList Chessmen; TQStringList Chessmen;
TQStringList Sounds; TQStringList Sounds;
KIconLoader *Icons; TDEIconLoader *Icons;
audio *Audio; audio *Audio;
void ReadEngines( void ); void ReadEngines( void );

@ -99,7 +99,7 @@ void setPageDisplay::initTab1( void )
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&) ) );
BUTTON_SCID_Images = new TQPushButton( GROUP_SCID_Images ); BUTTON_SCID_Images = new TQPushButton( GROUP_SCID_Images );
BUTTON_SCID_Images->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_SCID_Images->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
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,
@ -156,7 +156,7 @@ void setPageDisplay::initTab1( void )
/////////////////////////////////////// ///////////////////////////////////////
void setPageDisplay::initTab2( void ) void setPageDisplay::initTab2( void )
{ {
TQPixmap ColorsIcon( Resource->LoadIcon( TQString("colorize"), KIcon::Toolbar ) ); TQPixmap ColorsIcon( Resource->LoadIcon( TQString("colorize"), TDEIcon::Toolbar ) );
Tab2 = new TQFrame( TabParent ); Tab2 = new TQFrame( TabParent );
Tab2->setMargin( margin ); Tab2->setMargin( margin );

@ -73,7 +73,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
EDIT_PGN_Filename->setText( Resource->PGN_Filename ); EDIT_PGN_Filename->setText( Resource->PGN_Filename );
connect( EDIT_PGN_Filename, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_PGN_Filename(const TQString&) ) ); connect( EDIT_PGN_Filename, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_PGN_Filename(const TQString&) ) );
BUTTON_PGN_Filename = new TQPushButton( BOX_Reuse_PGN ); BUTTON_PGN_Filename = new TQPushButton( BOX_Reuse_PGN );
BUTTON_PGN_Filename->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) ); BUTTON_PGN_Filename->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), TDEIcon::Toolbar ) );
connect( BUTTON_PGN_Filename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_PGN_Filename_Button() ) ); connect( BUTTON_PGN_Filename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_PGN_Filename_Button() ) );
EDIT_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN ); EDIT_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );
BUTTON_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN ); BUTTON_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );

@ -43,7 +43,7 @@ tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc )
menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL ); menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL );
menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS ); menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER ); menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER );
menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), KIcon::Small ) ), menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), TDEIcon::Small ) ),
i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY ); i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
menuSeek->insertSeparator(); menuSeek->insertSeparator();
menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY ); menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );

@ -41,12 +41,12 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
grip = new TabGrip( actionBar ); grip = new TabGrip( actionBar );
connect( grip, TQT_SIGNAL( wasDragged(const TQPoint&, const TQPoint&) ), this, TQT_SLOT( tabDragged(const TQPoint&, const TQPoint&) ) ); connect( grip, TQT_SIGNAL( wasDragged(const TQPoint&, const TQPoint&) ), this, TQT_SLOT( tabDragged(const TQPoint&, const TQPoint&) ) );
KIconLoader icons( TQString( "knights" ) ); TDEIconLoader icons( TQString( "knights" ) );
TQPixmap map = icons.loadIcon( TQString("tab_remove"), KIcon::Small, 0, KIcon::DefaultState, 0, TRUE ); TQPixmap map = icons.loadIcon( TQString("tab_remove"), TDEIcon::Small, 0, TDEIcon::DefaultState, 0, TRUE );
if( map.isNull() ) if( map.isNull() )
{ {
/* Keep for backward compatability with KDE 3.0 */ /* Keep for backward compatability with KDE 3.0 */
map = icons.loadIcon( TQString("fileclose"), KIcon::Small ); map = icons.loadIcon( TQString("fileclose"), TDEIcon::Small );
} }
closeButton = new TQToolButton( actionBar, "closeButton" ); closeButton = new TQToolButton( actionBar, "closeButton" );

@ -28,15 +28,15 @@ thinbuttons::thinbuttons(TQWidget *parent, const char *name, resource *Rsrc ) :
/* Build the pop-up menu */ /* Build the pop-up menu */
matchMenu = new TDEPopupMenu( this ); matchMenu = new TDEPopupMenu( this );
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), TDEIcon::Small ) ),
i18n("&Save Match"), MENU_SAVE ); i18n("&Save Match"), MENU_SAVE );
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), TDEIcon::Small ) ),
i18n("Save Match &As..."), MENU_SAVEAS ); i18n("Save Match &As..."), MENU_SAVEAS );
matchMenu->insertSeparator(); matchMenu->insertSeparator();
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), TDEIcon::Small ) ),
i18n("&Print Notation..."), MENU_PRINT ); i18n("&Print Notation..."), MENU_PRINT );
matchMenu->insertSeparator(); matchMenu->insertSeparator();
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), TDEIcon::Small ) ),
i18n("&Close Match"), MENU_CLOSE ); i18n("&Close Match"), MENU_CLOSE );
connect( matchMenu, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( menuClicked(int) ) ); connect( matchMenu, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( menuClicked(int) ) );
} }

Loading…
Cancel
Save