Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rviz::PreferencesDialog Class Reference

#include <preferences_dialog.h>

Inheritance diagram for rviz::PreferencesDialog:
Inheritance graph
[legend]

Public Slots

void accept () override
 

Public Member Functions

 PreferencesDialog (Factory *factory, Preferences *preferences_output, QWidget *parent=nullptr)
 
QSize sizeHint () const override
 

Private Member Functions

bool isValid ()
 
void setError (const QString &error_text)
 

Private Attributes

QDialogButtonBox * button_box_
 
Factoryfactory_
 
Preferencespreferences_
 
QCheckBox * prompt_save_on_exit_checkbox_
 

Detailed Description

Definition at line 44 of file preferences_dialog.h.

Constructor & Destructor Documentation

◆ PreferencesDialog()

rviz::PreferencesDialog::PreferencesDialog ( Factory factory,
Preferences preferences_output,
QWidget *  parent = nullptr 
)

Dialog for setting preferences.

Parameters
preferences_outputPointer to Preferences struct where preferences chosen by the user will be put.

Definition at line 41 of file preferences_dialog.cpp.

Member Function Documentation

◆ accept

void rviz::PreferencesDialog::accept ( )
overrideslot

Definition at line 86 of file preferences_dialog.cpp.

◆ isValid()

bool rviz::PreferencesDialog::isValid ( )
private

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

Definition at line 80 of file preferences_dialog.cpp.

◆ setError()

void rviz::PreferencesDialog::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 75 of file preferences_dialog.cpp.

◆ sizeHint()

QSize rviz::PreferencesDialog::sizeHint ( ) const
override

Definition at line 70 of file preferences_dialog.cpp.

Member Data Documentation

◆ button_box_

QDialogButtonBox* rviz::PreferencesDialog::button_box_
private

Widget with OK and CANCEL buttons.

Definition at line 75 of file preferences_dialog.h.

◆ factory_

Factory* rviz::PreferencesDialog::factory_
private

Definition at line 69 of file preferences_dialog.h.

◆ preferences_

Preferences* rviz::PreferencesDialog::preferences_
private

Definition at line 72 of file preferences_dialog.h.

◆ prompt_save_on_exit_checkbox_

QCheckBox* rviz::PreferencesDialog::prompt_save_on_exit_checkbox_
private

Definition at line 71 of file preferences_dialog.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat May 27 2023 02:06:26