X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fvideo_waveform_dialog.cc;h=bc68fa6c2efe95e6b51729988533efded801ae48;hb=f802565830bed9ec9e7ad6c16ccaa7b0700625d9;hp=510d373c61364d3b7b2f8b19151dcbb6faa4ed6e;hpb=3ee5431c7e270d7bf706fcf7530a6eb2c78480c3;p=dcpomatic.git diff --git a/src/wx/video_waveform_dialog.cc b/src/wx/video_waveform_dialog.cc index 510d373c6..bc68fa6c2 100644 --- a/src/wx/video_waveform_dialog.cc +++ b/src/wx/video_waveform_dialog.cc @@ -23,13 +23,17 @@ #include "film_viewer.h" #include "wx_util.h" #include "static_text.h" -#include +#include #include using std::cout; using boost::bind; -using boost::weak_ptr; -using boost::shared_ptr; +using std::weak_ptr; +using std::shared_ptr; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif + VideoWaveformDialog::VideoWaveformDialog (wxWindow* parent, weak_ptr film, weak_ptr viewer) : wxDialog ( @@ -67,11 +71,11 @@ VideoWaveformDialog::VideoWaveformDialog (wxWindow* parent, weak_ptr overall_sizer->Add (controls, 0, wxALL | wxEXPAND, DCPOMATIC_SIZER_X_GAP); wxBoxSizer* position = new wxBoxSizer (wxHORIZONTAL); - add_label_to_sizer (position, this, _("Image X position"), true); + add_label_to_sizer (position, this, _("Image X position"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL); _x_position = new StaticText (this, ""); _x_position->SetMinSize (wxSize (64, -1)); position->Add (_x_position, 0, wxALL, DCPOMATIC_SIZER_X_GAP); - add_label_to_sizer (position, this, _("component value"), true); + add_label_to_sizer (position, this, _("component value"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL); _value = new StaticText (this, ""); _value->SetMinSize (wxSize (64, -1)); position->Add (_value, 0, wxALL, DCPOMATIC_SIZER_X_GAP);