forked from n00b87/RCBasic-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp_menu.cpp
executable file
·30 lines (27 loc) · 1.19 KB
/
help_menu.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "rcbasic_edit_frame.h"
void rcbasic_edit_frame::onDocMenuSelect( wxCommandEvent& event )
{
wxString editor_path_str = wxStandardPaths::Get().GetExecutablePath();
wxFileName editor_path(editor_path_str);
editor_path.SetFullName(_(""));
wxString cwd = wxGetCwd();
wxSetWorkingDirectory(editor_path.GetFullPath());
wxLaunchDefaultBrowser(RCBasic_Documentation_Link);
wxSetWorkingDirectory(cwd);
}
void rcbasic_edit_frame::onEditorManualMenuSelect( wxCommandEvent& event )
{
wxString editor_path_str = wxStandardPaths::Get().GetExecutablePath();
wxFileName editor_path(editor_path_str);
editor_path.SetFullName(_(""));
wxString cwd = wxGetCwd();
wxSetWorkingDirectory(editor_path.GetFullPath());
wxLaunchDefaultBrowser(Studio_Documentation_Link);
wxSetWorkingDirectory(cwd);
}
void rcbasic_edit_frame::onAboutMenuSelect( wxCommandEvent& event )
{
wxString msg = _("RCBASIC Studio [Version]\nCopyright (C) 2022 Rodney Cunningham ( aka n00b )\n\nFor latest release, updates, and info go to \nhttp://www.rcbasic.com\n\nAnd the forum at \nhttp://rcbasic.freeforums.net");
msg.Replace(_("[Version]"), RCBasic_Studio_Version);
wxMessageBox(msg);
}