SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
smtk::extension::qtTaskNameItem Class Reference

This item is used to display and change the name of a Task as well as activating the Task. More...

Inheritance diagram for smtk::extension::qtTaskNameItem:
[legend]
Collaboration diagram for smtk::extension::qtTaskNameItem:
[legend]

Public Member Functions

 qtTaskNameItem (qtTaskNode *node)
 
void setTextInteraction (bool on, bool selectAll=false)
 
void activateTask ()
 
void dataUpdated ()
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *evt) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *evt) override
 
QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

qtTaskNodem_node
 
QTimer * m_timer
 

Static Protected Attributes

static const std::string s_hasChildrenSymbol
 Unicode character used to indicate that the task contains children. More...
 
static const std::string s_canHaveChildrenSymbol
 Unicode character used to indicate that the task can accept tasks generated from at least one worklet in the manager or the task contains internal ports. More...
 

Detailed Description

This item is used to display and change the name of a Task as well as activating the Task.

When editing the task name, the i-beam curse is displayed. When toggling activation, the pointing hand cursor is used.

Member Data Documentation

◆ s_canHaveChildrenSymbol

const std::string smtk::extension::qtTaskNameItem::s_canHaveChildrenSymbol
staticprotected
Initial value:
=
"<span style=\"font-family:Font Awesome 6 Free\">&#x1f4c1;</span>&nbsp;"

Unicode character used to indicate that the task can accept tasks generated from at least one worklet in the manager or the task contains internal ports.

◆ s_hasChildrenSymbol

const std::string smtk::extension::qtTaskNameItem::s_hasChildrenSymbol
staticprotected
Initial value:
=
"<b><span style=\"font-family:Font Awesome 6 Free\">&#x1f4c1;</span></b>&nbsp;"

Unicode character used to indicate that the task contains children.


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