#include <new_display_dialog.h>
Public Slots | |
virtual void | accept () |
Public Member Functions | |
NewDisplayDialog (pluginlib::ClassLoader< Display > *class_loader, 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::ClassLoader< Display > * | 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_display_dialog.h.
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.
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.
bool rviz::NewDisplayDialog::isValid | ( | ) | [private] |
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.
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.
const S_string& rviz::NewDisplayDialog::current_display_names_ [private] |
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.
std::string* rviz::NewDisplayDialog::display_name_output_ [private] |
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.
std::string* rviz::NewDisplayDialog::lookup_name_output_ [private] |
Definition at line 87 of file new_display_dialog.h.
QLineEdit* rviz::NewDisplayDialog::name_editor_ [private] |
Definition at line 93 of file new_display_dialog.h.