X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_SalomeConnector.h;h=a55398cb15ef6db5ab732f78739dd6ecd0411e4b;hb=34a981282cec404955f9850aabf4015a97bcb57c;hp=6418cdf463f7038189628161aad31cc9c271eca6;hpb=de072782c67b5ed9db59be608e17a549912438aa;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_SalomeConnector.h b/src/XGUI/XGUI_SalomeConnector.h index 6418cdf46..a55398cb1 100644 --- a/src/XGUI/XGUI_SalomeConnector.h +++ b/src/XGUI/XGUI_SalomeConnector.h @@ -3,10 +3,11 @@ #include "XGUI.h" -#include #include +#include class QMainWindow; +class XGUI_SalomeViewer; /** * An interface which provides a connection of XGUI functionality @@ -65,8 +66,16 @@ public: //! Returns QAction instance by command string Id virtual QAction* command(const QString& theId) const = 0; - //! Returns AIS_InteractiveContext from current OCCViewer - virtual Handle(AIS_InteractiveContext) AISContext() const = 0; + //! Set nested actions dependent on command Id + //! \param theId - the command ID + //! \param theActions - the list of nested actions + virtual void setNestedActions(const QString& theId, const QStringList& theActions) = 0; + + //! Returns list of nested actions according to the given command ID + virtual QStringList nestedActions(const QString& theId) const = 0; + + //! Returns interface to Salome viewer + virtual XGUI_SalomeViewer* viewer() const = 0; }; #endif \ No newline at end of file