Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e6a60628
Commit
e6a60628
authored
Sep 30, 2017
by
Gus Grubba
Committed by
GitHub
Sep 30, 2017
Browse files
Merge pull request #5720 from mavlink/customSettings
Custom Settings
parents
28e83155
1b7983d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
qgroundcontrol.pro
View file @
e6a60628
...
@@ -392,11 +392,13 @@ FORMS += \
...
@@ -392,11 +392,13 @@ FORMS += \
HEADERS
+=
\
HEADERS
+=
\
src
/
api
/
QGCCorePlugin
.
h
\
src
/
api
/
QGCCorePlugin
.
h
\
src
/
api
/
QGCOptions
.
h
\
src
/
api
/
QGCOptions
.
h
\
src
/
api
/
QGCSettings
.
h
\
src
/
api
/
QmlComponentInfo
.
h
\
src
/
api
/
QmlComponentInfo
.
h
\
SOURCES
+=
\
SOURCES
+=
\
src
/
api
/
QGCCorePlugin
.
cc
\
src
/
api
/
QGCCorePlugin
.
cc
\
src
/
api
/
QGCOptions
.
cc
\
src
/
api
/
QGCOptions
.
cc
\
src
/
api
/
QGCSettings
.
cc
\
src
/
api
/
QmlComponentInfo
.
cc
\
src
/
api
/
QmlComponentInfo
.
cc
\
#
#
...
...
src/api/QGCSettings.cc
0 → 100644
View file @
e6a60628
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include
"QGCSettings.h"
/// @file
/// @brief Core Plugin Interface for QGroundControl. Settings element.
/// @author Gus Grubba <mavlink@grubba.com>
QGCSettings
::
QGCSettings
(
QString
title
,
QUrl
url
,
QUrl
icon
)
:
_title
(
title
)
,
_url
(
url
)
,
_icon
(
icon
)
{
}
src/api/QGCSettings.h
0 → 100644
View file @
e6a60628
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#pragma once
#include
<QObject>
#include
<QUrl>
/// @file
/// @brief Core Plugin Interface for QGroundControl. Settings element.
/// @author Gus Grubba <mavlink@grubba.com>
class
QGCSettings
:
public
QObject
{
Q_OBJECT
public:
QGCSettings
(
QString
title
,
QUrl
url
,
QUrl
icon
=
QUrl
());
Q_PROPERTY
(
QString
title
READ
title
CONSTANT
)
Q_PROPERTY
(
QUrl
url
READ
url
CONSTANT
)
Q_PROPERTY
(
QUrl
icon
READ
icon
CONSTANT
)
virtual
QString
title
()
{
return
_title
;
}
virtual
QUrl
url
()
{
return
_url
;
}
virtual
QUrl
icon
()
{
return
_icon
;
}
protected:
QString
_title
;
QUrl
_url
;
QUrl
_icon
;
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment