From: srn Date: Thu, 23 Jun 2005 09:42:39 +0000 (+0000) Subject: Removed Cut operation X-Git-Tag: T3_0_0_a4~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d00fc2895c0889257616bc6daee91e93a32ce0a;p=modules%2Fgui.git Removed Cut operation --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index d0c787dfb..946f0285a 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -118,11 +118,6 @@ void STD_Application::createActions() tr( "MEN_DESK_FILE_SAVEAS" ), tr( "PRP_DESK_FILE_SAVEAS" ), 0, desk, false, this, SLOT( onSaveAsDoc() ) ); - createAction( EditCutId, tr( "TOT_DESK_EDIT_CUT" ), - resMgr->loadPixmap( "STD", tr( "ICON_EDIT_CUT" ) ), - tr( "MEN_DESK_EDIT_CUT" ), tr( "PRP_DESK_EDIT_CUT" ), - CTRL+Key_X, desk, false, this, SLOT( onCut() ) ); - createAction( EditCopyId, tr( "TOT_DESK_EDIT_COPY" ), resMgr->loadPixmap( "STD", tr( "ICON_EDIT_COPY" ) ), tr( "MEN_DESK_EDIT_COPY" ), tr( "PRP_DESK_EDIT_COPY" ), @@ -170,7 +165,6 @@ void STD_Application::createActions() createMenu( separator(), fileMenu ); createMenu( FileExitId, fileMenu ); - createMenu( EditCutId, editMenu ); createMenu( EditCopyId, editMenu ); createMenu( EditPasteId, editMenu ); createMenu( separator(), editMenu ); @@ -193,7 +187,6 @@ void STD_Application::createActions() createTool( FileSaveId, stdTBar ); createTool( FileCloseId, stdTBar ); createTool( separator(), stdTBar ); - createTool( EditCutId, stdTBar ); createTool( EditCopyId, stdTBar ); createTool( EditPasteId, stdTBar ); } @@ -388,10 +381,6 @@ void STD_Application::onExit() SUIT_Session::session()->closeSession(); } -void STD_Application::onCut() -{ -} - void STD_Application::onCopy() { } @@ -407,7 +396,7 @@ void STD_Application::setEditEnabled( bool theEnable ) QtxActionMenuMgr* mMgr = desktop()->menuMgr(); QtxActionToolMgr* tMgr = desktop()->toolMgr(); - for ( int i = EditCutId; i <= EditPasteId; i++ ) + for ( int i = EditCopyId; i <= EditPasteId; i++ ) { mMgr->setShown( i, myEditEnabled ); tMgr->setShown( i, myEditEnabled ); diff --git a/src/STD/STD_Application.h b/src/STD/STD_Application.h index 5f8995b6b..e5fecef17 100755 --- a/src/STD/STD_Application.h +++ b/src/STD/STD_Application.h @@ -80,7 +80,6 @@ public slots: virtual void onExit(); - virtual void onCut(); virtual void onCopy(); virtual void onPaste();