Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Add Hidden Commands to Menus (#677)

Jeremy Bullock8db15824a666
diff --git a/stuff/profiles/layouts/rooms/Default/menubar_template.xml b/stuff/profiles/layouts/rooms/Default/menubar_template.xml
index 4fe09af2f..5df924eb3 100644
--- a/stuff/profiles/layouts/rooms/Default/menubar_template.xml
+++ b/stuff/profiles/layouts/rooms/Default/menubar_template.xml
@@ -138,6 +138,15 @@
<command>MI_RemoveSceneFrame</command>
<command>MI_InsertGlobalKeyframe</command>
<command>MI_RemoveGlobalKeyframe</command>
+ <separator/>
+ <command>MI_NextFrame</command>
+ <command>MI_PrevFrame</command>
+ <command>MI_FirstFrame</command>
+ <command>MI_LastFrame</command>
+ <command>MI_NextDrawing</command>
+ <command>MI_PrevDrawing</command>
+ <command>MI_NextStep</command>
+ <command>MI_PrevStep</command>
</menu>
<menu title="Cells">
<command>MI_Reverse</command>
@@ -158,8 +167,11 @@
<command>MI_Rollup</command>
<command>MI_Rolldown</command>
<command>MI_TimeStretch</command>
+ <separator/>
<command>MI_DrawingSubForward</command>
<command>MI_DrawingSubBackward</command>
+ <command>MI_DrawingSubGroupForward</command>
+ <command>MI_DrawingSubGroupBackward</command>
<separator/>
<command>MI_Autorenumber</command>
<command>MI_Duplicate</command>
diff --git a/toonz/sources/toonz/menubar.cpp b/toonz/sources/toonz/menubar.cpp
index 0e15726d8..512c13696 100644
--- a/toonz/sources/toonz/menubar.cpp
+++ b/toonz/sources/toonz/menubar.cpp
@@ -1232,6 +1232,15 @@ QMenuBar *StackedMenuBar::createFullMenuBar() {
addMenuItem(xsheetMenu, MI_RemoveSceneFrame);
addMenuItem(xsheetMenu, MI_InsertGlobalKeyframe);
addMenuItem(xsheetMenu, MI_RemoveGlobalKeyframe);
+ xsheetMenu->addSeparator();
+ addMenuItem(xsheetMenu, MI_NextFrame);
+ addMenuItem(xsheetMenu, MI_PrevFrame);
+ addMenuItem(xsheetMenu, MI_FirstFrame);
+ addMenuItem(xsheetMenu, MI_LastFrame);
+ addMenuItem(xsheetMenu, MI_NextDrawing);
+ addMenuItem(xsheetMenu, MI_PrevDrawing);
+ addMenuItem(xsheetMenu, MI_NextStep);
+ addMenuItem(xsheetMenu, MI_PrevStep);
// Menu' CELLS
QMenu *cellsMenu = addMenu(tr("Cells"), fullMenuBar);
@@ -1253,8 +1262,11 @@ QMenuBar *StackedMenuBar::createFullMenuBar() {
addMenuItem(cellsMenu, MI_Rollup);
addMenuItem(cellsMenu, MI_Rolldown);
addMenuItem(cellsMenu, MI_TimeStretch);
- addMenuItem(xsheetMenu, MI_DrawingSubForward);
- addMenuItem(xsheetMenu, MI_DrawingSubBackward);
+ cellsMenu->addSeparator();
+ addMenuItem(cellsMenu, MI_DrawingSubForward);
+ addMenuItem(cellsMenu, MI_DrawingSubBackward);
+ addMenuItem(cellsMenu, MI_DrawingSubGroupForward);
+ addMenuItem(cellsMenu, MI_DrawingSubGroupBackward);
cellsMenu->addSeparator();
addMenuItem(cellsMenu, MI_Autorenumber);
addMenuItem(cellsMenu, MI_Duplicate);
diff --git a/toonz/sources/toonz/menubarpopup.cpp b/toonz/sources/toonz/menubarpopup.cpp
index 06e3828e7..f1044169d 100644
--- a/toonz/sources/toonz/menubarpopup.cpp
+++ b/toonz/sources/toonz/menubarpopup.cpp
@@ -362,6 +362,7 @@ CommandListTree::CommandListTree(QWidget* parent) : QTreeWidget(parent) {
menuCommandFolder);
addFolder(ShortcutTree::tr("Tools"), ToolCommandType);
+ addFolder(ShortcutTree::tr("Playback"), PlaybackCommandType);
MenuBarSeparatorItem* sep = new MenuBarSeparatorItem(0);
sep->setToolTip(0, QObject::tr("[Drag&Drop] to copy separator to menu bar"));