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
4b56b0d1
Commit
4b56b0d1
authored
Aug 18, 2017
by
Beat Küng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AirMapController: add flightPermitStatusChanged
parent
b60d4dae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
AirMapController.cc
src/MissionManager/AirMapController.cc
+1
-0
AirMapController.h
src/MissionManager/AirMapController.h
+7
-0
No files found.
src/MissionManager/AirMapController.cc
View file @
4b56b0d1
...
...
@@ -18,6 +18,7 @@ AirMapController::AirMapController(QObject* parent)
:
QObject
(
parent
)
,
_manager
(
qgcApp
()
->
toolbox
()
->
airMapManager
())
{
connect
(
_manager
,
&
AirMapManager
::
flightPermitStatusChanged
,
this
,
&
AirMapController
::
flightPermitStatusChanged
);
}
AirMapController
::~
AirMapController
()
...
...
src/MissionManager/AirMapController.h
View file @
4b56b0d1
...
...
@@ -29,11 +29,18 @@ public:
Q_PROPERTY
(
QmlObjectListModel
*
polygons
READ
polygons
CONSTANT
)
///< List of PolygonAirspaceRestriction objects
Q_PROPERTY
(
QmlObjectListModel
*
circles
READ
circles
CONSTANT
)
///< List of CircularAirspaceRestriction objects
Q_PROPERTY
(
AirspaceAuthorization
::
PermitStatus
flightPermitStatus
READ
flightPermitStatus
NOTIFY
flightPermitStatusChanged
)
///< state of flight permission
Q_INVOKABLE
void
setROI
(
QGeoCoordinate
center
,
double
radius
)
{
_manager
->
setROI
(
center
,
radius
);
}
QmlObjectListModel
*
polygons
(
void
)
{
return
_manager
->
polygonRestrictions
();
}
QmlObjectListModel
*
circles
(
void
)
{
return
_manager
->
circularRestrictions
();
}
AirspaceAuthorization
::
PermitStatus
flightPermitStatus
()
const
{
return
_manager
->
flightPermitStatus
();
}
signals:
void
flightPermitStatusChanged
();
private:
AirMapManager
*
_manager
;
QmlObjectListModel
_polygonList
;
...
...
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