#include <new_object_dialog.h>
|
| NewObjectDialog (Factory *factory, const QString &object_type, const QStringList &disallowed_display_names, const QStringList &disallowed_class_lookup_names, QString *lookup_name_output, QString *display_name_output=nullptr, QWidget *parent=nullptr) |
|
QSize | sizeHint () const override |
|
Definition at line 46 of file new_object_dialog.h.
◆ NewObjectDialog()
rviz::NewObjectDialog::NewObjectDialog |
( |
Factory * |
factory, |
|
|
const QString & |
object_type, |
|
|
const QStringList & |
disallowed_display_names, |
|
|
const QStringList & |
disallowed_class_lookup_names, |
|
|
QString * |
lookup_name_output, |
|
|
QString * |
display_name_output = nullptr , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Dialog for choosing a new object to load with a pluginlib ClassLoader.
- Parameters
-
disallowed_display_names | set of display names to prevent the user from using. |
disallowed_class_lookup_names | set 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_output | Pointer to a string where dialog will put the class lookup name chosen. |
display_name_output | Pointer 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 51 of file new_object_dialog.cpp.
◆ accept
void rviz::NewObjectDialog::accept |
( |
| ) |
|
|
overrideslot |
◆ fillTree()
void rviz::NewObjectDialog::fillTree |
( |
QTreeWidget * |
tree | ) |
|
|
private |
◆ isValid()
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 214 of file new_object_dialog.cpp.
◆ onDisplaySelected
void rviz::NewObjectDialog::onDisplaySelected |
( |
QTreeWidgetItem * |
selected_item | ) |
|
|
privateslot |
◆ onNameChanged
void rviz::NewObjectDialog::onNameChanged |
( |
| ) |
|
|
privateslot |
◆ setError()
void rviz::NewObjectDialog::setError |
( |
const QString & |
error_text | ) |
|
|
private |
◆ sizeHint()
QSize rviz::NewObjectDialog::sizeHint |
( |
| ) |
const |
|
override |
◆ button_box_
QDialogButtonBox* rviz::NewObjectDialog::button_box_ |
|
private |
◆ description_
QTextBrowser* rviz::NewObjectDialog::description_ |
|
private |
◆ disallowed_class_lookup_names_
const QStringList& rviz::NewObjectDialog::disallowed_class_lookup_names_ |
|
private |
◆ disallowed_display_names_
const QStringList& rviz::NewObjectDialog::disallowed_display_names_ |
|
private |
◆ display_name_output_
QString* rviz::NewObjectDialog::display_name_output_ |
|
private |
◆ factory_
Factory* rviz::NewObjectDialog::factory_ |
|
private |
◆ lookup_name_
QString rviz::NewObjectDialog::lookup_name_ |
|
private |
Current value of selected class-lookup name. Copied to *lookup_name_output_ when "ok" is clicked.
Definition at line 111 of file new_object_dialog.h.
◆ lookup_name_output_
QString* rviz::NewObjectDialog::lookup_name_output_ |
|
private |
◆ name_editor_
QLineEdit* rviz::NewObjectDialog::name_editor_ |
|
private |
The documentation for this class was generated from the following files:
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:03