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
 
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_RULERm_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.

Definition at line 48 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 235 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 201 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 195 of file zoom_correction_ctrl.cpp.

References m_baseValue, and m_spinner.

Referenced by ZOOM_CORRECTION_RULER::OnPaint(), and TransferDataFromWindow().

◆ SetDisplayedValue()

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.

◆ spinnerChanged()

void ZOOM_CORRECTION_CTRL::spinnerChanged ( wxSpinEvent & aEvent)
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().

◆ TransferDataFromWindow()

bool ZOOM_CORRECTION_CTRL::TransferDataFromWindow ( )
override

Definition at line 215 of file zoom_correction_ctrl.cpp.

References GetValue(), and m_value.

◆ TransferDataToWindow()

bool ZOOM_CORRECTION_CTRL::TransferDataToWindow ( )
override

Definition at line 207 of file zoom_correction_ctrl.cpp.

References m_baseValue, m_ruler, m_spinner, and m_value.

◆ unitsChanged()

void ZOOM_CORRECTION_CTRL::unitsChanged ( wxCommandEvent & aEvent)
private

Definition at line 229 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

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

◆ m_value

double* ZOOM_CORRECTION_CTRL::m_value
private

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