Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+72
@@ -0,0 +1,72 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Window {
|
||||
id: window
|
||||
visible: true
|
||||
width: 1920
|
||||
height: 1080
|
||||
title: "RME-Simulator"
|
||||
|
||||
property string replay_uuid: ""
|
||||
property var markers: []
|
||||
|
||||
Logic {
|
||||
id: logic
|
||||
}
|
||||
ListModel {
|
||||
id: itemList
|
||||
}
|
||||
Rectangle {
|
||||
id: main
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
visible: true
|
||||
Dialog {
|
||||
id: addItemDialog
|
||||
title: "Add New Replay"
|
||||
modal: true
|
||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||
|
||||
Column {
|
||||
spacing: 10
|
||||
padding: 10
|
||||
Label {
|
||||
text: "Enter Replay Name:"
|
||||
}
|
||||
TextField {
|
||||
id: replayNameField
|
||||
width: 200
|
||||
placeholderText: "Replay Name"
|
||||
}
|
||||
}
|
||||
|
||||
onAccepted: {
|
||||
if(replayNameField.text !== "") {
|
||||
itemList.append({"name": replayNameField.text})
|
||||
logic.replayHelper.createReplay(replayNameField.text);
|
||||
replayNameField.text = ""
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: logic.replayHelper
|
||||
|
||||
function onReplayCreated() {
|
||||
logic.replayHelper.fetchReplays(); // Fetch the updated list of replays
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SideBar_Component {
|
||||
id: sidebar
|
||||
anchors.left: parent.left
|
||||
}
|
||||
|
||||
Map_Component {
|
||||
id: map
|
||||
anchors.right: parent.right
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user