|
|
@ -301,21 +301,21 @@ void Knights::initMenus( void )
|
|
|
|
fileMenu menu
|
|
|
|
fileMenu menu
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// MENU_NEWGAME
|
|
|
|
// MENU_NEWGAME
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-new"), 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"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-open"), 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"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-save"), 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"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-save"), 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." ) );
|
|
|
@ -326,13 +326,13 @@ void Knights::initMenus( void )
|
|
|
|
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"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-print"), 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"), TDEIcon::Small ) ),
|
|
|
|
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("window-close"), 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." ) );
|
|
|
|