Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
rviz::AddDisplayDialog Class Reference

#include <add_display_dialog.h>

Inheritance diagram for rviz::AddDisplayDialog:
Inheritance graph

Public Slots

virtual void accept ()

Public Member Functions

 AddDisplayDialog (DisplayFactory *factory, const QString &object_type, const QStringList &disallowed_display_names, const QStringList &disallowed_class_lookup_names, QString *lookup_name_output, QString *display_name_output=0, QString *topic_output=0, QString *datatype_output=0, QWidget *parent=0)
virtual QSize sizeHint () const

Private Slots

void onDisplaySelected (SelectionData *data)
void onNameChanged ()
void onTabChanged (int index)
void onTopicSelected (SelectionData *data)

Private Member Functions

void fillTree (QTreeWidget *tree)
bool isValid ()
void setError (const QString &error_text)
void updateDisplay ()

Private Attributes

QDialogButtonBox * button_box_
QString * datatype_output_
QTextBrowser * description_
const QStringList & disallowed_class_lookup_names_
const QStringList & disallowed_display_names_
SelectionData display_data_
QString * display_name_output_
int display_tab_
QString lookup_name_
QString * lookup_name_output_
QLineEdit * name_editor_
QTabWidget * tab_widget_
SelectionData topic_data_
QString * topic_output_
int topic_tab_

Detailed Description

Definition at line 64 of file add_display_dialog.h.

Constructor & Destructor Documentation

rviz::AddDisplayDialog::AddDisplayDialog ( DisplayFactory factory,
const QString &  object_type,
const QStringList &  disallowed_display_names,
const QStringList &  disallowed_class_lookup_names,
QString *  lookup_name_output,
QString *  display_name_output = 0,
QString *  topic_output = 0,
QString *  datatype_output = 0,
QWidget *  parent = 0 

Dialog for choosing a new object to load with a pluginlib ClassLoader.

disallowed_display_namesset of display names to prevent the user from using.
disallowed_class_lookup_namesset of class lookup names to prevent the user from selecting. Names found in the class loader which are in this list will appear disabled.
lookup_name_outputPointer to a string where dialog will put the class lookup name chosen.
display_name_outputPointer to a string where dialog will put the display name entered, or NULL (default) if display name entry field should not be shown.

Definition at line 167 of file add_display_dialog.cpp.

Member Function Documentation

void rviz::AddDisplayDialog::accept ( )

Definition at line 350 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::fillTree ( QTreeWidget *  tree)

Fill the tree widget with classes from the class loader.

bool rviz::AddDisplayDialog::isValid ( )

Returns true if entered display name is non-empty and unique and if lookup name is non-empty.

Definition at line 315 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onDisplaySelected ( SelectionData data)

Definition at line 271 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onNameChanged ( )

Definition at line 345 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onTabChanged ( int  index)

Definition at line 266 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onTopicSelected ( SelectionData data)

Definition at line 277 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::setError ( const QString &  error_text)

Display an error message to the user, or clear the previous error message if error_text is empty.

Definition at line 340 of file add_display_dialog.cpp.

QSize rviz::AddDisplayDialog::sizeHint ( ) const

Definition at line 261 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::updateDisplay ( )

Populate text boxes based on current tab and selection

Definition at line 283 of file add_display_dialog.cpp.

Member Data Documentation

QDialogButtonBox* rviz::AddDisplayDialog::button_box_

Widget with OK and CANCEL buttons.

Definition at line 145 of file add_display_dialog.h.

QString* rviz::AddDisplayDialog::datatype_output_

Definition at line 126 of file add_display_dialog.h.

QTextBrowser* rviz::AddDisplayDialog::description_

Widget showing description of the class.

Definition at line 140 of file add_display_dialog.h.

const QStringList& rviz::AddDisplayDialog::disallowed_class_lookup_names_

Definition at line 121 of file add_display_dialog.h.

const QStringList& rviz::AddDisplayDialog::disallowed_display_names_

Definition at line 120 of file add_display_dialog.h.

SelectionData rviz::AddDisplayDialog::display_data_

Current data for display tab

Definition at line 135 of file add_display_dialog.h.

QString* rviz::AddDisplayDialog::display_name_output_

Definition at line 124 of file add_display_dialog.h.

int rviz::AddDisplayDialog::display_tab_

Index of tab for selection by display

Definition at line 133 of file add_display_dialog.h.

Factory* rviz::AddDisplayDialog::factory_

Definition at line 119 of file add_display_dialog.h.

QString rviz::AddDisplayDialog::lookup_name_

Current value of selected class-lookup name. Copied to *lookup_name_output_ when "ok" is clicked.

Definition at line 149 of file add_display_dialog.h.

QString* rviz::AddDisplayDialog::lookup_name_output_

Definition at line 123 of file add_display_dialog.h.

QLineEdit* rviz::AddDisplayDialog::name_editor_

Definition at line 142 of file add_display_dialog.h.

QTabWidget* rviz::AddDisplayDialog::tab_widget_

Widget holding tabs

Definition at line 129 of file add_display_dialog.h.

SelectionData rviz::AddDisplayDialog::topic_data_

Current data for topic tab

Definition at line 137 of file add_display_dialog.h.

QString* rviz::AddDisplayDialog::topic_output_

Definition at line 125 of file add_display_dialog.h.

int rviz::AddDisplayDialog::topic_tab_

Index of tab for selection by topic

Definition at line 131 of file add_display_dialog.h.

The documentation for this class was generated from the following files:

Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Wed Aug 28 2019 04:01:52