Skip to content

Commit

Permalink
Added button for deleting all output from the build tab
Browse files Browse the repository at this point in the history
fixes #1271
  • Loading branch information
vchelaru committed Nov 22, 2023
1 parent a045cda commit 1d14927
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FRBDK/Glue/CompilerPlugin/CompilerPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<ItemGroup>
<None Remove="Icons\AdvanceOneFrame.png" />
<None Remove="Icons\build.png" />
<None Remove="Icons\DeleteOutput.png" />
<None Remove="Icons\Edit.png" />
<None Remove="Icons\EditDeselected.png" />
<None Remove="Icons\FirewallEnablePopup.png" />
Expand Down Expand Up @@ -45,6 +46,7 @@
<ItemGroup>
<Resource Include="Icons\AdvanceOneFrame.png" />
<Resource Include="Icons\build.png" />
<Resource Include="Icons\DeleteOutput.png" />
<Resource Include="Icons\Edit.png" />
<Resource Include="Icons\EditDeselected.png" />
<Resource Include="Icons\FirewallEnablePopup.png" />
Expand Down
Binary file added FRBDK/Glue/CompilerPlugin/Icons/DeleteOutput.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion FRBDK/Glue/CompilerPlugin/Views/BuildTabView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
</Grid.RowDefinitions>

<WrapPanel Orientation="Horizontal" Visibility="{Binding EntireUiVisibility}">

<Button Click="Button_Click" Height="19" Width="19" Margin="3,0,0,0">
<Button.ToolTip>
<TextBlock>Clear Output</TextBlock>
</Button.ToolTip>
<Image IsHitTestVisible="False" Width="25" Source="/CompilerPlugin;component/Icons/DeleteOutput.png" ></Image>
</Button>
<views:WhileStoppedView
Visibility="{Binding WhileStoppedViewVisibility}"
BuildClicked="HandleCompileClick"
Expand Down
5 changes: 5 additions & 0 deletions FRBDK/Glue/CompilerPlugin/Views/BuildTabView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ public void PrintError(string text)
}
}

void Button_Click(object sender, RoutedEventArgs e)
{
TextBox.Document.Blocks.Clear();
}

private void TextBox_KeyEnterUpdate(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter)
Expand Down

0 comments on commit 1d14927

Please sign in to comment.