Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIGEL_SlaveGUI::SIG_SimulationControls Class Reference

This class encapsulates the actions involved in controlling the visualisation's simulation. More...

#include <SIG_SimulationControls.h>

Inheritance diagram for SIGEL_SlaveGUI::SIG_SimulationControls:

List of all members.

Public Methods

 SIG_SimulationControls (QMainWindow *mainWindow, QString name = QString())
 The constructor of the SIG_SimulationControls. More...

virtual ~SIG_SimulationControls ()
 The destructor of the SIG_SimulationControls. More...


Public Attributes

QMainWindow* mainWindow
 The surrounding QMainWindow that contains the toolbar and menubar where this QActiongroup QActions should be inserted. More...

QAction* stopAction
 The stop action. More...

QAction* playAction
 The play action. More...

QAction* stepAction
 The step action. More...

QAction* fForwardAction
 The fast forward action. More...

QAction* recordAction
 The recording action. More...

QAction* alterMovieSettingsAction
 The alter movie settings action. More...

QAction* quitAction
QIconSet stopIcons
 The iconset for the stop action. More...

QIconSet playIcons
 The iconset for the play action. More...

QIconSet stepIcons
 The iconset for the step action. More...

QIconSet pauseIcons
 The iconset for the pause action. More...

QIconSet fForwardIcons
 The iconset for the fast forward action. More...

QIconSet recordIcons
 The iconset for the record button. More...

QIconSet recordingAllowedIcons
 The icon for the action with which the movie settings can be alter. More...

QIconSet recordingDisallowedIcons
QIconSet quitIcons
bool simulationRunning

Public Slots

void slotPlayPressed ()
void slotStopPressed ()
void slotRecordingAllowed ( bool isAllowed )

Detailed Description

This class encapsulates the actions involved in controlling the visualisation's simulation.

Because it inherits the class QActiongroup one can use simply the methods addTo and removeFrom to add respectively remove all controls with one command. The constructor automatically creates the QActions that make up the controls and adds them to this QActionGroup.

Definition at line 22 of file SIG_SimulationControls.h.


Constructor & Destructor Documentation

SIGEL_SlaveGUI::SIG_SimulationControls::SIG_SimulationControls ( QMainWindow * mainWindow,
QString name = QString() )
 

The constructor of the SIG_SimulationControls.

Creates QAction objects for the stop, play, step and fast forward actions and assigns them appropriate texts and iconsets.

Parameters:
mainWindow   The QMainWindow into which the QActions contained in this class should be inserted.
name   The name of this SIG_SimulationControls.

Definition at line 10 of file SIG_SimulationControls.cpp.

SIGEL_SlaveGUI::SIG_SimulationControls::~SIG_SimulationControls ( ) [virtual]
 

The destructor of the SIG_SimulationControls.

Definition at line 68 of file SIG_SimulationControls.cpp.


Member Function Documentation

void SIGEL_SlaveGUI::SIG_SimulationControls::slotPlayPressed ( ) [slot]
 

Definition at line 71 of file SIG_SimulationControls.cpp.

void SIGEL_SlaveGUI::SIG_SimulationControls::slotRecordingAllowed ( bool isAllowed ) [slot]
 

Definition at line 94 of file SIG_SimulationControls.cpp.

void SIGEL_SlaveGUI::SIG_SimulationControls::slotStopPressed ( ) [slot]
 

Definition at line 84 of file SIG_SimulationControls.cpp.


Member Data Documentation

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::alterMovieSettingsAction
 

The alter movie settings action.

Definition at line 99 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::fForwardAction
 

The fast forward action.

Activation should effect a progress of the simulation about 5 seconds, independent from the actual stepsize.

Definition at line 86 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::fForwardIcons
 

The iconset for the fast forward action.

Definition at line 126 of file SIG_SimulationControls.h.

QMainWindow * SIGEL_SlaveGUI::SIG_SimulationControls::mainWindow
 

The surrounding QMainWindow that contains the toolbar and menubar where this QActiongroup QActions should be inserted.

Definition at line 52 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::pauseIcons
 

The iconset for the pause action.

Definition at line 121 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::playAction
 

The play action.

The corresponding toolbarbutton respectively menuentry should posses two states: playing and pause. Activation should effect toggling between these states.

Definition at line 69 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::playIcons
 

The iconset for the play action.

Definition at line 111 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::quitAction
 

Definition at line 101 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::quitIcons
 

Definition at line 140 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::recordAction
 

The recording action.

This action indicated whether the simualtion shall be recorded or not.

Definition at line 94 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::recordIcons
 

The iconset for the record button.

Definition at line 131 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::recordingAllowedIcons
 

The icon for the action with which the movie settings can be alter.

Definition at line 136 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::recordingDisallowedIcons
 

Definition at line 138 of file SIG_SimulationControls.h.

bool SIGEL_SlaveGUI::SIG_SimulationControls::simulationRunning
 

Definition at line 142 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::stepAction
 

The step action.

Activation should effect a progress of the simulation about one timesteps. How much time this is depends on the simulation's stepsize.

Definition at line 78 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::stepIcons
 

The iconset for the step action.

Definition at line 116 of file SIG_SimulationControls.h.

QAction * SIGEL_SlaveGUI::SIG_SimulationControls::stopAction
 

The stop action.

Activation should effect the creation of a new simulation that is ready to be started from the beginning.

Definition at line 60 of file SIG_SimulationControls.h.

QIconSet SIGEL_SlaveGUI::SIG_SimulationControls::stopIcons
 

The iconset for the stop action.

Definition at line 106 of file SIG_SimulationControls.h.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:56 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000