diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-13 22:53:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-13 22:53:08 +0000 |
| commit | 019e44f1a19e366b1771b3a0fb1dbec2d343597f (patch) | |
| tree | 6d7a34806e3ae1b774b5109695349b76e9cd3766 | |
| parent | 5b4861e0e255ecf411542cf32865fb90317f9c62 (diff) | |
Tweak crop widgets.
| -rw-r--r-- | src/wx/film_editor.cc | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 3ccdac713..54eccb4f1 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -228,28 +228,21 @@ FilmEditor::make_video_panel () _format = new wxChoice (_video_panel, wxID_ANY); grid->Add (_format); - { - add_label_to_sizer (grid, _video_panel, _("Crop")); - wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); + add_label_to_sizer (grid, _video_panel, _("Left crop")); + _left_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); + grid->Add (_left_crop); - /* TRANSLATORS: L, R, T and B are abbreviations for Left, Right, Top, Bottom, the four edges - of the picture frame. - */ - add_label_to_sizer (s, _video_panel, _("L")); - _left_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); - s->Add (_left_crop, 0); - add_label_to_sizer (s, _video_panel, _("R")); - _right_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); - s->Add (_right_crop, 0); - add_label_to_sizer (s, _video_panel, _("T")); - _top_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); - s->Add (_top_crop, 0); - add_label_to_sizer (s, _video_panel, _("B")); - _bottom_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); - s->Add (_bottom_crop, 0); - - grid->Add (s); - } + add_label_to_sizer (grid, _video_panel, _("Right crop")); + _right_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); + grid->Add (_right_crop); + + add_label_to_sizer (grid, _video_panel, _("Top crop")); + _top_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); + grid->Add (_top_crop); + + add_label_to_sizer (grid, _video_panel, _("Bottom crop")); + _bottom_crop = new wxSpinCtrl (_video_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (64, -1)); + grid->Add (_bottom_crop); /* VIDEO-only stuff */ { |
