KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ZOOM_CORRECTION_CTRL Class Reference

Control to calibrate screen zoom to match real-world size. More...

#include <zoom_correction_ctrl.h>

Inheritance diagram for ZOOM_CORRECTION_CTRL:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ZOOM_CORRECTION_CTRL()

ZOOM_CORRECTION_CTRL::ZOOM_CORRECTION_CTRL ( wxWindow * aParent,
double aValue,
double aBaseValue )

Member Function Documentation

◆ autoPressed()

void ZOOM_CORRECTION_CTRL::autoPressed ( wxCommandEvent & aEvent)
private

Definition at line 218 of file zoom_correction_ctrl.cpp.

References m_ruler, and m_spinner.

Referenced by ZOOM_CORRECTION_CTRL().

◆ GetUnitsSelection()

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().

◆ GetValue()

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().

◆ SetDisplayedValue()

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.

◆ spinnerChanged()

void ZOOM_CORRECTION_CTRL::spinnerChanged ( wxSpinEvent & aEvent)
private

Definition at line 206 of file zoom_correction_ctrl.cpp.

References m_ruler.

Referenced by ZOOM_CORRECTION_CTRL().

◆ unitsChanged()

void ZOOM_CORRECTION_CTRL::unitsChanged ( wxCommandEvent & aEvent)
private

Definition at line 212 of file zoom_correction_ctrl.cpp.

References m_ruler.

Referenced by ZOOM_CORRECTION_CTRL().

Member Data Documentation

◆ m_autoButton

wxButton* ZOOM_CORRECTION_CTRL::m_autoButton
private

Definition at line 68 of file zoom_correction_ctrl.h.

Referenced by ZOOM_CORRECTION_CTRL().

◆ m_baseValue

double ZOOM_CORRECTION_CTRL::m_baseValue
private

Definition at line 65 of file zoom_correction_ctrl.h.

Referenced by GetValue(), SetDisplayedValue(), and ZOOM_CORRECTION_CTRL().

◆ m_label

wxStaticText* ZOOM_CORRECTION_CTRL::m_label
private

Definition at line 67 of file zoom_correction_ctrl.h.

Referenced by ZOOM_CORRECTION_CTRL().

◆ m_ruler

ZOOM_CORRECTION_RULER* ZOOM_CORRECTION_CTRL::m_ruler
private

◆ m_spinner

wxSpinCtrl* ZOOM_CORRECTION_CTRL::m_spinner
private

◆ m_unitsChoice

wxChoice* ZOOM_CORRECTION_CTRL::m_unitsChoice
private

Definition at line 70 of file zoom_correction_ctrl.h.

Referenced by GetUnitsSelection(), and ZOOM_CORRECTION_CTRL().


The documentation for this class was generated from the following files: