summaryrefslogtreecommitdiff
path: root/src/wx/audio_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-02 10:47:35 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-02 10:47:35 +0200
commita6696b9a58c14d81f0ae30482051c2cd47a004db (patch)
tree0fb2983324b891f7dd3ecde04eb92dae00cb0a85 /src/wx/audio_panel.h
parenta4b7d0af831b8cd9aafca5f2b264be416a7b1148 (diff)
Add language to audio content and use it instead of the general metadata.
Diffstat (limited to 'src/wx/audio_panel.h')
-rw-r--r--src/wx/audio_panel.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h
index aee352a55..aef2f76ad 100644
--- a/src/wx/audio_panel.h
+++ b/src/wx/audio_panel.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
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
{
@@ -50,6 +54,8 @@ private:
void setup_sensitivity ();
void reference_clicked ();
void add_to_grid ();
+ void enable_language_clicked ();
+ void language_changed ();
boost::optional<float> peak () const;
wxCheckBox* _reference;
@@ -63,6 +69,8 @@ private:
wxStaticText* _delay_label;
wxStaticText* _delay_ms_label;
ContentSpinCtrl<AudioContent>* _delay;
+ wxCheckBox* _enable_language = nullptr;
+ LanguageTagWidget* _language = nullptr;
AudioMappingView* _mapping;
wxStaticText* _description;
AudioDialog* _audio_dialog;