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

TxqNldTrol Class Reference

A Qt wdiget which configure NLD models; holds surface of section attribute sets, add "Surface of Section" to the "View" menu item and can create SosWsFrames. More...

#include <TxqNldTrol.h>

Inheritance diagram for TxqNldTrol::

TxqConfigFrame TxqMasterIoFrame TxqFrame QFrame TxqAccelTrol List of all members.

Public Slots

void saveSystemParams ()
 slot to save the system parameters. More...

virtual void surfaceSection ()
 start the Surface of Section plot. More...

virtual void updateViewAttribsSlot (TxAttributeSet *window, TxAttributeSet *data)
 slot to update the view attributes before showing the window. More...

virtual void updateModelAttribSlot (TxAttributeSet *attrib)
 slot to update the application from an attribute set. More...


Public Methods

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

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

void setViewMenuItems (vector< TxAttributeSet *> menuItems, vector< TxAttributeSet *> dataAttribs)
 Set the view menu items. More...

void setAdaptor (TxNldIfc *nldAdptPtr)
 Set the adaptor pointer. More...

virtual void postStartModel ()
 Post the request to start the model. More...

void customEvent (QCustomEvent *e)
 Custom event to allow posting of start. More...


Protected Slots

void resetMenuItems ()
 The slot to reset the menu items and start again when restarting the model from a restartEvent. More...

void editMenuAboutToShow ()
 The slot to setup the new Edit menu items. More...

void viewMenuAboutToShow ()
 The slot to setup the new View menu items. More...

void paramsMenuAboutToShow ()
 The slot to setup new Parameters menu items. More...


Protected Methods

virtual void start ()
 Start the model. More...

virtual void connectSignals ()
 This method is used by the constructor of each derived class to connect the relevant signals and slots. More...

void addEditMenuItems ()
 Add the Edit menu items. More...

void addMenuItems ()
 Add the new menu items. More...


Protected Attributes

TxNldIfcnldAdaptor
 The model adaptor pointer. More...

bool editMenuShown
 The Edit menu about to be shown flag This is set true if the Edit menu has already been shown. More...

bool viewMenuShown
 The View menu about to be shown flag This is set true if the View menu has already been shown. More...

bool paramsMenuShown
 The Parameters menu about to be shown flag This is set true if the Parameters menu has already been shown. More...


Private Methods

 TxqNldTrol ()
 declare default constructor private in order to not use. More...


Private Attributes

TxAttributeSetsosAttrib
 The Sos window attribute. More...


Detailed Description

A Qt wdiget which configure NLD models; holds surface of section attribute sets, add "Surface of Section" to the "View" menu item and can create SosWsFrames.

It holds a TxNldIfc pointer to acces the NLD model.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqNldTrol.h,v 1.7 2002/04/09 21:13:39 kgl Exp

Definition at line 36 of file TxqNldTrol.h.


Constructor & Destructor Documentation

TxqNldTrol::TxqNldTrol ( TxNldIfc * a,
QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

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

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

TxqNldTrol::~TxqNldTrol ( ) [virtual]
 

The TxqNldTrol destructor.

TxqNldTrol::TxqNldTrol ( ) [private]
 

declare default constructor private in order to not use.


Member Function Documentation

void TxqNldTrol::addEditMenuItems ( ) [protected, virtual]
 

Add the Edit menu items.

Reimplemented from TxqConfigFrame.

void TxqNldTrol::addMenuItems ( ) [protected]
 

Add the new menu items.

void TxqNldTrol::connectSignals ( ) [protected, virtual]
 

This method is used by the constructor of each derived class to connect the relevant signals and slots.

void TxqNldTrol::customEvent ( QCustomEvent * e ) [virtual]
 

Custom event to allow posting of start.

Parameters:
e   the QCustom event pointer.

Reimplemented from TxqMasterIoFrame.

Reimplemented in TxqAccelTrol.

void TxqNldTrol::editMenuAboutToShow ( ) [protected, slot]
 

The slot to setup the new Edit menu items.

void TxqNldTrol::paramsMenuAboutToShow ( ) [protected, slot]
 

The slot to setup new Parameters menu items.

void TxqNldTrol::postStartModel ( ) [virtual]
 

Post the request to start the model.

void TxqNldTrol::resetMenuItems ( ) [protected, slot]
 

The slot to reset the menu items and start again when restarting the model from a restartEvent.

void TxqNldTrol::saveSystemParams ( ) [slot]
 

slot to save the system parameters.

void TxqNldTrol::setAdaptor ( TxNldIfc * nldAdptPtr )
 

Set the adaptor pointer.

Parameters:
ptr   the TxNldIfc pointer to use to set the adaptor.

void TxqNldTrol::setViewMenuItems ( vector< TxAttributeSet *> menuItems,
vector< TxAttributeSet *> dataAttribs ) [virtual]
 

Set the view menu items.

Parameters:
menuItems   the vector of TxAttributeSet pointers. Each menuItems element contains a TxAttributeSet which defines a menu item with special menu keywords.
dataAttribs   the vector of TxAttributeSet pointers to be used by the Txq2dPlotFrame

Reimplemented from TxqConfigFrame.

Reimplemented in TxqAccelTrol.

void TxqNldTrol::start ( ) [protected, virtual]
 

Start the model.

Reimplemented in TxqAccelTrol.

void TxqNldTrol::surfaceSection ( ) [virtual, slot]
 

start the Surface of Section plot.

void TxqNldTrol::updateModelAttribSlot ( TxAttributeSet * attrib ) [virtual, slot]
 

slot to update the application from an attribute set.

Parameters:
attrib   the TxAttributeSet pointer to update its values

void TxqNldTrol::updateViewAttribsSlot ( TxAttributeSet * window,
TxAttributeSet * data ) [virtual, slot]
 

slot to update the view attributes before showing the window.

Parameters:
viewAttrib   the TxAttributeSet pointer to update its window values
dataAttrib   the TxAttributeSet pointer to update its data values

void TxqNldTrol::viewMenuAboutToShow ( ) [protected, slot]
 

The slot to setup the new View menu items.


Member Data Documentation

bool TxqNldTrol::editMenuShown [protected]
 

The Edit menu about to be shown flag This is set true if the Edit menu has already been shown.

Definition at line 161 of file TxqNldTrol.h.

TxNldIfc * TxqNldTrol::nldAdaptor [protected]
 

The model adaptor pointer.

Definition at line 155 of file TxqNldTrol.h.

bool TxqNldTrol::paramsMenuShown [protected]
 

The Parameters menu about to be shown flag This is set true if the Parameters menu has already been shown.

Definition at line 173 of file TxqNldTrol.h.

TxAttributeSet * TxqNldTrol::sosAttrib [private]
 

The Sos window attribute.

Definition at line 198 of file TxqNldTrol.h.

bool TxqNldTrol::viewMenuShown [protected]
 

The View menu about to be shown flag This is set true if the View menu has already been shown.

Definition at line 167 of file TxqNldTrol.h.


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