You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.7 KiB

4 years ago
import QtQuick 2.12
import QtQuick.Controls
import QtQuick.Layouts
4 years ago
import Qt.labs.platform 1.1
import QtMultimedia
4 years ago
ApplicationWindow {
4 years ago
title: qsTr("Tangra Mega Rock")
id: mainWindow
visible: true
width: 640
maximumWidth: 640
4 years ago
height: 480
maximumHeight: 480
flags: Qt.FramelessWindowHint
4 years ago
FontLoader { id: mainfont; source: "qrc:/bpetrov.tangraplay/imports/TangraPlay/Assets/KellySlab-Regular.ttf" }
header: MenuToolbar {}
Connections {
target: tangraTray
4 years ago
function onSignalIconActivated() {
4 years ago
mainWindow.show()
mainWindow.raise()
mainWindow.requestActivate()
}
function onSignalQuit(){
Qt.quit()
}
4 years ago
}
AboutProgram {
id: aboutDialog
}
4 years ago
AudioPlayer {
id: thePlayer
4 years ago
}
CurrentShow {
id: currentShow
Component.onCompleted: {
currentShow.getShow();
}
}
4 years ago
function mediaControl() {
if (thePlayer.playbackState != MediaPlayer.PlayingState) {
thePlayer.play();
4 years ago
}
else {
thePlayer.stop();
4 years ago
}
return 0;
}
Image {
id: background
anchors.fill: parent
visible: true
fillMode: Image.Tile
source: "qrc:/bpetrov.tangraplay/imports/TangraPlay/Assets/dark_leather.png"
4 years ago
StackView {
id: mainStack
initialItem: stackLive
anchors.fill: parent
}
Component {
id: stackLive
PgLive {
id: pgLive
}
}
Component {
id: stackNews
PgNews { id: pgNews }
4 years ago
}
}
4 years ago
}