Add new Help Menu options
This commit is contained in:
parent
40a40ea47c
commit
db852cd315
9 changed files with 56 additions and 0 deletions
|
@ -318,6 +318,10 @@
|
||||||
</menu>
|
</menu>
|
||||||
<menu title="Help">
|
<menu title="Help">
|
||||||
<command>MI_OpenOnlineManual</command>
|
<command>MI_OpenOnlineManual</command>
|
||||||
|
<command>MI_OpenWhatsNew</command>
|
||||||
|
<command>MI_OpenCommunityForum</command>
|
||||||
|
<separator/>
|
||||||
|
<command>MI_OpenReportAnIssue</command>
|
||||||
<separator/>
|
<separator/>
|
||||||
<command>MI_About</command>
|
<command>MI_About</command>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -216,6 +216,7 @@ MI_OpenCleanupSettings=
|
||||||
MI_OpenColorModel=
|
MI_OpenColorModel=
|
||||||
MI_OpenComboViewer=
|
MI_OpenComboViewer=
|
||||||
MI_OpenCommandToolbar=
|
MI_OpenCommandToolbar=
|
||||||
|
MI_OpenCommunityForum=
|
||||||
MI_OpenFileBrowser=
|
MI_OpenFileBrowser=
|
||||||
MI_OpenFileBrowser2=
|
MI_OpenFileBrowser2=
|
||||||
MI_OpenFileViewer=
|
MI_OpenFileViewer=
|
||||||
|
@ -228,6 +229,7 @@ MI_OpenPalette=
|
||||||
MI_OpenPltGizmo=
|
MI_OpenPltGizmo=
|
||||||
MI_OpenRecentLevel=
|
MI_OpenRecentLevel=
|
||||||
MI_OpenRecentScene=
|
MI_OpenRecentScene=
|
||||||
|
MI_OpenReportAnIssue=
|
||||||
MI_OpenSchematic=
|
MI_OpenSchematic=
|
||||||
MI_OpenScriptConsole=
|
MI_OpenScriptConsole=
|
||||||
MI_OpenStudioPalette=
|
MI_OpenStudioPalette=
|
||||||
|
@ -237,6 +239,7 @@ MI_OpenTimelineView=
|
||||||
MI_OpenTMessage=
|
MI_OpenTMessage=
|
||||||
MI_OpenToolbar=
|
MI_OpenToolbar=
|
||||||
MI_OpenToolOptionBar=
|
MI_OpenToolOptionBar=
|
||||||
|
MI_OpenWhatsNew=
|
||||||
MI_OpenXshView=
|
MI_OpenXshView=
|
||||||
MI_OutputSettings=Ctrl+O
|
MI_OutputSettings=Ctrl+O
|
||||||
MI_OverwritePalette=
|
MI_OverwritePalette=
|
||||||
|
|
|
@ -216,6 +216,7 @@ MI_OpenCleanupSettings=
|
||||||
MI_OpenColorModel=
|
MI_OpenColorModel=
|
||||||
MI_OpenComboViewer=
|
MI_OpenComboViewer=
|
||||||
MI_OpenCommandToolbar=
|
MI_OpenCommandToolbar=
|
||||||
|
MI_OpenCommunityForum=
|
||||||
MI_OpenFileBrowser=
|
MI_OpenFileBrowser=
|
||||||
MI_OpenFileBrowser2=
|
MI_OpenFileBrowser2=
|
||||||
MI_OpenFileViewer=
|
MI_OpenFileViewer=
|
||||||
|
@ -228,6 +229,7 @@ MI_OpenPalette=
|
||||||
MI_OpenPltGizmo=
|
MI_OpenPltGizmo=
|
||||||
MI_OpenRecentLevel=
|
MI_OpenRecentLevel=
|
||||||
MI_OpenRecentScene=
|
MI_OpenRecentScene=
|
||||||
|
MI_OpenReportAnIssue=
|
||||||
MI_OpenSchematic=
|
MI_OpenSchematic=
|
||||||
MI_OpenScriptConsole=
|
MI_OpenScriptConsole=
|
||||||
MI_OpenStudioPalette=
|
MI_OpenStudioPalette=
|
||||||
|
@ -237,6 +239,7 @@ MI_OpenTimelineView=
|
||||||
MI_OpenTMessage=
|
MI_OpenTMessage=
|
||||||
MI_OpenToolbar=
|
MI_OpenToolbar=
|
||||||
MI_OpenToolOptionBar=
|
MI_OpenToolOptionBar=
|
||||||
|
MI_OpenWhatsNew=
|
||||||
MI_OpenXshView=
|
MI_OpenXshView=
|
||||||
MI_OutputSettings=
|
MI_OutputSettings=
|
||||||
MI_OverwritePalette=
|
MI_OverwritePalette=
|
||||||
|
|
|
@ -216,6 +216,7 @@ MI_OpenCleanupSettings=
|
||||||
MI_OpenColorModel=
|
MI_OpenColorModel=
|
||||||
MI_OpenComboViewer=
|
MI_OpenComboViewer=
|
||||||
MI_OpenCommandToolbar=
|
MI_OpenCommandToolbar=
|
||||||
|
MI_OpenCommunityForum=
|
||||||
MI_OpenFileBrowser=
|
MI_OpenFileBrowser=
|
||||||
MI_OpenFileBrowser2=
|
MI_OpenFileBrowser2=
|
||||||
MI_OpenFileViewer=
|
MI_OpenFileViewer=
|
||||||
|
@ -228,6 +229,7 @@ MI_OpenPalette=
|
||||||
MI_OpenPltGizmo=
|
MI_OpenPltGizmo=
|
||||||
MI_OpenRecentLevel=
|
MI_OpenRecentLevel=
|
||||||
MI_OpenRecentScene=
|
MI_OpenRecentScene=
|
||||||
|
MI_OpenReportAnIssue=
|
||||||
MI_OpenSchematic=
|
MI_OpenSchematic=
|
||||||
MI_OpenScriptConsole=
|
MI_OpenScriptConsole=
|
||||||
MI_OpenStudioPalette=
|
MI_OpenStudioPalette=
|
||||||
|
@ -237,6 +239,7 @@ MI_OpenTimelineView=
|
||||||
MI_OpenTMessage=
|
MI_OpenTMessage=
|
||||||
MI_OpenToolbar=
|
MI_OpenToolbar=
|
||||||
MI_OpenToolOptionBar=
|
MI_OpenToolOptionBar=
|
||||||
|
MI_OpenWhatsNew=
|
||||||
MI_OpenXshView=
|
MI_OpenXshView=
|
||||||
MI_OutputSettings=
|
MI_OutputSettings=
|
||||||
MI_OverwritePalette=
|
MI_OverwritePalette=
|
||||||
|
|
|
@ -216,6 +216,7 @@ MI_OpenCleanupSettings=
|
||||||
MI_OpenColorModel=
|
MI_OpenColorModel=
|
||||||
MI_OpenComboViewer=
|
MI_OpenComboViewer=
|
||||||
MI_OpenCommandToolbar=
|
MI_OpenCommandToolbar=
|
||||||
|
MI_OpenCommunityForum=
|
||||||
MI_OpenFileBrowser=
|
MI_OpenFileBrowser=
|
||||||
MI_OpenFileBrowser2=
|
MI_OpenFileBrowser2=
|
||||||
MI_OpenFileViewer=
|
MI_OpenFileViewer=
|
||||||
|
@ -228,6 +229,7 @@ MI_OpenPalette=
|
||||||
MI_OpenPltGizmo=
|
MI_OpenPltGizmo=
|
||||||
MI_OpenRecentLevel=
|
MI_OpenRecentLevel=
|
||||||
MI_OpenRecentScene=
|
MI_OpenRecentScene=
|
||||||
|
MI_OpenReportAnIssue=
|
||||||
MI_OpenSchematic=
|
MI_OpenSchematic=
|
||||||
MI_OpenScriptConsole=
|
MI_OpenScriptConsole=
|
||||||
MI_OpenStudioPalette=
|
MI_OpenStudioPalette=
|
||||||
|
@ -237,6 +239,7 @@ MI_OpenTimelineView=
|
||||||
MI_OpenTMessage=
|
MI_OpenTMessage=
|
||||||
MI_OpenToolbar=
|
MI_OpenToolbar=
|
||||||
MI_OpenToolOptionBar=
|
MI_OpenToolOptionBar=
|
||||||
|
MI_OpenWhatsNew=
|
||||||
MI_OpenXshView=
|
MI_OpenXshView=
|
||||||
MI_OutputSettings=
|
MI_OutputSettings=
|
||||||
MI_OverwritePalette=
|
MI_OverwritePalette=
|
||||||
|
|
|
@ -452,6 +452,11 @@ centralWidget->setLayout(centralWidgetLayout);*/
|
||||||
|
|
||||||
setCommandHandler(MI_About, this, &MainWindow::onAbout);
|
setCommandHandler(MI_About, this, &MainWindow::onAbout);
|
||||||
setCommandHandler(MI_OpenOnlineManual, this, &MainWindow::onOpenOnlineManual);
|
setCommandHandler(MI_OpenOnlineManual, this, &MainWindow::onOpenOnlineManual);
|
||||||
|
setCommandHandler(MI_OpenWhatsNew, this, &MainWindow::onOpenWhatsNew);
|
||||||
|
setCommandHandler(MI_OpenCommunityForum, this,
|
||||||
|
&MainWindow::onOpenCommunityForum);
|
||||||
|
setCommandHandler(MI_OpenReportAnIssue, this, &MainWindow::onOpenReportAnIssue);
|
||||||
|
|
||||||
setCommandHandler(MI_MaximizePanel, this, &MainWindow::maximizePanel);
|
setCommandHandler(MI_MaximizePanel, this, &MainWindow::maximizePanel);
|
||||||
setCommandHandler(MI_FullScreenWindow, this, &MainWindow::fullScreenWindow);
|
setCommandHandler(MI_FullScreenWindow, this, &MainWindow::fullScreenWindow);
|
||||||
setCommandHandler("MI_NewVectorLevel", this,
|
setCommandHandler("MI_NewVectorLevel", this,
|
||||||
|
@ -998,6 +1003,26 @@ void MainWindow::onOpenOnlineManual() {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void MainWindow::onOpenWhatsNew() {
|
||||||
|
QDesktopServices::openUrl(
|
||||||
|
QUrl("https://github.com/opentoonz/opentoonz/releases/latest"));
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void MainWindow::onOpenCommunityForum() {
|
||||||
|
QDesktopServices::openUrl(
|
||||||
|
QUrl("https://groups.google.com/forum/#!forum/opentoonz_en"));
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void MainWindow::onOpenReportAnIssue() {
|
||||||
|
QDesktopServices::openUrl(
|
||||||
|
QUrl("https://github.com/opentoonz/opentoonz/issues"));
|
||||||
|
}
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
void MainWindow::autofillToggle() {
|
void MainWindow::autofillToggle() {
|
||||||
TPaletteHandle *h = TApp::instance()->getCurrentPalette();
|
TPaletteHandle *h = TApp::instance()->getCurrentPalette();
|
||||||
h->toggleAutopaint();
|
h->toggleAutopaint();
|
||||||
|
@ -1998,7 +2023,11 @@ void MainWindow::defineActions() {
|
||||||
"Ctrl+`");
|
"Ctrl+`");
|
||||||
createMenuHelpAction(MI_About, tr("&About OpenToonz..."), "");
|
createMenuHelpAction(MI_About, tr("&About OpenToonz..."), "");
|
||||||
createMenuWindowsAction(MI_StartupPopup, tr("&Startup Popup..."), "Alt+S");
|
createMenuWindowsAction(MI_StartupPopup, tr("&Startup Popup..."), "Alt+S");
|
||||||
|
|
||||||
createMenuHelpAction(MI_OpenOnlineManual, tr("&Online Manual..."), "F1");
|
createMenuHelpAction(MI_OpenOnlineManual, tr("&Online Manual..."), "F1");
|
||||||
|
createMenuHelpAction(MI_OpenWhatsNew, tr("&What's New..."), "");
|
||||||
|
createMenuHelpAction(MI_OpenCommunityForum, tr("&Community Forum..."), "");
|
||||||
|
createMenuHelpAction(MI_OpenReportAnIssue, tr("&Report an Issue..."), "");
|
||||||
|
|
||||||
createRightClickMenuAction(MI_BlendColors, tr("&Blend colors"), "");
|
createRightClickMenuAction(MI_BlendColors, tr("&Blend colors"), "");
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,9 @@ public:
|
||||||
void onUpgradeTabPro();
|
void onUpgradeTabPro();
|
||||||
void onAbout();
|
void onAbout();
|
||||||
void onOpenOnlineManual();
|
void onOpenOnlineManual();
|
||||||
|
void onOpenWhatsNew();
|
||||||
|
void onOpenCommunityForum();
|
||||||
|
void onOpenReportAnIssue();
|
||||||
void checkForUpdates();
|
void checkForUpdates();
|
||||||
int getRoomCount() const;
|
int getRoomCount() const;
|
||||||
Room *getRoom(int index) const;
|
Room *getRoom(int index) const;
|
||||||
|
|
|
@ -1440,6 +1440,10 @@ QMenuBar *StackedMenuBar::createFullMenuBar() {
|
||||||
// Menu' HELP
|
// Menu' HELP
|
||||||
QMenu *helpMenu = addMenu(tr("Help"), fullMenuBar);
|
QMenu *helpMenu = addMenu(tr("Help"), fullMenuBar);
|
||||||
addMenuItem(helpMenu, MI_OpenOnlineManual);
|
addMenuItem(helpMenu, MI_OpenOnlineManual);
|
||||||
|
addMenuItem(helpMenu, MI_OpenWhatsNew);
|
||||||
|
addMenuItem(helpMenu, MI_OpenCommunityForum);
|
||||||
|
helpMenu->addSeparator();
|
||||||
|
addMenuItem(helpMenu, MI_OpenReportAnIssue);
|
||||||
helpMenu->addSeparator();
|
helpMenu->addSeparator();
|
||||||
addMenuItem(helpMenu, MI_About);
|
addMenuItem(helpMenu, MI_About);
|
||||||
|
|
||||||
|
|
|
@ -362,6 +362,10 @@
|
||||||
#define MI_StopMotionJumpToCamera "MI_StopMotionJumpToCamera"
|
#define MI_StopMotionJumpToCamera "MI_StopMotionJumpToCamera"
|
||||||
|
|
||||||
#define MI_OpenOnlineManual "MI_OpenOnlineManual"
|
#define MI_OpenOnlineManual "MI_OpenOnlineManual"
|
||||||
|
#define MI_OpenWhatsNew "MI_OpenWhatsNew"
|
||||||
|
#define MI_OpenCommunityForum "MI_OpenCommunityForum"
|
||||||
|
#define MI_OpenReportAnIssue "MI_OpenReportAnIssue"
|
||||||
|
|
||||||
#define MI_ClearCacheFolder "MI_ClearCacheFolder"
|
#define MI_ClearCacheFolder "MI_ClearCacheFolder"
|
||||||
|
|
||||||
#define MI_SelectNextGuideStroke "MI_SelectNextGuideStroke"
|
#define MI_SelectNextGuideStroke "MI_SelectNextGuideStroke"
|
||||||
|
|
Loading…
Reference in a new issue