myWorkshop->displayer()->redisplayObjects();
}
+void SHAPERGUI::putInfo(const QString& theInfo, const int theMSecs)
+{
+ application()->putInfo(theInfo, theMSecs);
+}
+
void SHAPERGUI::inspectSalomeModules()
{
QStringList aModuleNames;
/// 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; }
//! 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
void XGUI_Workshop::setStatusBarMessage(const QString& theMessage)
{
#ifdef HAVE_SALOME
- //return salomeConnector()->desktop();
+ salomeConnector()->putInfo(theMessage, -1);
#else
myMainWindow->putInfo(theMessage, -1);
#endif