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

MachinePropertiesDlgImpl Class Reference

Dialog to set the properties of the current machine. More...

#include <MachinePropertiesDlgImpl.h>

Inheritance diagram for MachinePropertiesDlgImpl::

List of all members.

Public Slots

void chooseSFont ()
 Lets you choose a font for the state names. More...

void chooseTFont ()
 Lets you choose a font for the conditions of the transitions. More...

void binaryClicked ()
 Called when the 'Binary' radio button is clicked.

void asciiClicked ()
 Called when the 'ASCII' radio button is clicked.


Public Methods

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

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

QString getName ()
 Returns the name of the machine.

void setName (QString n)
 Sets the name of the machine.

QString getVersion ()
 Returns the version of the machine.

void setVersion (QString v)
 Sets the version of the machine.

int getType ()
 Returns the type of the machine. 0: Binary / 1: ASCII.

void setType (int t)
 Sets the type of the machine to t.

int getNumBits ()
 Returns the number of bits the states are coded with, i.e. the number of moore outputs.

void setNumBits (int num)
 Sets the number of bits the states are coded with, i.e. the number of moore outputs.

QString getMooreOutputNames ()
 Returns the names of the moore output bits.

void setMooreOutputNames (QString s)
 Sets the names of the moore output bits.

int getNumInputs ()
 Returns the number of mealy input bits.

void setNumInputs (int num)
 Sets the number of mealy input bits.

QString getMealyInputNames ()
 Returns the names of mealy input bits.

void setMealyInputNames (QString s)
 Sets the names of mealy input bits.

int getNumOutputs ()
 Returns the number of mealy output bits.

void setNumOutputs (int num)
 Sets the number of mealy output bits.

QString getMealyOutputNames ()
 Returns the names of mealy output bits.

void setMealyOutputNames (QString s)
 Sets the names of mealy output bits.

QFont getSFont ()
 Returns the font used for the state names.

void setSFont (QFont f)
 Sets the font used for the state names.

QFont getTFont ()
 Returns the font used for the transition names.

void setTFont (QFont f)
 Sets the font used for the transition names.

int getArrowType ()
 Returns the arrow type used for the transitions.

void setArrowType (int at)
 Sets the arrow type used for the transitions.

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


Private Attributes

LBArrowLinelb1
 Line arrow list box item.

LBArrowFilledlb2
 Filled arrow list box item.

QFont sfont
 State font.

QFont tfont
 Transition font.

int saved_numbits
 Previous number of moore output bits.

int saved_numin
 Previous number of input bits.

int saved_numout
 Previous number of output bits.


Detailed Description

Dialog to set the properties of the current machine.


Constructor & Destructor Documentation

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

Constructs a MachinePropertiesDlhImpl 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 MachinePropertiesDlgImpl::chooseSFont [slot]
 

Lets you choose a font for the state names.

Opens a font dialog box and you can choose a font which will be used to draw the state names.

void MachinePropertiesDlgImpl::chooseTFont [slot]
 

Lets you choose a font for the conditions of the transitions.

Opens a font dialog box and you can choose a font which will be used to draw the conditions for the transitions.


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