![]() |
KiCad PCB EDA Suite
|
Object to edit/enter a coordinate (pair of values) ( INCHES or MM ) in dialog boxes. More...
#include <dialog_helpers.h>
Public Member Functions | |
EDA_POSITION_CTRL (wxWindow *parent, const wxString &title, const wxPoint &pos_to_edit, EDA_UNITS user_unit, wxBoxSizer *BoxSizer) | |
~EDA_POSITION_CTRL () | |
void | Enable (bool x_win_on, bool y_win_on) |
void | SetValue (int x_value, int y_value) |
wxPoint | GetValue () const |
Public Attributes | |
EDA_UNITS | m_UserUnit |
wxTextCtrl * | m_FramePosX |
wxTextCtrl * | m_FramePosY |
Private Attributes | |
wxStaticText * | m_TextX |
wxStaticText * | m_TextY |
Object to edit/enter a coordinate (pair of values) ( INCHES or MM ) in dialog boxes.
Definition at line 94 of file dialog_helpers.h.
EDA_POSITION_CTRL::EDA_POSITION_CTRL | ( | wxWindow * | parent, |
const wxString & | title, | ||
const wxPoint & | pos_to_edit, | ||
EDA_UNITS | user_unit, | ||
wxBoxSizer * | BoxSizer | ||
) |
Definition at line 33 of file eda_size_ctrl.cpp.
References _, m_FramePosX, m_FramePosY, m_TextX, m_TextY, m_UserUnit, and SetValue().
EDA_POSITION_CTRL::~EDA_POSITION_CTRL | ( | ) |
Definition at line 54 of file eda_size_ctrl.cpp.
References m_FramePosX, m_FramePosY, m_TextX, and m_TextY.
void EDA_POSITION_CTRL::Enable | ( | bool | x_win_on, |
bool | y_win_on | ||
) |
wxPoint EDA_POSITION_CTRL::GetValue | ( | ) | const |
Definition at line 65 of file eda_size_ctrl.cpp.
References m_FramePosX, m_FramePosY, m_UserUnit, and ValueFromString().
Referenced by EDA_SIZE_CTRL::GetValue().
void EDA_POSITION_CTRL::SetValue | ( | int | x_value, |
int | y_value | ||
) |
Definition at line 79 of file eda_size_ctrl.cpp.
References m_FramePosX, m_FramePosY, m_UserUnit, and StringFromValue().
Referenced by EDA_POSITION_CTRL(), and MWAVE_POLYGONAL_SHAPE_DLG::ReadDataShapeDescr().
wxTextCtrl* EDA_POSITION_CTRL::m_FramePosX |
Definition at line 108 of file dialog_helpers.h.
Referenced by EDA_POSITION_CTRL(), Enable(), GetValue(), SetValue(), and ~EDA_POSITION_CTRL().
wxTextCtrl* EDA_POSITION_CTRL::m_FramePosY |
Definition at line 109 of file dialog_helpers.h.
Referenced by EDA_POSITION_CTRL(), Enable(), GetValue(), SetValue(), and ~EDA_POSITION_CTRL().
|
private |
Definition at line 112 of file dialog_helpers.h.
Referenced by EDA_POSITION_CTRL(), and ~EDA_POSITION_CTRL().
|
private |
Definition at line 113 of file dialog_helpers.h.
Referenced by EDA_POSITION_CTRL(), and ~EDA_POSITION_CTRL().
EDA_UNITS EDA_POSITION_CTRL::m_UserUnit |
Definition at line 106 of file dialog_helpers.h.
Referenced by EDA_POSITION_CTRL(), GetValue(), and SetValue().