dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
uavgadgetoptionspagedecorator.h
Go to the documentation of this file.
1
12
/*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, see <http://www.gnu.org/licenses/>
25
*/
26
27
#ifndef UAVGADGETOPTIONSPAGEDECORATOR_H
28
#define UAVGADGETOPTIONSPAGEDECORATOR_H
29
30
#include "
iuavgadgetconfiguration.h
"
31
#include <
coreplugin/core_global.h
>
32
#include <
coreplugin/dialogs/ioptionspage.h
>
33
34
class
Ui_TopOptionsPage;
35
36
namespace
Core {
37
38
class
IUAVGadgetConfiguration;
39
class
UAVGadgetInstanceManager;
40
41
class
CORE_EXPORT
UAVGadgetOptionsPageDecorator
:
public
Core::IOptionsPage
42
{
43
Q_OBJECT
44
public
:
45
explicit
UAVGadgetOptionsPageDecorator
(
IOptionsPage
*page,
IUAVGadgetConfiguration
*config,
46
bool
isSingleConfigurationGadget =
false
,
47
QObject *parent =
nullptr
);
48
49
QString
id
()
const
{
return
m_id; }
50
QString
trName
()
const
{
return
m_id; }
51
QString
category
()
const
{
return
m_category; }
52
QString
trCategory
()
const
{
return
m_categoryTr; }
53
54
QWidget *createPage(QWidget *parent);
55
void
apply();
56
void
finish();
57
58
signals:
59
60
public
slots:
61
62
private
slots:
63
void
cloneConfiguration();
64
void
deleteConfiguration();
65
void
textEdited(QString);
66
67
private
:
68
IOptionsPage
*m_optionsPage;
69
IUAVGadgetConfiguration
*m_config;
70
bool
m_isSingleConfigurationGadget;
71
UAVGadgetInstanceManager
*m_instanceManager;
72
QString m_id;
73
QString m_category;
74
QString m_categoryTr;
75
76
Ui_TopOptionsPage *m_page;
77
};
78
79
}
// namespace Core
80
81
#endif // UAVGADGETOPTIONSPAGEDECORATOR_H
Core::UAVGadgetOptionsPageDecorator
Definition:
uavgadgetoptionspagedecorator.h:41
ioptionspage.h
Core::UAVGadgetOptionsPageDecorator::category
QString category() const
Definition:
uavgadgetoptionspagedecorator.h:51
core_global.h
Core::UAVGadgetOptionsPageDecorator::trCategory
QString trCategory() const
Definition:
uavgadgetoptionspagedecorator.h:52
Core::IUAVGadgetConfiguration
Definition:
iuavgadgetconfiguration.h:44
Core::UAVGadgetOptionsPageDecorator::id
QString id() const
Definition:
uavgadgetoptionspagedecorator.h:49
Core::UAVGadgetOptionsPageDecorator::trName
QString trName() const
Definition:
uavgadgetoptionspagedecorator.h:50
iuavgadgetconfiguration.h
Core::IOptionsPage
The IOptionsPage is an interface for providing options pages.
Definition:
ioptionspage.h:42
Core::UAVGadgetInstanceManager
Definition:
uavgadgetinstancemanager.h:54
ground
gcs
src
plugins
coreplugin
uavgadgetoptionspagedecorator.h
Generated by
1.8.6