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

TxqConfigWsFrame Class Reference

A TxqWsFrame class adds the functionality of the VCR buttons to a TxqWsFrame. More...

#include <TxqConfigWsFrame.h>

Inheritance diagram for TxqConfigWsFrame::

TxqWsFrame TxqFrame QFrame TxqNldWsTrol TxqAccelWsTrol TxqSosWsTrol List of all members.

Public Slots

void startModel ()
 slot to start the model. More...

void runModel ()
 slot to run the model. More...

void stepModel ()
 slot to step the model. More...

void stopModel ()
 slot to stop the model. More...

void restartModel ()
 slot to restart the model. More...

void updatePlots ()
 slot to update the plots. More...

virtual void closeWindow ()
 slot to request to close the window. More...

void clearPlotsEvent ()
 slot to clear the plots. More...


Signals

void restartEvent ()
 signal to restart the model. More...

void startEvent ()
 signal to start the model. More...

void runEvent ()
 signal emitted when model is at run state. More...

void stopEvent ()
 signal emitted when model is at stop state. More...

void updateModel ()
 signal to update the model. More...


Public Methods

 TxqConfigWsFrame (TxAttributeSet *windowAttrib, QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqConfigWsFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods. More...

virtual ~TxqConfigWsFrame ()
 The TxqConfigWsFrame destructor. More...

void add (Txq2dFrame *f)
 Add a new plotting window. More...

void setTimeStep (double ts)
 Set the time step value. More...

virtual void disableButtons ()
 Disable the buttons. More...

void setInitialState ()
 Set the initial state of the buttons. More...

void updateStatusLabel (const QString &label)
 Update the status label. More...

QPushButton* addButton ()
 Creates and adds a button to the VCR button list and returns the button pointer. More...

void start ()
 Start the timer. More...

void stop ()
 Stop the timer. More...

void destroy ()
 Delete the widget. More...

void destroy (bool b, bool bb)
 declare the base class delete method to avoid compiler warnings. More...

int getModelState ()
 Get the model state. More...

void clearPlots ()
 Clear all the Txq2dFrame plots. More...


Protected Slots

bool close (bool forceKill=FALSE)
 Close and quit the window. More...


Protected Methods

void timerEvent (QTimerEvent *t)
 The timer event will do a step. More...

void addButtonSlots ()
 Add the VCR button slots. More...

void connectTrolSignals ()
 Connect the trol signals. More...


Protected Attributes

int maxIters
 The maximum number of iterations the default is unlimited. More...

int iterPerUpdate
 The number of iterations per graphics update the default is 1;. More...

std::vector<Txq2dFrame*> plotWindows
 The vector of 2d plot windows. More...


Private Attributes

int timer_id
 The timer id number. More...

int modelState
 The model state. More...

double timeStep
 The model time step. More...

int iterPerUpdateNumber
 The current iteration number. More...

int theCurrentStep
 The current step number. More...

TxAttributeSetwindow
 The window attribute set. More...


Detailed Description

A TxqWsFrame class adds the functionality of the VCR buttons to a TxqWsFrame.

It connects the VCR signals, holds the state of the model and has an add method to hold new plot Txq2dFrame's

Copyright 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqConfigWsFrame.h,v 1.9 2002/04/08 16:36:09 kgl Exp

Definition at line 50 of file TxqConfigWsFrame.h.


Constructor & Destructor Documentation

TxqConfigWsFrame::TxqConfigWsFrame ( TxAttributeSet * windowAttrib,
QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqConfigWsFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.

TxqConfigWsFrame::~TxqConfigWsFrame ( ) [virtual]
 

The TxqConfigWsFrame destructor.


Member Function Documentation

void TxqConfigWsFrame::add ( Txq2dFrame * f )
 

Add a new plotting window.

Parameters:
f   the Txq2dFrame to add to the workspace.

QPushButton * TxqConfigWsFrame::addButton ( )
 

Creates and adds a button to the VCR button list and returns the button pointer.

Parameters:
the   button pointer that was created. This will be automatically deleted by deleting this class.

void TxqConfigWsFrame::addButtonSlots ( ) [protected]
 

Add the VCR button slots.

void TxqConfigWsFrame::clearPlots ( )
 

Clear all the Txq2dFrame plots.

void TxqConfigWsFrame::clearPlotsEvent ( ) [slot]
 

slot to clear the plots.

bool TxqConfigWsFrame::close ( bool forceKill = FALSE ) [protected, virtual, slot]
 

Close and quit the window.

Parameters:
forceKill   the boolean is defaulted to false

Reimplemented from TxqFrame.

void TxqConfigWsFrame::closeWindow ( ) [virtual, slot]
 

slot to request to close the window.

void TxqConfigWsFrame::connectTrolSignals ( ) [protected]
 

Connect the trol signals.

connect the close signal generated from the user and connect the stop model signal.

void TxqConfigWsFrame::destroy ( bool b,
bool bb ) [inline]
 

declare the base class delete method to avoid compiler warnings.

Definition at line 138 of file TxqConfigWsFrame.h.

void TxqConfigWsFrame::destroy ( )
 

Delete the widget.

void TxqConfigWsFrame::disableButtons ( ) [virtual]
 

Disable the buttons.

int TxqConfigWsFrame::getModelState ( )
 

Get the model state.

void TxqConfigWsFrame::restartEvent ( ) [signal]
 

signal to restart the model.

void TxqConfigWsFrame::restartModel ( ) [slot]
 

slot to restart the model.

void TxqConfigWsFrame::runEvent ( ) [signal]
 

signal emitted when model is at run state.

void TxqConfigWsFrame::runModel ( ) [slot]
 

slot to run the model.

void TxqConfigWsFrame::setInitialState ( )
 

Set the initial state of the buttons.

void TxqConfigWsFrame::setTimeStep ( double ts )
 

Set the time step value.

Parameters:
ts   the time step value.

void TxqConfigWsFrame::start ( )
 

Start the timer.

Reimplemented in TxqNldWsTrol.

void TxqConfigWsFrame::startEvent ( ) [signal]
 

signal to start the model.

void TxqConfigWsFrame::startModel ( ) [slot]
 

slot to start the model.

void TxqConfigWsFrame::stepModel ( ) [slot]
 

slot to step the model.

void TxqConfigWsFrame::stop ( )
 

Stop the timer.

Reimplemented in TxqNldWsTrol.

void TxqConfigWsFrame::stopEvent ( ) [signal]
 

signal emitted when model is at stop state.

void TxqConfigWsFrame::stopModel ( ) [slot]
 

slot to stop the model.

void TxqConfigWsFrame::timerEvent ( QTimerEvent * t ) [protected]
 

The timer event will do a step.

Parameters:
t   the QTimerEvent pointer

void TxqConfigWsFrame::updateModel ( ) [signal]
 

signal to update the model.

void TxqConfigWsFrame::updatePlots ( ) [slot]
 

slot to update the plots.

void TxqConfigWsFrame::updateStatusLabel ( const QString & label )
 

Update the status label.

Parameters:
label   the label to update the status bar


Member Data Documentation

int TxqConfigWsFrame::iterPerUpdate [protected]
 

The number of iterations per graphics update the default is 1;.

Definition at line 222 of file TxqConfigWsFrame.h.

int TxqConfigWsFrame::iterPerUpdateNumber [private]
 

The current iteration number.

Used to use to test if the graphics needs to be updated.

Definition at line 293 of file TxqConfigWsFrame.h.

int TxqConfigWsFrame::maxIters [protected]
 

The maximum number of iterations the default is unlimited.

Definition at line 216 of file TxqConfigWsFrame.h.

int TxqConfigWsFrame::modelState [private]
 

The model state.

Definition at line 281 of file TxqConfigWsFrame.h.

std::vector< Txq2dFrame *> TxqConfigWsFrame::plotWindows [protected]
 

The vector of 2d plot windows.

Definition at line 227 of file TxqConfigWsFrame.h.

int TxqConfigWsFrame::theCurrentStep [private]
 

The current step number.

Definition at line 298 of file TxqConfigWsFrame.h.

double TxqConfigWsFrame::timeStep [private]
 

The model time step.

Definition at line 286 of file TxqConfigWsFrame.h.

int TxqConfigWsFrame::timer_id [private]
 

The timer id number.

Definition at line 276 of file TxqConfigWsFrame.h.

TxAttributeSet * TxqConfigWsFrame::window [private]
 

The window attribute set.

Reimplemented in TxqNldWsTrol.

Definition at line 303 of file TxqConfigWsFrame.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.