commit f57f7119ff9ad6ce497823d7729c0dc616475984
parent 7ac700c43078e79e18ab5f31671228c8ae84cc7d
Author: Matt Demanett <matt@demanett.net>
Date: Fri, 17 May 2019 22:36:07 -0400
v1: onAction.
Diffstat:
11 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/src/AddrSeq.cpp b/src/AddrSeq.cpp
@@ -64,7 +64,7 @@ struct SelectOnClockMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_selectOnClock = !_module->_selectOnClock;
}
diff --git a/src/Analyzer.cpp b/src/Analyzer.cpp
@@ -92,7 +92,7 @@ struct RangeDbMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_rangeDb = _rangeDb;
}
diff --git a/src/AnalyzerXL.cpp b/src/AnalyzerXL.cpp
@@ -150,7 +150,7 @@ struct RangeMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_range = _range;
}
@@ -170,7 +170,7 @@ struct RangeDbMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_rangeDb = _rangeDb;
}
@@ -190,7 +190,7 @@ struct SmoothMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_smooth = _smooth;
}
@@ -210,7 +210,7 @@ struct QualityMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_quality = _quality;
}
@@ -230,7 +230,7 @@ struct WindowMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_window = _window;
}
diff --git a/src/EightOne.cpp b/src/EightOne.cpp
@@ -64,7 +64,7 @@ struct SelectOnClockMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_selectOnClock = !_module->_selectOnClock;
}
diff --git a/src/FMOp.cpp b/src/FMOp.cpp
@@ -197,7 +197,7 @@ struct LinearLevelMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_linearLevel = !_module->_linearLevel;
}
diff --git a/src/OneEight.cpp b/src/OneEight.cpp
@@ -63,7 +63,7 @@ struct SelectOnClockMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_selectOnClock = !_module->_selectOnClock;
}
diff --git a/src/UMix.cpp b/src/UMix.cpp
@@ -74,7 +74,7 @@ struct AverageMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_sum = !_module->_sum;
}
@@ -92,7 +92,7 @@ struct CVModeMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_cvMode = !_module->_cvMode;
}
diff --git a/src/Walk2.cpp b/src/Walk2.cpp
@@ -419,7 +419,7 @@ struct ZoomOutMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_zoomOut = _zoomOut;
}
@@ -435,7 +435,7 @@ struct GridMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_drawGrid = !_module->_drawGrid;
}
@@ -455,7 +455,7 @@ struct ColorMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_traceColor = _color;
}
diff --git a/src/disable_output_limit.hpp b/src/disable_output_limit.hpp
@@ -25,7 +25,7 @@ struct DisableOutputLimitMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_disableOutputLimit = !_module->_disableOutputLimit;
}
diff --git a/src/lfo_base.hpp b/src/lfo_base.hpp
@@ -44,7 +44,7 @@ struct PitchModeMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->setPitchMode(_compliant ? LFOBase::COMPLIANT_PITCH_MODE : LFOBase::CLASSIC_PITCH_MODE);
}
diff --git a/src/trigger_on_load.hpp b/src/trigger_on_load.hpp
@@ -31,7 +31,7 @@ struct TriggerOnLoadMenuItem : MenuItem {
this->text = label;
}
- void onAction(EventAction &e) override {
+ void onAction(const event::Action& e) override {
_module->_triggerOnLoad = !_module->_triggerOnLoad;
}