graph_analysis
Public Member Functions | Protected Member Functions | List of all members
graph_analysis::gui::items::EdgeLabel Class Reference

graphical edge text label implementation More...

#include <EdgeLabel.hpp>

Inheritance diagram for graph_analysis::gui::items::EdgeLabel:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::gui::items::EdgeLabel:
Collaboration graph
[legend]

Public Member Functions

 EdgeLabel (const std::string &label, QGraphicsItem *item)
 constructor More...
 
void setTextInteraction (bool on, bool selectAll=false)
 toggles direct editing options of the displayed text More...
 
void setText (const QString &label)
 updates displayed text string to 'label' More...
 

Protected Member Functions

QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value)
 qt item change callback More...
 

Detailed Description

graphical edge text label implementation

specific to the diagram editor widget graphical implementation - non-framed non-editable text representation

Constructor & Destructor Documentation

◆ EdgeLabel()

graph_analysis::gui::items::EdgeLabel::EdgeLabel ( const std::string &  label,
QGraphicsItem *  item 
)
inline

constructor

Parameters
labelrequired text label
itemparent graphical edge item

Member Function Documentation

◆ itemChange()

QVariant graph_analysis::gui::items::EdgeLabel::itemChange ( QGraphicsItem::GraphicsItemChange  change,
const QVariant &  value 
)
inlineprotected

qt item change callback

◆ setText()

void graph_analysis::gui::items::EdgeLabel::setText ( const QString &  label)
inline

updates displayed text string to 'label'

◆ setTextInteraction()

void graph_analysis::gui::items::EdgeLabel::setTextInteraction ( bool  on,
bool  selectAll = false 
)
inline

toggles direct editing options of the displayed text

Parameters
onboolean flag - true when the editing mode is to be turned on; false otherwise
selectAllboolean flag - true when in editing mode the whole text shall be initially automatically selected; false otherwise

The documentation for this class was generated from the following file: