Warning, /education/kstars/kstars/kstarslite/qml/modules/tutorial/TutorialPane.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 import "../../modules"
0013 
0014 Pane {
0015     property string title
0016     property string description
0017     signal nextClicked()
0018     focus: true
0019     Column {
0020         width: parent.width
0021         height: childrenRect.height
0022 
0023         KSLabel {
0024             width: parent.width
0025             wrapMode: Text.Wrap
0026             horizontalAlignment: Text.AlignHCenter
0027             text: title
0028             font.pointSize: 20
0029         }
0030 
0031         KSText {
0032             width: parent.width
0033             wrapMode: Text.Wrap
0034             horizontalAlignment: Text.AlignHCenter
0035             text: description
0036         }
0037 
0038         Flow {
0039             property int buttonWidth: children[0].width + children[1].width + spacing * 2
0040             width: parent.width > buttonWidth ? buttonWidth : parent.width
0041             spacing: 5
0042             anchors.horizontalCenter: parent.horizontalCenter
0043 
0044             Button {
0045                 text: xi18n("Exit")
0046                 onClicked: askExitTutorial()
0047             }
0048 
0049             Button {
0050                 text: xi18n("Next")
0051                 onClicked: {
0052                     nextClicked()
0053                 }
0054             }
0055         }
0056     }
0057 }
0058