diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-03-25 00:00:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-03-25 00:00:06 +0000 |
| commit | 634aba7b19c2a08675438473e685d4416744adba (patch) | |
| tree | 648d4d4cf05b476ed7f81a5085e469d19a50d403 /src | |
| parent | a71a3b3d0f8545e44af75ded10dfda4a382158f2 (diff) | |
Hand-apply c7ce6fcf9bc6b5b1f6d823b7df256f43fefd660c; add a note to the
timing panel to try to stop people changing the video frame rate in
the wrong circumstances.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timing_panel.cc | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index ab98a5094..1b1c4b893 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -101,6 +101,30 @@ TimingPanel::TimingPanel (ContentPanel* p) grid->Add (s, 1, wxEXPAND); } + grid->AddSpacer (0); + + /* We can't use Wrap() here as it doesn't work with markup: + * http://trac.wxwidgets.org/ticket/13389 + */ + + wxString in = _("<i>Only change this if it the content's frame rate has been read incorrectly.</i>"); + wxString out; + int const width = 20; + int current = 0; + for (size_t i = 0; i < in.Length(); ++i) { + if (in[i] == ' ' && current >= width) { + out += '\n'; + current = 0; + } else { + out += in[i]; + ++current; + } + } + + t = new wxStaticText (this, wxID_ANY, wxT ("")); + t->SetLabelMarkup (out); + grid->Add (t, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 6); + _position->Changed.connect (boost::bind (&TimingPanel::position_changed, this)); _full_length->Changed.connect (boost::bind (&TimingPanel::full_length_changed, this)); _trim_start->Changed.connect (boost::bind (&TimingPanel::trim_start_changed, this)); |
