Correct mac shortcuts and missing menu item (#370)

* Correct mac shortcuts in status bar

Just for macOS, Ctrl should be Cmd, and Alt should be Opt

* Add missing menu item on macOS
This commit is contained in:
artisteacher 2020-10-17 23:06:07 -04:00 committed by GitHub
parent 6e58957714
commit d9f5cbb74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -622,6 +622,7 @@ QMenuBar *StackedMenuBar::createFullMenuBar() {
addMenuItem(renderMenu, MI_SavePreviewedFrames);
renderMenu->addSeparator();
addMenuItem(renderMenu, MI_OutputSettings);
addMenuItem(renderMenu, MI_Render);
addMenuItem(renderMenu, MI_SaveAndRender);
renderMenu->addSeparator();
addMenuItem(renderMenu, MI_FastRender);

View file

@ -131,26 +131,49 @@ void StatusBar::makeMap() {
m_infoMap.insert({"T_BrushVector",
"Brush Tool: Draws in the work area freehand" + spacer +
"Shift - Straight Lines" + spacer +
#ifdef MACOSX
"Cmd - Straight Lines Snapped to Angles" + spacer +
"Cmd + Opt - Add / Remove Vanishing Point" + spacer +
"Opt - Draw to Vanishing Point" + spacer +
"Hold Cmd + Shift - Toggle Snapping"});
#else
"Control - Straight Lines Snapped to Angles" + spacer +
"Ctrl + Alt - Add / Remove Vanishing Point" + spacer +
"Alt - Draw to Vanishing Point" + spacer +
"Hold Ctrl + Shift - Toggle Snapping"});
#endif
m_infoMap.insert({"T_BrushSmartRaster",
"Brush Tool: Draws in the work area freehand" + spacer +
"Shift - Straight Lines" + spacer +
#ifdef MACOSX
"Cmd - Straight Lines Snapped to Angles" + spacer +
"Cmd + Opt - Add / Remove Vanishing Point" + spacer +
"Opt - Draw to Vanishing Point"});
#else
"Control - Straight Lines Snapped to Angles" + spacer +
"Ctrl + Alt - Add / Remove Vanishing Point" + spacer +
"Alt - Draw to Vanishing Point"});
#endif
m_infoMap.insert({"T_BrushRaster",
"Brush Tool: Draws in the work area freehand" + spacer +
"Shift - Straight Lines" + spacer +
#ifdef MACOSX
"Cmd - Straight Lines Snapped to Angles" + spacer +
"Cmd + Opt - Add / Remove Vanishing Point" + spacer +
"Opt - Draw to Vanishing Point"});
#else
"Control - Straight Lines Snapped to Angles" + spacer +
"Ctrl + Alt - Add / Remove Vanishing Point" + spacer +
"Alt - Draw to Vanishing Point"});
#endif
m_infoMap.insert({"T_Geometric", "Geometry Tool: Draws geometric shapes"});
m_infoMap.insert({ "T_GeometricVector", "Geometry Tool: Draws geometric shapes" +
spacer +
#ifdef MACOSX
"Hold Cmd + Shift - Toggle Snapping" });
#else
"Hold Ctrl + Shift - Toggle Snapping" });
#endif
m_infoMap.insert({"T_Type", "Type Tool: Adds text"});
m_infoMap.insert(
{"T_PaintBrush",