src
rviz
preferences_dialog.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008, Willow Garage, Inc.
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* * Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* * Neither the name of the Willow Garage, Inc. nor the names of its
14
* contributors may be used to endorse or promote products derived from
15
* this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
* POSSIBILITY OF SUCH DAMAGE.
28
*/
29
30
#ifndef RVIZ_PREFERENCES_DIALOG_H
31
#define RVIZ_PREFERENCES_DIALOG_H
32
33
#include <QDialog>
34
35
#include <
rviz/factory.h
>
36
37
class
QCheckBox;
38
class
QDialogButtonBox;
39
40
namespace
rviz
41
{
42
struct
Preferences;
43
44
class
PreferencesDialog
:
public
QDialog
45
{
46
Q_OBJECT
47
public
:
53
PreferencesDialog
(
Factory
* factory,
Preferences
* preferences_output, QWidget* parent =
nullptr
);
54
55
QSize
sizeHint
()
const override
;
56
57
public
Q_SLOTS:
58
void
accept
()
override
;
59
60
private
:
63
bool
isValid
();
64
67
void
setError
(
const
QString& error_text);
68
69
Factory
*
factory_
;
70
71
QCheckBox*
prompt_save_on_exit_checkbox_
;
72
Preferences
*
preferences_
;
73
75
QDialogButtonBox*
button_box_
;
76
};
77
78
}
// namespace rviz
79
80
#endif // RVIZ_NEW_OBJECT_DIALOG_H
rviz::PreferencesDialog::isValid
bool isValid()
Definition:
preferences_dialog.cpp:80
factory.h
rviz::PreferencesDialog::prompt_save_on_exit_checkbox_
QCheckBox * prompt_save_on_exit_checkbox_
Definition:
preferences_dialog.h:71
rviz::PreferencesDialog::accept
void accept() override
Definition:
preferences_dialog.cpp:86
rviz::Preferences
Definition:
preferences.h:35
rviz::PreferencesDialog::factory_
Factory * factory_
Definition:
preferences_dialog.h:69
rviz
Definition:
add_display_dialog.cpp:54
rviz::PreferencesDialog::button_box_
QDialogButtonBox * button_box_
Definition:
preferences_dialog.h:75
rviz::PreferencesDialog::sizeHint
QSize sizeHint() const override
Definition:
preferences_dialog.cpp:70
rviz::PreferencesDialog::setError
void setError(const QString &error_text)
Definition:
preferences_dialog.cpp:75
rviz::PreferencesDialog::preferences_
Preferences * preferences_
Definition:
preferences_dialog.h:72
rviz::Factory
Abstract superclass representing the ability to get a list of class IDs and the ability to get name,...
Definition:
factory.h:42
rviz::PreferencesDialog
Definition:
preferences_dialog.h:44
rviz::PreferencesDialog::PreferencesDialog
PreferencesDialog(Factory *factory, Preferences *preferences_output, QWidget *parent=nullptr)
Definition:
preferences_dialog.cpp:41
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:10