MuseScore/mscore/pianolevelschooser.cpp
Mark McKay 63d2db7b14 fix #273601: Updated UI for pianoroll editor.
Updating main piano roll display to have 12 rows per octave.

Updating piano keyboard to track main piano roll window.

Moving PianoKeyboard to its own file.

Better tracking of playhead during playback.

Drawing beat lines within measure.

Scrollbars now adjusted for stasis when zooming in the pianoview.

Piano ruler now showing tick marks respecting zoom level.

Fixing scroll issue during playback.

Taking direct control of selection.

PianoItem is no longer a Qt object.

Preping  for note group drag.

Can now drag pitch changes.

Adjusting viewport pos when staff set.

Removing CMakeLists.txt

Adding CMakeLists.txt back in.

Cleaning things up for resubmission.

Now displaying drumset names in PianoKeyboard when relevant.

Updating tracking signal in Pianoroll Editor.  Cleanup.

Locator lines no longer Qt objects.  Removing redundant note move on
mouse up.

Now adjusting final event for playback.

Now showing note voice name.  Using Tpc to use note name tha reflects
accidentals.

Better checking for Position when opening Pianoroll window.
Adding note for ctrl-click on rest.

Swithing velocity type will now also adjust to equivilent velocity
value.  Better checking for single note selection.

Pianoroll window.  Adding note for ctrl-click on rest.
equivilent velocity value.  Better checking for single note selection.

Ctrl-click now adds note to selection.

Note up/down now correct direction for drumroll

Fixing calcuation for switching note velocity.

Can now horiz resize piano keyboard.

Setting up new PianoLevels control for setting note event values.

Now drawing subbeat divisions.

Can now cut notes.

User can now select data type to display.

Can now use mouse to adjust levels.

Adding undo to note event changes.  Now smoother transition between
absolute and offset level values.

Smoother update communication between controls.

Adding labels to piano levels.  Removing unneccary blocking of scene()
in pianoview.

Now handles adjusting level with 1px wide mouse sweep.

mouse sweep.
'c8199ac5a'.

fix #273601: Updated UI for pianoroll editor.

Now handling setting null staff.  Adding missing .h files to CMakeLists.txt

Removing undo step to avoid selection problem.

Adding tool tip display.

Keyboard display now adjusting to reflect transposition of instrument.

Now showing part name in Piano Roll editor.

Moving color display options into preferences.

Levels editor now using preferences too.

Fixing incorrent note being highlighted in piano roll editor.  Base color now used for coloring levels panel.

Cleaning code

Investigating cut/pasete actions.

Adding popup menu.

Encapsulating selection into a command.  Creating minimal popup menu.

Can now insert notes of arbitrary duraition to piano roll.

Adding dark and light color schemes to piano roll editor.

Can now set subbeats to non powers of 2.

Fixing bad rebase.

Holding shift will clamp values to mousedown position.

Adding dropdown to modify which white lines are shown behind notes.
2018-10-21 04:27:23 -04:00

44 lines
1.1 KiB
C++

#include "pianolevelschooser.h"
#include "pianolevelsfilter.h"
namespace Ms {
//---------------------------------------------------------
// PianoLevelsChooser
//---------------------------------------------------------
PianoLevelsChooser::PianoLevelsChooser(QWidget *parent)
: QWidget(parent)
{
_levelsIndex = 0;
QGridLayout* layout = new QGridLayout;
levelsCombo = new QComboBox;
for (int i = 0; PianoLevelsFilter::FILTER_LIST[i]; ++i) {
QString name = PianoLevelsFilter::FILTER_LIST[i]->name();
levelsCombo->addItem(name, i);
}
layout->addWidget(levelsCombo, 0, 0, 1, 1);
setLayout(layout);
connect(levelsCombo, SIGNAL(activated(int)), SLOT(setLevelsIndex(int)));
}
//---------------------------------------------------------
// PianoLevelsChooser
//---------------------------------------------------------
void PianoLevelsChooser::setLevelsIndex(int index)
{
if (_levelsIndex != index) {
_levelsIndex = index;
emit levelsIndexChanged(index);
}
}
}