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 } } }