diff options
author | ronso0 <ronso0@mixxx.org> | 2020-12-27 19:39:06 +0100 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2020-12-29 15:53:31 +0100 |
commit | c729ac99fc52b98b0cdb8438d6ad56410c651030 (patch) | |
tree | 612fef42c082b0d52e6a41fdd4282b6272948fbe /src/controllers | |
parent | 4c53913b25b515a72cc2d2ca729ad22df0037904 (diff) |
MIDI mapping wizard: add intro/outro controls
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/controlpickermenu.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/controllers/controlpickermenu.cpp b/src/controllers/controlpickermenu.cpp index b8df99f45e..984befb0b6 100644 --- a/src/controllers/controlpickermenu.cpp +++ b/src/controllers/controlpickermenu.cpp @@ -415,6 +415,57 @@ ControlPickerMenu::ControlPickerMenu(QWidget* pParent) hotcueMainMenu->addMenu(hotcueMoreMenu); } + // Intro/outro range markers + QMenu* introOutroMenu = addSubmenu(tr("Intro / Outro Cues")); + QString introStartTitle(tr("Intro Start Cue")); + QString introEndTitle(tr("Intro End Cue")); + QString outroStartTitle(tr("Outro Start Cue")); + QString outroEndTitle(tr("Outro End Cue")); + QMenu* introStartMenu = addSubmenu(introStartTitle, introOutroMenu); + QMenu* introEndMenu = addSubmenu(introEndTitle, introOutroMenu); + QMenu* outroStartMenu = addSubmenu(outroStartTitle, introOutroMenu); + QMenu* outroEndMenu = addSubmenu(outroEndTitle, introOutroMenu); + QList<QMenu*> introOutroSubmenus = { + introStartMenu, + introEndMenu, + outroStartMenu, + outroEndMenu}; + const QStringList cueTypeTitles = { + introStartTitle, + introEndTitle, + outroStartTitle, + outroEndTitle}; + const QStringList cueTypeNames = { + tr("intro start cue"), + tr("intro end cue"), + tr("outro start cue"), + tr("outro end cue")}; + const QStringList cueTypeCOs = { + "intro_start", + "intro_end", + "outro_start", + "outro_end"}; + + for (int i = 0; i < introOutroSubmenus.size(); ++i) { + addDeckAndSamplerAndPreviewDeckControl( + QString("%1_activate").arg(cueTypeCOs[i]), + tr("Activate %1").arg(cueTypeTitles[i]), + tr("Jump to or set the %1") + .arg(cueTypeNames[i]), + introOutroSubmenus[i]); + addDeckAndSamplerAndPreviewDeckControl( + QString("%1_set").arg(cueTypeCOs[i]), + tr("Set %1").arg(cueTypeTitles[i]), + tr("Set or jump to the %1") + .arg(cueTypeNames[i]), + introOutroSubmenus[i]); + addDeckAndSamplerAndPreviewDeckControl( + QString("%1_clear").arg(cueTypeCOs[i]), + tr("Clear %1").arg(cueTypeTitles[i]), + tr("Clear the %1").arg(cueTypeNames[i]), + introOutroSubmenus[i]); + } + // Loops QMenu* loopMenu = addSubmenu(tr("Looping")); // add beatloop_activate and beatlooproll_activate to both the |