25 Integer(l10n::String newName, int32_t newP = 0) : PatchedParam(newP),
IntegerContinuous(newName) {}
26 Integer(l10n::String newName, int32_t newP, NumberStyle style)
28 Integer(l10n::String newName, l10n::String
title, int32_t newP = 0)
30 Integer(l10n::String newName, l10n::String
title, int32_t newP, NumberStyle style)
33 void drawValue()
override { display->setTextAsNumber(this->getValue(),
shouldDrawDotOnName()); }
37 ParamDescriptor getLearningThing() final {
return PatchedParam::getLearningThing(); }
38 [[nodiscard]] int32_t getMaxValue()
const override {
return PatchedParam::getMaxValue(); }
39 [[nodiscard]] int32_t getMinValue()
const override {
return PatchedParam::getMinValue(); }
41 return PatchedParam::shouldBlinkPatchingSourceShortcut(s, colour);
49 ActionResult
buttonAction(deluge::hid::Button b,
bool on,
bool inCardRoutine)
final {
50 return PatchedParam::buttonAction(b, on, inCardRoutine);
55 uint32_t
getParamIndex() final {
return PatchedParam::getParamIndex(); }
57 return PatchedParam::patchingSourceShortcutPress(s, previousPressStillActive);
61 bool allowsLearnMode() final {
return MenuItemWithCCLearning::allowsLearnMode(); }
62 void learnKnob(
MIDICable* cable, int32_t whichKnob, int32_t modKnobMode, int32_t midiChannel)
final {
63 MenuItemWithCCLearning::learnKnob(cable, whichKnob, modKnobMode, midiChannel);
66 int32_t getParamValue() {
73 [[nodiscard]] NumberStyle getNumberStyle()
const override {
74 return number_style_.value_or(IntegerContinuous::getNumberStyle());
79 void writeCurrentValue() final;
80 virtual int32_t getFinalValue();
83 std::optional<NumberStyle> number_style_{std::nullopt};