31 #include <QHBoxLayout>
32 #include <QFormLayout>
33 #include <QPushButton>
34 #include <QTreeWidget>
37 #include <QTreeWidgetItem>
41 #include <RobotAPI/interface/units/RobotUnit/RobotUnitInterface.h>
44 #include <RobotAPI/gui-plugins/RobotUnitPlugin/ui_ControlDevicesWidget.h>
48 class ControlDevicesWidgetEntry;
63 void add(
const ControlDeviceDescription& desc);
64 void update(
const ControlDeviceStatus&
status);
66 std::map<std::string, ControlDevicesWidgetEntry*> entries;
67 std::map<std::string, ControlDeviceStatus> statusUpdates;
68 ControlDeviceDescriptionSeq resetData;
88 QTreeWidget& treeWidget,
89 const ControlDeviceDescription& desc
97 std::set<QTreeWidgetItem*>
matchMode(
const QString& mode);
98 std::set<QTreeWidgetItem*>
isActiveState(
const QString& state);
104 void setChildVis(
bool vis, std::set<QTreeWidgetItem*> children);
107 void hideTagList(
bool hide);
110 struct ControllerEntry
112 QTreeWidgetItem* child;
115 std::map<std::string, ControllerEntry> subEntries;
116 std::string activeMode;
117 std::string requestedMode;
119 QTreeWidgetItem* header;
121 std::vector<QTreeWidgetItem*> tags;