diff --git a/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs index 7d56e39..093ebf6 100644 --- a/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs +++ b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs @@ -1,5 +1,6 @@ using Godot; using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence; +using SharpIDE.Godot.Features.IdeDiagnostics; using SharpIDE.Godot.Features.Problems; namespace SharpIDE.Godot.Features.BottomPanel; @@ -20,6 +21,7 @@ public partial class BottomPanelManager : Panel private Control _debugPanel = null!; private Control _buildPanel = null!; private ProblemsPanel _problemsPanel = null!; + private IdeDiagnosticsPanel _ideDiagnosticsPanel = null!; private Dictionary _panelTypeMap = []; @@ -29,13 +31,15 @@ public partial class BottomPanelManager : Panel _debugPanel = GetNode("%DebugPanel"); _buildPanel = GetNode("%BuildPanel"); _problemsPanel = GetNode("%ProblemsPanel"); + _ideDiagnosticsPanel = GetNode("%IdeDiagnosticsPanel"); _panelTypeMap = new Dictionary { { BottomPanelType.Run, _runPanel }, { BottomPanelType.Debug, _debugPanel }, { BottomPanelType.Build, _buildPanel }, - { BottomPanelType.Problems, _problemsPanel } + { BottomPanelType.Problems, _problemsPanel }, + { BottomPanelType.IdeDiagnostics, _ideDiagnosticsPanel } }; GodotGlobalEvents.BottomPanelTabSelected += OnBottomPanelTabSelected; diff --git a/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs new file mode 100644 index 0000000..34138bc --- /dev/null +++ b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs @@ -0,0 +1,8 @@ +using Godot; + +namespace SharpIDE.Godot.Features.IdeDiagnostics; + +public partial class IdeDiagnosticsPanel : Control +{ + +} \ No newline at end of file diff --git a/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs.uid b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs.uid new file mode 100644 index 0000000..b6ab00c --- /dev/null +++ b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.cs.uid @@ -0,0 +1 @@ +uid://1dbtk7cifd25 diff --git a/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.tscn b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.tscn new file mode 100644 index 0000000..eb05b30 --- /dev/null +++ b/src/SharpIDE.Godot/Features/IdeDiagnostics/IdeDiagnosticsPanel.tscn @@ -0,0 +1,35 @@ +[gd_scene load_steps=2 format=3 uid="uid://b0tjuqq3bca5e"] + +[ext_resource type="Script" uid="uid://1dbtk7cifd25" path="res://Features/IdeDiagnostics/IdeDiagnosticsPanel.cs" id="1_qw18f"] + +[node name="IdeDiagnosticsPanel" 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_qw18f") + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/separation = 0 + +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 10 +theme_override_constants/margin_top = 10 +theme_override_constants/margin_right = 5 +theme_override_constants/margin_bottom = 5 + +[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"] +layout_mode = 2 +text = "IDE Diagnostics" + +[node name="HSeparator" type="HSeparator" parent="VBoxContainer"] +layout_mode = 2 diff --git a/src/SharpIDE.Godot/Features/LeftSideBar/LeftSideBar.cs b/src/SharpIDE.Godot/Features/LeftSideBar/LeftSideBar.cs index 781aaf3..1f95ceb 100644 --- a/src/SharpIDE.Godot/Features/LeftSideBar/LeftSideBar.cs +++ b/src/SharpIDE.Godot/Features/LeftSideBar/LeftSideBar.cs @@ -10,6 +10,7 @@ public partial class LeftSideBar : Panel private Button _runButton = null!; private Button _buildButton = null!; private Button _debugButton = null!; + private Button _ideDiagnosticsButton = null!; public override void _Ready() { @@ -18,11 +19,13 @@ public partial class LeftSideBar : Panel _runButton = GetNode