Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Private Attributes

SimulationDialog Class Reference

Dialog for manipulation with simulation. More...

#include <automataWorkSimulator.h>

Collaboration diagram for SimulationDialog:

List of all members.

Public Slots

void updateState ()
 called from simulator (owner)

Signals

void animSpeedChanged (double)
void closed ()
void stepSpeedChanged (double)
void useAnimChanged (int)

Public Member Functions

 SimulationDialog (Editor *editor, AutomataWorkSimulator *simulator)
 ~SimulationDialog ()
QString getInput () const
int getInputLength () const

Static Public Member Functions

static void showMessageSetInputFailed (QWidget *parent)

Protected Slots

void appendSymbol (const QString &sybmol)
void play ()
void prettyPrintChanged (int state)
void set ()
bool setInput ()
void stepForward ()

Private Attributes

QDoubleSpinBox * m_animSpeed
QPushButton * m_btnGenerate
QPushButton * m_btnPause
QPushButton * m_btnPlay
QPushButton * m_btnReset
QPushButton * m_btnStepBack
QPushButton * m_btnStepFwd
bool m_bUsePrettyPrint
QCheckBox * m_checkPrettyPrint
QCheckBox * m_checkUseAnim
Editorm_editor
QLineEdit * m_edtInput
AutomataWorkSimulatorm_simulator
QDoubleSpinBox * m_stepSpeed
QTextEdit * m_textSimulation

Detailed Description

Dialog for manipulation with simulation.

See also:
AutomataWorkSimulator

Definition at line 142 of file automataWorkSimulator.h.


Constructor & Destructor Documentation

SimulationDialog::SimulationDialog ( Editor editor,
AutomataWorkSimulator simulator 
)
SimulationDialog::~SimulationDialog (  ) 

Definition at line 747 of file automataWorkSimulator.cpp.

References DBGLOG.


Member Function Documentation

void SimulationDialog::animSpeedChanged ( double  _t1  )  [signal]

Definition at line 242 of file moc_automataWorkSimulator.cpp.

Referenced by SimulationDialog().

Here is the caller graph for this function:

void SimulationDialog::appendSymbol ( const QString &  sybmol  )  [protected, slot]

Definition at line 835 of file automataWorkSimulator.cpp.

References StringProcessor::getSymbolPrintInfo(), StringProcessor::isSpecialSymbol(), m_bUsePrettyPrint, and m_textSimulation.

Referenced by updateState().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulationDialog::closed (  )  [signal]

Definition at line 222 of file moc_automataWorkSimulator.cpp.

Referenced by SimulationDialog().

Here is the caller graph for this function:

QString SimulationDialog::getInput (  )  const

Definition at line 757 of file automataWorkSimulator.cpp.

References m_edtInput.

int SimulationDialog::getInputLength (  )  const

Definition at line 752 of file automataWorkSimulator.cpp.

References m_edtInput.

void SimulationDialog::play (  )  [protected, slot]

Definition at line 872 of file automataWorkSimulator.cpp.

References AutomataWorkSimulator::isSet(), m_simulator, and AutomataWorkSimulator::play().

Referenced by SimulationDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulationDialog::prettyPrintChanged ( int  state  )  [protected, slot]

Definition at line 857 of file automataWorkSimulator.cpp.

References m_bUsePrettyPrint, and updateState().

Referenced by SimulationDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulationDialog::set (  )  [protected, slot]

Definition at line 881 of file automataWorkSimulator.cpp.

References AutomataWorkSimulator::isSet(), m_simulator, setInput(), and showMessageSetInputFailed().

Here is the call graph for this function:

bool SimulationDialog::setInput (  )  [protected, slot]

Definition at line 892 of file automataWorkSimulator.cpp.

References m_edtInput, m_simulator, and AutomataWorkSimulator::setInput().

Referenced by set().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulationDialog::showMessageSetInputFailed ( QWidget *  parent  )  [static]

Definition at line 900 of file automataWorkSimulator.cpp.

Referenced by AutomataWorkSimulator::generateSlideshow(), and set().

Here is the caller graph for this function:

void SimulationDialog::stepForward (  )  [protected, slot]

Definition at line 863 of file automataWorkSimulator.cpp.

References AutomataWorkSimulator::isSet(), m_simulator, and AutomataWorkSimulator::stepForward().

Referenced by SimulationDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulationDialog::stepSpeedChanged ( double  _t1  )  [signal]

Definition at line 235 of file moc_automataWorkSimulator.cpp.

Referenced by SimulationDialog().

Here is the caller graph for this function:

void SimulationDialog::updateState (  )  [slot]
void SimulationDialog::useAnimChanged ( int  _t1  )  [signal]

Definition at line 228 of file moc_automataWorkSimulator.cpp.

Referenced by SimulationDialog().

Here is the caller graph for this function:


Member Data Documentation

QDoubleSpinBox* SimulationDialog::m_animSpeed [private]

Definition at line 175 of file automataWorkSimulator.h.

Referenced by SimulationDialog().

QPushButton* SimulationDialog::m_btnGenerate [private]

Definition at line 169 of file automataWorkSimulator.h.

Referenced by SimulationDialog().

QPushButton* SimulationDialog::m_btnPause [private]

Definition at line 166 of file automataWorkSimulator.h.

Referenced by SimulationDialog(), and updateState().

QPushButton* SimulationDialog::m_btnPlay [private]

Definition at line 165 of file automataWorkSimulator.h.

Referenced by SimulationDialog(), and updateState().

QPushButton* SimulationDialog::m_btnReset [private]

Definition at line 167 of file automataWorkSimulator.h.

Referenced by SimulationDialog(), and updateState().

QPushButton* SimulationDialog::m_btnStepBack [private]

Definition at line 164 of file automataWorkSimulator.h.

Referenced by SimulationDialog(), and updateState().

QPushButton* SimulationDialog::m_btnStepFwd [private]

Definition at line 163 of file automataWorkSimulator.h.

Referenced by SimulationDialog(), and updateState().

if true, latex symbols are drawed in symbol font, otherwise is printed latex syntax (e.g. )

Definition at line 179 of file automataWorkSimulator.h.

Referenced by appendSymbol(), and prettyPrintChanged().

Definition at line 177 of file automataWorkSimulator.h.

Referenced by SimulationDialog().

QCheckBox* SimulationDialog::m_checkUseAnim [private]

Definition at line 173 of file automataWorkSimulator.h.

Referenced by SimulationDialog().

Definition at line 158 of file automataWorkSimulator.h.

QLineEdit* SimulationDialog::m_edtInput [private]

Definition at line 159 of file automataWorkSimulator.h.

Referenced by play(), set(), setInput(), SimulationDialog(), stepForward(), and updateState().

QDoubleSpinBox* SimulationDialog::m_stepSpeed [private]

Definition at line 174 of file automataWorkSimulator.h.

Referenced by SimulationDialog().

QTextEdit* SimulationDialog::m_textSimulation [private]

Definition at line 171 of file automataWorkSimulator.h.

Referenced by appendSymbol(), SimulationDialog(), and updateState().


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