#include <StatePropertiesDlgImpl.h>
Inheritance diagram for StatePropertiesDlgImpl::
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). | |
GState * | state |
Pointer of the state to add/edit. | |
QIntValidator * | valRadius |
Validator for the radius. | |
QIntValidator * | valLineWidth |
Validator for the line width. | |
MainWindow * | main |
Pointer to the main window. | |
QColor | color |
Color. |
|
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. |
|
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 |