X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_panel.h;h=0ae9da88efa9a077d786d61db1409d861b377dec;hb=796aaab029ebd06a6176383714ef75726b2b9ec2;hp=5551b396dc990b6cd4f89ca047c923a428e0962c;hpb=3ae67788dcb1567c5d6df65e89cd84bf484e82be;p=dcpomatic.git diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h index 5551b396d..0ae9da88e 100644 --- a/src/wx/audio_panel.h +++ b/src/wx/audio_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,16 +18,20 @@ */ + #include "lib/audio_mapping.h" #include "content_sub_panel.h" #include "content_widget.h" + class wxSpinCtrlDouble; class wxButton; class wxChoice; class wxStaticText; class AudioMappingView; class AudioDialog; +class LanguageTagWidget; + class AudioPanel : public ContentSubPanel { @@ -38,7 +42,7 @@ public: void film_changed (Film::Property); void film_content_changed (int); void content_selection_changed (); - void set_film (boost::shared_ptr); + void set_film (std::shared_ptr); private: void show_clicked (); @@ -46,20 +50,27 @@ private: void mapping_changed (AudioMapping); void setup_description (); void setup_peak (); - void active_jobs_changed (boost::optional); + void active_jobs_changed (boost::optional, boost::optional); void setup_sensitivity (); void reference_clicked (); + void add_to_grid (); + boost::optional peak () const; wxCheckBox* _reference; wxStaticText* _reference_note; wxButton* _show; + wxStaticText* _gain_label; + wxStaticText* _gain_db_label; ContentSpinCtrlDouble* _gain; wxButton* _gain_calculate_button; wxStaticText* _peak; + wxStaticText* _delay_label; + wxStaticText* _delay_ms_label; ContentSpinCtrl* _delay; AudioMappingView* _mapping; wxStaticText* _description; AudioDialog* _audio_dialog; boost::signals2::scoped_connection _mapping_connection; + boost::signals2::scoped_connection _active_jobs_connection; };