Salome HOME
Issue #1015: The validate icon must be greyed and inactive instead of red and active
authornds <nds@opencascade.com>
Tue, 24 May 2016 09:04:09 +0000 (12:04 +0300)
committernds <nds@opencascade.com>
Tue, 24 May 2016 09:04:09 +0000 (12:04 +0300)
Actions contain information for Status bar: SHAPER mode

src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI.h
src/XGUI/XGUI_SalomeConnector.h
src/XGUI/XGUI_Workshop.cpp

index ad4b87c429390fc36dd58ebc54e8488e8250ec26..9083a8a232deb4e67d26127d10704f2312837f03 100644 (file)
@@ -616,6 +616,11 @@ void SHAPERGUI::preferencesChanged(const QString& theSection, const QString& the
   myWorkshop->displayer()->redisplayObjects();
 }
 
+void SHAPERGUI::putInfo(const QString& theInfo, const int theMSecs)
+{
+  application()->putInfo(theInfo, theMSecs);
+}
+
 void SHAPERGUI::inspectSalomeModules()
 {
   QStringList aModuleNames;
index 36e0f1adedb0a381f01a503c7a97b977e218053b..840074c37d34bec45d3f699274248be4255ee41e 100644 (file)
@@ -122,7 +122,13 @@ Q_OBJECT
 
   /// Redefinition of virtual function for preferences changed event. 
   virtual void preferencesChanged(const QString& theSection, const QString& theParam);
-  
+
+  //! Shows the given text in status bar as a permanent text
+  //! \theInfo a string value
+  //! \theMsecs interval of msec milliseconds when the message will be hidden, if -1, it stays.
+  //            If 0, default value is used, it is 3000
+  virtual void putInfo(const QString& theInfo, const int theMSecs = 0);
+
   /// \return Workshop class instance
   XGUI_Workshop* workshop() const { return myWorkshop; }
 
index 4a4308c7860ce0cee7c51c4e560afb082b6a233b..89b35ed4af10c684dd6098d7849de905cf7dca69 100644 (file)
@@ -112,6 +112,12 @@ class XGUI_EXPORT XGUI_SalomeConnector
 
   //! Create preferences
   virtual void createPreferences() = 0;
+
+  //! Shows the given text in status bar as a permanent text
+  //! \theInfo a string value
+  //! \theMsecs interval of msec milliseconds when the message will be hidden, if -1, it stays.
+  //            If 0, default value is used, it is 3000
+  virtual void putInfo(const QString& theInfo, const int theMSecs = 0) = 0;
 };
 
 #endif
index f325f3a145b60975258e53b5e1306a07a62c42b4..4421335641fc49ee9dfa88287449bfd0583fee93 100755 (executable)
@@ -1893,7 +1893,7 @@ QList<ActionInfo> XGUI_Workshop::processHistoryList(const std::list<std::string>
 void XGUI_Workshop::setStatusBarMessage(const QString& theMessage)
 {
 #ifdef HAVE_SALOME
-  //return salomeConnector()->desktop();
+  salomeConnector()->putInfo(theMessage, -1);
 #else
   myMainWindow->putInfo(theMessage, -1);
 #endif