summaryrefslogtreecommitdiff
path: root/src/wx/controls.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-10 00:41:52 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-03 17:02:24 +0200
commitc97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch)
treef29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/controls.cc
parent5ed17cd197aa743922da18e2a5753f746d38122e (diff)
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/wx/controls.cc')
-rw-r--r--src/wx/controls.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index b6270f91a..21423ff3a 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -70,11 +70,11 @@ Controls::Controls(wxWindow* parent, FilmViewer& viewer, bool editor_controls)
, _markers (new MarkersPanel(this, viewer))
, _slider (new wxSlider(this, wxID_ANY, 0, 0, 4096))
, _viewer (viewer)
- , _rewind_button (new Button(this, wxT("|<")))
- , _back_button (new Button(this, wxT("<")))
- , _forward_button (new Button(this, wxT(">")))
- , _frame_number (new StaticText(this, wxT("")))
- , _timecode (new StaticText(this, wxT("")))
+ , _rewind_button(new Button(this, char_to_wx("|<")))
+ , _back_button(new Button(this, char_to_wx("<")))
+ , _forward_button(new Button(this, char_to_wx(">")))
+ , _frame_number(new StaticText(this, {}))
+ , _timecode(new StaticText(this, {}))
, _timer (this)
{
_v_sizer = new wxBoxSizer (wxVERTICAL);
@@ -276,14 +276,14 @@ void
Controls::update_position_label ()
{
if (!_film) {
- checked_set (_frame_number, wxT("0"));
- checked_set (_timecode, wxT("0:0:0.0"));
+ checked_set(_frame_number, char_to_wx("0"));
+ checked_set(_timecode, char_to_wx("0:0:0.0"));
return;
}
double const fps = _film->video_frame_rate ();
/* Count frame number from 1 ... not sure if this is the best idea */
- checked_set(_frame_number, wxString::Format (wxT("%ld"), lrint(_viewer.position().seconds() * fps) + 1));
+ checked_set(_frame_number, wxString::Format(char_to_wx("%ld"), lrint(_viewer.position().seconds() * fps) + 1));
checked_set(_timecode, time_to_timecode(_viewer.position(), fps));
}