TreeItem representing data contained in a Scenario or an Application.
More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/scenarioitem.h>
TreeItem representing data contained in a Scenario or an Application.
◆ ScenarioItem() [1/4]
Constructor that sets the data contained in this item.
- Parameters
-
◆ ScenarioItem() [2/4]
Constructor that sets the scenario-data contained in this item.
- Parameters
-
| scenario | Scenario to read out the data |
◆ ScenarioItem() [3/4]
Constructor that sets the application-data contained in this item.
- Parameters
-
| application | Application to read out the data |
◆ ScenarioItem() [4/4]
◆ getApplicationInstance()
If this item represents an Application, it is returned.
- Returns
- the Application represented by this item
◆ getApplicationInstances()
◆ getPackageName()
| std::string getPackageName |
( |
| ) |
|
◆ getPendingIntent()
| Intent getPendingIntent |
( |
| ) |
const |
The operation this row is currently moving towards, or Intent::None when idle.
For an application this is the intent published by its ApplicationLifecycle. For a package or a scenario it is the intent shared by all of its busy children, or None if they disagree - a row only greys out a button when the whole subtree is doing that one thing.
◆ getScenario()
If this item represents a Scenario, it is returned.
- Returns
- the Scenario represented by this item
◆ update()
Clears the item_data and parses the Scenario or Application for new data.
Does not descend into the children: items that aggregate the status of their children (the package subtrees) expect those to have been updated already, which ScenarioModel::update() guarantees by walking the tree bottom-up.
- Returns
- whether the displayed data of this item actually changed.
The documentation for this class was generated from the following files: