Add Help > Tutorial menu item that goest to serverless tutorial

This commit is contained in:
David Rowe 2020-06-16 12:25:28 +12:00
parent f68810f766
commit f11091cab4
3 changed files with 8 additions and 0 deletions

View file

@ -3858,6 +3858,11 @@ void Application::showHelp() {
//InfoView::show(INFO_HELP_PATH, false, queryString.toString()); //InfoView::show(INFO_HELP_PATH, false, queryString.toString());
} }
void Application::gotoTutorial() {
const QString TUTORIAL_ADDRESS = "file:///~/serverless/tutorial.json";
DependencyManager::get<AddressManager>()->handleLookupString(TUTORIAL_ADDRESS);
}
void Application::resizeEvent(QResizeEvent* event) { void Application::resizeEvent(QResizeEvent* event) {
resizeGL(); resizeGL();
} }

View file

@ -427,6 +427,7 @@ public slots:
#endif #endif
static void showHelp(); static void showHelp();
static void gotoTutorial();
void cycleCamera(); void cycleCamera();
void cameraModeChanged(); void cameraModeChanged();

View file

@ -816,6 +816,8 @@ Menu::Menu() {
addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp())); addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp()));
addActionToQMenuAndActionHash(helpMenu, "Tutorial", 0, qApp, SLOT(gotoTutorial()));
helpMenu->addSeparator(); helpMenu->addSeparator();
// Help > Release Notes // Help > Release Notes