+ /// Called on creation of menu item in desktop
+ virtual void featureCreated(QAction* theFeature);
+
+ /// Returnc list of nested commands for the given feature
+ virtual QStringList nestedFeatures(QString theFeature);
+ std::string featureFile(const std::string&);
+
+ /// Creates an operation and send it to loop
+ /// \param theCmdId the operation name
+ virtual void launchOperation(const QString& theCmdId);
+
+ /// Called when it is necessary to update a command state (enable or disable it)
+ //virtual bool isFeatureEnabled(const QString& theCmdId) const;
+
+ /// Displays or erase the current operation preview, if it has it.
+ /// \param theFeature the feature instance to be displayed
+ /// \param isDisplay the state whether the presentation should be displayed or erased
+ /// \param isUpdateViewer the flag whether the viewer should be updated
+ //void visualizePreview(FeaturePtr theFeature, bool isDisplay,
+ // const bool isUpdateViewer = true);
+
+ /// Activates the feature in the displayer
+ /// \param theFeature the feature instance to be displayed
+ /// \param isUpdateViewer the flag whether the viewer should be updated
+ void activateFeature(ObjectPtr theFeature, const bool isUpdateViewer);
+
+ /// Updates current operation preview, if it has it.
+ /// \param theCmdId the operation name
+ void updateCurrentPreview(const std::string& theCmdId);
+
+ /// Creates custom widgets for property panel
+ virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent,
+ Config_WidgetAPI* theWidgetApi,
+ QList<ModuleBase_ModelWidget*>& theModelWidgets);
+
+ public slots:
+ void onFeatureTriggered();
+ /// SLOT, that is called after the operation is started. Connect on the focus activated signal
+ void onOperationStarted();
+ /// SLOT, that is called after the operation is stopped. Switched off the modfications performed
+ /// by the operation start
+ void onOperationStopped(ModuleBase_Operation* theOperation);
+ /// SLOT, that is called afetr the popup menu action clicked.
+ void onContextMenuCommand(const QString& theId, bool isChecked);
+ /// SLOT, that is called by mouse press in the viewer.
+ /// The mouse released point is sent to the current operation to be processed.
+ /// \param theEvent the mouse event
+ void onMousePressed(QMouseEvent* theEvent);
+ /// SLOT, that is called by mouse release in the viewer.
+ /// The mouse released point is sent to the current operation to be processed.
+ /// \param theEvent the mouse event
+ void onMouseReleased(QMouseEvent* theEvent);
+ /// SLOT, that is called by mouse move in the viewer.
+ /// The mouse moved point is sent to the current operation to be processed.
+ /// \param theEvent the mouse event
+ void onMouseMoved(QMouseEvent* theEvent);
+
+ /// SLOT, that is called by the key in the viewer is clicked.
+ /// \param theEvent the mouse event
+ void onKeyRelease(QKeyEvent* theEvent);