Create problems panel
This commit is contained in:
9
src/SharpIDE.Photino/Components/ProblemsPanel.razor
Normal file
9
src/SharpIDE.Photino/Components/ProblemsPanel.razor
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence
|
||||||
|
<MudStack Style="height: 100%">
|
||||||
|
|
||||||
|
</MudStack>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[Parameter, EditorRequired]
|
||||||
|
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
|
||||||
|
}
|
||||||
@@ -54,6 +54,7 @@
|
|||||||
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="padding: 4px; height: 100%">
|
<MudStack AlignItems="AlignItems.Center" Spacing="1" Style="padding: 4px; height: 100%">
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" OnClick="@DrawerToggle" Selected="@_drawerOpen" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.FolderOpen" Text="Explorer" OnClick="@DrawerToggle" Selected="@_drawerOpen" />
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
|
<SidebarIconButton Icon="@Icons.Material.Filled.ReportProblem" Text="Problems" OnClick="@ClickProblemsPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Problems)" />
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" OnClick="@ClickRunPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Run)" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.PlayArrow" Text="Run" OnClick="@ClickRunPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Run)" />
|
||||||
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Build" OnClick="@ClickBuildPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Build)" />
|
<SidebarIconButton Icon="@Icons.Material.Filled.Terminal" Text="Build" OnClick="@ClickBuildPanel" Selected="@(_selectedBottomPanel is BottomPanelType.Build)" />
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@@ -80,6 +81,9 @@
|
|||||||
<div class="mud-elevation-24" style="height: 30%; position:relative">
|
<div class="mud-elevation-24" style="height: 30%; position:relative">
|
||||||
@if (_solutionFilePath is not null)
|
@if (_solutionFilePath is not null)
|
||||||
{
|
{
|
||||||
|
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Problems)">
|
||||||
|
<ProblemsPanel SolutionModel="@_solutionModel" />
|
||||||
|
</DisplayNoneComponent>
|
||||||
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Run)">
|
<DisplayNoneComponent Visible="@(_selectedBottomPanel is BottomPanelType.Run)">
|
||||||
<RunPanel SolutionModel="@_solutionModel"/>
|
<RunPanel SolutionModel="@_solutionModel"/>
|
||||||
</DisplayNoneComponent>
|
</DisplayNoneComponent>
|
||||||
@@ -107,6 +111,7 @@
|
|||||||
|
|
||||||
private string MainContentHeight => _bottomDrawerOpen ? "70%" : "100%";
|
private string MainContentHeight => _bottomDrawerOpen ? "70%" : "100%";
|
||||||
|
|
||||||
|
private void ClickProblemsPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Problems);
|
||||||
private void ClickRunPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Run);
|
private void ClickRunPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Run);
|
||||||
private void ClickBuildPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Build);
|
private void ClickBuildPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Build);
|
||||||
private void SwitchOrToggleBottomPanel(BottomPanelType bottomPanelType)
|
private void SwitchOrToggleBottomPanel(BottomPanelType bottomPanelType)
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
public enum BottomPanelType
|
public enum BottomPanelType
|
||||||
{
|
{
|
||||||
Run,
|
Run,
|
||||||
Build
|
Build,
|
||||||
|
Problems
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user