+ //----- LightAPP_Module interface ---------------
+
+ /// \brief Initializing of the module
+ /// \param theApp application instance
+ virtual void initialize(CAM_Application* theApp);
+
+ /// \brief Definition of module standard windows
+ virtual void windows(QMap<int, int>& theWndMap) const;
+
+ /// \brief Definition of module viewer
+ virtual void viewManagers(QStringList& theList) const;
+
+ /// \brief The method is called on selection changed event
+ virtual void selectionChanged();
+
+ //--- XGUI connector interface -----
+
+ virtual QAction* addFeature(const QString& theWBName, const QString& theId,
+ const QString& theTitle, const QString& theTip, const QIcon& theIcon,
+ const QKeySequence& theKeys = QKeySequence(),
+ bool isCheckable = false);
+
+ virtual QAction* addDesktopCommand(const QString& theId, const QString& theTitle,
+ const QString& theTip, const QIcon& theIcon,
+ const QKeySequence& theKeys, bool isCheckable,
+ const char* theMenuSourceText,
+ const int theMenuPosition = 10);
+
+ virtual void addDesktopMenuSeparator(const char* theMenuSourceText,
+ const int theMenuPosition = 10);
+
+ virtual QMainWindow* desktop() const;
+
+ virtual QString commandId(const QAction* theCmd) const;
+
+ virtual QAction* command(const QString& theId) 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;
+
+ //! Set the document kind of the action by the given command Id
+ //! \param theId - the command ID
+ //! \param theKind - the document kind
+ virtual void setDocumentKind(const QString& theId, const QString& theKind);
+
+ //! Returns the document kind of the action by the given command ID
+ virtual QString documentKind(const QString& theId) const;
+
+ //! Returns interface to Salome viewer
+ virtual ModuleBase_IViewer* viewer() const
+ {
+ return myProxyViewer;
+ }
+
+ //! Returns list of defined actions (just by NewGeom module)
+ virtual QList<QAction*> commandList() const;
+
+ //! Returns list of Ids of defined actions (just by NewGeom module)
+ virtual QStringList commandIdList() const;