- bool isActiveOperationAborted();
-
- //! Delete features. Delete the referenced features. There can be a question with a list of referenced
- //! objects.
- //! \param theList an objects to be deleted
- //! \param theIgnoredFeatures a list of features to be ignored during delete
- //! \param theParent a parent widget for the question message box
- //! \param theAskAboutDeleteReferences if true, the message box with a list of references to the
- //! objects features appear. If the user chose do not continue, the deletion is not performed
- //! \return the success of the delete
- static bool deleteFeatures(const QObjectPtrList& theList,
- std::set<FeaturePtr> theIgnoredFeatures = std::set<FeaturePtr>(),
- QWidget* theParent = 0,
- const bool theAskAboutDeleteReferences = false);
+ bool abortAllOperations();
+
+ /// Updates workshop state according to the started operation, e.g. visualizes the property panel
+ /// and connect to it.
+ /// \param theOpertion a started operation
+ void operationStarted(ModuleBase_Operation* theOperation);
+
+
+ //! Delete features. Delete the referenced features. There can be a question with a list of
+ //! referenced objects.
+ //! \param theFeatures a list of objects to be deleted
+ bool deleteFeatures(const QObjectPtrList& theFeatures);
+
+ /// Deactivates the object, if it is active and the module returns that the activation
+ /// of selection for the object is not possible currently(the current operation uses it)
+ /// \param theObject an object
+ /// \param theUpdateViewer a boolean flag to update viewer immediately
+ void deactivateActiveObject(const ObjectPtr& theObject, const bool theUpdateViewer);
+
+ /// Returns true if the action of the feature is created to contain Accept/Cancel button
+ /// \param theFeature a feature
+ bool isFeatureOfNested(const FeaturePtr& theFeature);
+
+ //! Shows the message in the status bar
+ //! \param theMessage a message
+ void setStatusBarMessage(const QString& theMessage);
+
+ /// Has to be called in order to display objects with visibility status = true
+ void synchronizeViewer();
+
+ /// Has to be called in order to display objects from a specifed group
+ /// with visibility status = true
+ /// \param theDoc the document for objects synchronisation
+ /// \param theGroup the group name
+ /// \param theUpdateViewer update viewer flag
+ void synchronizeGroupInViewer(const DocumentPtr& theDoc,
+ const std::string& theGroup,
+ bool theUpdateViewer);
+
+ /// Update the property panel content by the XML description of the operation and set the panel
+ /// into the operation
+ /// \param theOperation an operation
+ void fillPropertyPanel(ModuleBase_Operation* theOperation);
+
+ /// Connects or disconnects to the value changed signal of the property panel widgets
+ /// \param isToConnect a boolean value whether connect or disconnect
+ void connectToPropertyPanel(const bool isToConnect);
+
+ /// Returns defailt selection mode in 3d viewer
+ QIntList viewerSelectionModes() const { return myViewerSelMode; }
+
+ /// Highlights result objects in Object Browser according to
+ /// features found in the given list
+ void highlightResults(const QObjectPtrList& theObjects);
+
+ /// Highlights feature objects in Object Browser according to
+ /// features found in the given list
+ void highlightFeature(const QObjectPtrList& theObjects);
+
+ /// Returns Data Model XML reader which contains information about
+ /// Data structure configuration
+ const Config_DataModelReader* dataModelXMLReader() const { return myDataModelXMLReader; }
+
+ /// A constant string used for "Move to end" command definition
+ /// It is used for specific processing of Undo/Redo for this command.
+ static QString MOVE_TO_END_COMMAND;
+
+ //! Closes all in the current session and load the directory
+ //! \param theDirectory a path to directory
+ void openDirectory(const QString& theDirectory);