20 #ifndef XGUI_SALOMECONNECTOR_H
21 #define XGUI_SALOMECONNECTOR_H
26 #include <QStringList>
28 #include <ModuleBase_ActionInfo.h>
58 virtual QAction*
addFeature(
const QString& theWBName,
const QString& theTBName,
60 const QString& theTitle,
const QString& theTip,
62 const QKeySequence& theKeys,
bool isCheckable,
63 const bool isAddSeparator,
64 const QString& theStatusTip) = 0;
71 const ActionInfo& theInfo,
const bool isAddSeparator) = 0;
79 const QList<QAction*>& theNestedActions) = 0;
100 const QString& theTip,
const QIcon& theIcon,
101 const QKeySequence& theKeys,
bool isCheckable,
102 const char* theMenuSourceText,
103 const QString& theSubMenu = QString(),
104 const int theMenuPosition = 10,
105 const int theSuibMenuPosition = -1) = 0;
109 const int theMenuPosition = 10) = 0;
129 const std::shared_ptr<Config_FeatureMessage>& theMessage) = 0;
134 virtual std::shared_ptr<Config_FeatureMessage>
featureInfo(
const QString& theFeatureId) = 0;
146 virtual void putInfo(
const QString& theInfo,
const int theMSecs = 0) = 0;
Class to pass a feature entry extracted from xml file.
Definition: Config_FeatureMessage.h:39
A Base object for definition of connector object to Salome Viewer.
Definition: ModuleBase_IViewer.h:47
An interface which provides a connection of XGUI functionality with functionality of SALOME module in...
Definition: XGUI_SalomeConnector.h:40
virtual void setFeatureInfo(const QString &theFeatureId, const std::shared_ptr< Config_FeatureMessage > &theMessage)=0
Stores XML information for the feature kind.
virtual QAction * addFeatureOfNested(const QString &theWBName, const ActionInfo &theInfo, const QList< QAction * > &theNestedActions)=0
Creates a feature (command) in SALOME desktop.
virtual void addDesktopMenuSeparator(const char *theMenuSourceText, const int theMenuPosition=10)=0
Insert separator into Edit menu of SALOME desktop.
virtual bool isFeatureOfNested(const QAction *theAction)=0
Returns true if the feature action is a nested action, in other words, it is created by addFeatureOfN...
virtual QAction * addFeature(const QString &theWBName, const ActionInfo &theInfo, const bool isAddSeparator)=0
Creates a feature (command) in SALOME desktop.
virtual QAction * addFeature(const QString &theWBName, const QString &theTBName, const QString &theId, const QString &theTitle, const QString &theTip, const QIcon &theIcon, const QKeySequence &theKeys, bool isCheckable, const bool isAddSeparator, const QString &theStatusTip)=0
Creates a feature (command) in SALOME desktop.
virtual void createFeatureActions()=0
Creates menu/tool bar actions for loaded features stored in the menu manager.
virtual std::shared_ptr< Config_FeatureMessage > featureInfo(const QString &theFeatureId)=0
Returns XML information for the feature kind.
virtual void putInfo(const QString &theInfo, const int theMSecs=0)=0
Shows the given text in status bar as a permanent text \theInfo a string value \theMsecs interval of ...
virtual QAction * addDesktopCommand(const QString &theId, const QString &theTitle, const QString &theTip, const QIcon &theIcon, const QKeySequence &theKeys, bool isCheckable, const char *theMenuSourceText, const QString &theSubMenu=QString(), const int theMenuPosition=10, const int theSuibMenuPosition=-1)=0
Creates a command in Edit menu of SALOME desktop.
virtual void createPreferences()=0
Create preferences.
virtual ModuleBase_IViewer * viewer() const =0
Returns interface to Salome viewer.
virtual QList< QAction * > commandList() const =0
Returns list of defined actions (just by SHAPER module)
virtual bool addActionInToolbar(QAction *theAction, const QString &theToolBarTitle)=0
Add an action into tool bar.
virtual QMainWindow * desktop() const =0
Returns desktop window of SALOME.
Definition: ModuleBase_ActionInfo.h:37