KiCad PCB EDA Suite
|
Custom widget to handle quick component values modification and simulation on the fly. More...
#include <tuner_slider.h>
Public Member Functions | |
TUNER_SLIDER (SIMULATOR_FRAME_UI *aPanel, wxWindow *aParent, const SCH_SHEET_PATH &aSheetPath, SCH_SYMBOL *aSymbol) | |
wxString | GetSymbolRef () const |
const SPICE_VALUE & | GetMin () const |
const SPICE_VALUE & | GetMax () const |
const SPICE_VALUE & | GetValue () 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_BUTTON * | m_e24 |
BITMAP_BUTTON * | m_separator |
BITMAP_BUTTON * | m_e48 |
BITMAP_BUTTON * | m_e96 |
BITMAP_BUTTON * | m_e192 |
wxSlider * | m_slider |
wxTextCtrl * | m_maxText |
wxTextCtrl * | m_valueText |
wxTextCtrl * | m_minText |
wxButton * | m_saveBtn |
STD_BITMAP_BUTTON * | m_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_UI * | m_frame |
Custom widget to handle quick component values modification and simulation on the fly.
Definition at line 43 of file tuner_slider.h.
TUNER_SLIDER::TUNER_SLIDER | ( | SIMULATOR_FRAME_UI * | aPanel, |
wxWindow * | aParent, | ||
const SCH_SHEET_PATH & | aSheetPath, | ||
SCH_SYMBOL * | aSymbol | ||
) |
Definition at line 43 of file tuner_slider.cpp.
References _, NETLIST_EXPORTER_SPICE::FindItem(), SIM_MODEL::GetDeviceInfo(), SIMULATOR_FRAME_UI::GetExporter(), SIM_MODEL::GetTunerParam(), SIM_MODEL::GetType(), SIM_MODEL::GetTypeInfo(), KiBitmapBundle(), TUNER_SLIDER_BASE::m_closeBtn, TUNER_SLIDER_BASE::m_e192, TUNER_SLIDER_BASE::m_e24, TUNER_SLIDER_BASE::m_e48, TUNER_SLIDER_BASE::m_e96, m_frame, m_max, TUNER_SLIDER_BASE::m_maxText, m_min, TUNER_SLIDER_BASE::m_minText, TUNER_SLIDER_BASE::m_name, m_ref, TUNER_SLIDER_BASE::m_separator, m_value, SPICE_ITEM::model, BITMAP_BUTTON::SetBitmap(), STD_BITMAP_BUTTON::SetBitmap(), BITMAP_BUTTON::SetIsCheckButton(), BITMAP_BUTTON::SetIsSeparator(), SPICE_VALUE::ToOrigString(), SIM_VALUE::ToSpice(), updateSlider(), updateValueText(), and SIM_MODEL::PARAM::value.
|
inline |
Definition at line 59 of file tuner_slider.h.
References m_max.
|
inline |
Definition at line 54 of file tuner_slider.h.
References m_min.
|
inline |
Definition at line 69 of file tuner_slider.h.
References m_sheetPath, and m_symbol.
|
inline |
|
inline |
Definition at line 64 of file tuner_slider.h.
References m_value.
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 333 of file tuner_slider.cpp.
References m_frame, and SIMULATOR_FRAME_UI::RemoveTuner().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 119 of file tuner_slider.cpp.
References TUNER_SLIDER_BASE::m_e192, TUNER_SLIDER_BASE::m_e24, TUNER_SLIDER_BASE::m_e48, TUNER_SLIDER_BASE::m_e96, TUNER_SLIDER_BASE::m_valueText, updateComponentValue(), and updateValueText().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 360 of file tuner_slider.cpp.
References updateMax().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 381 of file tuner_slider.cpp.
References updateMax().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 374 of file tuner_slider.cpp.
References updateMin().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 394 of file tuner_slider.cpp.
References updateMin().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 339 of file tuner_slider.cpp.
References GetSymbolRef(), m_frame, m_sheetPath, m_symbol, TUNER_SLIDER_BASE::m_valueText, and SIMULATOR_FRAME_UI::UpdateTunerValue().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 352 of file tuner_slider.cpp.
References m_max, m_min, TUNER_SLIDER_BASE::m_slider, m_value, updateComponentValue(), and updateValueText().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 345 of file tuner_slider.cpp.
References m_max, m_min, TUNER_SLIDER_BASE::m_slider, m_value, and updateValueText().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 367 of file tuner_slider.cpp.
References updateValue().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 388 of file tuner_slider.cpp.
References updateValue().
bool TUNER_SLIDER::SetMax | ( | const SPICE_VALUE & | aVal | ) |
Definition at line 173 of file tuner_slider.cpp.
References m_max, TUNER_SLIDER_BASE::m_maxText, m_min, m_value, SetValue(), SPICE_VALUE::ToOrigString(), and updateSlider().
Referenced by updateMax().
bool TUNER_SLIDER::SetMin | ( | const SPICE_VALUE & | aVal | ) |
Definition at line 156 of file tuner_slider.cpp.
References m_max, m_min, TUNER_SLIDER_BASE::m_minText, m_value, SetValue(), SPICE_VALUE::ToOrigString(), and updateSlider().
Referenced by updateMin().
bool TUNER_SLIDER::SetValue | ( | const SPICE_VALUE & | aVal | ) |
Definition at line 138 of file tuner_slider.cpp.
References m_max, m_min, m_value, updateComponentValue(), updateSlider(), and updateValueText().
Referenced by SetMax(), SetMin(), and updateValue().
void TUNER_SLIDER::ShowChangedLanguage | ( | ) |
Definition at line 113 of file tuner_slider.cpp.
References _, TUNER_SLIDER_BASE::m_name, and m_ref.
|
private |
Definition at line 190 of file tuner_slider.cpp.
References m_frame.
Referenced by onESeries(), onSliderChanged(), and SetValue().
|
private |
Definition at line 288 of file tuner_slider.cpp.
References m_max, TUNER_SLIDER_BASE::m_maxText, SetMax(), and SPICE_VALUE::ToOrigString().
Referenced by onMaxKillFocus(), and onMaxTextEnter().
|
private |
Definition at line 318 of file tuner_slider.cpp.
References m_min, TUNER_SLIDER_BASE::m_minText, SetMin(), and SPICE_VALUE::ToOrigString().
Referenced by onMinKillFocus(), and onMinTextEnter().
|
private |
Definition at line 196 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().
|
private |
Definition at line 303 of file tuner_slider.cpp.
References m_value, TUNER_SLIDER_BASE::m_valueText, SetValue(), and SPICE_VALUE::ToOrigString().
Referenced by onValueKillFocus(), and onValueTextEnter().
|
private |
Definition at line 204 of file tuner_slider.cpp.
References e_24, BITMAP_BUTTON::IsChecked(), TUNER_SLIDER_BASE::m_e192, TUNER_SLIDER_BASE::m_e24, TUNER_SLIDER_BASE::m_e48, TUNER_SLIDER_BASE::m_e96, m_value, TUNER_SLIDER_BASE::m_valueText, alg::remove_duplicates(), SPICE_VALUE::StripZeros(), and SPICE_VALUE::ToNormalizedDouble().
Referenced by onESeries(), onSliderChanged(), onSliderScroll(), SetValue(), and TUNER_SLIDER().
|
protectedinherited |
Definition at line 57 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 51 of file tuner_slider_base.h.
Referenced by onESeries(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateValueText(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 47 of file tuner_slider_base.h.
Referenced by onESeries(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateValueText(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 49 of file tuner_slider_base.h.
Referenced by onESeries(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateValueText(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 50 of file tuner_slider_base.h.
Referenced by onESeries(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateValueText(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
private |
Definition at line 113 of file tuner_slider.h.
Referenced by onClose(), onSave(), TUNER_SLIDER(), and updateComponentValue().
|
private |
Definition at line 110 of file tuner_slider.h.
Referenced by GetMax(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateMax(), and updateSlider().
|
protectedinherited |
Definition at line 53 of file tuner_slider_base.h.
Referenced by SetMax(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateMax(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
private |
Definition at line 109 of file tuner_slider.h.
Referenced by GetMin(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateMin(), and updateSlider().
|
protectedinherited |
Definition at line 55 of file tuner_slider_base.h.
Referenced by SetMin(), TUNER_SLIDER(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateMin(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 45 of file tuner_slider_base.h.
Referenced by ShowChangedLanguage(), TUNER_SLIDER(), and TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 44 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().
|
private |
Definition at line 107 of file tuner_slider.h.
Referenced by GetSymbolRef(), ShowChangedLanguage(), and TUNER_SLIDER().
|
protectedinherited |
Definition at line 56 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 48 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER(), and TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().
|
private |
Definition at line 106 of file tuner_slider.h.
Referenced by GetSymbol(), and onSave().
|
protectedinherited |
Definition at line 52 of file tuner_slider_base.h.
Referenced by onSliderChanged(), onSliderScroll(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateSlider(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 46 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE::TUNER_SLIDER_BASE().
|
private |
Definition at line 105 of file tuner_slider.h.
Referenced by GetSymbol(), and onSave().
|
private |
Definition at line 111 of file tuner_slider.h.
Referenced by GetValue(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateSlider(), updateValue(), and updateValueText().
|
protectedinherited |
Definition at line 54 of file tuner_slider_base.h.
Referenced by onESeries(), onSave(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateValue(), updateValueText(), and TUNER_SLIDER_BASE::~TUNER_SLIDER_BASE().