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
9f6f5edb
Unverified
Commit
9f6f5edb
authored
Jan 19, 2018
by
Don Gagne
Committed by
GitHub
Jan 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6043 from mavlink/planViewSizing
Compute plan view items visibility on the fly.
parents
ff622752
888002df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
PlanView.qml
src/PlanView/PlanView.qml
+3
-2
QGCOptions.h
src/api/QGCOptions.h
+5
-0
MainWindow.cc
src/ui/MainWindow.cc
+1
-0
No files found.
src/PlanView/PlanView.qml
View file @
9f6f5edb
...
@@ -53,6 +53,7 @@ QGCView {
...
@@ -53,6 +53,7 @@ QGCView {
property
bool
_singleComplexItem
:
_missionController
.
complexMissionItemNames
.
length
===
1
property
bool
_singleComplexItem
:
_missionController
.
complexMissionItemNames
.
length
===
1
property
real
_toolbarHeight
:
_qgcView
.
height
-
ScreenTools
.
availableHeight
property
real
_toolbarHeight
:
_qgcView
.
height
-
ScreenTools
.
availableHeight
property
int
_editingLayer
:
_layerMission
property
int
_editingLayer
:
_layerMission
property
int
_toolStripBottom
:
toolStrip
.
height
+
toolStrip
.
y
readonly
property
int
_layerMission
:
1
readonly
property
int
_layerMission
:
1
readonly
property
int
_layerGeoFence
:
2
readonly
property
int
_layerGeoFence
:
2
...
@@ -646,7 +647,7 @@ QGCView {
...
@@ -646,7 +647,7 @@ QGCView {
anchors.bottom
:
waypointValuesDisplay
.
visible
?
waypointValuesDisplay
.
top
:
parent
.
bottom
anchors.bottom
:
waypointValuesDisplay
.
visible
?
waypointValuesDisplay
.
top
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
mapControl
:
editorMap
mapControl
:
editorMap
visible
:
!
ScreenTools
.
isTinyScreen
visible
:
_toolStripBottom
<
y
}
}
MissionItemStatus
{
MissionItemStatus
{
...
@@ -657,7 +658,7 @@ QGCView {
...
@@ -657,7 +658,7 @@ QGCView {
maxWidth
:
parent
.
width
-
rightPanel
.
width
-
x
maxWidth
:
parent
.
width
-
rightPanel
.
width
-
x
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
missionItems
:
_missionController
.
visualItems
missionItems
:
_missionController
.
visualItems
visible
:
_editingLayer
===
_layerMission
&&
(
ScreenTools
.
isMobile
?
height
<
Screen
.
height
*
0.25
:
true
)
visible
:
_editingLayer
===
_layerMission
&&
(
_toolStripBottom
+
mapScale
.
height
)
<
y
&&
QGroundControl
.
corePlugin
.
options
.
showMissionStatus
}
}
}
// QGCViewPanel
}
// QGCViewPanel
...
...
src/api/QGCOptions.h
View file @
9f6f5edb
...
@@ -45,6 +45,7 @@ public:
...
@@ -45,6 +45,7 @@ public:
Q_PROPERTY
(
bool
showOfflineMapExport
READ
showOfflineMapExport
NOTIFY
showOfflineMapExportChanged
)
Q_PROPERTY
(
bool
showOfflineMapExport
READ
showOfflineMapExport
NOTIFY
showOfflineMapExportChanged
)
Q_PROPERTY
(
bool
showOfflineMapImport
READ
showOfflineMapImport
NOTIFY
showOfflineMapImportChanged
)
Q_PROPERTY
(
bool
showOfflineMapImport
READ
showOfflineMapImport
NOTIFY
showOfflineMapImportChanged
)
Q_PROPERTY
(
bool
useMobileFileDialog
READ
useMobileFileDialog
CONSTANT
)
Q_PROPERTY
(
bool
useMobileFileDialog
READ
useMobileFileDialog
CONSTANT
)
Q_PROPERTY
(
bool
showMissionStatus
READ
showMissionStatus
CONSTANT
)
/// Should QGC hide its settings menu and colapse it into one single menu (Settings and Vehicle Setup)?
/// Should QGC hide its settings menu and colapse it into one single menu (Settings and Vehicle Setup)?
/// @return true if QGC should consolidate both menus into one.
/// @return true if QGC should consolidate both menus into one.
...
@@ -62,6 +63,10 @@ public:
...
@@ -62,6 +63,10 @@ public:
/// @return An alternate widget (see QGCInstrumentWidget.qml, the default widget)
/// @return An alternate widget (see QGCInstrumentWidget.qml, the default widget)
virtual
CustomInstrumentWidget
*
instrumentWidget
();
virtual
CustomInstrumentWidget
*
instrumentWidget
();
/// Should the mission status indicator (Plan View) be shown?
/// @return Yes or no
virtual
bool
showMissionStatus
()
{
return
true
;
}
/// Allows access to the full fly view window
/// Allows access to the full fly view window
virtual
QUrl
flyViewOverlay
()
const
{
return
QUrl
();
}
virtual
QUrl
flyViewOverlay
()
const
{
return
QUrl
();
}
/// By returning false you can hide the following sensor calibration pages
/// By returning false you can hide the following sensor calibration pages
...
...
src/ui/MainWindow.cc
View file @
9f6f5edb
...
@@ -135,6 +135,7 @@ MainWindow::MainWindow()
...
@@ -135,6 +135,7 @@ MainWindow::MainWindow()
_ui
.
setupUi
(
this
);
_ui
.
setupUi
(
this
);
// Make sure tool bar elements all fit before changing minimum width
// Make sure tool bar elements all fit before changing minimum width
setMinimumWidth
(
1008
);
setMinimumWidth
(
1008
);
setMinimumHeight
(
520
);
configureWindowName
();
configureWindowName
();
// Setup central widget with a layout to hold the views
// Setup central widget with a layout to hold the views
...
...
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