12DIALOG_SET_OFFSET_BASE::DIALOG_SET_OFFSET_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 m_description =
new wxStaticText(
this, wxID_ANY,
_(
"Set a new value for this offset:"), wxDefaultPosition, wxDefaultSize, 0 );
23 wxFlexGridSizer* fgSizer2;
24 fgSizer2 =
new wxFlexGridSizer( 0, 5, 5, 0 );
25 fgSizer2->AddGrowableCol( 1 );
26 fgSizer2->SetFlexibleDirection( wxBOTH );
27 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29 m_xLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Offset X:"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
31 fgSizer2->Add(
m_xLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
33 m_xEntry =
new wxTextCtrl(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, 0 );
34 fgSizer2->Add(
m_xEntry, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
36 m_xUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizer2->Add(
m_xUnit, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
41 fgSizer2->Add( 10, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
43 m_clearX =
new wxButton(
this, wxID_ANY,
_(
"Reset"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
44 fgSizer2->Add(
m_clearX, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
46 m_yLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Offset Y:"), wxDefaultPosition, wxDefaultSize, 0 );
48 fgSizer2->Add(
m_yLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
50 m_yEntry =
new wxTextCtrl(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, 0 );
51 fgSizer2->Add(
m_yEntry, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
53 m_yUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
55 fgSizer2->Add(
m_yUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
58 fgSizer2->Add( 10, 0, 1, wxEXPAND, 5 );
60 m_clearY =
new wxButton(
this, wxID_ANY,
_(
"Reset"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
61 fgSizer2->Add(
m_clearY, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
64 bMainSizer->Add( fgSizer2, 1, wxEXPAND|wxALL, 5 );
66 wxBoxSizer* bSizerBottom;
67 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
69 m_polarCoords =
new wxCheckBox(
this, wxID_ANY,
_(
"Use polar coordinates"), wxDefaultPosition, wxDefaultSize, 0 );
71 bSizerBottom->Add(
m_polarCoords, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
74 bSizerBottom->Add( 40, 0, 1, wxEXPAND, 5 );
86 bMainSizer->Add( bSizerBottom, 0, wxEXPAND|wxTOP, 5 );
89 this->SetSizer( bMainSizer );
91 bMainSizer->Fit(
this );