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

Proposition Class Reference

#include <proposition.hpp>

Inherits Node.

Inheritance diagram for Proposition:

Inheritance graph
[legend]
Collaboration diagram for Proposition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Proposition (QWidget *parent, const char *name=0, WFlags f=0)
 ~Proposition ()
Edgeconnect (Proposition *destino, float confianca)
void disconnect (Edge *e)
void draw (QPainter *painter)
QString category ()
QString references ()
void setCategory (QString catid)
void setCategoryId (QString newcatid)
void setTrust (float newTrust)
void setReferences (QString newReferences)

Public Attributes

Categorycat
QColor fillColor
QColor borderColor
QColor propFillColor
QColor textColor
PropositionGraphgraph

Protected Member Functions

void paintEvent (QPaintEvent *event)
void changeActive (QColor thisColor)
void mousePressEvent (QMouseEvent *e)
void init ()

Protected Attributes

QString p_references

Constructor & Destructor Documentation

Proposition::Proposition QWidget *  parent,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 27 of file proposition.cpp.

References init().

Here is the call graph for this function:

Proposition::~Proposition  ) 
 

Definition at line 33 of file proposition.cpp.


Member Function Documentation

QString Proposition::category  )  [inline]
 

Definition at line 40 of file proposition.hpp.

References cat, and Category::id().

Referenced by GraphML::saveProp().

Here is the call graph for this function:

void Proposition::changeActive QColor  thisColor  )  [protected]
 

Definition at line 118 of file proposition.cpp.

References fillColor, graph, PropositionGraph::propositionSelected(), and PropositionGraph::setPropositionSelected().

Referenced by mousePressEvent().

Here is the call graph for this function:

Edge * Proposition::connect Proposition destino,
float  confianca
 

Definition at line 89 of file proposition.cpp.

References e, graph, Graph::gui, Principal::props, and Edge::setTrust().

Here is the call graph for this function:

void Proposition::disconnect Edge e  ) 
 

Definition at line 96 of file proposition.cpp.

void Proposition::draw QPainter *  painter  ) 
 

Definition at line 109 of file proposition.cpp.

References borderColor, fillColor, Node::publicName(), and textColor.

Referenced by paintEvent().

Here is the call graph for this function:

void Proposition::init  )  [protected]
 

Reimplemented from Node.

Definition at line 38 of file proposition.cpp.

References borderColor, COLOR_PROP_BORDER, COLOR_PROP_DEFAULT, fillColor, propFillColor, Node::setDescription(), Node::setPublicName(), and textColor.

Referenced by Proposition().

Here is the call graph for this function:

void Proposition::mousePressEvent QMouseEvent *  e  )  [protected]
 

Definition at line 131 of file proposition.cpp.

References PropositionGraph::addStack, changeActive(), COLOR_PROP_SELECTED, COLOR_SOURCE, PropositionGraph::connect(), PropositionGraph::deleteProp(), PropositionGraph::delStack, graph, PropositionGraph::newProposition(), PropositionGraph::propositionSelected(), Graph::setChanged(), PropositionGraph::setStatus(), Graph::status(), STATUS_CONN_SOURCE, STATUS_CONN_TARGET, STATUS_NEWPROP, STATUS_NOOP, STATUS_PROP_DELETE, and PropositionGraph::useDot().

Here is the call graph for this function:

void Proposition::paintEvent QPaintEvent *  event  )  [protected]
 

Definition at line 102 of file proposition.cpp.

References draw().

Here is the call graph for this function:

QString Proposition::references  )  [inline]
 

Definition at line 41 of file proposition.hpp.

References p_references.

Referenced by GraphML::saveProp(), and PropositionGraph::setPropositionSelected().

void Proposition::setCategory QString  catid  ) 
 

Definition at line 62 of file proposition.cpp.

References borderColor, cat, PropositionGraph::categories, Category::color(), and graph.

Referenced by setCategoryId().

Here is the call graph for this function:

void Proposition::setCategoryId QString  newcatid  ) 
 

Definition at line 71 of file proposition.cpp.

References PropositionGraph::categories, graph, and setCategory().

Here is the call graph for this function:

void Proposition::setReferences QString  newReferences  ) 
 

Definition at line 84 of file proposition.cpp.

References p_references.

void Proposition::setTrust float  newTrust  ) 
 

Reimplemented from Node.

Definition at line 48 of file proposition.cpp.

References COLOR_PROP_BORDER, COLOR_TEXT_ALTERNATE, fillColor, Node::p_trust, propFillColor, Node::setChanged(), textColor, and trust2rgb().

Here is the call graph for this function:


Member Data Documentation

QColor Proposition::borderColor
 

Definition at line 50 of file proposition.hpp.

Referenced by draw(), init(), and setCategory().

Category* Proposition::cat
 

Definition at line 39 of file proposition.hpp.

Referenced by category(), setCategory(), and PropositionGraph::setPropositionSelected().

QColor Proposition::fillColor
 

Definition at line 49 of file proposition.hpp.

Referenced by changeActive(), draw(), init(), and setTrust().

PropositionGraph* Proposition::graph
 

Definition at line 53 of file proposition.hpp.

Referenced by changeActive(), connect(), mousePressEvent(), setCategory(), and setCategoryId().

QString Proposition::p_references [protected]
 

Definition at line 57 of file proposition.hpp.

Referenced by references(), and setReferences().

QColor Proposition::propFillColor
 

Definition at line 51 of file proposition.hpp.

Referenced by init(), and setTrust().

QColor Proposition::textColor
 

Definition at line 52 of file proposition.hpp.

Referenced by draw(), init(), and setTrust().


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