#include <LightApp_Module.h>
#include <XGUI_SalomeConnector.h>
+#include <ModuleBase_ActionInfo.h>
+
#include <QStringList>
#include <QMap>
class OCCViewer_Viewer;
/**
+ * \ingroup Salome
* An implementation of SALOME connector class for implementation of
* XGUI functionality as a module of SALOME
*/
const QKeySequence& theKeys = QKeySequence(),
bool isCheckable = false);
+ //! Add feature (QAction) in the \a theWBName toolbar with given \a theInfo about action
+ virtual QAction* addFeature(const QString& theWBName,
+ const ActionInfo& theInfo);
+
+ /// Add a nested feature
+ /// \param theWBName a workbench name
+ /// \param theInfo the action parameters
+ /// \param theNestedActions a list of nested actions
+ virtual QAction* addFeatureOfNested(const QString& theWBName,
+ const ActionInfo& theInfo,
+ const QList<QAction*>& theNestedActions);
+
+ //! Returns true if the feature action is a nested action, in other words,
+ //! it is created by addNestedFeature().
+ //! \param theAction - an action of a feature
+ //! returns boolean result
+ virtual bool isFeatureOfNested(const QAction* theAction);
+
virtual QAction* addDesktopCommand(const QString& theId, const QString& theTitle,
const QString& theTip, const QIcon& theIcon,
const QKeySequence& theKeys, bool isCheckable,
virtual void addDesktopMenuSeparator(const char* theMenuSourceText,
const int theMenuPosition = 10);
+ /// Add an action to a tool bar
+ /// \param theAction an ation to add
+ /// \param theToolBarTitle a name of tool bar
+ virtual bool addActionInToolbar( QAction* theAction, const QString& theToolBarTitle );
+
virtual QMainWindow* desktop() const;
virtual QString commandId(const QAction* theCmd) const;
/// Create popup menu manager
virtual QtxPopupMgr* popupMgr();
+ /// Abort all operations
+ virtual bool abortAllOperations();
+
private:
/// Create selector for OCC Viewer
/// \param theMgr view manager