//// \return boolean value
static bool isNestedCreateOperation(ModuleBase_Operation* theOperation);
+ /// Returns true if the operation is an edit nested feature one
+ /// \param theOperation a checked operation
+ //// \return boolean value
+ static bool isNestedEditOperation(ModuleBase_Operation* theOperation);
+
/// Returns whether the current operation is a sketch entity - line, point, arc or circle
/// \param theId is an id of object
/// \return a boolean value
/// \param theOperation a committed operation
void commitNestedSketch(ModuleBase_Operation* theOperation);
+ /// Commit the operation if it is possible. If the operation is dimention constraint,
+ /// it gives widget editor to input dimention value
+ void operationActivatedByPreselection();
+
/// Returns True if there are available Undos and the sketch manager allows undo
/// \return the boolean result
bool canUndo() const;
/// \return boolean result
bool canDisplayCurrentCreatedFeature() const;
+ /// Returns true if the current operation is nested creation or internal reentrant edit
+ /// \param theOperation an operation
+ bool canChangeCursor(ModuleBase_Operation* theOperation) const;
+
/// Returns state of constraints showing flag
bool isConstraintsShown() const { return myIsConstraintsShown; }
//! \return string value
QString getFeatureError(const FeaturePtr& theFeature);
+ /// It nullify internal flags concerned to clicked mouse event
+ void clearClickedFlags();
+
/// Returns list of strings which contains id's of sketch operations
static const QStringList& sketchOperationIdList();
void onMouseMoved(ModuleBase_IViewWindow*, QMouseEvent*);
void onMouseDoubleClick(ModuleBase_IViewWindow*, QMouseEvent*);
void onApplicationStarted();
- void onBeforeWidgetActivated(ModuleBase_ModelWidget* theWidget);
+ //void onBeforeWidgetActivated(ModuleBase_ModelWidget* theWidget);
void onBeforeContextMenu();
void onAfterContextMenu();
bool myIsMouseOverViewProcessed; /// the state whether the over view state is processed by mouseMove method
bool myIsPopupMenuActive; /// the state of the popup menu is shown
Point myCurrentPoint;
- Point myClickedPoint;
+ //Point myClickedPoint;
CompositeFeaturePtr myCurrentSketch;