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

graphical node text label and Cluster label implementation More...

#include <Label.hpp>

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

Public Member Functions

 Label (const std::string &label, QGraphicsItem *parent)
 constructor More...
 
void setTextInteraction (bool on, bool selectAll=false)
 toggles direct editing options of the displayed text More...
 

Protected Member Functions

void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 qt mouse double-click callback More...
 
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value)
 qt item changed callback More...
 

Detailed Description

graphical node text label and Cluster label implementation

specific to the diagram editor widget: editable text representation

Constructor & Destructor Documentation

◆ Label()

graph_analysis::gui::items::Label::Label ( const std::string &  label,
QGraphicsItem *  parent 
)

constructor

Parameters
labeltext to be displayed
parentParent of this item

Member Function Documentation

◆ itemChange()

QVariant graph_analysis::gui::items::Label::itemChange ( QGraphicsItem::GraphicsItemChange  change,
const QVariant &  value 
)
protected

qt item changed callback

◆ mouseDoubleClickEvent()

void graph_analysis::gui::items::Label::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
protected

qt mouse double-click callback

◆ setTextInteraction()

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

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