|
Item in the TreeItemView. Every item represents a Scenario. More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/openscenarioitem.h>
Public Member Functions | |
std::string | getScenarioName () |
Returns the Name of the scenario represented by this item. More... | |
std::string | getScenarioPackage () |
Returns the Name of the scenario package represented by this item. More... | |
OpenScenarioItem (QList< QVariant > rootItem) | |
Constructor that sets up the data based on the given data. More... | |
OpenScenarioItem (QVariant scenarioName, QVariant scenarioPackage) | |
Sets up this item based on the given data. More... | |
Public Member Functions inherited from TreeItem | |
void | appendChild (TreeItem *child) |
TreeItem * | child (int row) |
int | childCount () const |
int | columnCount () const |
virtual QVariant | data (int column) const |
bool | insertChild (int position, TreeItem *child) |
bool | insertColumn (int position, QVariant data) |
bool | isEnabled () |
TreeItem * | parent () |
bool | removeChild (int position) |
bool | removeColumn (int position) |
int | row () const |
bool | setData (int column, const QVariant &value) |
void | setEnabled (bool enabled) |
TreeItem () | |
virtual | ~TreeItem () |
Additional Inherited Members | |
Protected Attributes inherited from TreeItem | |
bool | enabled |
QVector< QVariant > | m_itemData |
Item in the TreeItemView. Every item represents a Scenario.
Definition at line 36 of file openscenarioitem.h.
OpenScenarioItem | ( | QList< QVariant > | rootItem | ) |
Constructor that sets up the data based on the given data.
rootItem | that replaces the current data |
Definition at line 32 of file openscenarioitem.cpp.
OpenScenarioItem | ( | QVariant | scenarioName, |
QVariant | scenarioPackage | ||
) |
Sets up this item based on the given data.
scenarioPath | contains the path of the scenario to be displayed |
Definition at line 37 of file openscenarioitem.cpp.
std::string getScenarioName | ( | ) |
Returns the Name of the scenario represented by this item.
Definition at line 51 of file openscenarioitem.cpp.
std::string getScenarioPackage | ( | ) |
Returns the Name of the scenario package represented by this item.
Definition at line 45 of file openscenarioitem.cpp.