grid->Add (_burn, wxGBPosition (r, 0), wxGBSpan (1, 2));
++r;
- {
- add_label_to_sizer (grid, this, _("X Offset"), true, wxGBPosition (r, 0));
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _x_offset = new wxSpinCtrl (this);
- s->Add (_x_offset);
- add_label_to_sizer (s, this, _("%"), false);
- grid->Add (s, wxGBPosition (r, 1));
- ++r;
- }
-
- {
- add_label_to_sizer (grid, this, _("Y Offset"), true, wxGBPosition (r, 0));
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _y_offset = new wxSpinCtrl (this);
- s->Add (_y_offset);
- add_label_to_sizer (s, this, _("%"), false);
- grid->Add (s, wxGBPosition (r, 1));
- ++r;
- }
-
- {
- add_label_to_sizer (grid, this, _("X Scale"), true, wxGBPosition (r, 0));
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _x_scale = new wxSpinCtrl (this);
- s->Add (_x_scale);
- add_label_to_sizer (s, this, _("%"), false);
- grid->Add (s, wxGBPosition (r, 1));
- ++r;
- }
+ add_label_to_sizer (grid, this, _("Offset"), true, wxGBPosition (r, 0));
+ wxBoxSizer* offset = new wxBoxSizer (wxHORIZONTAL);
+ add_label_to_sizer (offset, this, _("X"), true);
+ _x_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
+ offset->Add (_x_offset, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP);
+ wxStaticText* pc = new wxStaticText (this, wxID_ANY, _("%"));
+ offset->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2);
+ add_label_to_sizer (offset, this, _("Y"), true);
+ _y_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
+ offset->Add (_y_offset, 0);
+ add_label_to_sizer (offset, this, _("%"), false);
+ grid->Add (offset, wxGBPosition (r, 1));
+ ++r;
- {
- add_label_to_sizer (grid, this, _("Y Scale"), true, wxGBPosition (r, 0));
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _y_scale = new wxSpinCtrl (this);
- s->Add (_y_scale);
- add_label_to_sizer (s, this, _("%"), false);
- grid->Add (s, wxGBPosition (r, 1));
- ++r;
- }
+ add_label_to_sizer (grid, this, _("Scale"), true, wxGBPosition (r, 0));
+ wxBoxSizer* scale = new wxBoxSizer (wxHORIZONTAL);
+ add_label_to_sizer (scale, this, _("X"), true);
+ _x_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
+ scale->Add (_x_scale, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP);
+ pc = new wxStaticText (this, wxID_ANY, _("%"));
+ scale->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2);
+ add_label_to_sizer (scale, this, _("Y"), true);
+ _y_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
+ scale->Add (_y_scale, 0);
+ add_label_to_sizer (scale, this, _("%"), false);
+ grid->Add (scale, wxGBPosition (r, 1));
+ ++r;
{
add_label_to_sizer (grid, this, _("Line spacing"), true, wxGBPosition (r, 0));
_y_scale->SetRange (10, 1000);
_line_spacing->SetRange (10, 1000);
+ content_selection_changed ();
+
_reference->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::reference_clicked, this));
_use->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::use_toggled, this));
_type->Bind (wxEVT_CHOICE, boost::bind (&TextPanel::type_changed, this));