Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Graph Class Reference

#include <graph.hpp>

Inherited by PropositionGraph.

Inheritance diagram for Graph:

Inheritance graph
[legend]
Collaboration diagram for Graph:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Graph ()
 ~Graph ()
int lastName ()
int lastEdge ()
void checkLastName (QString newname)
void checkLastEdge (QString newEdgeName)
void setLastName (int newLast)
void setLastEdge (int newLastEdge)
int status ()
void setStatus (int newstatus)
void checkPos (QPoint pos)
void check (Proposition p)
void error (QString message)
void setChanged (bool change)
bool isChanged ()
void clearAllEdges ()

Public Attributes

EdgeListedges
QPoint lastXY
Principalgui

Protected Member Functions

void init ()

Protected Attributes

int p_lastName
int p_lastEdge
int p_status
bool changed

Detailed Description

Graph is a QMap object containing a list of Propositions, indexed by numerical part of the proposition name.

Definition at line 30 of file graph.hpp.


Constructor & Destructor Documentation

Graph::Graph  ) 
 

Definition at line 23 of file graph.cpp.

References init().

Here is the call graph for this function:

Graph::~Graph  ) 
 

Definition at line 29 of file graph.cpp.


Member Function Documentation

void Graph::check Proposition  p  ) 
 

Definition at line 90 of file graph.cpp.

References checkLastName(), and checkPos().

Here is the call graph for this function:

void Graph::checkLastEdge QString  newEdgeName  ) 
 

Check if the "lastEdge" is greater than lastEdge() and do the necessary lastEdge() updates.

Definition at line 83 of file graph.cpp.

References lastEdge(), setLastEdge(), and x.

Here is the call graph for this function:

void Graph::checkLastName QString  newname  ) 
 

Check if the "newname" is greater than lastName() and do the necessary lastName() updates.

Definition at line 76 of file graph.cpp.

References lastName(), setLastName(), and x.

Referenced by check(), and PropositionGraph::newProposition().

Here is the call graph for this function:

void Graph::checkPos QPoint  pos  ) 
 

Check if the "pos" position us greater than lastXY() and do the necessary lastXY() updates.

Definition at line 69 of file graph.cpp.

References gui, lastXY, and Principal::props.

Referenced by Dot::callDot(), and check().

void Graph::clearAllEdges  ) 
 

Definition at line 49 of file graph.cpp.

References edges.

Referenced by Dot::callDot(), and PropositionGraph::load().

void Graph::error QString  message  ) 
 

Definition at line 98 of file graph.cpp.

Referenced by Mpsi::ioError(), GraphML::ioError(), and Cat::ioError().

void Graph::init  )  [protected]
 

Reimplemented in PropositionGraph.

Definition at line 60 of file graph.cpp.

References edges, lastXY, and setLastName().

Referenced by Graph().

Here is the call graph for this function:

bool Graph::isChanged  )  [inline]
 

Definition at line 75 of file graph.hpp.

References changed.

int Graph::lastEdge  )  [inline]
 

Definition at line 48 of file graph.hpp.

References p_lastEdge.

Referenced by checkLastEdge().

int Graph::lastName  )  [inline]
 

Return the greater index number used by an internal node name of the graph. This is used to assure that each new node have a unique name.

Definition at line 47 of file graph.hpp.

References p_lastName.

Referenced by checkLastName(), PropositionGraph::newProposition(), and GraphML::save().

void Graph::setChanged bool  change  ) 
 

Definition at line 103 of file graph.cpp.

References Principal::changeButton, changed, Principal::changeMessage, Principal::checked, Principal::commitAction, Principal::fileSaveAction, and gui.

Referenced by PropositionGraph::deleteProp(), PropositionGraph::edgeUpdate(), PropositionGraph::load(), Proposition::mousePressEvent(), PropositionGraph::newProposition(), PropositionGraph::save(), GraphML::saveProp(), and PropositionGraph::update().

void Graph::setLastEdge int  newLastEdge  ) 
 

Definition at line 39 of file graph.cpp.

References p_lastEdge.

Referenced by checkLastEdge().

void Graph::setLastName int  newLast  ) 
 

Definition at line 34 of file graph.cpp.

References p_lastName.

Referenced by checkLastName(), and init().

void Graph::setStatus int  newstatus  ) 
 

Reimplemented in PropositionGraph.

Definition at line 44 of file graph.cpp.

References p_status.

int Graph::status  )  [inline]
 

Definition at line 61 of file graph.hpp.

References p_status.

Referenced by Proposition::mousePressEvent(), and Edge::mousePressEvent().


Member Data Documentation

bool Graph::changed [protected]
 

Definition at line 85 of file graph.hpp.

Referenced by isChanged(), and setChanged().

EdgeList* Graph::edges
 

Definition at line 37 of file graph.hpp.

Referenced by BuildPropositions::BuildPropositions(), Dot::callDot(), clearAllEdges(), PropositionGraph::connect(), PropositionGraph::deleteEdge(), PropositionGraph::deleteProp(), Dot::exportDot(), init(), and PropositionGraph::load().

Principal* Graph::gui
 

Definition at line 78 of file graph.hpp.

Referenced by Dot::callDot(), checkPos(), PropositionGraph::connect(), Proposition::connect(), PropositionGraph::deleteEdge(), PropositionGraph::deleteProp(), PropositionGraph::edgeUpdate(), Principal::init(), PropositionGraph::initComboCat(), PropositionGraph::newProposition(), setChanged(), PropositionGraph::setEdgeSelected(), PropositionGraph::setPropositionSelected(), PropositionGraph::setStatus(), PropositionGraph::update(), and PropositionGraph::useDot().

QPoint Graph::lastXY
 

Returns the greater "x" and "y" coordinates for a node graphical position. The x and and y coordinates may reffer to different nodes.

Definition at line 42 of file graph.hpp.

Referenced by checkPos(), and init().

int Graph::p_lastEdge [protected]
 

Definition at line 82 of file graph.hpp.

Referenced by lastEdge(), and setLastEdge().

int Graph::p_lastName [protected]
 

Definition at line 81 of file graph.hpp.

Referenced by lastName(), and setLastName().

int Graph::p_status [protected]
 

Definition at line 84 of file graph.hpp.

Referenced by PropositionGraph::setStatus(), setStatus(), and status().


The documentation for this class was generated from the following files: Untitled Document Pesquisa Psi SourceForge.net Logo