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

#include <new_object_dialog.h>

List of all members.

Public Slots

virtual void accept ()

Public Member Functions

 NewObjectDialog (pluginlib::ClassLoaderBase *class_loader, const std::string &object_type, 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::ClassLoaderBaseclass_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_object_dialog.h.


Constructor & Destructor Documentation

rviz::NewObjectDialog::NewObjectDialog ( pluginlib::ClassLoaderBase class_loader,
const std::string &  object_type,
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_object_dialog.cpp.


Member Function Documentation

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

Definition at line 216 of file new_object_dialog.cpp.

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

Fill the tree widget with classes from the class loader.

Definition at line 106 of file new_object_dialog.cpp.

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

Definition at line 184 of file new_object_dialog.cpp.

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

Definition at line 144 of file new_object_dialog.cpp.

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

Definition at line 211 of file new_object_dialog.cpp.

void rviz::NewObjectDialog::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 206 of file new_object_dialog.cpp.


Member Data Documentation

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

Widget with OK and CANCEL buttons.

Definition at line 97 of file new_object_dialog.h.

Definition at line 85 of file new_object_dialog.h.

Definition at line 86 of file new_object_dialog.h.

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

Widget showing description of the class.

Definition at line 92 of file new_object_dialog.h.

Definition at line 89 of file new_object_dialog.h.

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

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

Definition at line 101 of file new_object_dialog.h.

Definition at line 88 of file new_object_dialog.h.

Definition at line 94 of file new_object_dialog.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33