1 #include <wx/filename.h> 2 #include <wx/stdpaths.h> 3 #include <wx/filename.h> 4 #include <wx/utils.h> 5 #include <wx/log.h> 6 #include <wx/intl.h> 7 8 #include <string> 9 #include <sstream> 10 11 #include "se_utils.h" 12 13 #include "../utils/customdialogs.h" 14 #include "../settings.h" 15 16 static bool standalonemode = true; 17 IsSettingsStandAlone()18bool IsSettingsStandAlone() 19 { 20 return standalonemode; 21 } 22 SetSettingsStandAlone(bool value)23void SetSettingsStandAlone( bool value ) 24 { 25 standalonemode = value; 26 } 27 28 fromString(const wxString & s)29int fromString( const wxString& s ) { 30 long temp = 0; 31 s.ToLong( &temp ); 32 return int( temp ); 33 } 34 openUrl(const wxString & url)35void openUrl( const wxString& url ) 36 { 37 if ( !wxLaunchDefaultBrowser( url ) ) 38 { 39 wxLogWarning( _( "can't launch default browser" ) ); 40 customMessageBox( SS_MAIN_ICON, _( "Couldn't launch browser. URL is: " ) + url, _( "Couldn't launch browser." ) ); 41 } 42 } 43 44