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

Custom widget to handle quick component values modification and simulation on the fly. More...

#include <tuner_slider.h>

Inheritance diagram for TUNER_SLIDER:
TUNER_SLIDER_BASE

Public Member Functions

 TUNER_SLIDER (SIMULATOR_FRAME_UI *aPanel, wxWindow *aParent, const SCH_SHEET_PATH &aSheetPath, SCH_SYMBOL *aSymbol)
 
wxString GetSymbolRef () const
 
const SPICE_VALUEGetMin () const
 
const SPICE_VALUEGetMax () const
 
const SPICE_VALUEGetValue () const
 
KIID GetSymbol (SCH_SHEET_PATH *aSheetPath) const
 
bool SetValue (const SPICE_VALUE &aVal)
 
bool SetMin (const SPICE_VALUE &aVal)
 
bool SetMax (const SPICE_VALUE &aVal)
 
void ShowChangedLanguage ()
 

Protected Attributes

wxPanel * m_panel1
 
wxStaticText * m_name
 
wxStaticLine * m_staticline4
 
BITMAP_BUTTONm_e24
 
BITMAP_BUTTONm_separator
 
BITMAP_BUTTONm_e48
 
BITMAP_BUTTONm_e96
 
BITMAP_BUTTONm_e192
 
wxSlider * m_slider
 
wxTextCtrl * m_maxText
 
wxTextCtrl * m_valueText
 
wxTextCtrl * m_minText
 
wxButton * m_saveBtn
 
STD_BITMAP_BUTTONm_closeBtn
 

Private Member Functions

void updateComponentValue ()
 
void updateSlider ()
 
void updateValueText ()
 
void updateMax ()
 
void updateValue ()
 
void updateMin ()
 
void onESeries (wxCommandEvent &event) override
 
void onClose (wxCommandEvent &event) override
 
void onSave (wxCommandEvent &event) override
 
void onSliderScroll (wxScrollEvent &event) override
 
void onSliderChanged (wxScrollEvent &event) override
 
void onMaxKillFocus (wxFocusEvent &event) override
 
void onValueKillFocus (wxFocusEvent &event) override
 
void onMinKillFocus (wxFocusEvent &event) override
 
void onMaxTextEnter (wxCommandEvent &event) override
 
void onValueTextEnter (wxCommandEvent &event) override
 
void onMinTextEnter (wxCommandEvent &event) override
 

Private Attributes

KIID m_symbol
 
SCH_SHEET_PATH m_sheetPath
 
wxString m_ref
 
SPICE_VALUE m_min
 
SPICE_VALUE m_max
 
SPICE_VALUE m_value
 
SIMULATOR_FRAME_UIm_frame
 

Detailed Description

Custom widget to handle quick component values modification and simulation on the fly.

Definition at line 43 of file tuner_slider.h.

Constructor & Destructor Documentation

◆ TUNER_SLIDER()

Member Function Documentation

◆ GetMax()

const SPICE_VALUE & TUNER_SLIDER::GetMax ( ) const
inline

Definition at line 59 of file tuner_slider.h.

References m_max.

◆ GetMin()

const SPICE_VALUE & TUNER_SLIDER::GetMin ( ) const
inline

Definition at line 54 of file tuner_slider.h.

References m_min.

◆ GetSymbol()

KIID TUNER_SLIDER::GetSymbol ( SCH_SHEET_PATH aSheetPath) const
inline

Definition at line 69 of file tuner_slider.h.

References m_sheetPath, and m_symbol.

◆ GetSymbolRef()

wxString TUNER_SLIDER::GetSymbolRef ( ) const
inline

Definition at line 49 of file tuner_slider.h.

References m_ref.

Referenced by onSave().

◆ GetValue()

const SPICE_VALUE & TUNER_SLIDER::GetValue ( ) const
inline

Definition at line 64 of file tuner_slider.h.

References m_value.

◆ onClose()

void TUNER_SLIDER::onClose ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 335 of file tuner_slider.cpp.

References m_frame, and SIMULATOR_FRAME_UI::RemoveTuner().

◆ onESeries()

void TUNER_SLIDER::onESeries ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onMaxKillFocus()

void TUNER_SLIDER::onMaxKillFocus ( wxFocusEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 362 of file tuner_slider.cpp.

References updateMax().

◆ onMaxTextEnter()

void TUNER_SLIDER::onMaxTextEnter ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 383 of file tuner_slider.cpp.

References updateMax().

◆ onMinKillFocus()

void TUNER_SLIDER::onMinKillFocus ( wxFocusEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 376 of file tuner_slider.cpp.

References updateMin().

◆ onMinTextEnter()

void TUNER_SLIDER::onMinTextEnter ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 396 of file tuner_slider.cpp.

References updateMin().

◆ onSave()

void TUNER_SLIDER::onSave ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onSliderChanged()

void TUNER_SLIDER::onSliderChanged ( wxScrollEvent &  event)
overrideprivatevirtual

◆ onSliderScroll()

void TUNER_SLIDER::onSliderScroll ( wxScrollEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 347 of file tuner_slider.cpp.

References m_max, m_min, TUNER_SLIDER_BASE::m_slider, m_value, and updateValueText().

◆ onValueKillFocus()

void TUNER_SLIDER::onValueKillFocus ( wxFocusEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 369 of file tuner_slider.cpp.

References updateValue().

◆ onValueTextEnter()

void TUNER_SLIDER::onValueTextEnter ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from TUNER_SLIDER_BASE.

Definition at line 390 of file tuner_slider.cpp.

References updateValue().

◆ SetMax()

bool TUNER_SLIDER::SetMax ( const SPICE_VALUE aVal)

◆ SetMin()

bool TUNER_SLIDER::SetMin ( const SPICE_VALUE aVal)

◆ SetValue()

bool TUNER_SLIDER::SetValue ( const SPICE_VALUE aVal)

Definition at line 140 of file tuner_slider.cpp.

References m_max, m_min, m_value, updateComponentValue(), updateSlider(), and updateValueText().

Referenced by SetMax(), SetMin(), and updateValue().

◆ ShowChangedLanguage()

void TUNER_SLIDER::ShowChangedLanguage ( )

Definition at line 112 of file tuner_slider.cpp.

References _, TUNER_SLIDER_BASE::m_name, and m_ref.

◆ updateComponentValue()

void TUNER_SLIDER::updateComponentValue ( )
private

Definition at line 192 of file tuner_slider.cpp.

References m_frame.

Referenced by onESeries(), onSliderChanged(), and SetValue().

◆ updateMax()

void TUNER_SLIDER::updateMax ( )
private

◆ updateMin()

void TUNER_SLIDER::updateMin ( )
private

◆ updateSlider()

void TUNER_SLIDER::updateSlider ( )
private

Definition at line 198 of file tuner_slider.cpp.

References KiROUND(), m_max, m_min, TUNER_SLIDER_BASE::m_slider, and m_value.

Referenced by SetMax(), SetMin(), SetValue(), and TUNER_SLIDER().

◆ updateValue()

void TUNER_SLIDER::updateValue ( )
private

◆ updateValueText()

Member Data Documentation

◆ m_closeBtn

STD_BITMAP_BUTTON* TUNER_SLIDER_BASE::m_closeBtn
protectedinherited

◆ m_e192

BITMAP_BUTTON* TUNER_SLIDER_BASE::m_e192
protectedinherited

◆ m_e24

BITMAP_BUTTON* TUNER_SLIDER_BASE::m_e24
protectedinherited

◆ m_e48

BITMAP_BUTTON* TUNER_SLIDER_BASE::m_e48
protectedinherited

◆ m_e96

BITMAP_BUTTON* TUNER_SLIDER_BASE::m_e96
protectedinherited

◆ m_frame

SIMULATOR_FRAME_UI* TUNER_SLIDER::m_frame
private

Definition at line 113 of file tuner_slider.h.

Referenced by onClose(), onSave(), TUNER_SLIDER(), and updateComponentValue().

◆ m_max

SPICE_VALUE TUNER_SLIDER::m_max
private

◆ m_maxText

wxTextCtrl* TUNER_SLIDER_BASE::m_maxText
protectedinherited

◆ m_min

SPICE_VALUE TUNER_SLIDER::m_min
private

◆ m_minText

wxTextCtrl* TUNER_SLIDER_BASE::m_minText
protectedinherited

◆ m_name

wxStaticText* TUNER_SLIDER_BASE::m_name
protectedinherited

◆ m_panel1

wxPanel* TUNER_SLIDER_BASE::m_panel1
protectedinherited

Definition at line 44 of file tuner_slider_base.h.

Referenced by TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().

◆ m_ref

wxString TUNER_SLIDER::m_ref
private

Definition at line 107 of file tuner_slider.h.

Referenced by GetSymbolRef(), ShowChangedLanguage(), and TUNER_SLIDER().

◆ m_saveBtn

wxButton* TUNER_SLIDER_BASE::m_saveBtn
protectedinherited

◆ m_separator

BITMAP_BUTTON* TUNER_SLIDER_BASE::m_separator
protectedinherited

Definition at line 48 of file tuner_slider_base.h.

Referenced by TUNER_SLIDER(), and TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().

◆ m_sheetPath

SCH_SHEET_PATH TUNER_SLIDER::m_sheetPath
private

Definition at line 106 of file tuner_slider.h.

Referenced by GetSymbol(), and onSave().

◆ m_slider

wxSlider* TUNER_SLIDER_BASE::m_slider
protectedinherited

◆ m_staticline4

wxStaticLine* TUNER_SLIDER_BASE::m_staticline4
protectedinherited

Definition at line 46 of file tuner_slider_base.h.

Referenced by TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().

◆ m_symbol

KIID TUNER_SLIDER::m_symbol
private

Definition at line 105 of file tuner_slider.h.

Referenced by GetSymbol(), and onSave().

◆ m_value

◆ m_valueText

wxTextCtrl* TUNER_SLIDER_BASE::m_valueText
protectedinherited

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