Actions contain information for Status bar
}
}
-#include <QMainWindow>
-#include <QStatusBar>
void XGUI_ModuleConnector::setStatusBarMessage(const QString& theMessage)
{
-#ifdef HAVE_SALOME
- //return myWorkshop->salomeConnector()->featureInfo(theId);
-#else
- QMainWindow* aDesktop = desktop();
- aDesktop->statusBar()->showMessage(theMessage);
-
-#endif
+ myWorkshop->setStatusBarMessage(theMessage);
}
bool XGUI_ModuleConnector::canStartOperation(QString theId)
return aResult;
}
+void XGUI_Workshop::setStatusBarMessage(const QString& theMessage)
+{
+#ifdef HAVE_SALOME
+ return salomeConnector()->desktop();
+#else
+ myMainWindow->putInfo(theMessage, -1);
+#endif
+}
+
void XGUI_Workshop::synchronizeViewer()
{
SessionPtr aMgr = ModelAPI_Session::get();
/// \param theFeature a feature
bool isFeatureOfNested(const FeaturePtr& theFeature);
+ //! Shows the message in the status bar
+ //! \param theMessage a message
+ void setStatusBarMessage(const QString& theMessage);
+
/// Has to be called in order to display objects with visibility status = true
void synchronizeViewer();