BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
TemplateSimulator Class Referenceabstract

Base widget which represents simulator of the template. More...

#include <templatesimulator.h>

Collaboration diagram for TemplateSimulator:
Collaboration graph

Public Slots

virtual bool startSimulation ()=0
 (Re)starts the simulation. More...
 
virtual bool stopSimulation ()=0
 Stops simulation and resets its to initial state, all user data from simulation are cleared. More...
 
virtual bool goBack ()=0
 Gets simulation one step back. More...
 

Signals

void canGoBackChanged (bool can_go_back)
 Emitted if "can go back" status of simulator changes. More...
 
void simulationStopRequested ()
 Emitted if simulation is stopped from template itself.
 

Public Member Functions

 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.
 
TemplateCorecore () const
 Access to associated template core. More...
 

Protected Attributes

TemplateCorem_core
 

Detailed Description

Base widget which represents simulator of the template.

Definition at line 41 of file templatesimulator.h.

Member Function Documentation

void TemplateSimulator::canGoBackChanged ( bool  can_go_back)
signal

Emitted if "can go back" status of simulator changes.

Parameters
can_go_backTrue 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.

Here is the caller graph for this function:

TemplateCore * TemplateSimulator::core ( ) const

Access to associated template core.

Returns
Returns associated template core.
See also
TemplateCore

Definition at line 61 of file templatesimulator.cpp.

61  {
62  return m_core;
63 }

Here is the caller graph for this function:

virtual bool TemplateSimulator::goBack ( )
pure virtualslot

Gets simulation one step back.

Returns
Returns true if simulation was rolled one step back, false otherwise.

Here is the caller graph for this function:

virtual bool TemplateSimulator::startSimulation ( )
pure virtualslot

(Re)starts the simulation.

Returns
Returns true if simulation was (re)started, false otherwise.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: