| 75 | } |
| 76 | |
| 77 | void NoteOptionsView::paint(Graphics& g) |
| 78 | { |
| 79 | g.setColour(WHITE_TRANSPARENT); |
| 80 | g.fillRoundedRectangle(0.0f, |
| 81 | static_cast<float>(LEFT_SECTIONS_TOP_PAD), |
| 82 | static_cast<float>(getWidth()), |
| 83 | static_cast<float>(getHeight() - LEFT_SECTIONS_TOP_PAD), |
| 84 | 5.0f); |
| 85 | |
| 86 | float alpha = mIsViewEnabled && isEnabled() ? 1.0f : DISABLED_ALPHA; |
| 87 | |
| 88 | mMinMaxNoteSlider->setAlpha(alpha); |
| 89 | g.setColour(BLACK.withAlpha(alpha)); |
| 90 | |
| 91 | g.setFont(UIDefines::TITLE_FONT()); |
| 92 | g.drawText("SCALE QUANTIZE", Rectangle<int>(24, 0, 274, 17), Justification::centredLeft); |
| 93 | |
| 94 | g.setFont(UIDefines::LABEL_FONT()); |
| 95 | g.drawText("RANGE", Rectangle<int>(19, mMinMaxNoteSlider->getY(), 80, 17), Justification::centredLeft); |
| 96 | |
| 97 | g.drawText("KEY", Rectangle<int>(19, mRootNoteDropdown->getY(), 80, 17), Justification::centredLeft); |
| 98 | |
| 99 | g.drawText("SNAP MODE", Rectangle<int>(19, mSnapMode->getY(), 80, 17), Justification::centredLeft); |
| 100 | } |
| 101 | |
| 102 | void NoteOptionsView::parameterValueChanged(int parameterIndex, float newValue) |
| 103 | { |
nothing calls this directly
no test coverage detected