]> git.sesse.net Git - nageru/blobdiff - mainwindow.h
Only bother doing MJPEG encoding if there are any connected clients that want the...
[nageru] / mainwindow.h
index beb4eed75c61fe0bb6260793c58d1b5eaae52a5a..36be4b8be01a90dbff75d095c1af61b5bc1aa7d1 100644 (file)
@@ -59,12 +59,14 @@ public slots:
        void channel_clicked(int channel_number);
        void quick_cut_activated(int channel_number);
        void wb_button_clicked(int channel_number);
+       void audio_view_changed(int audio_view);
        void set_transition_names(std::vector<std::string> transition_names);
        void update_channel_name(Mixer::Output output, const std::string &name);
        void update_channel_color(Mixer::Output output, const std::string &color);
        void gain_staging_knob_changed(unsigned bus_index, int value);
        void final_makeup_gain_knob_changed(int value);
        void cutoff_knob_changed(int value);
+       void stereo_width_knob_changed(unsigned bus_index, int value);
        void eq_knob_changed(unsigned bus_index, EQBand band, int value);
        void limiter_threshold_knob_changed(int value);
        void compressor_threshold_knob_changed(unsigned bus_index, int value);
@@ -78,6 +80,7 @@ public slots:
        void set_limiter_threshold(float value) override;
        void set_makeup_gain(float value) override;
 
+       void set_stereo_width(unsigned bus_idx, float value) override;
        void set_treble(unsigned bus_idx, float value) override;
        void set_mid(unsigned bus_idx, float value) override;
        void set_bass(unsigned bus_idx, float value) override;
@@ -99,6 +102,7 @@ public slots:
        void highlight_limiter_threshold(bool highlight) override;
        void highlight_makeup_gain(bool highlight) override;
 
+       void highlight_stereo_width(unsigned bus_idx, 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;
@@ -124,9 +128,11 @@ private:
        void setup_audio_expanded_view();
        bool eventFilter(QObject *watched, QEvent *event) override;
        void closeEvent(QCloseEvent *event) override;
-       void set_white_balance(int channel_number, int x, int y);
        void update_cutoff_labels(float cutoff_hz);
+       void update_stereo_knob_and_label(unsigned bus_index, int stereo_width_percent);
+       void update_stereo_label(unsigned bus_index, int stereo_width_percent);
        void update_eq_label(unsigned bus_index, EQBand band, float gain_db);
+       void setup_theme_menu();
 
        // Called from DiskSpaceEstimator.
        void report_disk_space(off_t free_bytes, double estimated_seconds_left);
@@ -157,11 +163,13 @@ private:
 
        Ui::MainWindow *ui;
        QLabel *disk_free_label;
+       QMenu *theme_menu = nullptr;
        QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
        std::vector<Ui::Display *> previews;
        std::vector<Ui::AudioMiniView *> audio_miniviews;
        std::vector<Ui::AudioExpandedView *> audio_expanded_views;
        int current_wb_pick_display = -1;
+       int current_audio_view = -1;
        MIDIMapper midi_mapper;
        std::unique_ptr<Analyzer> analyzer;
 };