Warning, /education/kstars/kstars/kstarslite/qml/modules/tutorial/TutorialPopup.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick 2.7
0005 
0006 import QtQuick.Controls 2.0
0007 import QtQuick.Controls.Material 2.0
0008 import QtQuick.Controls.Universal 2.0
0009 
0010 import QtQuick.Window 2.2 as Window
0011 import QtQuick.Layouts 1.1
0012 
0013 import "../../constants" 1.0
0014 import "../../modules"
0015 
0016 Popup {
0017     id: studyMode
0018     contentWidth: parent.width * 0.75
0019 
0020     focus: true
0021     modal: true
0022 
0023     background: Rectangle {
0024         color: Num.sysPalette.base
0025     }
0026 
0027     Column {
0028         id: studyCol
0029         width: parent.width
0030         height: childrenRect.height
0031 
0032         KSLabel {
0033             width: parent.width
0034             wrapMode: Text.Wrap
0035             horizontalAlignment: Text.AlignHCenter
0036             text: xi18n("Welcome to KStars Lite")
0037             font.pointSize: 20
0038         }
0039 
0040         KSText {
0041             width: parent.width
0042             wrapMode: Text.Wrap
0043             horizontalAlignment: Text.AlignHCenter
0044             text: xi18n("KStars Lite is a free, open source, cross-platform Astronomy Software designed for mobile devices.")
0045         }
0046 
0047         KSText {
0048             width: parent.width
0049             wrapMode: Text.Wrap
0050             horizontalAlignment: Text.AlignHCenter
0051             text: xi18n("A quick tutorial will introduce you to main functions of KStars Lite")
0052         }
0053 
0054         Flow {
0055             property int buttonWidth: children[0].width + children[1].width + spacing * 2
0056             width: parent.width > buttonWidth ? buttonWidth : parent.width
0057             spacing: 5
0058             anchors.horizontalCenter: parent.horizontalCenter
0059 
0060             Button {
0061                 text: xi18n("Close")
0062                 onClicked: askExitTutorial()
0063             }
0064 
0065             Button {
0066                 text: xi18n("Start tutorial")
0067                 onClicked: {
0068                     studyMode.close()
0069                     step1 = true
0070                 }
0071             }
0072         }
0073     }
0074 }