Skip to content

Commit

Permalink
Add menu options for the source code and issue tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Heufneutje committed Feb 5, 2017
1 parent 9169834 commit 5aec2b7
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AudioSharp.GUI.Wpf/AudioSharp.GUI.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@
<Link>LICENSE.txt</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Resource Include="Resources\page_code.png" />
<Resource Include="Resources\bug.png" />
<Resource Include="Resources\notmute.png" />
<Resource Include="Resources\mute.png" />
<Resource Include="Resources\AudioSharpRec.ico" />
Expand Down
23 changes: 23 additions & 0 deletions AudioSharp.GUI.Wpf/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,29 @@
</MenuItem>
</MenuItem>
<MenuItem Header="Help">
<MenuItem x:Name="issueTrackerMenuItem" Header="Issue tracker" Click="issueTrackerMenuItem_Click">
<MenuItem.Icon>
<customcontrols:AutoGreyableImage Source="Resources/bug.png"/>
</MenuItem.Icon>
<MenuItem.ToolTip>
<StackPanel>
<TextBlock FontWeight="Bold" Text="Issue tracker"/>
<TextBlock Text="Open AudioSharp's issue tracker on GitHub." Padding="5,5,5,0"/>
</StackPanel>
</MenuItem.ToolTip>
</MenuItem>
<MenuItem x:Name="sourceCodeMenuItem" Header="Source code" Click="sourceCodeMenuItem_Click">
<MenuItem.Icon>
<customcontrols:AutoGreyableImage Source="Resources/page_code.png"/>
</MenuItem.Icon>
<MenuItem.ToolTip>
<StackPanel>
<TextBlock FontWeight="Bold" Text="Source code"/>
<TextBlock Text="Open AudioSharp's source code repository on GitHub." Padding="5,5,5,0"/>
</StackPanel>
</MenuItem.ToolTip>
</MenuItem>
<Separator HorizontalAlignment="Left" Width="122"/>
<MenuItem x:Name="aboutMenuItem" Header="About" Click="aboutMenuItem_Click">
<MenuItem.Icon>
<customcontrols:AutoGreyableImage Source="Resources/Info.png"/>
Expand Down
10 changes: 10 additions & 0 deletions AudioSharp.GUI.Wpf/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,16 @@ private void settingsMenuItem_Click(object sender, RoutedEventArgs e)
HotkeyUtils.RegisterAllHotkeys(windowHandle, _config.GlobalHotkeys);
}

private void issueTrackerMenuItem_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://github.com/Heufneutje/AudioSharp/issues");
}

private void sourceCodeMenuItem_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://github.com/Heufneutje/AudioSharp");
}

private void aboutMenuItem_Click(object sender, RoutedEventArgs e)
{
AboutWindow aboutWindow = new AboutWindow();
Expand Down
20 changes: 20 additions & 0 deletions AudioSharp.GUI.Wpf/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions AudioSharp.GUI.Wpf/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,10 @@
<data name="notmute" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\notmute.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bug" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bug.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="page_code" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\page_code.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file added AudioSharp.GUI.Wpf/Resources/bug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AudioSharp.GUI.Wpf/Resources/page_code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5aec2b7

Please sign in to comment.