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

Project Class Reference

Stores project information. More...

#include <Project.h>

Inheritance diagram for Project::

List of all members.

Public Methods

 Project (QObject *parent=NULL, const char *name=0)
 Constructor.

 ~Project ()
 Destructor.

void addMachine (QString, QString, int type, int numbits, QString, int, QString, int, QString, QFont, QFont, int)
 Adds a machine to the project. More...

void addMachine (Machine *m)
 Adds machine m to the project.

bool hasChanged ()
 Returns TRUE if the project has changed otherwise FALSE.

void setChanged (bool ch=TRUE)
 If ch is TRUE marks the project as changed otherwise marks it as unchanged.

UndoBuffergetUndoBuffer ()
 Returns the undo buffer.

MainWindowgetMain ()
 Returns the main window.

QDomDocument getDomDocument (bool onlyselected=FALSE, GObject *obj=NULL)
 Creates a DOM document of this project and returns it. More...


Public Attributes

Machinemachine
 Machine (projects can currently contain only a single machine).


Private Attributes

MainWindowmain
 Pointer to the main window.

UndoBufferundobuffer
 Undo buffer.

bool changed
 If TRUE, the project has been changed.


Detailed Description

Stores project information.


Member Function Documentation

void Project::addMachine QString n,
QString v,
int type,
int nb,
QString onamesm,
int ni,
QString inames,
int no,
QString onames,
QFont sf,
QFont tf,
int atype
 

Adds a machine to the project.

Parameters:
n   machine name
nb   number of bits to code the states
ni   number of input bits
no   number of output bits
sf   font used for drawing the state names
tf   font used for drawing the transition names
atype   arrow type (0: unfilled, 1: filled)

QDomDocument Project::getDomDocument bool onlyselected = FALSE,
GObject * obj = NULL
 

Creates a DOM document of this project and returns it.

Parameters:
onlyselected   If TRUE, only selected objects are used, otherwise the whole project is used
obj   If != NULL, only obj is used from the project
Returns:
The DOM document


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