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

PropositionGraph Class Reference

#include <propositiongraph.hpp>

Inherits Graph.

Inheritance diagram for PropositionGraph:

Inheritance graph
[legend]
Collaboration diagram for PropositionGraph:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PropositionGraph ()
 ~PropositionGraph ()
QString newProposition ()
void newProposition (QString pname)
void newProposition (Proposition *father)
Edgeconnect (QString source, QString target)
Edgeconnect (Proposition *source, Proposition *target)
Edgeconnect (QString source, QString target, QString trust)
void load ()
void save (QString dir)
void update ()
void edgeUpdate ()
void loadCats ()
void useDot ()
void init ()
void initComboCat ()
PropositionpropositionSelected ()
EdgeedgeSelected ()
short int info ()
void setPropositionSelected (Proposition *sel)
void setEdgeSelected (Edge *sel)
void setInfo (short int inf)
void setStatus (int newstatus)
void deleteEdge (Edge *delEdge)
void deleteProp (Proposition *delProp)

Public Attributes

CategoryListcategories
QPtrStack< PropositionaddStack
QPtrStack< PropositiondelStack

Protected Attributes

Propositionp_selected
Edgee_selected
short int p_info

Constructor & Destructor Documentation

PropositionGraph::PropositionGraph  ) 
 

Definition at line 34 of file propositiongraph.cpp.

References init().

Here is the call graph for this function:

PropositionGraph::~PropositionGraph  ) 
 

Definition at line 40 of file propositiongraph.cpp.


Member Function Documentation

Edge * PropositionGraph::connect QString  source,
QString  target,
QString  trust
 

Definition at line 144 of file propositiongraph.cpp.

References connect(), e, and Edge::setTrust().

Here is the call graph for this function:

Edge * PropositionGraph::connect Proposition source,
Proposition target
 

Definition at line 139 of file propositiongraph.cpp.

References connect().

Here is the call graph for this function:

Edge * PropositionGraph::connect QString  source,
QString  target
 

Definition at line 125 of file propositiongraph.cpp.

References e, Graph::edges, Graph::gui, Principal::props, and s.

Referenced by Dot::callDot(), connect(), Mpsi::endElement(), Proposition::mousePressEvent(), and newProposition().

void PropositionGraph::deleteEdge Edge delEdge  ) 
 

Definition at line 45 of file propositiongraph.cpp.

References Graph::edges, Graph::gui, Principal::keywordsEdit, Edge::source(), Edge::target(), and useDot().

Referenced by Edge::mousePressEvent().

Here is the call graph for this function:

void PropositionGraph::deleteProp Proposition delProp  ) 
 

Definition at line 68 of file propositiongraph.cpp.

References Graph::edges, Graph::gui, Node::incoming, Node::outgoing, propositionSelected(), Graph::setChanged(), and setPropositionSelected().

Referenced by Proposition::mousePressEvent().

Here is the call graph for this function:

Edge* PropositionGraph::edgeSelected  )  [inline]
 

Definition at line 56 of file propositiongraph.hpp.

References e_selected.

Referenced by Edge::changeActive(), and edgeUpdate().

void PropositionGraph::edgeUpdate  ) 
 

Definition at line 275 of file propositiongraph.cpp.

References edgeSelected(), Principal::edgeTrust, Graph::gui, Graph::setChanged(), trustItem2float(), and useDot().

Referenced by Principal::changeButton_clicked().

Here is the call graph for this function:

short int PropositionGraph::info  )  [inline]
 

Definition at line 57 of file propositiongraph.hpp.

References p_info.

Referenced by Principal::changeButton_clicked().

void PropositionGraph::init  ) 
 

Reimplemented from Graph.

Definition at line 95 of file propositiongraph.cpp.

References categories.

Referenced by PropositionGraph().

void PropositionGraph::initComboCat  ) 
 

Definition at line 178 of file propositiongraph.cpp.

References categories, Principal::categorycombo, and Graph::gui.

Referenced by load().

void PropositionGraph::load  ) 
 

Load graph data from files.

Definition at line 151 of file propositiongraph.cpp.

References Graph::clearAllEdges(), Graph::edges, initComboCat(), loadCats(), Graph::setChanged(), setPropositionSelected(), and useDot().

Referenced by Principal::CVS_activated(), Principal::init(), and Principal::sOpen().

Here is the call graph for this function:

void PropositionGraph::loadCats  ) 
 

Definition at line 255 of file propositiongraph.cpp.

Referenced by load().

void PropositionGraph::newProposition Proposition father  ) 
 

Definition at line 116 of file propositiongraph.cpp.

References connect(), newProposition(), Graph::setChanged(), and useDot().

Here is the call graph for this function:

void PropositionGraph::newProposition QString  pname  ) 
 

Definition at line 107 of file propositiongraph.cpp.

References Graph::checkLastName(), Graph::gui, and Principal::props.

Here is the call graph for this function:

QString PropositionGraph::newProposition  ) 
 

Creates a new proposition with a unique name and defaults values.

Definition at line 100 of file propositiongraph.cpp.

References Graph::lastName().

Referenced by Proposition::mousePressEvent(), newProposition(), and GraphML::startElement().

Here is the call graph for this function:

Proposition* PropositionGraph::propositionSelected  )  [inline]
 

Definition at line 55 of file propositiongraph.hpp.

References p_selected.

Referenced by Proposition::changeActive(), deleteProp(), Proposition::mousePressEvent(), and update().

void PropositionGraph::save QString  dir  ) 
 

Save graph data to file.

Definition at line 191 of file propositiongraph.cpp.

References GraphML::save(), and Graph::setChanged().

Referenced by Principal::fileSaveAction_activated().

Here is the call graph for this function:

void PropositionGraph::setEdgeSelected Edge sel  ) 
 

Definition at line 219 of file propositiongraph.cpp.

References e_selected, Principal::edgeSource, Principal::edgeTarget, Principal::edgeTrust, float2TrustItem(), Graph::gui, and Principal::infoStack.

Referenced by Edge::changeActive().

Here is the call graph for this function:

void PropositionGraph::setInfo short int  inf  ) 
 

Definition at line 228 of file propositiongraph.cpp.

References p_info.

Referenced by Principal::edgeInfoChanged(), and Principal::infoChanged().

void PropositionGraph::setPropositionSelected Proposition sel  ) 
 

Definition at line 207 of file propositiongraph.cpp.

References Proposition::cat, Principal::categorycombo, Principal::changeButton, Node::description, Principal::DescriptionEdit, float2TrustItem(), Graph::gui, Principal::infoStack, Principal::nameEdit, p_selected, Category::posId(), Node::publicName, Proposition::references(), Principal::referencesEdit, Node::trust, and Principal::trustCombo.

Referenced by Proposition::changeActive(), deleteProp(), and load().

Here is the call graph for this function:

void PropositionGraph::setStatus int  newstatus  ) 
 

Reimplemented from Graph.

Definition at line 233 of file propositiongraph.cpp.

References Graph::gui, Graph::p_status, Principal::setStatusText(), STATUS_CONN_SOURCE, STATUS_CONN_TARGET, STATUS_EDGE_DELETE, STATUS_NEWPROP, and STATUS_NOOP.

Referenced by Principal::addConexao_activated(), Principal::delConexao_activated(), Principal::delProposition_activated(), Principal::editConexao_activated(), Proposition::mousePressEvent(), and Principal::newProposition_activated().

void PropositionGraph::update  ) 
 

Definition at line 266 of file propositiongraph.cpp.

References Principal::categorycombo, Principal::DescriptionEdit, Graph::gui, Principal::nameEdit, propositionSelected(), Principal::referencesEdit, and Graph::setChanged().

Referenced by Principal::changeButton_clicked().

Here is the call graph for this function:

void PropositionGraph::useDot  ) 
 

Definition at line 198 of file propositiongraph.cpp.

References Dot::callDot(), Graph::gui, and Principal::props.

Referenced by deleteEdge(), edgeUpdate(), load(), Proposition::mousePressEvent(), and newProposition().

Here is the call graph for this function:


Member Data Documentation

QPtrStack<Proposition> PropositionGraph::addStack
 

Definition at line 66 of file propositiongraph.hpp.

Referenced by Principal::fileSaveAction_activated(), and Proposition::mousePressEvent().

CategoryList* PropositionGraph::categories
 

Definition at line 65 of file propositiongraph.hpp.

Referenced by Cat::endElement(), init(), initComboCat(), GraphML::loadCat(), Proposition::setCategory(), and Proposition::setCategoryId().

QPtrStack<Proposition> PropositionGraph::delStack
 

Definition at line 67 of file propositiongraph.hpp.

Referenced by Principal::fileSaveAction_activated(), and Proposition::mousePressEvent().

Edge* PropositionGraph::e_selected [protected]
 

Definition at line 71 of file propositiongraph.hpp.

Referenced by edgeSelected(), and setEdgeSelected().

short int PropositionGraph::p_info [protected]
 

Definition at line 72 of file propositiongraph.hpp.

Referenced by info(), and setInfo().

Proposition* PropositionGraph::p_selected [protected]
 

Definition at line 70 of file propositiongraph.hpp.

Referenced by propositionSelected(), and setPropositionSelected().


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