Skip to content

Commit

Permalink
Make NanoWheel cursor manipulation less broken
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesaulniers committed Jun 23, 2018
1 parent d3e869c commit 4bfb553
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dpf
Submodule dpf updated from 9f387d to 181109
2 changes: 1 addition & 1 deletion plugins/wolf-shaper/Common
1 change: 1 addition & 0 deletions plugins/wolf-shaper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ OBJS_UI = \
Common/Structures/src/Graph.cpp.o \
Common/Structures/src/Layout.cpp.o \
Common/Structures/src/Animation.cpp.o \
Common/Widgets/src/WolfWidget.cpp.o \
Common/Widgets/src/GraphNode.cpp.o \
Common/Widgets/src/GraphWidget.cpp.o \
Common/Widgets/src/NanoSwitch.cpp.o \
Expand Down
22 changes: 11 additions & 11 deletions plugins/wolf-shaper/WolfShaperUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ WolfShaperUI::WolfShaperUI() : UI(665, 665),
fLabelsBoxBipolarMode = new GlowingLabelsBox(this, Size<uint>(34, 42));
fLabelsBoxBipolarMode->setLabels({"UNI", "BI"});

fWheelOversample = new OversampleWheel(this, Size<uint>(47, 26));
fWheelOversample->setCallback(this);
fWheelOversample->setRange(0, 4);

fLabelWheelOversample = new NanoLabel(this, Size<uint>(85, 26));
fLabelWheelOversample->setText("OVERSAMPLE");
fLabelWheelOversample->setFontId(chivoBoldId);
fLabelWheelOversample->setFontSize(14.0f);
fLabelWheelOversample->setAlign(ALIGN_LEFT | ALIGN_MIDDLE);
fLabelWheelOversample->setMargin(Margin(0, 0, fLabelWheelOversample->getHeight() / 2.0f, 0));

fLabelPreGain = new LabelBox(this, Size<uint>(knobsLabelBoxWidth, knobsLabelBoxHeight));
fLabelPreGain->setText("PRE");

Expand Down Expand Up @@ -153,6 +142,17 @@ WolfShaperUI::WolfShaperUI() : UI(665, 665),
fLabelButtonResetGraph->setAlign(ALIGN_LEFT | ALIGN_MIDDLE);
fLabelButtonResetGraph->setMargin(Margin(6, 0, std::round(fButtonResetGraph->getHeight() / 2.0f) + 1, 0));

fWheelOversample = new OversampleWheel(this, Size<uint>(47, 26));
fWheelOversample->setCallback(this);
fWheelOversample->setRange(0, 4);

fLabelWheelOversample = new NanoLabel(this, Size<uint>(85, 26));
fLabelWheelOversample->setText("OVERSAMPLE");
fLabelWheelOversample->setFontId(chivoBoldId);
fLabelWheelOversample->setFontSize(14.0f);
fLabelWheelOversample->setAlign(ALIGN_LEFT | ALIGN_MIDDLE);
fLabelWheelOversample->setMargin(Margin(0, 0, fLabelWheelOversample->getHeight() / 2.0f, 0));

positionWidgets(width, height);
}

Expand Down

0 comments on commit 4bfb553

Please sign in to comment.