-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5251 from opengisch/NavigatingDrawer
Information drawer functionality
- Loading branch information
Showing
8 changed files
with
1,096 additions
and
1,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import QtQuick 2.14 | ||
import QtQuick.Controls 2.14 | ||
|
||
import org.qfield 1.0 | ||
import Theme 1.0 | ||
|
||
Item { | ||
id: controller | ||
|
||
anchors.bottom: parent.bottom | ||
anchors.leftMargin: 10 | ||
anchors.rightMargin: 10 | ||
|
||
width: parent.width | ||
height: mainContent.height + (mainContent.height > 0 ? 10 : 0) | ||
Behavior on height { | ||
PropertyAnimation { | ||
easing.type: Easing.OutQuart | ||
} | ||
} | ||
|
||
property real itemRadius: 8 | ||
|
||
// SensorInformationView | ||
property bool sensorInformationViewEnabled: sensorInformationView.activeSensors > 0 | ||
|
||
// NavigationInformationView | ||
property bool navigationInformationViewEnabled: navigation.isActive && !elevationProfile.visible | ||
|
||
// PositioningInformationView | ||
property Navigation navigation | ||
property bool positioningInformationViewEnabled: positioningSettings.showPositionInformation && !elevationProfile.visible | ||
|
||
// PositioningPreciseView | ||
property alias positioningPreciseView: positioningPreciseView | ||
property PositioningSettings positioningSettings | ||
property Positioning positionSource | ||
property real positioningPreciseViewHeight | ||
property bool positioningPreciseEnabled: !elevationProfile.visible | ||
&& !isNaN(navigation.distance) | ||
&& navigation.isActive | ||
&& (positioningSettings.alwaysShowPreciseView | ||
|| ( positioningPreciseView.hasAcceptableAccuracy | ||
&& positioningPreciseView.projectDistance < positioningPreciseView.precision )) | ||
|
||
Column { | ||
id: mainContent | ||
width: parent.width - 8 | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
spacing: 8 | ||
|
||
NavigationInformationView { | ||
id: navigationInformationView | ||
width: parent.width | ||
height: navigationInformationViewEnabled ? contentHeight : 0 | ||
clip: true | ||
navigation: controller.navigation | ||
radius: itemRadius | ||
} | ||
|
||
PositioningInformationView { | ||
id: positioningInformationView | ||
width: parent.width | ||
height: positioningInformationViewEnabled ? contentHeight : 0 | ||
clip: true | ||
visible: positioningInformationViewEnabled | ||
positionSource: controller.positionSource | ||
antennaHeight: positioningSettings.antennaHeightActivated ? positioningSettings.antennaHeight : NaN | ||
radius: itemRadius | ||
} | ||
|
||
PositioningPreciseView { | ||
id: positioningPreciseView | ||
width: parent.width | ||
height: positioningPreciseEnabled ? positioningPreciseViewHeight : 0 | ||
clip: true | ||
precision: positioningSettings.preciseViewPrecision | ||
} | ||
|
||
SensorInformationView { | ||
id: sensorInformationView | ||
height: sensorInformationViewEnabled ? contentHeight : 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
dc41638
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Ta-daaa, freshly created APKs are available: arm64-android
Other architectures