april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
april::Gui::WqsTAuto Class Reference

A world in a QGraphicsScene with a timer. More...

#include <wqstauto.h>

+ Inheritance diagram for april::Gui::WqsTAuto:

Public Slots

bool changeFrequency (int new_val)
 change the frequency of the timer
bool changeInterval (int new_val)
 change number of ticks after which worldTick() is fired
bool start (void)
 start the internal timer
bool stop (void)
 stop the internal timer

Public Member Functions

 WqsTAuto (QObject *parent=NULL)
 constructor;
virtual ~WqsTAuto (void)
 destructor;
bool isRunning (void) const
 tell if the timer is running
int frequency (void) const
 tell the frequency of the timer
int interval (void) const
 number of ticks after which worldTick() is fired
- Public Member Functions inherited from april::Gui::WorldQScene
 WorldQScene (QObject *parent=NULL)
 constructor;
virtual ~WorldQScene (void)
 destructor;
Worldworld (void) const
 underlying world object
bool hasWorld (void) const
 has a world or is empty
bool openWorld (const QString &s_file, QString &s_err)
 open a world from a file
bool closeWorld (QString &s_err)
 close current world; fails if the world is running
bool loadWorld (World *w, QString &s_err)
 loads provided world
bool save (QString &s_err)
 save to current file; if none is associated user is asked
bool saveAs (QString &s_err)
 save to current file; if none is associated user is asked
const QString & associatedFile (void) const
 associated file
bool hasAssociatedFile (void) const
 has associated file

Detailed Description

A world in a QGraphicsScene with a timer.


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