34 EDA_UNITS user_unit, wxBoxSizer* BoxSizer )
38 m_TextX =
new wxStaticText( parent, -1, title + wxS(
" " ) +
_(
"X:" ) );
39 BoxSizer->Add(
m_TextX, 0, wxGROW | wxLEFT | wxRIGHT | wxTOP, 5 );
41 m_FramePosX =
new wxTextCtrl( parent, -1, wxEmptyString, wxDefaultPosition );
42 BoxSizer->Add(
m_FramePosX, 0, wxGROW | wxLEFT | wxRIGHT | wxBOTTOM, 5 );
44 m_TextY =
new wxStaticText( parent, -1, title + wxS(
" " ) +
_(
"Y:" ) );
45 BoxSizer->Add(
m_TextY, 0, wxGROW | wxLEFT | wxRIGHT | wxTOP, 5 );
47 m_FramePosY =
new wxTextCtrl( parent, -1, wxEmptyString );
48 BoxSizer->Add(
m_FramePosY, 0, wxGROW | wxLEFT | wxRIGHT | wxBOTTOM, 5 );
91 :
EDA_POSITION_CTRL( parent, title, wxPoint( aSize.x, aSize.y ), aUnit, aBoxSizer )
100 return wxSize( pos.x, pos.y );
EDA_SIZE_CTRL(wxWindow *parent, const wxString &title, const wxSize &size_to_edit, EDA_UNITS user_unit, wxBoxSizer *BoxSizer)
Implementation of conversion functions that require both schematic and board internal units.
void Enable(bool x_win_on, bool y_win_on)
Object to edit/enter a coordinate (pair of values) ( INCHES or MM ) in dialog boxes.
long long int ValueFromString(EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType)
Function ValueFromString converts aTextValue in aUnits to internal units used by the application.
Base window classes and related definitions.
Helper dialog and control classes.
EDA_POSITION_CTRL(wxWindow *parent, const wxString &title, const wxPoint &pos_to_edit, EDA_UNITS user_unit, wxBoxSizer *BoxSizer)
wxString StringFromValue(EDA_UNITS aUnits, double aValue, bool aAddUnitSymbol, EDA_DATA_TYPE aType)
Function StringFromValue returns the string from aValue according to units (inch, mm ....
void SetValue(int x_value, int y_value)