From f11091cab470086d9f1309d0c5a747e654aaefa5 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Tue, 16 Jun 2020 12:25:28 +1200 Subject: [PATCH] Add Help > Tutorial menu item that goest to serverless tutorial --- interface/src/Application.cpp | 5 +++++ interface/src/Application.h | 1 + interface/src/Menu.cpp | 2 ++ 3 files changed, 8 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 85c2d4abe0..dd8ad75c06 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3858,6 +3858,11 @@ void Application::showHelp() { //InfoView::show(INFO_HELP_PATH, false, queryString.toString()); } +void Application::gotoTutorial() { + const QString TUTORIAL_ADDRESS = "file:///~/serverless/tutorial.json"; + DependencyManager::get()->handleLookupString(TUTORIAL_ADDRESS); +} + void Application::resizeEvent(QResizeEvent* event) { resizeGL(); } diff --git a/interface/src/Application.h b/interface/src/Application.h index 198f5ef7cf..e85fccf1f6 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -427,6 +427,7 @@ public slots: #endif static void showHelp(); + static void gotoTutorial(); void cycleCamera(); void cameraModeChanged(); diff --git a/interface/src/Menu.cpp b/interface/src/Menu.cpp index a3ef39f1e9..5ca2be510b 100644 --- a/interface/src/Menu.cpp +++ b/interface/src/Menu.cpp @@ -816,6 +816,8 @@ Menu::Menu() { addActionToQMenuAndActionHash(helpMenu, "Controls Reference", 0, qApp, SLOT(showHelp())); + addActionToQMenuAndActionHash(helpMenu, "Tutorial", 0, qApp, SLOT(gotoTutorial())); + helpMenu->addSeparator(); // Help > Release Notes