Class for the main window widget. More...
#include <snMainWindow.h>
Public Types | |
enum | SimStatusType { NoConfig, Ready, Running, Stopped } |
Defines the status of the current simulation. After configuration file was loaded: NoConfig -> Ready After start button was pressed: Ready -> Running After stop button was pressed or simulation finished: Running -> Stopped. More... | |
Public Slots | |
void | logDeb (const QString &, int d) |
loggs a message with a certain debugging level More... | |
void | log (const QString &) |
loggs a message More... | |
void | logErr (const QString &) |
loggs an error More... | |
void | reqplot () |
is periodically called by a timer to update the display More... | |
void | updateSimProgressBar () |
updates the simulation progress bar in the main window More... | |
void | startSimu () |
loggs start the simulation More... | |
void | setDebugLevel (int) |
set debugging level. Messages with a debugging level smaller or equal to this value will be shown More... | |
Public Member Functions | |
snMainWindow (bool pquit_when_finished) | |
virtual | ~snMainWindow () |
void | loadFile (QString filename) |
Load configuration file. More... | |
SimStatusType | getSimStatus () |
Returns the current simulation status. More... | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
bool | openFile () |
void | stopSimu () |
void | exitProg () |
void | about () |
Private Member Functions | |
void | createActions () |
void | createToolBars () |
void | createMenus () |
void | createStatusBar () |
bool | okToContinue () |
void | setSimStatus (SimStatusType t) |
Private Attributes | |
bool | quit_when_finished |
if parameter -s is given on command line, SNACS will exit after simulation is done. More... | |
QFile | logfile_handle |
QAction * | openAction |
QAction * | startAction |
QAction * | stopAction |
QAction * | exitAction |
QAction * | aboutAction |
QMenu * | fileMenu |
QMenu * | helpMenu |
QToolBar * | ToolBar |
QToolBar * | ConfigBar |
QTextEdit * | Log |
QLabel * | StatusLabel |
QSpinBox * | DebugSpin |
int | DebugLevel |
QTime * | SimTime |
QProgressBar * | SimProgress |
QTimer * | SimProgressBarTimer |
QLineEdit * | LRealTimeValue |
QLineEdit * | LRunTimeValue |
QLineEdit * | LSimTimeValue |
SimStatusType | SimStatus |
SNSignal | Sig |
parameters that are common to every snBlock More... | |
ProcessingParameters | SigProc |
parameters that can be changed by every snBlock More... | |
unsigned int | PlotUpdateInterval |
QTimer * | timer |
std::vector< snWidget * > * | snWs |
contains pointers to all widgets More... | |
std::vector< ConcBuf * > * | ConcBufs |
pointers to all ConcBuffers More... | |
std::vector< snBlock * > * | snBlocks |
vector of base class pointers for all snBlocks More... | |
Class for the main window widget.
snMainWindow::snMainWindow | ( | bool | pquit_when_finished | ) |
|
virtual |
|
privateslot |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
privateslot |
snMainWindow::SimStatusType snMainWindow::getSimStatus | ( | ) |
Returns the current simulation status.
void snMainWindow::loadFile | ( | QString | filename | ) |
Load configuration file.
<QString | filename> filename |
|
slot |
loggs a message
|
slot |
loggs a message with a certain debugging level
|
slot |
loggs an error
|
private |
|
privateslot |
|
slot |
is periodically called by a timer to update the display
|
slot |
set debugging level. Messages with a debugging level smaller or equal to this value will be shown
|
private |
|
slot |
loggs start the simulation
|
privateslot |
|
slot |
updates the simulation progress bar in the main window
|
private |
|
private |
pointers to all ConcBuffers
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
if parameter -s is given on command line, SNACS will exit after simulation is done.
|
private |
parameters that can be changed by every snBlock
|
private |
|
private |
|
private |
|
private |
|
private |
vector of base class pointers for all snBlocks
|
private |
contains pointers to all widgets
|
private |
|
private |
|
private |
|
private |
|
private |