Files
Artemis/ui/SpaceWeather.qml
2024-05-31 19:59:51 +02:00

84 lines
1.8 KiB
QML

import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Layouts
Window {
id: windowSpaceWeather
width: 1000
height: 700
Component.onCompleted: {
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal
flags: Qt.Window
title: qsTr("Artemis - Space Weather")
function updateBottomBar(message) {
spaceBottomBar.text = message
}
Page {
anchors.fill: parent
footer: Label {
id: spaceBottomBar
font.pixelSize: 12
leftPadding: 5
rightPadding: 5
bottomPadding: 5
}
ColumnLayout {
anchors.fill: parent
TabBar {
id: tabBar
width: parent.width
Layout.fillWidth: true
TabButton {
text: qsTr("Current")
}
TabButton {
text: qsTr("Forecasts")
}
TabButton {
text: qsTr("DRAP")
}
}
StackLayout {
currentIndex: tabBar.currentIndex
Layout.fillHeight: true
Layout.fillWidth: true
Item {
SpaceWeatherCurrentPage {
id: spaceWeatherCurrentPage
}
}
Item {
SpaceWeatherForecastPage {
id: spaceWeatherForecastPage
}
}
Item {
SpaceWeatherDRAPPage {
id: spaceWeatherDRAPPage
}
}
}
}
}
}