GraphDocument Class Reference

the graph document long explanation needed. More...

#include <graphDocument.h>

Inheritance diagram for GraphDocument:
QObject

List of all members.

Public Types

enum  Type { Simple = 0, Oriented }

Public Slots

GraphaddGraph (QString name="untitled")
GraphactiveGraph ()
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)

Detailed Description

the graph document long explanation needed.

Definition at line 32 of file graphDocument.h.


Member Enumeration Documentation

Enumerator:
Simple 
Oriented 

Definition at line 37 of file graphDocument.h.


Constructor & Destructor Documentation

GraphDocument::GraphDocument ( const QString  name,
int  width = 800,
int  heigth = 600 
)

Default Constructor

Parameters:
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.


Member Function Documentation

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

Parameters:
name the name of the graph
Parameters:
type the the 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

Parameters:
g the created graph
void GraphDocument::graphRemoved ( int  i  )  [signal]

emitted when a graph is removed.

Parameters:
i the index of the removed graph
qreal GraphDocument::height (  )  const
Returns:
the heigth of the working area

Definition at line 96 of file graphDocument.cpp.

void GraphDocument::heightChanged ( qreal  height  )  [signal]

emitted when the document changes it's height

Parameters:
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
Returns:
the Name of the Collection of Graphs

Definition at line 78 of file graphDocument.cpp.

void GraphDocument::nameChanged ( QString  name  )  [signal]

emitted when the document changes it's name.

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
width the new width of the working area.

Definition at line 84 of file graphDocument.cpp.

qreal GraphDocument::width (  )  const
Returns:
the width of the working area

Definition at line 102 of file graphDocument.cpp.

void GraphDocument::widthChanged ( qreal  width  )  [signal]

emitted when the document changes it's width

Parameters:
width the new width of the document

The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:41 2010 for Gluon by  doxygen 1.6.3