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

An interactive widget that display the current path Task descendants. More...

#include <qtTaskPath.h>

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

Public Member Functions

 smtkSuperclassMacro (QScrollArea)
 
 qtTaskPath (qtTaskEditor *editor, QWidget *parent=nullptr)
 
QToolButton * addTask (smtk::task::Task *task)
 
smtk::task::TasklastTask () const
 Return the last task in the path.
 
void setActiveTask (smtk::task::Task *task)
 Update the path based on a task being made active. More...
 
void clearPath ()
 Clear the path.
 
void gotoRoot ()
 Set the Path to be the root (aka top level)
 
void updateActiveTask (bool makeActive)
 Signal handler for a task being made active via the path's tool buttons.
 
qtTaskEditoreditor () const
 Return the task editor.
 
bool includeInPath (const smtk::task::Task *task) const
 Returns true if the task should be included in the path. More...
 

Protected Attributes

QFrame * m_main
 
QHBoxLayout * m_mainLayout
 
qtTaskEditorm_editor
 
qtDiagramViewConfigurationm_config
 

Detailed Description

An interactive widget that display the current path Task descendants.

The leaf of the path corresponds to the task whose children should be displayed in the diagram.

Member Function Documentation

◆ includeInPath()

bool smtk::extension::qtTaskPath::includeInPath ( const smtk::task::Task task) const

Returns true if the task should be included in the path.

This is based on whether the task has/can have children or if it has internal ports

◆ setActiveTask()

void smtk::extension::qtTaskPath::setActiveTask ( smtk::task::Task task)

Update the path based on a task being made active.

The path will reflect the path of the newly active task. If the task has children, then the task will be included in the path else the path will end with its parent.


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