add reactive binding

This commit is contained in:
Matt Parker
2025-09-12 18:04:20 +10:00
parent 4485b51b1e
commit 1b2ebcb1e8
41 changed files with 1411 additions and 4 deletions

View File

@@ -1,13 +1,25 @@
using Godot;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
using SharpIDE.Godot.Features.Problems;
namespace SharpIDE.Godot.Features.BottomPanel;
public partial class BottomPanelManager : Panel
{
public SharpIdeSolutionModel? Solution
{
get;
set
{
field = value;
_problemsPanel.Solution = value;
}
}
private Control _runPanel = null!;
private Control _debugPanel = null!;
private Control _buildPanel = null!;
private Control _problemsPanel = null!;
private ProblemsPanel _problemsPanel = null!;
private Dictionary<BottomPanelType, Control> _panelTypeMap = [];
@@ -16,7 +28,7 @@ public partial class BottomPanelManager : Panel
_runPanel = GetNode<Control>("%RunPanel");
_debugPanel = GetNode<Control>("%DebugPanel");
_buildPanel = GetNode<Control>("%BuildPanel");
_problemsPanel = GetNode<Control>("%ProblemsPanel");
_problemsPanel = GetNode<ProblemsPanel>("%ProblemsPanel");
_panelTypeMap = new Dictionary<BottomPanelType, Control>
{