|
SHAPER
9.15.0
|
Base class for all operations. More...

Public Slots | |
| virtual bool | start () |
| Starts operation Public slot. More... | |
| virtual void | postpone () |
| Deactivates current operation which can be resumed later. More... | |
| virtual void | resume () |
| Resumes operation Public slot. More... | |
| virtual void | abort () |
| Aborts operation Public slot. More... | |
| virtual bool | commit () |
| Commits operation Public slot. More... | |
| void | onValuesChanged () |
| Changes the modified flag of the operation. More... | |
| void | onValueStateChanged (int thePreviousState) |
| Changes the modified flag of the operation if the current state of the widget is modified. More... | |
Signals | |
| void | beforeStarted () |
| The operation is started. More... | |
| void | started () |
| The operation is started. More... | |
| void | beforeAborted () |
| The operation is aborted. More... | |
| void | aborted () |
| The operation is aborted. More... | |
| void | beforeCommitted () |
| The operation is committed. More... | |
| void | committed () |
| The operation is committed. More... | |
| void | stopped () |
| The operation is aborted or committed. More... | |
| void | resumed () |
| The operation is resumed. More... | |
| void | postponed () |
| The operation is postponed. More... | |
Public Member Functions | |
| ModuleBase_Operation (const QString &theId="", QObject *theParent=0) | |
| Constructor. More... | |
| virtual | ~ModuleBase_Operation () |
| Destructor. More... | |
| ModuleBase_OperationDescription * | getDescription () const |
| Returns the operation description /returns the instance of the description class. More... | |
| const QStringList & | grantedOperationIds () const |
| Returns list of granted operation indices. More... | |
| void | setGrantedOperationIds (const QStringList &theList) |
| Sets list of operation indices, which can be started without the current operation stop. More... | |
| virtual bool | isGranted (QString theId) const |
| Must return true if this operation can be launched as nested for any current operation and it is not necessary to check this operation on validity. More... | |
| virtual bool | isModified () const |
| Returns True if data of its feature was modified during operation. More... | |
| QString | id () const |
| Returns operations Id from it's description. More... | |
| virtual bool | isValid () const |
| Must return True if the operation's feature is valid. More... | |
| virtual void | setPropertyPanel (ModuleBase_IPropertyPanel *theProp) |
| Set property pane to the operation. More... | |
| ModuleBase_IPropertyPanel * | propertyPanel () const |
| QString | helpFileName () const |
| void | setHelpFileName (QString theName) |
| void | setHideFacesVisible (bool isVisible) |
| bool | isHideFacesVisible () const |
Protected Member Functions | |
| virtual void | startOperation () |
| Virtual method called when operation started (see start() method for more description) Default impl calls corresponding slot and commits immediately. More... | |
| virtual void | postponeOperation () |
| Implementation of specific steps on postpone operation. More... | |
| virtual void | stopOperation () |
| Virtual method called when operation stopped - committed or aborted. More... | |
| virtual void | abortOperation () |
| Virtual method called when operation aborted (see abort() method for more description) More... | |
| virtual void | commitOperation () |
| Virtual method called when operation committed (see commit() method for more description) More... | |
| virtual void | afterCommitOperation () |
| Virtual method called after operation committed (see commit() method for more description) More... | |
| virtual void | resumeOperation () |
| Virtual method called after operation resume (see resume() method for more description) More... | |
| virtual bool | canBeCommitted () const |
| Verifies whether this operator can be committed. More... | |
Base class for all operations.
Base class for all operations. If you perform an action it is reasonable to create operation intended for this. This is a base class for all operations which provides mechanism for correct starting operations, starting operations above already started ones, committing operations and so on. To create own operation it is reasonable to inherit it from this class and redefines virtual methods to provide own behavior Main virtual methods are
| ModuleBase_Operation::ModuleBase_Operation | ( | const QString & | theId = "", |
| QObject * | theParent = 0 |
||
| ) |
Constructor.
| theId | the operation identifier |
| theParent | the QObject parent |
|
virtual |
Destructor.
|
inline |
Returns the operation description /returns the instance of the description class.
| const QStringList & ModuleBase_Operation::grantedOperationIds | ( | ) | const |
Returns list of granted operation indices.
| void ModuleBase_Operation::setGrantedOperationIds | ( | const QStringList & | theList | ) |
Sets list of operation indices, which can be started without the current operation stop.
| theList | an ids |
|
virtual |
Must return true if this operation can be launched as nested for any current operation and it is not necessary to check this operation on validity.
By default the operation is not granted. The method has to be redefined for granted operations.
|
virtual |
Returns True if data of its feature was modified during operation.
| QString ModuleBase_Operation::id | ( | ) | const |
Returns operations Id from it's description.
|
virtual |
Must return True if the operation's feature is valid.
Since IOperation does not have any feature returns false.
Reimplemented in ModuleBase_OperationFeature.
|
virtual |
Set property pane to the operation.
| theProp | a property panel instance |
Reimplemented in ModuleBase_OperationFeature.
|
inline |
|
signal |
The operation is started.
|
signal |
The operation is started.
|
signal |
The operation is aborted.
|
signal |
The operation is aborted.
|
signal |
The operation is committed.
|
signal |
The operation is committed.
|
signal |
The operation is aborted or committed.
|
signal |
The operation is resumed.
|
signal |
The operation is postponed.
|
virtualslot |
Starts operation Public slot.
Verifies whether operation can be started and starts operation. This slot is not virtual and cannot be redefined. Redefine startOperation method to change behavior of operation. There is no point in using this method. It would be better to inherit own operator from base one and redefine startOperation method instead.
|
virtualslot |
Deactivates current operation which can be resumed later.
|
virtualslot |
Resumes operation Public slot.
Verifies whether operation can be started and starts operation. This slot is not virtual and cannot be redefined. Redefine startOperation method to change behavior of operation. There is no point in using this method. It would be better to inherit own operator from base one and redefine startOperation method instead.
|
virtualslot |
Aborts operation Public slot.
Aborts operation. This slot is not virtual and cannot be redefined. Redefine abortOperation method to change behavior of operation instead
|
virtualslot |
Commits operation Public slot.
Commits operation. This slot is not virtual and cannot be redefined. Redefine commitOperation method to change behavior of operation instead
|
slot |
Changes the modified flag of the operation.
|
slot |
Changes the modified flag of the operation if the current state of the widget is modified.
| thePreviousState | the previous value state of the widget |
|
inlineprotectedvirtual |
Virtual method called when operation started (see start() method for more description) Default impl calls corresponding slot and commits immediately.
Reimplemented in ModuleBase_OperationFeature.
|
inlineprotectedvirtual |
Implementation of specific steps on postpone operation.
|
inlineprotectedvirtual |
Virtual method called when operation stopped - committed or aborted.
Reimplemented in ModuleBase_OperationFeature.
|
inlineprotectedvirtual |
Virtual method called when operation aborted (see abort() method for more description)
|
inlineprotectedvirtual |
Virtual method called when operation committed (see commit() method for more description)
|
inlineprotectedvirtual |
Virtual method called after operation committed (see commit() method for more description)
|
inlineprotectedvirtual |
Virtual method called after operation resume (see resume() method for more description)
Reimplemented in ModuleBase_OperationFeature.
|
protectedvirtual |
Verifies whether this operator can be committed.