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

StatePropertiesDlgImpl Class Reference

Dialog to change the properties of a state. More...

#include <StatePropertiesDlgImpl.h>

Inheritance diagram for StatePropertiesDlgImpl::

List of all members.

Public Types

enum  DialogMode { StateAdd, StateEdit }
 Dialog mode.


Public Slots

void chooseFGColor ()
 Lets you choose a foreground color for the state.

void validate ()
 Validates the state properties and displays an error box when invalid. More...


Public Methods

 StatePropertiesDlgImpl (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
 Constructs a StatePropertiesDlgImpl which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More...

 ~StatePropertiesDlgImpl ()
 Destroys the object and frees any allocated resources.

QString getName ()
 Returns the string of the name field.

void setName (const QString &s)
 Sets the string of the name field.

QString getDescription ()
 Returns the string of the description field.

void setDescription (QString s)
 Sets the string of the description field.

QString getCode ()
 Returns the code.

void setCode (const QString &s)
 Sets the code.

QString getRadius ()
 Returns the radius.

void setRadius (const QString &r)
 Sets the radius.

QString getLineWidth ()
 Returns the line width.

void setLineWidth (const QString &l)
 Sets the line width.

void setMainWindow (MainWindow *m)
 Sets the pointer to the main window.

void setMode (int m)
 Sets the current mode (StateAdd, StateEdit).

void setState (GState *s)
 Sets the state to edit.

void setColor (QColor c)
 Sets the color of the the state.

QColor getColor ()
 Returns the color.

void setCodeMaxLength (int l)
 Sets the maximum length of the code.

void selectFirst ()
 Selects the first field of the dialog and sets the focus.


Private Attributes

int mode
 Mode of the dialog (see DialogMode).

GStatestate
 Pointer of the state to add/edit.

QIntValidator * valRadius
 Validator for the radius.

QIntValidator * valLineWidth
 Validator for the line width.

MainWindowmain
 Pointer to the main window.

QColor color
 Color.


Detailed Description

Dialog to change the properties of a state.


Constructor & Destructor Documentation

StatePropertiesDlgImpl::StatePropertiesDlgImpl QWidget * parent = 0,
const char * name = 0,
bool modal = FALSE,
WFlags fl = 0
 

Constructs a StatePropertiesDlgImpl which is a child of 'parent', with the name 'name' and widget flags set to 'f'.

The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.


Member Function Documentation

void StatePropertiesDlgImpl::validate [slot]
 

Validates the state properties and displays an error box when invalid.

Displays and error box if no name is given, if the code is not in binary format, if the values are out of range or if the code already exists


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:17 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001