Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
rviz::AddDisplayDialog Class Reference

#include <add_display_dialog.h>

List of all members.

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_
Factoryfactory_
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.

Parameters:
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 ( ) [virtual, slot]

Definition at line 350 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::fillTree ( QTreeWidget *  tree) [private]

Fill the tree widget with classes from the class loader.

bool rviz::AddDisplayDialog::isValid ( ) [private]

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) [private, slot]

Definition at line 271 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onNameChanged ( ) [private, slot]

Definition at line 345 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onTabChanged ( int  index) [private, slot]

Definition at line 266 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::onTopicSelected ( SelectionData data) [private, slot]

Definition at line 277 of file add_display_dialog.cpp.

void rviz::AddDisplayDialog::setError ( const QString &  error_text) [private]

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 [virtual]

Definition at line 261 of file add_display_dialog.cpp.

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_ [private]

Widget with OK and CANCEL buttons.

Definition at line 145 of file add_display_dialog.h.

Definition at line 126 of file add_display_dialog.h.

QTextBrowser* rviz::AddDisplayDialog::description_ [private]

Widget showing description of the class.

Definition at line 140 of file add_display_dialog.h.

Definition at line 121 of file add_display_dialog.h.

Definition at line 120 of file add_display_dialog.h.

Current data for display tab

Definition at line 135 of file add_display_dialog.h.

Definition at line 124 of file add_display_dialog.h.

Index of tab for selection by display

Definition at line 133 of file add_display_dialog.h.

Definition at line 119 of file add_display_dialog.h.

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.

Definition at line 123 of file add_display_dialog.h.

Definition at line 142 of file add_display_dialog.h.

QTabWidget* rviz::AddDisplayDialog::tab_widget_ [private]

Widget holding tabs

Definition at line 129 of file add_display_dialog.h.

Current data for topic tab

Definition at line 137 of file add_display_dialog.h.

Definition at line 125 of file add_display_dialog.h.

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:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Thu Aug 27 2015 15:02:28