#include <double_list_widget.h>
Signals | |
void | cancelEditing () |
Event sent when user presses cancel button. | |
void | doneEditing () |
Event sent when this widget is done making data changes and parent widget can save. | |
void | previewSelected (std::vector< std::string >) |
Signal to highlight parts of robot. | |
void | selectionUpdated () |
When the set of selected items has changed. | |
Public Member Functions | |
void | clearContents (void) |
DoubleListWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data, QString long_name, QString short_name, bool add_ok_cancel=true) | |
Constructor. | |
void | setAvailable (const std::vector< std::string > &items) |
Loads the availble data list. | |
void | setColumnNames (const QString &col1, const QString &col2) |
Set the names of the two columns in the widget. | |
void | setSelected (const std::vector< std::string > &items) |
Set the right box. | |
void | setTable (const std::vector< std::string > &items, QTableWidget *table) |
Convenience function for reusing set table code. | |
Public Attributes | |
QLabel * | column1_label_ |
QLabel * | column2_label_ |
QTableWidget * | data_table_ |
QString | long_name_ |
Name of datatype. | |
QTableWidget * | selected_data_table_ |
QString | short_name_ |
QLabel * | title_ |
Private Slots | |
void | deselectDataButtonClicked () |
Move selected data left. | |
void | previewSelectedLeft (const QItemSelection &selected, const QItemSelection &deselected) |
Event when data table is clicked. | |
void | previewSelectedRight (const QItemSelection &selected, const QItemSelection &deselected) |
void | selectDataButtonClicked () |
Move selected data right. | |
Private Member Functions | |
void | previewSelected (const QList< QTableWidgetItem * > &selected) |
Event when data table is clicked. | |
Private Attributes | |
moveit_setup_assistant::MoveItConfigDataPtr | config_data_ |
Contains all the configuration data for the setup assistant. |
Definition at line 50 of file double_list_widget.h.
moveit_setup_assistant::DoubleListWidget::DoubleListWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data, | ||
QString | long_name, | ||
QString | short_name, | ||
bool | add_ok_cancel = true |
||
) |
Constructor.
Definition at line 53 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::cancelEditing | ( | ) | [signal] |
Event sent when user presses cancel button.
void moveit_setup_assistant::DoubleListWidget::clearContents | ( | void | ) |
Definition at line 189 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::deselectDataButtonClicked | ( | ) | [private, slot] |
Move selected data left.
Definition at line 285 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::doneEditing | ( | ) | [signal] |
Event sent when this widget is done making data changes and parent widget can save.
void moveit_setup_assistant::DoubleListWidget::previewSelected | ( | std::vector< std::string > | ) | [signal] |
Signal to highlight parts of robot.
void moveit_setup_assistant::DoubleListWidget::previewSelected | ( | const QList< QTableWidgetItem * > & | selected | ) | [private] |
Event when data table is clicked.
Definition at line 320 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::previewSelectedLeft | ( | const QItemSelection & | selected, |
const QItemSelection & | deselected | ||
) | [private, slot] |
Event when data table is clicked.
Definition at line 302 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::previewSelectedRight | ( | const QItemSelection & | selected, |
const QItemSelection & | deselected | ||
) | [private, slot] |
Definition at line 311 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::selectDataButtonClicked | ( | ) | [private, slot] |
Move selected data right.
Definition at line 244 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::selectionUpdated | ( | ) | [signal] |
When the set of selected items has changed.
void moveit_setup_assistant::DoubleListWidget::setAvailable | ( | const std::vector< std::string > & | items | ) |
Loads the availble data list.
Definition at line 172 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::setColumnNames | ( | const QString & | col1, |
const QString & | col2 | ||
) |
Set the names of the two columns in the widget.
Definition at line 195 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::setSelected | ( | const std::vector< std::string > & | items | ) |
Set the right box.
Definition at line 184 of file double_list_widget.cpp.
void moveit_setup_assistant::DoubleListWidget::setTable | ( | const std::vector< std::string > & | items, |
QTableWidget * | table | ||
) |
Convenience function for reusing set table code.
Definition at line 204 of file double_list_widget.cpp.
Definition at line 87 of file double_list_widget.h.
Definition at line 88 of file double_list_widget.h.
moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::DoubleListWidget::config_data_ [private] |
Contains all the configuration data for the setup assistant.
Definition at line 133 of file double_list_widget.h.
QTableWidget* moveit_setup_assistant::DoubleListWidget::data_table_ |
Definition at line 84 of file double_list_widget.h.
Name of datatype.
Definition at line 91 of file double_list_widget.h.
Definition at line 85 of file double_list_widget.h.
Definition at line 92 of file double_list_widget.h.
Definition at line 86 of file double_list_widget.h.