QAction subclass for handling execution of a Workspace.
#include <Workspace/Presentation/executionaction.h>
Inherits QAction.
◆ ExecutionAction()
◆ ~ExecutionAction()
◆ executionStateChange
void executionStateChange |
( |
bool |
isRunning | ) |
|
|
signal |
- Parameters
-
isRunning | If true, the execution thread has started, and if false the thread has stopped execution. |
◆ getWorkspace()
- Returns
- The workspace this action is associated with.
- See also
- setWorkspace()
◆ setWorkspace()
- Parameters
-
workspace | The workspace to associate with this action. |
The previous workspace association of this action is discarded. The previous workspace itself is unaffected apart from the removal of some observers.
- See also
- getWorkspace()
◆ updateAborted
void updateAborted |
( |
bool |
abnormal, |
|
|
double |
elapsedTime |
|
) |
| |
|
signal |
- Parameters
-
abnormal | If true, the update aborted as a result of an error during execution. If false, the workspace was asked to terminate execution, presumably by the user unchecking this action object. |
elapsedTime | The elapsed time in seconds since the last updateStarted() signal. |
- See also
- updateStarted(), updateFinished()
◆ updateFinished
void updateFinished |
( |
double |
elapsedTime | ) |
|
|
signal |
◆ updateStarted
This signal is emitted every time the execution thread starts processing the update set. It will only be emitted once up until the whole update set is brought up to date as a whole (ie the whole set is up to date at the one time).
After this signal has been emitted and all slots connected to it have been processed, the action will start an internal timer to allow the elapsed time for this update to be measured.
- See also
- updateFinished(), updateAborted()