#include <new_object_dialog.h>
Public Slots | |
virtual void | accept () |
Public Member Functions | |
NewObjectDialog (pluginlib::ClassLoaderBase *class_loader, const std::string &object_type, const S_string ¤t_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::ClassLoaderBase * | class_loader_ |
const S_string & | current_display_names_ |
QTextBrowser * | description_ |
std::string * | display_name_output_ |
std::string | lookup_name_ |
std::string * | lookup_name_output_ |
QLineEdit * | name_editor_ |
Definition at line 55 of file new_object_dialog.h.
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.
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.
bool rviz::NewObjectDialog::isValid | ( | ) | [private] |
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.
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.
const S_string& rviz::NewObjectDialog::current_display_names_ [private] |
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.
std::string* rviz::NewObjectDialog::display_name_output_ [private] |
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.
std::string* rviz::NewObjectDialog::lookup_name_output_ [private] |
Definition at line 88 of file new_object_dialog.h.
QLineEdit* rviz::NewObjectDialog::name_editor_ [private] |
Definition at line 94 of file new_object_dialog.h.