From a3e76ef2b0b43ac12f2bd4b32b7f7e53d721c3bf Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Fri, 29 Aug 2025 20:23:05 +1000 Subject: [PATCH] more --- .../Features/Debug_/DebugPanel.cs | 2 +- .../SubTabs/ThreadsVariablesSubTab.tscn | 52 ----------------- .../{DebugPanelTab => Tab}/DebugPanelTab.cs | 4 +- .../DebugPanelTab.cs.uid | 0 .../{DebugPanelTab => Tab}/DebugPanelTab.tscn | 3 +- .../Debug_/Tab/SubTabs/ThreadListItem.tscn | 15 +++++ .../Tab/SubTabs/ThreadsVariablesSubTab.cs | 8 +++ .../Tab/SubTabs/ThreadsVariablesSubTab.cs.uid | 1 + .../Tab/SubTabs/ThreadsVariablesSubTab.tscn | 57 +++++++++++++++++++ 9 files changed, 86 insertions(+), 56 deletions(-) delete mode 100644 src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn rename src/SharpIDE.Godot/Features/Debug_/{DebugPanelTab => Tab}/DebugPanelTab.cs (93%) rename src/SharpIDE.Godot/Features/Debug_/{DebugPanelTab => Tab}/DebugPanelTab.cs.uid (100%) rename src/SharpIDE.Godot/Features/Debug_/{DebugPanelTab => Tab}/DebugPanelTab.tscn (95%) create mode 100644 src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadListItem.tscn create mode 100644 src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs create mode 100644 src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs.uid create mode 100644 src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs b/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs index f4d4713..2c3bcc0 100644 --- a/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs +++ b/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs @@ -1,7 +1,7 @@ using Godot; using SharpIDE.Application.Features.Events; using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence; -using SharpIDE.Godot.Features.Run; +using SharpIDE.Godot.Features.Debug_.Tab; namespace SharpIDE.Godot.Features.Debug_; diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn b/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn deleted file mode 100644 index 9435a9b..0000000 --- a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn +++ /dev/null @@ -1,52 +0,0 @@ -[gd_scene format=3 uid="uid://bdu08nd7si641"] - -[node name="ThreadsVariablesSubTab" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="HSplitContainer" type="HSplitContainer" parent="."] -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -split_offset = 775 - -[node name="HSplitContainer" type="HSplitContainer" parent="HSplitContainer"] -layout_mode = 2 -split_offset = 370 - -[node name="Panel" type="Panel" parent="HSplitContainer/HSplitContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/Panel"] -layout_mode = 0 -offset_left = 12.0 -offset_right = 52.0 -offset_bottom = 23.0 -text = "A" - -[node name="Panel2" type="Panel" parent="HSplitContainer/HSplitContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/Panel2"] -layout_mode = 0 -offset_left = 12.0 -offset_right = 52.0 -offset_bottom = 23.0 -text = "B" - -[node name="Panel3" type="Panel" parent="HSplitContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="HSplitContainer/Panel3"] -layout_mode = 0 -offset_left = 12.0 -offset_right = 52.0 -offset_bottom = 23.0 -text = "C" diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.cs b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.cs similarity index 93% rename from src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.cs rename to src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.cs index 89176d3..2bfa10e 100644 --- a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.cs +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.cs @@ -2,9 +2,9 @@ using GDExtensionBindgen; using Godot; using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence; -namespace SharpIDE.Godot.Features.Debug_; +namespace SharpIDE.Godot.Features.Debug_.Tab; -public partial class DebugPanelTab : Panel +public partial class DebugPanelTab : Control { private Terminal _terminal = null!; private Task _writeTask = Task.CompletedTask; diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.cs.uid b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.cs.uid similarity index 100% rename from src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.cs.uid rename to src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.cs.uid diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.tscn b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn similarity index 95% rename from src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.tscn rename to src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn index c54de46..c39a562 100644 --- a/src/SharpIDE.Godot/Features/Debug_/DebugPanelTab/DebugPanelTab.tscn +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn @@ -3,7 +3,8 @@ [ext_resource type="Script" uid="uid://b6gq81odfn8ok" path="res://Features/Debug_/DebugPanelTab/DebugPanelTab.cs" id="1_yinwn"] [ext_resource type="PackedScene" uid="uid://bdu08nd7si641" path="res://Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn" id="2_0jpwf"] -[node name="DebugPanelTab" type="Panel"] +[node name="DebugPanelTab" type="Control"] +layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadListItem.tscn b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadListItem.tscn new file mode 100644 index 0000000..b383633 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadListItem.tscn @@ -0,0 +1,15 @@ +[gd_scene format=3 uid="uid://1bbofax8nht1"] + +[node name="ThreadListItem" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Label" type="Label" parent="."] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 23.0 +text = "Thread Name" diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs new file mode 100644 index 0000000..44fe967 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs @@ -0,0 +1,8 @@ +using Godot; + +namespace SharpIDE.Godot.Features.Debug_.Tab.SubTabs; + +public partial class ThreadsVariablesSubTab : Control +{ + +} \ No newline at end of file diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs.uid b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs.uid new file mode 100644 index 0000000..be8249b --- /dev/null +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs.uid @@ -0,0 +1 @@ +uid://dpc4fvj40e5il diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn new file mode 100644 index 0000000..ea2acc5 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn @@ -0,0 +1,57 @@ +[gd_scene load_steps=3 format=3 uid="uid://bdu08nd7si641"] + +[ext_resource type="Script" uid="uid://dpc4fvj40e5il" path="res://Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.cs" id="1_eohaj"] +[ext_resource type="PackedScene" uid="uid://1bbofax8nht1" path="res://Features/Debug_/DebugPanelTab/SubTabs/ThreadListItem.tscn" id="1_ns3r7"] + +[node name="ThreadsVariablesSubTab" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_eohaj") + +[node name="HSplitContainer" type="HSplitContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +split_offset = 775 + +[node name="HSplitContainer" type="HSplitContainer" parent="HSplitContainer"] +layout_mode = 2 +split_offset = 370 + +[node name="ThreadsPanel" type="Panel" parent="HSplitContainer/HSplitContainer"] +layout_mode = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/HSplitContainer/ThreadsPanel"] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="ThreadListItem" parent="HSplitContainer/HSplitContainer/ThreadsPanel/VBoxContainer" instance=ExtResource("1_ns3r7")] +layout_mode = 2 + +[node name="StackFramesPanel" type="Panel" parent="HSplitContainer/HSplitContainer"] +layout_mode = 2 + +[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/StackFramesPanel"] +layout_mode = 0 +offset_left = 12.0 +offset_right = 52.0 +offset_bottom = 23.0 +text = "B" + +[node name="VariablesPanel" type="Panel" parent="HSplitContainer"] +layout_mode = 2 + +[node name="Label" type="Label" parent="HSplitContainer/VariablesPanel"] +layout_mode = 0 +offset_left = 12.0 +offset_right = 52.0 +offset_bottom = 23.0 +text = "C"