2018-07-04 21:16:25 +00:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.2
|
2018-07-08 05:15:02 +00:00
|
|
|
import QtQuick.Layouts 1.3
|
2018-07-04 21:16:25 +00:00
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
id: window
|
|
|
|
visible: true
|
2018-07-06 05:08:55 +00:00
|
|
|
width: 1280
|
|
|
|
height: 600
|
2018-07-04 23:40:21 +00:00
|
|
|
color: "#333333"
|
2018-07-04 21:16:25 +00:00
|
|
|
|
2018-07-06 03:37:51 +00:00
|
|
|
StackView {
|
|
|
|
id: stackView
|
|
|
|
initialItem: "PcView.qml"
|
|
|
|
anchors.fill: parent
|
2018-07-04 21:16:25 +00:00
|
|
|
}
|
2018-07-08 05:15:02 +00:00
|
|
|
|
|
|
|
header: ToolBar {
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
spacing: 20
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
ToolButton {
|
|
|
|
// Only make the button visible if the user has navigated somewhere.
|
|
|
|
visible: stackView.depth > 1
|
|
|
|
|
|
|
|
icon.source: "qrc:/res/arrow_left.png"
|
|
|
|
onClicked: stackView.pop()
|
|
|
|
|
|
|
|
Menu {
|
|
|
|
id: backButton
|
|
|
|
x: parent.width - width
|
|
|
|
transformOrigin: Menu.TopRight
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: titleLabel
|
|
|
|
text: stackView.currentItem.objectName
|
|
|
|
font.pointSize: 15
|
|
|
|
elide: Label.ElideRight
|
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
|
|
verticalAlignment: Qt.AlignVCenter
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
|
|
|
|
ToolButton {
|
|
|
|
icon.source: "qrc:/res/settings.png"
|
|
|
|
onClicked: stackView.push("qrc:/gui/SettingsView.qml")
|
|
|
|
|
|
|
|
Menu {
|
|
|
|
id: optionsMenu
|
|
|
|
x: parent.width
|
|
|
|
transformOrigin: Menu.TopRight
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ToolButton {
|
|
|
|
icon.source: "qrc:/res/question_mark.png"
|
|
|
|
|
|
|
|
// TODO need to make sure browser is brought to foreground.
|
|
|
|
onClicked: Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide");
|
|
|
|
|
|
|
|
Menu {
|
|
|
|
id: helpButton
|
|
|
|
x: parent.width
|
|
|
|
transformOrigin: Menu.TopRight
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-07-04 21:16:25 +00:00
|
|
|
}
|