From: lls Date: Mon, 6 Jun 2005 11:10:44 +0000 (+0000) Subject: Added about dilaog message for CAF_Application class scope X-Git-Tag: T3_0_0_a2~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d5aa939aa882c35a2210c5ecf6ad259cf6638d5;p=modules%2Fgui.git Added about dilaog message for CAF_Application class scope --- diff --git a/src/CAF/CAF_Application.cxx b/src/CAF/CAF_Application.cxx index 47a2475f9..1ce1d0f30 100755 --- a/src/CAF/CAF_Application.cxx +++ b/src/CAF/CAF_Application.cxx @@ -55,7 +55,7 @@ void CAF_Application::createActions() registerAction( EditRedoId, editRedo ); editUndo->setComment( tr( "INF_APP_UNDOACTIONS" ) ); - editRedo->setComment( tr( "INF_APP_REDOACTIONS" ) ); + editRedo->setComment( tr( "INF_APP_REDOACTIONS" ) ); connect( editUndo, SIGNAL( activated( int ) ), this, SLOT( onUndo( int ) ) ); connect( editRedo, SIGNAL( activated( int ) ), this, SLOT( onRedo( int ) ) ); @@ -171,3 +171,8 @@ void CAF_Application::updateCommandsStatus() undo->setEnabled( cafStudy && cafStudy->canUndo() ); redo->setEnabled( cafStudy && cafStudy->canRedo() ); } + +void CAF_Application::onHelpAbout() +{ + SUIT_MessageBox::info1( desktop(), tr( "About" ), tr( "ABOUT_INFO" ), "&OK" ); +} \ No newline at end of file diff --git a/src/CAF/CAF_Application.h b/src/CAF/CAF_Application.h index d2359e865..f5610fe90 100755 --- a/src/CAF/CAF_Application.h +++ b/src/CAF/CAF_Application.h @@ -25,10 +25,13 @@ public: virtual QString applicationName() const; +public slots: + virtual void onHelpAbout(); + protected slots: virtual bool onUndo( int ); virtual bool onRedo( int ); - + protected: enum { EditUndoId = STD_Application::UserID, EditRedoId, UserID }; diff --git a/src/CAF/resources/CAF_msg_en.po b/src/CAF/resources/CAF_msg_en.po index 67614ace8..fc7188c36 100755 --- a/src/CAF/resources/CAF_msg_en.po +++ b/src/CAF/resources/CAF_msg_en.po @@ -9,6 +9,8 @@ msgstr "" "Last-Translator: \n" "Content-Type: text/plain; charset=iso-8859-1\n" +msgid "CAF_Application::ABOUT_INFO" +msgstr "SUIT Caf application" msgid "CAF_Application::MEN_APP_EDIT" msgstr "&Edit"