Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+72
View File
@@ -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
}
}
}