]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Added about dilaog message for CAF_Application class scope
authorlls <lls@opencascade.com>
Mon, 6 Jun 2005 11:10:44 +0000 (11:10 +0000)
committerlls <lls@opencascade.com>
Mon, 6 Jun 2005 11:10:44 +0000 (11:10 +0000)
src/CAF/CAF_Application.cxx
src/CAF/CAF_Application.h
src/CAF/resources/CAF_msg_en.po

index 47a2475f91a8e7db21281c0cf12f40f946d9bdab..1ce1d0f3063d2c1f89aca2e6873830137a6d0272 100755 (executable)
@@ -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
index d2359e865bb9671d6a3d1c3c1e967881e51f78c7..f5610fe90d5fd8b53119cb64bbd7f419daaa65ae 100755 (executable)
@@ -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 };
 
index 67614ace820801b75252ad88fcefb35dd4be8c4c..fc7188c362a8782e8f24f1ab4e6019629067e15e 100755 (executable)
@@ -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"