2013-11-14 00:48:00 +01:00
|
|
|
import QtQuick 2.0
|
2012-07-23 09:19:24 +02:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: "#666666"
|
|
|
|
|
2012-09-09 08:58:54 +02:00
|
|
|
SvgElementImage {
|
2012-07-23 09:19:24 +02:00
|
|
|
id: background
|
2013-10-20 06:49:59 +02:00
|
|
|
elementName: "pfd-window"
|
2012-07-23 09:19:24 +02:00
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
anchors.fill: parent
|
2012-09-09 08:58:54 +02:00
|
|
|
sceneSize: Qt.size(width, height)
|
2014-06-17 14:29:24 +02:00
|
|
|
|
|
|
|
Rectangle {
|
2014-06-17 19:37:09 +02:00
|
|
|
width: Math.floor(parent.paintedHeight * 1.319)
|
2014-06-17 14:29:24 +02:00
|
|
|
height: Math.floor(parent.paintedHeight - parent.paintedHeight * 0.008)
|
|
|
|
|
|
|
|
color: "transparent"
|
|
|
|
border.color: "white"
|
|
|
|
border.width: Math.floor(parent.paintedHeight * 0.008)
|
|
|
|
radius: Math.floor(parent.paintedHeight * 0.01)
|
|
|
|
anchors.centerIn: parent
|
|
|
|
}
|
2012-07-23 09:19:24 +02:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: sceneItem
|
2014-06-17 14:29:24 +02:00
|
|
|
|
2014-12-14 17:21:17 +01:00
|
|
|
FontLoader {
|
|
|
|
id: pt_bold
|
|
|
|
source: "qrc:/pfdqml/fonts/PTS75F.ttf"
|
|
|
|
}
|
|
|
|
|
2014-06-17 19:37:09 +02:00
|
|
|
width: Math.floor((parent.paintedHeight * 1.32) - (parent.paintedHeight * 0.013))
|
2014-06-17 14:29:24 +02:00
|
|
|
height: Math.floor(parent.paintedHeight - parent.paintedHeight * 0.02)
|
2013-10-20 15:05:14 +02:00
|
|
|
property variant viewportSize : Qt.size(width, height)
|
|
|
|
|
2012-07-23 09:19:24 +02:00
|
|
|
anchors.centerIn: parent
|
|
|
|
clip: true
|
2014-06-22 20:37:22 +02:00
|
|
|
|
2012-07-31 16:32:46 +02:00
|
|
|
Loader {
|
|
|
|
id: worldLoader
|
2012-07-29 08:05:59 +02:00
|
|
|
anchors.fill: parent
|
2012-07-31 16:32:46 +02:00
|
|
|
source: qmlWidget.terrainEnabled ? "PfdTerrainView.qml" : "PfdWorldView.qml"
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
|
2013-10-20 06:49:59 +02:00
|
|
|
HorizontCenter {
|
|
|
|
id: horizontCenterItem
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2013-10-20 06:49:59 +02:00
|
|
|
anchors.fill: parent
|
|
|
|
}
|
2012-09-09 08:58:54 +02:00
|
|
|
|
2013-10-20 06:49:59 +02:00
|
|
|
RollScale {
|
|
|
|
id: rollscale
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2013-10-20 06:49:59 +02:00
|
|
|
horizontCenter: horizontCenterItem.horizontCenter
|
|
|
|
anchors.fill: parent
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
|
2014-05-25 15:03:53 +02:00
|
|
|
SvgElementImage {
|
|
|
|
id: side_slip_fixed
|
|
|
|
elementName: "sideslip-fixed"
|
|
|
|
sceneSize: sceneItem.viewportSize
|
|
|
|
|
|
|
|
x: scaledBounds.x * sceneItem.width
|
|
|
|
}
|
|
|
|
|
2012-09-11 07:16:58 +02:00
|
|
|
Compass {
|
|
|
|
anchors.fill: parent
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SpeedScale {
|
|
|
|
anchors.fill: parent
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
AltitudeScale {
|
|
|
|
anchors.fill: parent
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
|
2012-09-02 05:33:29 +02:00
|
|
|
VsiScale {
|
|
|
|
anchors.fill: parent
|
2013-10-20 15:05:14 +02:00
|
|
|
sceneSize: sceneItem.viewportSize
|
2014-09-24 17:49:22 +02:00
|
|
|
visible: qmlWidget.altitudeUnit != 0
|
2012-09-02 05:33:29 +02:00
|
|
|
}
|
|
|
|
|
2013-10-20 15:05:14 +02:00
|
|
|
Info {
|
|
|
|
anchors.fill: parent
|
|
|
|
sceneSize: sceneItem.viewportSize
|
|
|
|
}
|
|
|
|
|
2014-09-02 00:21:38 +02:00
|
|
|
Panels {
|
|
|
|
anchors.fill: parent
|
|
|
|
sceneSize: sceneItem.viewportSize
|
|
|
|
}
|
|
|
|
|
2013-10-20 15:05:14 +02:00
|
|
|
Warnings {
|
|
|
|
anchors.fill: parent
|
|
|
|
sceneSize: sceneItem.viewportSize
|
2012-07-23 09:19:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|