#include <robot_tree_widget.h>
Classes | |
union | Selection |
Public Types | |
enum | Type { None, Robot, Task } |
Signals | |
void | changed () |
void | robotAdded (const QString &robot_id) |
void | robotSelected (const QString &robot_id) |
void | selected (Type type, const QString &id) |
void | taskAdded (const QString &task_id) |
void | taskSelected (const QString &task_id) |
Public Member Functions | |
void | addRobot () |
void | addTask () |
void | clear () |
RobotsConfig * | getConfig () const |
QString | getCurrentId () const |
QStringList | getTasks () const |
RobotTreeWidget (QWidget *parent=NULL) | |
void | setConfig (RobotsConfig *config) |
void | setCurrentId (const QString &id) |
QString | validate () const |
virtual | ~RobotTreeWidget () |
Private Slots | |
void | configRobotAdded (size_t robot_index) |
void | configRobotIdChanged (size_t robot_index, const QString &robot_id) |
void | configRobotRemoved (const QString &robot_id) |
void | configRobotsCleared () |
void | configTaskAdded (size_t robot_index, size_t task_index) |
void | configTaskIdChanged (size_t robot_index, size_t task_index, const QString &task_id) |
void | configTaskRemoved (size_t robot_index, const QString &task_id) |
void | configTasksCleared (size_t robot_index) |
void | currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
void | robotsConfigChanged () |
Private Member Functions | |
void | addRobot (RobotConfig *robot) |
void | addTask (TaskConfig *task, QTreeWidgetItem *parent) |
Private Attributes | |
RobotsConfig * | config_ |
Selection | current_ |
Type | current_type_ |
Definition at line 25 of file robot_tree_widget.h.
Definition at line 29 of file robot_tree_widget.h.
rqt_mrta::RobotTreeWidget::RobotTreeWidget | ( | QWidget * | parent = NULL | ) |
Definition at line 16 of file robot_tree_widget.cpp.
rqt_mrta::RobotTreeWidget::~RobotTreeWidget | ( | ) | [virtual] |
Definition at line 26 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::addRobot | ( | ) |
Definition at line 119 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::addRobot | ( | RobotConfig * | robot | ) | [private] |
Definition at line 130 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::addTask | ( | ) |
Definition at line 146 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::addTask | ( | TaskConfig * | task, |
QTreeWidgetItem * | parent | ||
) | [private] |
Definition at line 162 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::changed | ( | ) | [signal] |
void rqt_mrta::RobotTreeWidget::clear | ( | ) |
Definition at line 220 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configRobotAdded | ( | size_t | robot_index | ) | [private, slot] |
Definition at line 183 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configRobotIdChanged | ( | size_t | robot_index, |
const QString & | robot_id | ||
) | [private, slot] |
Definition at line 175 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configRobotRemoved | ( | const QString & | robot_id | ) | [private, slot] |
Definition at line 188 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configRobotsCleared | ( | ) | [private, slot] |
Definition at line 190 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configTaskAdded | ( | size_t | robot_index, |
size_t | task_index | ||
) | [private, slot] |
Definition at line 201 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configTaskIdChanged | ( | size_t | robot_index, |
size_t | task_index, | ||
const QString & | task_id | ||
) | [private, slot] |
Definition at line 192 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configTaskRemoved | ( | size_t | robot_index, |
const QString & | task_id | ||
) | [private, slot] |
Definition at line 208 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::configTasksCleared | ( | size_t | robot_index | ) | [private, slot] |
Definition at line 213 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::currentItemChanged | ( | QTreeWidgetItem * | current, |
QTreeWidgetItem * | previous | ||
) | [private, slot] |
Definition at line 229 of file robot_tree_widget.cpp.
RobotsConfig * rqt_mrta::RobotTreeWidget::getConfig | ( | ) | const |
Definition at line 28 of file robot_tree_widget.cpp.
QString rqt_mrta::RobotTreeWidget::getCurrentId | ( | ) | const |
Definition at line 100 of file robot_tree_widget.cpp.
QStringList rqt_mrta::RobotTreeWidget::getTasks | ( | ) | const |
Definition at line 82 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::robotAdded | ( | const QString & | robot_id | ) | [signal] |
void rqt_mrta::RobotTreeWidget::robotsConfigChanged | ( | ) | [private, slot] |
Definition at line 173 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::robotSelected | ( | const QString & | robot_id | ) | [signal] |
void rqt_mrta::RobotTreeWidget::selected | ( | Type | type, |
const QString & | id | ||
) | [signal] |
void rqt_mrta::RobotTreeWidget::setConfig | ( | RobotsConfig * | config | ) |
Definition at line 30 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::setCurrentId | ( | const QString & | id | ) |
Definition at line 107 of file robot_tree_widget.cpp.
void rqt_mrta::RobotTreeWidget::taskAdded | ( | const QString & | task_id | ) | [signal] |
void rqt_mrta::RobotTreeWidget::taskSelected | ( | const QString & | task_id | ) | [signal] |
QString rqt_mrta::RobotTreeWidget::validate | ( | ) | const |
Definition at line 215 of file robot_tree_widget.cpp.
RobotsConfig* rqt_mrta::RobotTreeWidget::config_ [private] |
Definition at line 56 of file robot_tree_widget.h.
Selection rqt_mrta::RobotTreeWidget::current_ [private] |
Definition at line 63 of file robot_tree_widget.h.
Type rqt_mrta::RobotTreeWidget::current_type_ [private] |
Definition at line 62 of file robot_tree_widget.h.