Class DoubleListWidget
Defined in File double_list_widget.hpp
Inheritance Relationships
Base Type
public QWidget
Class Documentation
-
class DoubleListWidget : public QWidget
Public Functions
-
DoubleListWidget(QWidget *parent, const QString &long_name, const QString &short_name, bool add_ok_cancel = true)
Constructor.
-
void setAvailable(const std::vector<std::string> &items)
Loads the available data list.
-
void setSelected(const std::vector<std::string> &items)
Set the right box.
-
void clearContents()
-
void setTable(const std::vector<std::string> &items, QTableWidget *table)
Convenience function for reusing set table code.
-
void setColumnNames(const QString &col1, const QString &col2)
Set the names of the two columns in the widget.
-
std::vector<std::string> getSelectedValues() const
Return all the values that are in the “selected” subset.
Public Members
-
QTableWidget *data_table_
-
QTableWidget *selected_data_table_
-
QLabel *title_
-
QLabel *column1_label_
-
QLabel *column2_label_
-
QString long_name_
Name of datatype.
-
QString short_name_
Signals
-
void doneEditing()
Event sent when this widget is done making data changes and parent widget can save.
-
void cancelEditing()
Event sent when user presses cancel button.
-
void previewSelected(std::vector<std::string>)
Signal to highlight parts of robot.
-
void selectionUpdated()
When the set of selected items has changed.
-
DoubleListWidget(QWidget *parent, const QString &long_name, const QString &short_name, bool add_ok_cancel = true)