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 = 0,
89 QString* topic_output = 0,
90 QString* datatype_output = 0,
91 QWidget* parent = 0 );
93 virtual QSize sizeHint ()
const;
96 virtual void accept();
101 void onTabChanged(
int index );
102 void onNameChanged();
106 void fillTree( QTreeWidget*
tree );
114 void setError(
const QString& error_text );
117 void updateDisplay();
159 void fillTree(
Factory *factory);
165 void onCurrentItemChanged(QTreeWidgetItem *curr, QTreeWidgetItem *prev);
177 void itemActivated( QTreeWidgetItem *item,
int column );
180 void stateChanged(
int state);
181 void onCurrentItemChanged( QTreeWidgetItem *curr );
182 void onComboBoxClicked( QTreeWidgetItem *curr );
192 QTreeWidgetItem* insertItem (
const QString &
topic,
bool disabled );
212 : parent_( parent ), column_(col)
214 connect(
this, SIGNAL( activated(
int )),
this, SLOT( onActivated(
int )));
218 void itemClicked( QTreeWidgetItem *item,
int column );
223 Q_EMIT itemClicked( parent_, column_ );
233 #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_
void onActivated(int index)
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_