|
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 |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
Private Member Functions | |
| void | unitsChanged (wxCommandEvent &aEvent) |
| void | spinnerChanged (wxSpinEvent &aEvent) |
| void | autoPressed (wxCommandEvent &aEvent) |
Private Attributes | |
| double | m_baseValue |
| double * | m_value |
| 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.
Definition at line 48 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, m_value, spinnerChanged(), and unitsChanged().
|
private |
Definition at line 235 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 201 of file zoom_correction_ctrl.cpp.
References m_unitsChoice.
Referenced by ZOOM_CORRECTION_RULER::OnPaint().
| double ZOOM_CORRECTION_CTRL::GetValue | ( | ) | const |
Definition at line 195 of file zoom_correction_ctrl.cpp.
References m_baseValue, and m_spinner.
Referenced by ZOOM_CORRECTION_RULER::OnPaint(), and TransferDataFromWindow().
| void ZOOM_CORRECTION_CTRL::SetDisplayedValue | ( | double | aValue | ) |
Definition at line 188 of file zoom_correction_ctrl.cpp.
References m_baseValue, m_ruler, and m_spinner.
|
private |
Definition at line 222 of file zoom_correction_ctrl.cpp.
References m_baseValue, m_ruler, m_spinner, and m_value.
Referenced by ZOOM_CORRECTION_CTRL().
|
override |
Definition at line 215 of file zoom_correction_ctrl.cpp.
References GetValue(), and m_value.
|
override |
Definition at line 207 of file zoom_correction_ctrl.cpp.
References m_baseValue, m_ruler, m_spinner, and m_value.
|
private |
Definition at line 229 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 64 of file zoom_correction_ctrl.h.
Referenced by GetValue(), SetDisplayedValue(), spinnerChanged(), TransferDataToWindow(), 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(), TransferDataToWindow(), unitsChanged(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 69 of file zoom_correction_ctrl.h.
Referenced by autoPressed(), GetValue(), SetDisplayedValue(), spinnerChanged(), TransferDataToWindow(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 70 of file zoom_correction_ctrl.h.
Referenced by GetUnitsSelection(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 65 of file zoom_correction_ctrl.h.
Referenced by spinnerChanged(), TransferDataFromWindow(), TransferDataToWindow(), and ZOOM_CORRECTION_CTRL().