X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcustom_scale_dialog.cc;h=e750b9baa053d60bb5628503e839c31c3ff4b5dd;hb=eb3301dbdf655a36c98f50eb9b4adcfe4d1dad0c;hp=5725d2378144ede3684e767e5041233007d8869f;hpb=15a83d720780d58f905d40f8493cdcb86596eaee;p=dcpomatic.git diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc index 5725d2378..e750b9baa 100644 --- a/src/wx/custom_scale_dialog.cc +++ b/src/wx/custom_scale_dialog.cc @@ -23,9 +23,12 @@ #include "wx_util.h" #include "lib/util.h" #include -#include +#include +LIBDCP_DISABLE_WARNINGS #include #include +#include +LIBDCP_ENABLE_WARNINGS using boost::optional; @@ -41,7 +44,7 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); _ratio = new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float)); s->Add (_ratio, 1, wxRIGHT, 4); - add_label_to_sizer (s, this, wxT(":1"), false); + add_label_to_sizer (s, this, wxT(":1"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); add (s); _size_from_ratio = new wxStaticText (this, wxID_ANY, wxT("")); add (_size_from_ratio, 1, wxALIGN_CENTER_VERTICAL); @@ -49,10 +52,10 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: _size = new wxRadioButton (this, wxID_ANY, _("Set size")); add (_size); s = new wxBoxSizer (wxHORIZONTAL); - _width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1), wxSP_ARROW_KEYS, 1, film_container.width); + _width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.width); s->Add (_width, 1, wxRIGHT, 4); - add_label_to_sizer (s, this, wxT("x"), false); - _height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1), wxSP_ARROW_KEYS, 1, film_container.height); + add_label_to_sizer (s, this, wxT("x"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); + _height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(DCPOMATIC_SPIN_CTRL_WIDTH, -1), wxSP_ARROW_KEYS, 1, film_container.height); s->Add (_height, 1, wxRIGHT, 4); add (s); _ratio_from_size = new wxStaticText (this, wxID_ANY, wxT(""));