Add Help Menu item to open browser at kicad-pcb.org/contribute

This commit is contained in:
Cirilo Bernardo
2016-10-10 19:01:45 -04:00
committed by Wayne Stambaugh
parent 194bd1d617
commit 48ed9f080e
18 changed files with 79 additions and 1 deletions
+13
View File
@@ -40,11 +40,13 @@
#include <wxstruct.h>
#include <wx/display.h>
#include <wx/utils.h>
/// The default auto save interval is 10 minutes.
#define DEFAULT_AUTO_SAVE_INTERVAL 600
#define URL_GET_INVOLVED "http://kicad-pcb.org/contribute/"
const wxChar traceAutoSave[] = wxT( "KicadAutoSave" );
@@ -481,6 +483,17 @@ void EDA_BASE_FRAME::OnSelectPreferredEditor( wxCommandEvent& event )
}
void EDA_BASE_FRAME::GetKicadContribute( wxCommandEvent& event )
{
if( !wxLaunchDefaultBrowser( URL_GET_INVOLVED ) )
{
wxString msg = _( "Could not launch the default browser. For information on how to help the KiCad project, visit " );
msg.Append( URL_GET_INVOLVED );
wxMessageBox( msg, _( "Get involved with KiCad" ), wxOK, this );
}
}
void EDA_BASE_FRAME::GetKicadAbout( wxCommandEvent& event )
{
bool ShowAboutDialog(wxWindow * parent);