Base widget which represents simulator of the template.
More...
#include <templatesimulator.h>
|
| TemplateSimulator (TemplateCore *core, QWidget *parent=0) |
|
QSize | sizeHint () const |
| Hint for default and fixed size for all simulator contents.
|
|
virtual void | launch () |
| Called when core with this simulator widget is fully loaded from XML bundle or newly created.
|
|
TemplateCore * | core () const |
| Access to associated template core. More...
|
|
Base widget which represents simulator of the template.
Definition at line 41 of file templatesimulator.h.
void TemplateSimulator::canGoBackChanged |
( |
bool |
can_go_back | ) |
|
|
signal |
Emitted if "can go back" status of simulator changes.
- Parameters
-
can_go_back | True if simulation can be rolled back one step, false otherwise. |
- Warning
- This signal MUST be emitted explicitly by simulator when its stopSimulator() slot is called.
virtual bool TemplateSimulator::goBack |
( |
| ) |
|
|
pure virtualslot |
Gets simulation one step back.
- Returns
- Returns true if simulation was rolled one step back, false otherwise.
virtual bool TemplateSimulator::startSimulation |
( |
| ) |
|
|
pure virtualslot |
(Re)starts the simulation.
- Returns
- Returns true if simulation was (re)started, false otherwise.
virtual bool TemplateSimulator::stopSimulation |
( |
| ) |
|
|
pure virtualslot |
Stops simulation and resets its to initial state, all user data from simulation are cleared.
- Returns
- Returns true if simulation was stopped, false otherwise.
The documentation for this class was generated from the following files: