1
0
Fork 0
flightgear/src/GUI/qml/NoDefaultCatalogPanel.qml

50 lines
1.4 KiB
QML
Raw Normal View History

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);
z: 100
color: "white"
border.width: 1
2017-12-05 20:53:47 +00:00
border.color: Style.minorFrameColor
Row {
2017-12-05 20:53:47 +00:00
y: Style.margin
id: noDefaultCatalogRow
2017-12-05 20:53:47 +00:00
spacing: Style.margin
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)
}
Button {
id: addDefaultButton
text: qsTr("Add default hangar")
anchors.verticalCenter: parent.verticalCenter
onClicked: {
console.warn("Implement me")
// _launcher.officialCatalogAction("add-official");
}
}
Button {
id: hideButton
text: qsTr("Hide")
anchors.verticalCenter: parent.verticalCenter
onClicked: {
_addOns.officialCatalogAction("hide");
}
}
}
}