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

#include <new_display_dialog.h>

List of all members.

Public Slots

virtual void accept ()

Public Member Functions

 NewDisplayDialog (pluginlib::ClassLoader< Display > *class_loader, const S_string &current_display_names, std::string *lookup_name_output, std::string *display_name_output, QWidget *parent=0)

Private Slots

void onDisplaySelected (QTreeWidgetItem *selected_item)
void onNameChanged ()

Private Member Functions

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

Private Attributes

QDialogButtonBox * button_box_
pluginlib::ClassLoader< Display > * class_loader_
const S_stringcurrent_display_names_
QTextBrowser * description_
std::string * display_name_output_
std::string lookup_name_
std::string * lookup_name_output_
QLineEdit * name_editor_

Detailed Description

Definition at line 55 of file new_display_dialog.h.


Constructor & Destructor Documentation

rviz::NewDisplayDialog::NewDisplayDialog ( pluginlib::ClassLoader< Display > *  class_loader,
const S_string current_display_names,
std::string *  lookup_name_output,
std::string *  display_name_output,
QWidget *  parent = 0 
)

Definition at line 44 of file new_display_dialog.cpp.


Member Function Documentation

void rviz::NewDisplayDialog::accept ( ) [virtual, slot]

Definition at line 215 of file new_display_dialog.cpp.

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

Fill the tree widget with classes from the class loader.

Definition at line 105 of file new_display_dialog.cpp.

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

Definition at line 183 of file new_display_dialog.cpp.

void rviz::NewDisplayDialog::onDisplaySelected ( QTreeWidgetItem *  selected_item) [private, slot]

Definition at line 143 of file new_display_dialog.cpp.

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

Definition at line 210 of file new_display_dialog.cpp.

void rviz::NewDisplayDialog::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 205 of file new_display_dialog.cpp.


Member Data Documentation

QDialogButtonBox* rviz::NewDisplayDialog::button_box_ [private]

Widget with OK and CANCEL buttons.

Definition at line 96 of file new_display_dialog.h.

Definition at line 84 of file new_display_dialog.h.

Definition at line 85 of file new_display_dialog.h.

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

Widget showing description of the class.

Definition at line 91 of file new_display_dialog.h.

Definition at line 88 of file new_display_dialog.h.

std::string rviz::NewDisplayDialog::lookup_name_ [private]

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

Definition at line 100 of file new_display_dialog.h.

Definition at line 87 of file new_display_dialog.h.

Definition at line 93 of file new_display_dialog.h.


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


rviz_qt
Author(s): Dave Hershberger
autogenerated on Fri Dec 6 2013 20:56:53