Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #591 - Highlight of the first argument of constraints
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_Operation.h
diff --git
a/src/ModuleBase/ModuleBase_Operation.h
b/src/ModuleBase/ModuleBase_Operation.h
index a76c7c0ee7c356ec519a5e97f1ac25046fec4c2f..9d304e715b2fedd09c42c2d6edeb7eeb63063289 100644
(file)
--- a/
src/ModuleBase/ModuleBase_Operation.h
+++ b/
src/ModuleBase/ModuleBase_Operation.h
@@
-76,6
+76,9
@@
Q_OBJECT
/// Returns True if data of its feature was modified during operation
virtual bool isModified() const { return myIsModified; }
/// Returns True if data of its feature was modified during operation
virtual bool isModified() const { return myIsModified; }
+ /// Change the modified state of the operation
+ void setIsModified(const bool theIsModified) { myIsModified = theIsModified; }
+
/// Returns True id the current operation is launched in editing mode
bool isEditOperation() const { return myIsEditing; }
/// Returns True id the current operation is launched in editing mode
bool isEditOperation() const { return myIsEditing; }
@@
-148,6
+151,10
@@
signals:
/// The operation is postponed
void postponed();
/// The operation is postponed
void postponed();
+ /// The operation is triggered
+ /// \param theState a new triggered state
+ void triggered(bool theState);
+
/// The operation is filled with existing preselection
void activatedByPreselection();
/// The operation is filled with existing preselection
void activatedByPreselection();
@@
-187,6
+194,9
@@
signals:
/// \param theState th flag to abort, if it is true, do nothing, overwise abort
void setRunning(bool theState);
/// \param theState th flag to abort, if it is true, do nothing, overwise abort
void setRunning(bool theState);
+ /// Changes the modified flag of the operation
+ void onValuesChanged();
+
protected:
/// Virtual method called when operation started (see start() method for more description)
/// Default impl calls corresponding slot and commits immediately.
protected:
/// Virtual method called when operation started (see start() method for more description)
/// Default impl calls corresponding slot and commits immediately.
@@
-202,7
+212,7
@@
signals:
virtual void abortOperation() {}
/// Virtual method called when operation committed (see commit() method for more description)
virtual void abortOperation() {}
/// Virtual method called when operation committed (see commit() method for more description)
- virtual void commitOperation()
{}
+ virtual void commitOperation()
;
/// Virtual method called after operation committed (see commit() method for more description)
virtual void afterCommitOperation() {}
/// Virtual method called after operation committed (see commit() method for more description)
virtual void afterCommitOperation() {}
@@
-260,6
+270,8
@@
signals:
/// before operation feature creating
CompositeFeaturePtr myParentFeature;
/// before operation feature creating
CompositeFeaturePtr myParentFeature;
+ /// Last current feature before editing operation
+ FeaturePtr myCurrentFeature;
};
#endif
};
#endif