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)
 
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_RULERm_ruler
 
wxSlider * m_slider
 
wxSpinCtrl * m_spinner
 
wxChoice * m_unitsChoice
 

Detailed Description

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

Definition at line 47 of file zoom_correction_ctrl.h.

Constructor & Destructor Documentation

◆ ZOOM_CORRECTION_CTRL()

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

Member Function Documentation

◆ GetUnitsSelection()

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

◆ GetValue()

double ZOOM_CORRECTION_CTRL::GetValue ( ) const

◆ SetDisplayedValue()

void ZOOM_CORRECTION_CTRL::SetDisplayedValue ( double aValue)

Definition at line 209 of file zoom_correction_ctrl.cpp.

References m_ruler, m_slider, and m_spinner.

◆ sliderChanged()

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

◆ spinnerChanged()

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

◆ TransferDataFromWindow()

bool ZOOM_CORRECTION_CTRL::TransferDataFromWindow ( )
override

Definition at line 235 of file zoom_correction_ctrl.cpp.

References GetValue(), and m_value.

◆ TransferDataToWindow()

bool ZOOM_CORRECTION_CTRL::TransferDataToWindow ( )
override

Definition at line 227 of file zoom_correction_ctrl.cpp.

References m_ruler, m_slider, m_spinner, and m_value.

◆ unitsChanged()

void ZOOM_CORRECTION_CTRL::unitsChanged ( wxCommandEvent & aEvent)
private

Definition at line 255 of file zoom_correction_ctrl.cpp.

References m_ruler.

Referenced by ZOOM_CORRECTION_CTRL().

Member Data Documentation

◆ m_ruler

◆ m_slider

wxSlider* ZOOM_CORRECTION_CTRL::m_slider
private

◆ m_spinner

wxSpinCtrl* ZOOM_CORRECTION_CTRL::m_spinner
private

◆ m_unitsChoice

wxChoice* ZOOM_CORRECTION_CTRL::m_unitsChoice
private

Definition at line 67 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: