mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-01 12:53:49 -04:00
Support for alternative tunings and keyboard mappings (#5522)
Co-authored-by: Kevin Zander <veratil@gmail.com> Co-authored-by: Dominic Clark <mrdomclark@gmail.com> Co-authored-by: Martin <martin@sigma.he29.net>
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "GuiApplication.h"
|
||||
#include "ImportFilter.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "MicrotunerConfig.h"
|
||||
#include "PianoRoll.h"
|
||||
#include "PluginBrowser.h"
|
||||
#include "PluginFactory.h"
|
||||
@@ -546,6 +547,14 @@ void MainWindow::finalize()
|
||||
m_toolBar );
|
||||
project_notes_window->setShortcut( Qt::CTRL + Qt::Key_7 );
|
||||
|
||||
ToolButton * microtuner_window = new ToolButton(
|
||||
embed::getIconPixmap( "microtuner" ),
|
||||
tr( "Microtuner configuration" ) +
|
||||
" (Ctrl+8)",
|
||||
this, SLOT( toggleMicrotunerWin() ),
|
||||
m_toolBar );
|
||||
microtuner_window->setShortcut( Qt::CTRL + Qt::Key_8 );
|
||||
|
||||
m_toolBarLayout->addWidget( song_editor_window, 1, 1 );
|
||||
m_toolBarLayout->addWidget( bb_editor_window, 1, 2 );
|
||||
m_toolBarLayout->addWidget( piano_roll_window, 1, 3 );
|
||||
@@ -553,6 +562,7 @@ void MainWindow::finalize()
|
||||
m_toolBarLayout->addWidget( fx_mixer_window, 1, 5 );
|
||||
m_toolBarLayout->addWidget( controllers_window, 1, 6 );
|
||||
m_toolBarLayout->addWidget( project_notes_window, 1, 7 );
|
||||
m_toolBarLayout->addWidget( microtuner_window, 1, 8 );
|
||||
m_toolBarLayout->setColumnStretch( 100, 1 );
|
||||
|
||||
// setup-dialog opened before?
|
||||
@@ -1112,6 +1122,13 @@ void MainWindow::toggleFxMixerWin()
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MainWindow::toggleMicrotunerWin()
|
||||
{
|
||||
toggleWindow( gui->getMicrotunerConfig() );
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::updateViewMenu()
|
||||
{
|
||||
m_viewMenu->clear();
|
||||
@@ -1147,6 +1164,10 @@ void MainWindow::updateViewMenu()
|
||||
tr( "Project Notes" ) + "\tCtrl+7",
|
||||
this, SLOT( toggleProjectNotesWin() )
|
||||
);
|
||||
m_viewMenu->addAction(embed::getIconPixmap( "microtuner" ),
|
||||
tr( "Microtuner" ) + "\tCtrl+8",
|
||||
this, SLOT( toggleMicrotunerWin() )
|
||||
);
|
||||
|
||||
m_viewMenu->addSeparator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user