#include <Project.h>
Inheritance diagram for Project::
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. | |
UndoBuffer * | getUndoBuffer () |
Returns the undo buffer. | |
MainWindow * | getMain () |
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 | |
Machine * | machine |
Machine (projects can currently contain only a single machine). | |
Private Attributes | |
MainWindow * | main |
Pointer to the main window. | |
UndoBuffer * | undobuffer |
Undo buffer. | |
bool | changed |
If TRUE, the project has been changed. |
|
Adds a machine to the project.
|
|
Creates a DOM document of this project and returns it.
|