Microtuner UI update (#6206)
* Replace deprecated sprintf() function * Update microtuner-related UI (add more clues explaining how to use it) * Simpler wording in the tooltips for "apply" buttons * Post-merge fix of a forward declaration * Rename Misc tab to Tuning and transposition; move Microtuner config dialog to Edit menu and make it also available from instrument tab * Enable word wrap on "MIDI unsupported" label * Remove forgotten new unnecessary includes * Rename InstrumentMiscView to InstrumentTuningView in locales
This commit is contained in:
@@ -51,7 +51,7 @@ namespace gui
|
||||
|
||||
class InstrumentTrackView;
|
||||
class InstrumentTrackWindow;
|
||||
class InstrumentMiscView;
|
||||
class InstrumentTuningView;
|
||||
class MidiCCRackView;
|
||||
|
||||
} // namespace gui
|
||||
@@ -315,7 +315,7 @@ private:
|
||||
friend class gui::InstrumentTrackView;
|
||||
friend class gui::InstrumentTrackWindow;
|
||||
friend class NotePlayHandle;
|
||||
friend class gui::InstrumentMiscView;
|
||||
friend class gui::InstrumentTuningView;
|
||||
friend class gui::MidiCCRackView;
|
||||
|
||||
} ;
|
||||
|
||||
@@ -47,7 +47,7 @@ class MixerLineLcdSpinBox;
|
||||
class InstrumentFunctionArpeggioView;
|
||||
class InstrumentFunctionNoteStackingView;
|
||||
class InstrumentMidiIOView;
|
||||
class InstrumentMiscView;
|
||||
class InstrumentTuningView;
|
||||
class InstrumentSoundShapingView;
|
||||
class InstrumentTrackShapingView;
|
||||
class InstrumentTrackView;
|
||||
@@ -154,7 +154,7 @@ private:
|
||||
InstrumentFunctionArpeggioView* m_arpeggioView;
|
||||
InstrumentMidiIOView * m_midiView;
|
||||
EffectRackView * m_effectView;
|
||||
InstrumentMiscView *m_miscView;
|
||||
InstrumentTuningView *m_tuningView;
|
||||
|
||||
|
||||
// test-piano at the bottom of every instrument-settings-window
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/*
|
||||
* InstrumentMiscView.h - widget in instrument-track-window for setting up
|
||||
* miscellaneous options not covered by other tabs
|
||||
* InstrumentTuningView.h - widget in instrument-track-window for setting up
|
||||
* tuning and transposition options
|
||||
*
|
||||
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2020 Martin Pavelek <he29.HS/at/gmail.com>
|
||||
* Copyright (c) 2020-2022 Martin Pavelek <he29.HS/at/gmail.com>
|
||||
*
|
||||
* This file is part of LMMS - https://lmms.io
|
||||
*
|
||||
@@ -24,11 +24,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LMMS_GUI_INSTRUMENT_MISC_VIEW_H
|
||||
#define LMMS_GUI_INSTRUMENT_MISC_VIEW_H
|
||||
#ifndef LMMS_GUI_INSTRUMENT_TUNING_VIEW_H
|
||||
#define LMMS_GUI_INSTRUMENT_TUNING_VIEW_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLabel;
|
||||
|
||||
namespace lmms
|
||||
{
|
||||
|
||||
@@ -42,15 +44,17 @@ class GroupBox;
|
||||
class LedCheckBox;
|
||||
|
||||
|
||||
class InstrumentMiscView : public QWidget
|
||||
class InstrumentTuningView : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
InstrumentMiscView(InstrumentTrack *it, QWidget *parent);
|
||||
InstrumentTuningView(InstrumentTrack *it, QWidget *parent);
|
||||
|
||||
GroupBox *pitchGroupBox() {return m_pitchGroupBox;}
|
||||
GroupBox *microtunerGroupBox() {return m_microtunerGroupBox;}
|
||||
|
||||
QLabel *microtunerNotSupportedLabel() {return m_microtunerNotSupportedLabel;}
|
||||
|
||||
ComboBox *scaleCombo() {return m_scaleCombo;}
|
||||
ComboBox *keymapCombo() {return m_keymapCombo;}
|
||||
|
||||
@@ -60,6 +64,8 @@ private:
|
||||
GroupBox *m_pitchGroupBox;
|
||||
GroupBox *m_microtunerGroupBox;
|
||||
|
||||
QLabel *m_microtunerNotSupportedLabel;
|
||||
|
||||
ComboBox *m_scaleCombo;
|
||||
ComboBox *m_keymapCombo;
|
||||
|
||||
@@ -71,4 +77,4 @@ private:
|
||||
|
||||
} // namespace lmms
|
||||
|
||||
#endif // LMMS_GUI_INSTRUMENT_MISC_VIEW_H
|
||||
#endif // LMMS_GUI_INSTRUMENT_TUNING_VIEW_H
|
||||
Reference in New Issue
Block a user