import QtQuick 2.4 import QtQuick.Controls 2.2 import FlightGear.Launcher 1.0 import FlightGear 1.0 Item { id: root readonly property string forumLink: "href=\"https://forum.flightgear.org\""; readonly property string forumHelpLink: "href=\"https://forum.flightgear.org/viewforum.php?f=17\""; readonly property string wikiLink: "href=\"http://wiki.flightgear.org/Portal:User\""; Flickable { id: flick contentHeight: contentColumn.childrenRect.height flickableDirection: Flickable.VerticalFlick height: parent.height width: parent.width - (Style.strutSize * 4) x: Style.strutSize * 2 y: Style.strutSize ScrollBar.vertical: ScrollBar {} function getDevelopmentYears() { // 1996 - the year work began on FlightGear return (new Date()).getFullYear() - 1996; } Column { id: contentColumn spacing: Style.strutSize width: parent.width Text { width: parent.width font.pixelSize: Style.baseFontPixelSize * 1.5 color: Style.baseTextColor wrapMode: Text.WordWrap readonly property var pdfManualLink: "href=\"https://www.flightgear.org/support/manual\"" readonly property var shortRefLink: "href=\"" + _launcher.urlToDataPath("Docs/FGShortRef.html") + "\"" text: qsTr("
FlightGear is open source software, developed entirely by volunteers. " + "Support is provided by our excellent user community. " + "The easiest place to ask questions and get support is on our forums.
\n" + "To get started with the simulator, please use our tutorial system: " + "this is available from the 'Help' menu in the simulator. We recommend " + "starting with the Cessna 172 to learn how to get airborne.
\n" + "Other good resources:
For help using this launcher, try enabling the getting started hints.
\n").arg("href=\"enable-tips\""); onLinkActivated: { // reset tips, so they are shown again _launcher.resetGettingStartedTips(); } } Text { width: parent.width font.pixelSize: Style.baseFontPixelSize * 1.5 color: Style.baseTextColor wrapMode: Text.WordWrap text: qsTr("If you find an issue, please use our help forum.
\n").arg(root.forumHelpLink); onLinkActivated: { Qt.openUrlExternally(link) } } Text { width: parent.width font.pixelSize: Style.baseFontPixelSize * 1.5 color: Style.baseTextColor wrapMode: Text.WordWrap text: qsTr("FlightGear is the result of %1 years of work " + "by hundreds of contributors around the world. We'd be " + "delighted if you would join us.
\n").arg(flick.getDevelopmentYears()) // onLinkActivated: { // Qt.openUrlExternally(link) // } } } } // of flickable }