Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b56c3438
Commit
b56c3438
authored
Sep 30, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow custom plugin to define their own list of settings panels
parent
28e83155
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
QGCSettings.cc
src/api/QGCSettings.cc
+21
-0
QGCSettings.h
src/api/QGCSettings.h
+37
-0
No files found.
src/api/QGCSettings.cc
0 → 100644
View file @
b56c3438
/****************************************************************************
*
* (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 @
b56c3438
/****************************************************************************
*
* (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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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