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) | |
void | SetDisplayedValue (double aValue) |
double | GetValue () const |
int | GetUnitsSelection () const |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
Private Member Functions | |
void | sliderChanged (wxCommandEvent &aEvent) |
void | unitsChanged (wxCommandEvent &aEvent) |
void | spinnerChanged (wxSpinEvent &aEvent) |
Private Attributes | |
double * | m_value |
ZOOM_CORRECTION_RULER * | m_ruler |
wxSlider * | m_slider |
wxSpinCtrl * | m_spinner |
wxChoice * | m_unitsChoice |
Control to calibrate screen zoom to match real-world size.
Definition at line 47 of file zoom_correction_ctrl.h.
ZOOM_CORRECTION_CTRL::ZOOM_CORRECTION_CTRL | ( | wxWindow * | aParent, |
double & | aValue ) |
Definition at line 165 of file zoom_correction_ctrl.cpp.
References KIUI::GetStdMargin(), m_ruler, m_slider, m_spinner, m_unitsChoice, m_value, sliderChanged(), spinnerChanged(), and unitsChanged().
int ZOOM_CORRECTION_CTRL::GetUnitsSelection | ( | ) | const |
Definition at line 221 of file zoom_correction_ctrl.cpp.
References m_unitsChoice.
Referenced by ZOOM_CORRECTION_RULER::OnPaint().
double ZOOM_CORRECTION_CTRL::GetValue | ( | ) | const |
Definition at line 216 of file zoom_correction_ctrl.cpp.
References m_slider.
Referenced by ZOOM_CORRECTION_RULER::OnPaint(), sliderChanged(), and TransferDataFromWindow().
void ZOOM_CORRECTION_CTRL::SetDisplayedValue | ( | double | aValue | ) |
Definition at line 209 of file zoom_correction_ctrl.cpp.
|
private |
Definition at line 241 of file zoom_correction_ctrl.cpp.
References GetValue(), m_ruler, m_slider, m_spinner, and m_value.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 248 of file zoom_correction_ctrl.cpp.
References m_ruler, m_slider, m_spinner, and m_value.
Referenced by ZOOM_CORRECTION_CTRL().
|
override |
Definition at line 235 of file zoom_correction_ctrl.cpp.
References GetValue(), and m_value.
|
override |
|
private |
Definition at line 255 of file zoom_correction_ctrl.cpp.
References m_ruler.
Referenced by ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 64 of file zoom_correction_ctrl.h.
Referenced by SetDisplayedValue(), sliderChanged(), spinnerChanged(), TransferDataToWindow(), unitsChanged(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 65 of file zoom_correction_ctrl.h.
Referenced by GetValue(), SetDisplayedValue(), sliderChanged(), spinnerChanged(), TransferDataToWindow(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 66 of file zoom_correction_ctrl.h.
Referenced by SetDisplayedValue(), sliderChanged(), spinnerChanged(), TransferDataToWindow(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 67 of file zoom_correction_ctrl.h.
Referenced by GetUnitsSelection(), and ZOOM_CORRECTION_CTRL().
|
private |
Definition at line 63 of file zoom_correction_ctrl.h.
Referenced by sliderChanged(), spinnerChanged(), TransferDataFromWindow(), TransferDataToWindow(), and ZOOM_CORRECTION_CTRL().