"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/GUI/qml/LocationAirportView.qml" between
flightgear-2020.3.7.tar.bz2 and flightgear-2020.3.8.tar.bz2

About: FlightGear is a multi-platform, cooperative flight simulator development project.

LocationAirportView.qml  (flightgear-2020.3.7.tar.bz2):LocationAirportView.qml  (flightgear-2020.3.8.tar.bz2)
skipping to change at line 15 skipping to change at line 15
Item { Item {
id: root id: root
property alias location: airportData.guid property alias location: airportData.guid
Positioned { Positioned {
id: airportData id: airportData
onGuidChanged: _location.setBaseLocation(this) onGuidChanged: _location.setBaseLocation(this)
} }
GettingStartedScope.controller: tips.controller
readonly property bool isHeliport: airportData.type === Positioned.Heliport readonly property bool isHeliport: airportData.type === Positioned.Heliport
readonly property bool haveParking: airportData.airportHasParkings readonly property bool haveParking: airportData.airportHasParkings
AirportDiagram { AirportDiagram {
id: diagram id: diagram
anchors.fill: parent anchors.fill: parent
airport: airportData.guid airport: airportData.guid
onClicked: { onClicked: {
if (pos === null) if (pos === null)
skipping to change at line 40 skipping to change at line 42
return; return;
} }
_location.setDetailLocation(pos) _location.setDetailLocation(pos)
diagram.selection = pos diagram.selection = pos
syncUIFromController(); syncUIFromController();
} }
approachExtensionEnabled: _location.onFinal approachExtensionEnabled: _location.onFinal
approachExtension: _location.offsetDistance approachExtension: _location.offsetDistance
GettingStartedTip {
tipId: "locationDiagram"
anchors.centerIn: parent
arrow: GettingStartedTip.NoArrow
text: qsTr("Click here to select a runway or parking position, and d
rag to pan. Mouse-wheel zooms in and out.")
}
} }
// not very declarative, try to remove this over time // not very declarative, try to remove this over time
function syncUIFromController() function syncUIFromController()
{ {
if (_location.useAvailableParking || (_location.detail.type === Position ed.Parking)) { if (_location.useAvailableParking || (_location.detail.type === Position ed.Parking)) {
parkingRadio.select() parkingRadio.select()
parkingChoice.syncCurrentIndex(); parkingChoice.syncCurrentIndex();
} else if (_location.detail.type === Positioned.Helipad) { } else if (_location.detail.type === Positioned.Helipad) {
helipadRadio.select(); helipadRadio.select();
skipping to change at line 384 skipping to change at line 393
} else { } else {
_location.setDetailLocation(_location.airportParking s[currentIndex]) _location.setDetailLocation(_location.airportParking s[currentIndex])
diagram.selection = _location.airportParkings[curren tIndex] diagram.selection = _location.airportParkings[curren tIndex]
} }
} }
} }
} }
} // main layout column } // main layout column
} // main panel rectangle } // main panel rectangle
GettingStartedTipLayer {
id: tips
anchors.fill: parent
scopeId: "locationAirportDetails"
}
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)