SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An interactive widget that display the current path Task descendants. More...
#include <qtTaskPath.h>
Public Member Functions | |
smtkSuperclassMacro (QScrollArea) | |
qtTaskPath (qtTaskEditor *editor, QWidget *parent=nullptr) | |
QToolButton * | addTask (smtk::task::Task *task) |
smtk::task::Task * | lastTask () 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. | |
qtTaskEditor * | editor () 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 |
qtTaskEditor * | m_editor |
qtDiagramViewConfiguration * | m_config |
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.
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
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.