bool canMoveFeature();
/// Move selected features to be after the current feature
- void moveObjects();
+ void moveObjects(const bool theSplit);
/// Returns true if the object can be shaded. If the object is a compsolid result, the method
/// checks subobjects of the result
/// 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);
void synchronizeResultTree(const ResultBodyPtr& theRes, bool theUpdateViewer);
/// 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;
+ /// A constant string used for "Move to end and split" command definition
+ /// It is used for specific processing of Undo/Redo for this command.
+ static QString MOVE_TO_END_SPLIT_COMMAND;
/// Closes all in the current session and load the directory
/// \param theDirectory a path to directory
void updateAutoComputeState();
+ void deactivateCurrentSelector();
+
+ /// The method updates a Color Scale object in the viewer
+ void updateColorScaleVisibility();
+
signals:
/// Emitted when selection happens in Salome viewer
void salomeViewerSelection();
/// Create a new document
void onNew();
+ /// Import part structure from a file
+ void onImportPart();
+
+ /// Export features to a file
+ void onExportPart();
+
#ifndef HAVE_SALOME
/// Exit application
void onExit();
/// Apply the current transparency value if preview in transparency dialog is switched on
void onTransparencyValueChanged();
- /// Switch on/off preview of transparency change
- void onPreviewStateChanged();
-
protected:
/// Sets the granted operations for the parameter operation. Firstly, it finds the nested features
/// and set them into the operation. Secondly, it asks the module about ids of granted operations.
void createDockWidgets();
/// Extends undo/redo toolbutton's with history menu
- /// \param theObject - in the OpenParts it is a QToolButton by itself,
+ /// \param theObject - in the CADBuilder it is a QToolButton by itself,
/// in salome mode - QAction that creates a button.
/// \param theSignal - void "updateUndoHistory" or "updateRedoHistory" SIGNAL;
/// \param theSlot - onUndo(int) or onRedo(int) SLOT
/// Clear content of temporary directory
void clearTemporaryDir();
+ /// Set current point of view normal to selected planar face
+ /// \param toInvert invert the normal vector
+ void setNormalView(bool toInvert = false);
+
private:
#ifndef HAVE_SALOME
AppElements_MainWindow* myMainWindow; ///< desktop window