summaryrefslogtreecommitdiff
path: root/src/wx/audio_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-27 23:43:43 +0100
committerCarl Hetherington <cth@carlh.net>2018-03-27 23:43:43 +0100
commit3ae67788dcb1567c5d6df65e89cd84bf484e82be (patch)
tree85d98b37e621b32a01785b5be13f763ae0167f22 /src/wx/audio_panel.cc
parent47c34c6c7c82396b62e101283cb25b8726dbaefd (diff)
Use a label rather than a tooltip to tell users why they can't refer to DCPs.
Tooltips don't seem to work on disabled widgets in Windows (at least).
Diffstat (limited to 'src/wx/audio_panel.cc')
-rw-r--r--src/wx/audio_panel.cc24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc
index 14d8db07e..b60d5d121 100644
--- a/src/wx/audio_panel.cc
+++ b/src/wx/audio_panel.cc
@@ -48,15 +48,26 @@ AudioPanel::AudioPanel (ContentPanel* p)
: ContentSubPanel (p, _("Audio"))
, _audio_dialog (0)
{
+ wxBoxSizer* reference_sizer = new wxBoxSizer (wxVERTICAL);
+
+ _reference = new wxCheckBox (this, wxID_ANY, _("Use this DCP's audio as OV and make VF"));
+ reference_sizer->Add (_reference, 0, wxLEFT | wxRIGHT | wxTOP, DCPOMATIC_SIZER_GAP);
+
+ _reference_note = new wxStaticText (this, wxID_ANY, _(""));
+ _reference_note->Wrap (200);
+ reference_sizer->Add (_reference_note, 0, wxLEFT | wxRIGHT, DCPOMATIC_SIZER_GAP);
+ wxFont font = _reference_note->GetFont();
+ font.SetStyle(wxFONTSTYLE_ITALIC);
+ font.SetPointSize(font.GetPointSize() - 1);
+ _reference_note->SetFont(font);
+
+ _sizer->Add (reference_sizer);
+
wxGridBagSizer* grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
_sizer->Add (grid, 0, wxALL, 8);
int r = 0;
- _reference = new wxCheckBox (this, wxID_ANY, _("Use this DCP's audio as OV and make VF"));
- grid->Add (_reference, wxGBPosition (r, 0), wxGBSpan (1, 3));
- ++r;
-
_show = new wxButton (this, wxID_ANY, _("Show graph of audio levels..."));
grid->Add (_show, wxGBPosition (r, 0), wxGBSpan (1, 2));
_peak = new wxStaticText (this, wxID_ANY, wxT (""));
@@ -100,9 +111,6 @@ AudioPanel::AudioPanel (ContentPanel* p)
_description = new wxStaticText (this, wxID_ANY, wxT (" \n"), wxDefaultPosition, wxDefaultSize);
_sizer->Add (_description, 0, wxALL, 12);
- wxFont font = _description->GetFont();
- font.SetStyle (wxFONTSTYLE_ITALIC);
- font.SetPointSize (font.GetPointSize() - 1);
_description->SetFont (font);
++r;
@@ -269,7 +277,7 @@ AudioPanel::setup_sensitivity ()
string why_not;
bool const can_reference = dcp && dcp->can_reference_audio (why_not);
- setup_refer_button (_reference, dcp, can_reference, why_not);
+ setup_refer_button (_reference, _reference_note, dcp, can_reference, why_not);
if (_reference->GetValue ()) {
_gain->wrapped()->Enable (false);