X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_panel.h;h=213ad4cb7db23384ef100d880492a219255b34a0;hb=d4651b1595eb0aab4d956795f757302fef2f31d7;hp=0ae9da88efa9a077d786d61db1409d861b377dec;hpb=ddd767fd647b2fd585d75ada000d3d01c4c43cb2;p=dcpomatic.git diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h index 0ae9da88e..213ad4cb7 100644 --- a/src/wx/audio_panel.h +++ b/src/wx/audio_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2021 Carl Hetherington + Copyright (C) 2012-2022 Carl Hetherington This file is part of DCP-o-matic. @@ -22,6 +22,7 @@ #include "lib/audio_mapping.h" #include "content_sub_panel.h" #include "content_widget.h" +#include "timecode.h" class wxSpinCtrlDouble; @@ -39,9 +40,10 @@ public: explicit AudioPanel (ContentPanel *); ~AudioPanel (); - void film_changed (Film::Property); - void film_content_changed (int); - void content_selection_changed (); + void create () override; + void film_changed (Film::Property) override; + void film_content_changed (int) override; + void content_selection_changed () override; void set_film (std::shared_ptr); private: @@ -53,8 +55,11 @@ private: void active_jobs_changed (boost::optional, boost::optional); void setup_sensitivity (); void reference_clicked (); - void add_to_grid (); + void add_to_grid () override; boost::optional peak () const; + void fade_in_changed (); + void fade_out_changed (); + void use_same_fades_as_video_changed (); wxCheckBox* _reference; wxStaticText* _reference_note; @@ -67,9 +72,14 @@ private: wxStaticText* _delay_label; wxStaticText* _delay_ms_label; ContentSpinCtrl* _delay; + wxStaticText* _fade_in_label; + Timecode* _fade_in; + wxStaticText* _fade_out_label; + Timecode* _fade_out; + wxCheckBox* _use_same_fades_as_video; AudioMappingView* _mapping; wxStaticText* _description; - AudioDialog* _audio_dialog; + AudioDialog* _audio_dialog = nullptr; boost::signals2::scoped_connection _mapping_connection; boost::signals2::scoped_connection _active_jobs_connection;