the graph document long explanation needed. More...
#include <graphDocument.h>
Public Types | |
enum | Type { Simple = 0, Oriented } |
Public Slots | |
Graph * | addGraph (QString name="untitled") |
Graph * | activeGraph () |
void | setActiveGraph (Graph *g) |
Signals | |
void | graphCreated (Graph *g) |
void | graphRemoved (int i) |
void | nameChanged (QString name) |
void | heightChanged (qreal height) |
void | widthChanged (qreal width) |
void | activeGraphChanged (Graph *g) |
Public Member Functions | |
GraphDocument (const QString name, int width=800, int heigth=600) | |
GraphDocument (const GraphDocument &gd) | |
~GraphDocument () | |
bool | isModified () |
void | setName (const QString &name) |
QString | name () const |
void | setHeight (qreal height) |
qreal | height () const |
void | setWidth (qreal width) |
qreal | width () const |
void | savedDocumentAt (const QString &fileName) |
const QString & | documentPath () const |
bool | saveAsInternalFormat (const QString &filename) |
void | loadFromInternalFormat (const QString &filename) |
the graph document long explanation needed.
Definition at line 32 of file graphDocument.h.
enum GraphDocument::Type |
Definition at line 37 of file graphDocument.h.
GraphDocument::GraphDocument | ( | const QString | name, | |
int | width = 800 , |
|||
int | heigth = 600 | |||
) |
Default Constructor
name | sets the name of the document. |
Definition at line 31 of file graphDocument.cpp.
GraphDocument::GraphDocument | ( | const GraphDocument & | gd | ) |
default copy constructor
Definition at line 41 of file graphDocument.cpp.
GraphDocument::~GraphDocument | ( | ) |
Default Destructor
Definition at line 55 of file graphDocument.cpp.
Graph* GraphDocument::activeGraph | ( | ) | [inline, slot] |
Definition at line 89 of file graphDocument.h.
void GraphDocument::activeGraphChanged | ( | Graph * | g | ) | [signal] |
Graph * GraphDocument::addGraph | ( | QString | name = "untitled" |
) | [slot] |
Creates a new Graph
name | the name of the graph
|
Definition at line 121 of file graphDocument.cpp.
const QString & GraphDocument::documentPath | ( | ) | const |
Definition at line 138 of file graphDocument.cpp.
void GraphDocument::graphCreated | ( | Graph * | g | ) | [signal] |
emited when a new graph is created
g | the created graph |
void GraphDocument::graphRemoved | ( | int | i | ) | [signal] |
emitted when a graph is removed.
i | the index of the removed graph |
qreal GraphDocument::height | ( | ) | const |
Definition at line 96 of file graphDocument.cpp.
void GraphDocument::heightChanged | ( | qreal | height | ) | [signal] |
emitted when the document changes it's height
height | the new height of the document |
bool GraphDocument::isModified | ( | ) |
verifies if this document is changed
Definition at line 107 of file graphDocument.cpp.
void GraphDocument::loadFromInternalFormat | ( | const QString & | filename | ) |
Ignore it, commented line.
Definition at line 245 of file graphDocument.cpp.
QString GraphDocument::name | ( | ) | const |
Definition at line 78 of file graphDocument.cpp.
void GraphDocument::nameChanged | ( | QString | name | ) | [signal] |
emitted when the document changes it's name.
name | the new name of the document |
bool GraphDocument::saveAsInternalFormat | ( | const QString & | filename | ) |
Definition at line 144 of file graphDocument.cpp.
void GraphDocument::savedDocumentAt | ( | const QString & | fileName | ) |
Definition at line 133 of file graphDocument.cpp.
void GraphDocument::setActiveGraph | ( | Graph * | g | ) | [slot] |
Definition at line 112 of file graphDocument.cpp.
void GraphDocument::setHeight | ( | qreal | height | ) |
set the height of the working area
height | the new height of the document. |
Definition at line 90 of file graphDocument.cpp.
void GraphDocument::setName | ( | const QString & | name | ) |
Sets the current file name of the Graph Collection
name | changes the name of the document. |
Definition at line 71 of file graphDocument.cpp.
void GraphDocument::setWidth | ( | qreal | width | ) |
set the width of the working area
width | the new width of the working area. |
Definition at line 84 of file graphDocument.cpp.
qreal GraphDocument::width | ( | ) | const |
Definition at line 102 of file graphDocument.cpp.
void GraphDocument::widthChanged | ( | qreal | width | ) | [signal] |
emitted when the document changes it's width
width | the new width of the document |