|
KiCad PCB EDA Suite
|
Control to calibrate screen zoom to match real-world size. More...
#include <zoom_correction_ctrl.h>
Public Member Functions | |
| ZOOM_CORRECTION_CTRL (wxWindow *aParent, double aValue, double aBaseValue) | |
| void | SetDisplayedValue (double aValue) |
| double | GetValue () const |
| int | GetUnitsSelection () const |
Private Member Functions | |
| void | unitsChanged (wxCommandEvent &aEvent) |
| void | spinnerChanged (wxSpinEvent &aEvent) |
| void | autoPressed (wxCommandEvent &aEvent) |
Private Attributes | |
| double | m_baseValue |
| ZOOM_CORRECTION_RULER * | m_ruler |
| wxStaticText * | m_label |
| wxButton * | m_autoButton |
| wxSpinCtrl * | m_spinner |
| wxChoice * | m_unitsChoice |
Control to calibrate screen zoom to match real-world size.
Keeps no handle on the setting it edits so that an abandoned dialog leaves it untouched; the owner reads GetValue() once the edit is accepted.
Definition at line 51 of file zoom_correction_ctrl.h.
| ZOOM_CORRECTION_CTRL::ZOOM_CORRECTION_CTRL | ( | wxWindow * | aParent, |
| double | aValue, | ||
| double | aBaseValue ) |
Definition at line 139 of file zoom_correction_ctrl.cpp.
References _, autoPressed(), KIUI::GetStdMargin(), m_autoButton, m_baseValue, m_label, m_ruler, m_spinner, m_unitsChoice, spinnerChanged(), and unitsChanged().
|
private |
Definition at line 218 of file zoom_correction_ctrl.cpp.
References m_ruler, and m_spinner.
Referenced by ZOOM_CORRECTION_CTRL().
| int ZOOM_CORRECTION_CTRL::GetUnitsSelection | ( | ) | const |
Definition at line 200 of file zoom_correction_ctrl.cpp.
References m_unitsChoice.
Referenced by ZOOM_CORRECTION_RULER::OnPaint().
| double ZOOM_CORRECTION_CTRL::GetValue | ( | ) | const |
Definition at line 194 of file zoom_correction_ctrl.cpp.
References m_baseValue, and m_spinner.
Referenced by ZOOM_CORRECTION_RULER::OnPaint().
| void ZOOM_CORRECTION_CTRL::SetDisplayedValue | ( | double | aValue | ) |
Definition at line 187 of file zoom_correction_ctrl.cpp.
References m_baseValue, m_ruler, and m_spinner.
|
private |
Definition at line 206 of file zoom_correction_ctrl.cpp.
References m_ruler.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 212 of file zoom_correction_ctrl.cpp.
References m_ruler.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 68 of file zoom_correction_ctrl.h.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 65 of file zoom_correction_ctrl.h.
Referenced by GetValue(), SetDisplayedValue(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 67 of file zoom_correction_ctrl.h.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 66 of file zoom_correction_ctrl.h.
Referenced by autoPressed(), SetDisplayedValue(), spinnerChanged(), unitsChanged(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 69 of file zoom_correction_ctrl.h.
Referenced by autoPressed(), GetValue(), SetDisplayedValue(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 70 of file zoom_correction_ctrl.h.
Referenced by GetUnitsSelection(), and ZOOM_CORRECTION_CTRL().