diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-09-28 18:58:03 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-09-28 18:58:03 +0400 |
commit | 86e3508402fd47b6c859cc529e8a4a8bb7a6d397 (patch) | |
tree | 51085b2701d31a652170a2333ce7af166a7c3a93 | |
parent | 22b312395af4196e0ed1088fe434d17cd3681a26 (diff) |
Add menu item pointing to documentation
-rw-r--r-- | lib/Slic3r/GUI.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm index 380120a1d..8bfd4d1fc 100644 --- a/lib/Slic3r/GUI.pm +++ b/lib/Slic3r/GUI.pm @@ -34,6 +34,7 @@ use constant MI_TAB_PRINTER => &Wx::NewId; use constant MI_CONF_WIZARD => &Wx::NewId; use constant MI_WEBSITE => &Wx::NewId; +use constant MI_DOCUMENTATION => &Wx::NewId; our $datadir; our $Settings; @@ -134,10 +135,14 @@ sub OnInit { my $helpMenu = Wx::Menu->new; { $helpMenu->Append(MI_CONF_WIZARD, "&Configuration $Slic3r::GUI::ConfigWizard::wizard…", "Run Configuration $Slic3r::GUI::ConfigWizard::wizard"); + $helpMenu->AppendSeparator(); $helpMenu->Append(MI_WEBSITE, "Slic3r &Website", 'Open the Slic3r website in your browser'); + $helpMenu->Append(MI_DOCUMENTATION, "&Documentation", 'Open the Slic3r documentation in your browser'); + $helpMenu->AppendSeparator(); $helpMenu->Append(wxID_ABOUT, "&About Slic3r", 'Show about dialog'); EVT_MENU($frame, MI_CONF_WIZARD, sub { $self->{skeinpanel}->config_wizard }); EVT_MENU($frame, MI_WEBSITE, sub { Wx::LaunchDefaultBrowser('http://slic3r.org/') }); + EVT_MENU($frame, MI_DOCUMENTATION, sub { Wx::LaunchDefaultBrowser('https://github.com/alexrj/Slic3r/wiki/Documentation') }); EVT_MENU($frame, wxID_ABOUT, \&about); } |