#define NewGeom_Module_H
#include "NewGeom.h"
+#include "NewGeom_SalomeViewer.h"
#include <LightApp_Module.h>
#include <XGUI_SalomeConnector.h>
#include <QStringList>
+#include <QMap>
class XGUI_Workshop;
class NewGeom_OCCSelector;
class OCCViewer_Viewer;
+
/**
* An implementation of SALOME connector class for implementation of
* XGUI functionality as a module of SALOME
virtual QAction* command(const QString& theId) const;
- //! Returns AIS_InteractiveContext from current OCCViewer
- virtual Handle(AIS_InteractiveContext) AISContext() const;
+ //! 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);
+
+ //! Returns list of nested actions according to the given command ID
+ virtual QStringList nestedActions(const QString& theId) const;
+
+ //! Returns interface to Salome viewer
+ virtual XGUI_SalomeViewer* viewer() const { return myProxyViewer; }
public slots:
virtual bool activateModule( SUIT_Study* theStudy);
XGUI_Workshop* myWorkshop;
NewGeom_OCCSelector* mySelector;
+
+ NewGeom_SalomeViewer* myProxyViewer;
+
+ QMap<QString, QStringList> myNestedActions;
};
#endif