#include <widgets_list.h>
Public Member Functions | |
WidgetsList () | |
Private Member Functions | |
void | add_widget (QString id_widget, QWidget *widget) |
void | remove_node (QString widget_id) |
Private Attributes | |
QHash< QString, QWidget * > * | table_widgets |
Ui::WidgetsList | ui_ |
Porting similar functionality of rqt_py_common.paramedit_widget to C++.
This class represents a pane where parameter editor widgets of multiple nodes are shown. Example is found in rqt_reconfigure (although it's in python); this pane occupies right half of the entire visible area.
TODO: As of Apr 2013, this class can put the widgets only on virtical layout. Need to improve so that user can choose horizontal layout.
Definition at line 62 of file widgets_list.h.
Definition at line 41 of file widgets_list.cpp.
void WidgetsList::add_widget | ( | QString | id_widget, |
QWidget * | widget | ||
) | [private] |
Add the given pair of id_widget and widget into the internal table that records the existing widgets. Then add the widget to the layout.
widget,: | This QWidget instance MUST have a "parent" pointing to WidgetsList. This "parent" value will be used in other functions (eg. WidgetsList::remove_node). |
Definition at line 55 of file widgets_list.cpp.
void WidgetsList::remove_node | ( | QString | widget_id | ) | [private] |
ros::Exception | when the given widget_id doesn't exist or no item is associated. |
Definition at line 71 of file widgets_list.cpp.
QHash<QString, QWidget*>* rqt_cpp_common::WidgetsList::table_widgets [private] |
Definition at line 71 of file widgets_list.h.
Ui::WidgetsList rqt_cpp_common::WidgetsList::ui_ [private] |
Definition at line 72 of file widgets_list.h.