X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=62551d9bd3d908bcc4af03d5670c513a24d3db1d;hb=b9feb66845bf24465b7671ac9ff7a52b88f6032b;hp=8dfbf835db9f412ce79d13c5bab3d19fce38b841;hpb=7c1bb8357495778076a47636c2c4192674034165;p=nageru diff --git a/mainwindow.h b/mainwindow.h index 8dfbf83..62551d9 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,18 +1,23 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include +#include #include +#include #include #include #include -#include +#include "analyzer.h" +#include "audio_mixer.h" #include "midi_mapper.h" #include "mixer.h" -class GLWidget; -class Ui_AudioExpandedView; +class QEvent; +class QObject; class QResizeEvent; +class Ui_AudioExpandedView; namespace Ui { class AudioExpandedView; @@ -21,7 +26,6 @@ class Display; class MainWindow; } // namespace Ui -class QDial; class QLabel; class QPushButton; @@ -42,14 +46,20 @@ public slots: void cut_triggered(); void x264_bitrate_triggered(); void exit_triggered(); + void manual_triggered(); void about_triggered(); + void open_analyzer_triggered(); void simple_audio_mode_triggered(); void multichannel_audio_mode_triggered(); void input_mapping_triggered(); void midi_mapping_triggered(); + void timecode_stream_triggered(); + void timecode_stdout_triggered(); void transition_clicked(int transition_number); 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 transition_names); void update_channel_name(Mixer::Output output, const std::string &name); void update_channel_color(Mixer::Output output, const std::string &color); @@ -114,9 +124,11 @@ private: void setup_audio_miniview(); 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_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); @@ -147,12 +159,15 @@ private: Ui::MainWindow *ui; QLabel *disk_free_label; + QMenu *theme_menu = nullptr; QPushButton *transition_btn1, *transition_btn2, *transition_btn3; std::vector previews; std::vector audio_miniviews; std::vector audio_expanded_views; int current_wb_pick_display = -1; + int current_audio_view = -1; MIDIMapper midi_mapper; + std::unique_ptr analyzer; }; extern MainWindow *global_mainwindow;