25 #include "../ObserverPropertiesPlugin/widgets/properties/PropertiesWidget.h"
29 #include <QStandardItemModel>
36 #define STATE_ITEM_TYPE Qt::UserRole+1
38 #define STATE_COMPONENT_NAME Qt::UserRole+3
39 #define STATE_ITEM_DELETE Qt::UserRole+4
40 #define STATE_TYPE Qt::UserRole+5
41 #define STATE_GLOBALSTATEID Qt::UserRole+6
43 #define ARMARXGUI_BASEINSTANCE_STR "Base Instances"
44 #define ARMARXGUI_REQUESTEDINSTANCE_STR "Requested Instances"
66 void updateModel(
const std::string& componentName,
const std::vector<StateIceBasePtr>& topLevelBaseStates,
const std::vector<StateIceBasePtr>& topLevelRequestedStates);
67 StateIceBasePtr
getState(std::string componentName,
const std::string& globalStateIdStr);
68 void findSubstate(StateIceBasePtr state,
const std::string& globalStateIdStr, StateIceBasePtr& resultState);
77 std::map<std::string, std::vector< StateIceBasePtr > > requestedInstanceList;
79 QStandardItem* updateComponent(std::string componentName);
80 void updateStates(QStandardItem* componentItem,
const std::vector<StateIceBasePtr>& topLevelStates, std::string componentName,
eItemType itemType);
82 void markAllForDelete(QStandardItem* stateItem);
83 void deleteUnusedItems(QStandardItem* stateItem);
84 void insertSubstates(QStandardItem* parentStateItem, StateIceBasePtr state, std::string componentName,
eItemType itemType);
85 QStandardItem* updateOrInsertItem(QStandardItem* parent, QStandardItem*
insert);
88 QVariant data(
const QModelIndex&
index,
int role)
const override;