]> git.sesse.net Git - nageru/blobdiff - midi_mapping_dialog.h
Highlight which controllers have currently active MIDI mappings. Very useful with...
[nageru] / midi_mapping_dialog.h
index df4e97f3c066b4cad0365d9d157b145bede6902b..91cd14580fe5b949e4b8a2bb2339f4f9fca65e8c 100644 (file)
@@ -56,6 +56,24 @@ public:
        void toggle_compressor(unsigned bus_idx) override {}
        void clear_peak(unsigned bus_idx) override {}
 
+       void clear_all_highlights() override {}
+
+       void highlight_locut(bool highlight) override {}
+       void highlight_limiter_threshold(bool highlight) override {}
+       void highlight_makeup_gain(bool highlight) override {}
+
+       void highlight_treble(unsigned bus_idx, bool highlight) override {}
+       void highlight_mid(unsigned bus_idx, bool highlight) override {}
+       void highlight_bass(unsigned bus_idx, bool highlight) override {}
+       void highlight_gain(unsigned bus_idx, bool highlight) override {}
+       void highlight_compressor_threshold(unsigned bus_idx, bool highlight) override {}
+       void highlight_fader(unsigned bus_idx, bool highlight) override {}
+
+       void highlight_toggle_locut(unsigned bus_idx, bool highlight) override {}
+       void highlight_toggle_auto_gain_staging(unsigned bus_idx, bool highlight) override {}
+       void highlight_toggle_compressor(unsigned bus_idx, bool highlight) override {}
+       void highlight_clear_peak(unsigned bus_idx, bool highlight) override {}
+
        // Raw events; used for the editor dialog only.
        void controller_changed(unsigned controller) override;
        void note_on(unsigned note) override;
@@ -99,6 +117,7 @@ private:
        struct FocusInfo {
                int bus_idx;  // -1 for none.
                SpinnerGroup spinner_group;
+               int field_number;
        };
        FocusInfo find_focus() const;
 
@@ -107,7 +126,7 @@ private:
        Ui::MIDIMappingDialog *ui;
        MIDIMapper *mapper;
        ControllerReceiver *old_receiver;
-       FocusInfo last_focus{-1, SpinnerGroup::ALL_GROUPS};
+       FocusInfo last_focus{-1, SpinnerGroup::ALL_GROUPS, -1};
 
        // All controllers actually laid out on the grid (we need to store them
        // so that we can move values back and forth between the controls and