30 #ifndef RVIZ_ADD_DISPLAY_DIALOG_H 31 #define RVIZ_ADD_DISPLAY_DIALOG_H 34 #include <QTreeWidget> 37 #include <boost/shared_ptr.hpp> 43 class QDialogButtonBox;
84 const QString& object_type,
85 const QStringList& disallowed_display_names,
86 const QStringList& disallowed_class_lookup_names,
87 QString* lookup_name_output,
88 QString* display_name_output =
nullptr,
89 QString* topic_output =
nullptr,
90 QString* datatype_output =
nullptr,
91 QWidget* parent =
nullptr);
93 QSize sizeHint()
const override;
96 void accept()
override;
101 void onTabChanged(
int index);
102 void onNameChanged();
106 void fillTree(QTreeWidget*
tree);
114 void setError(
const QString& error_text);
117 void updateDisplay();
160 void fillTree(
Factory* factory);
166 void onCurrentItemChanged(QTreeWidgetItem* curr, QTreeWidgetItem* prev);
179 void itemActivated(QTreeWidgetItem* item,
int column);
182 void stateChanged(
int state);
183 void onCurrentItemChanged(QTreeWidgetItem* curr);
184 void onComboBoxClicked(QTreeWidgetItem* curr);
194 QTreeWidgetItem* insertItem(
const QString&
topic,
bool disabled);
215 connect(
this, SIGNAL(activated(
int)),
this, SLOT(onActivated(
int)));
219 void itemClicked(QTreeWidgetItem* item,
int column);
224 Q_EMIT itemClicked(parent_, column_);
234 #endif // RVIZ_ADD_DISPLAY_DIALOG_H
EmbeddableComboBox(QTreeWidgetItem *parent, int col)
QTreeWidgetItem * parent_
const QStringList & disallowed_class_lookup_names_
SelectionData display_data_
SelectionData topic_data_
const QStringList & disallowed_display_names_
Abstract superclass representing the ability to get a list of class IDs and the ability to get name...
QTextBrowser * description_
QString * display_name_output_
QString * datatype_output_
QString * lookup_name_output_
Widget for selecting a display by display type.
QDialogButtonBox * button_box_