Reform scenario editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is

This commit is contained in:
2015-01-05 13:33:38 -05:00
parent 75e340f945
commit 584baa3f19
11 changed files with 295 additions and 287 deletions

View File

@@ -213,6 +213,10 @@ void beep() {
MessageBeep(-1);
}
void launchURL(std::string url) {
ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);
}
// TODO: Implement modal session.
// It seems that Windows doesn't have anything similar to the Mac modal session, so I might have to somehow simulate it myself.
void ModalSession::pumpEvents() {