2017-10-13 15:48:24 +00:00
|
|
|
import QtQuick 2.2
|
|
|
|
import FlightGear.Launcher 1.0 as FG
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: root
|
|
|
|
|
2017-12-05 20:53:47 +00:00
|
|
|
height: noDefaultCatalogRow.childrenRect.height + (Style.margin * 2);
|
2017-10-13 15:48:24 +00:00
|
|
|
z: 100
|
|
|
|
color: "white"
|
|
|
|
border.width: 1
|
2017-12-05 20:53:47 +00:00
|
|
|
border.color: Style.minorFrameColor
|
2017-10-13 15:48:24 +00:00
|
|
|
|
|
|
|
Row {
|
2017-12-05 20:53:47 +00:00
|
|
|
y: Style.margin
|
2017-10-13 15:48:24 +00:00
|
|
|
id: noDefaultCatalogRow
|
2017-12-05 20:53:47 +00:00
|
|
|
spacing: Style.margin
|
2017-10-13 15:48:24 +00:00
|
|
|
|
|
|
|
Text {
|
|
|
|
text: "The official FlightGear aircraft hangar is not added, so many standard "
|
|
|
|
+ "aircraft will not be available. You can add the hangar now, or hide "
|
|
|
|
+ "this message. The offical hangar can always be restored from the 'Add-Ons' page."
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2017-12-05 20:53:47 +00:00
|
|
|
width: root.width - (addDefaultButton.width + hideButton.width + Style.margin * 3)
|
2017-10-13 15:48:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: addDefaultButton
|
|
|
|
text: qsTr("Add default hangar")
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
onClicked: {
|
2018-03-16 22:01:21 +00:00
|
|
|
console.warn("Implement me")
|
|
|
|
|
|
|
|
// _launcher.officialCatalogAction("add-official");
|
2017-10-13 15:48:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: hideButton
|
|
|
|
text: qsTr("Hide")
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
onClicked: {
|
2018-03-16 22:01:21 +00:00
|
|
|
_addOns.officialCatalogAction("hide");
|
2017-10-13 15:48:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|