KiCad PCB EDA Suite
|
Custom widget to handle quick component values modification and simulation on the fly. More...
#include <tuner_slider.h>
Public Types | |
enum class | RUN_MODE { SINGLE , MULTI } |
Public Member Functions | |
TUNER_SLIDER (SIMULATOR_FRAME_UI *aPanel, wxWindow *aParent, const SCH_SHEET_PATH &aSheetPath, SCH_SYMBOL *aSymbol) | |
wxString | GetSymbolRef () const |
RUN_MODE | GetRunMode () const |
int | GetStepCount () 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 |
wxChoice * | m_modeChoice |
wxStaticText * | m_stepsLabel |
wxSpinCtrl * | m_stepCount |
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 | updateModeControls () |
void | updateMax () |
void | updateValue () |
void | updateMin () |
void | onESeries (wxCommandEvent &event) override |
void | onRunModeChanged (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 |
void | onStepsChanged (wxSpinEvent &event) override |
void | onStepsTextEnter (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 |
RUN_MODE | m_runMode |
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.
|
strong |
Enumerator | |
---|---|
SINGLE | |
MULTI |
Definition at line 46 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 44 of file tuner_slider.cpp.
References _, e_192, e_24, e_48, e_96, SIM_MODEL::GetDeviceInfo(), 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_modeChoice, TUNER_SLIDER_BASE::m_name, m_ref, m_runMode, TUNER_SLIDER_BASE::m_separator, m_sheetPath, TUNER_SLIDER_BASE::m_stepCount, m_symbol, m_value, SPICE_ITEM::model, SINGLE, small_trash, SIM_VALUE::ToSpice(), TUNER_SLIDER_BASE::TUNER_SLIDER_BASE(), updateModeControls(), updateSlider(), updateValueText(), and SIM_MODEL::PARAM::value.
|
inline |
Definition at line 72 of file tuner_slider.h.
References m_max.
|
inline |
Definition at line 67 of file tuner_slider.h.
References m_min.
|
inline |
Definition at line 60 of file tuner_slider.h.
References m_runMode.
int TUNER_SLIDER::GetStepCount | ( | ) | const |
Definition at line 129 of file tuner_slider.cpp.
References TUNER_SLIDER_BASE::m_stepCount.
|
inline |
Definition at line 82 of file tuner_slider.h.
References m_sheetPath, and m_symbol.
|
inline |
Definition at line 55 of file tuner_slider.h.
References m_ref.
Referenced by onSave(), and SIMULATOR_FRAME_UI::updateTrace().
|
inline |
Definition at line 77 of file tuner_slider.h.
References m_value.
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 410 of file tuner_slider.cpp.
References m_frame.
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 158 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 437 of file tuner_slider.cpp.
References updateMax().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 458 of file tuner_slider.cpp.
References updateMax().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 451 of file tuner_slider.cpp.
References updateMin().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 471 of file tuner_slider.cpp.
References updateMin().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 177 of file tuner_slider.cpp.
References TUNER_SLIDER_BASE::m_modeChoice, m_runMode, MULTI, SINGLE, updateComponentValue(), and updateModeControls().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 416 of file tuner_slider.cpp.
References GetSymbolRef(), m_frame, m_sheetPath, m_symbol, and TUNER_SLIDER_BASE::m_valueText.
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 429 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 422 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 477 of file tuner_slider.cpp.
References updateComponentValue().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 484 of file tuner_slider.cpp.
References TUNER_SLIDER_BASE::m_stepCount, and updateComponentValue().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 444 of file tuner_slider.cpp.
References updateValue().
|
overrideprivatevirtual |
Reimplemented from TUNER_SLIDER_BASE.
Definition at line 465 of file tuner_slider.cpp.
References updateValue().
bool TUNER_SLIDER::SetMax | ( | const SPICE_VALUE & | aVal | ) |
Definition at line 228 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 211 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 193 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 135 of file tuner_slider.cpp.
References _, TUNER_SLIDER_BASE::m_modeChoice, TUNER_SLIDER_BASE::m_name, m_ref, TUNER_SLIDER_BASE::m_stepsLabel, and updateModeControls().
|
private |
Definition at line 245 of file tuner_slider.cpp.
References m_frame.
Referenced by onESeries(), onRunModeChanged(), onSliderChanged(), onStepsChanged(), onStepsTextEnter(), SetValue(), updateMax(), and updateMin().
|
private |
Definition at line 359 of file tuner_slider.cpp.
References m_max, TUNER_SLIDER_BASE::m_maxText, m_runMode, MULTI, SetMax(), and updateComponentValue().
Referenced by onMaxKillFocus(), and onMaxTextEnter().
|
private |
Definition at line 392 of file tuner_slider.cpp.
References m_min, TUNER_SLIDER_BASE::m_minText, m_runMode, MULTI, SetMin(), and updateComponentValue().
Referenced by onMinKillFocus(), and onMinTextEnter().
|
private |
Definition at line 250 of file tuner_slider.cpp.
References TUNER_SLIDER_BASE::m_closeBtn, m_runMode, TUNER_SLIDER_BASE::m_saveBtn, TUNER_SLIDER_BASE::m_slider, TUNER_SLIDER_BASE::m_stepCount, TUNER_SLIDER_BASE::m_stepsLabel, TUNER_SLIDER_BASE::m_valueText, MULTI, and SINGLE.
Referenced by onRunModeChanged(), ShowChangedLanguage(), and TUNER_SLIDER().
|
private |
Definition at line 267 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 377 of file tuner_slider.cpp.
References m_value, TUNER_SLIDER_BASE::m_valueText, and SetValue().
Referenced by onValueKillFocus(), and onValueTextEnter().
|
private |
Definition at line 275 of file tuner_slider.cpp.
References e_24, 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 table.
Referenced by onESeries(), onSliderChanged(), onSliderScroll(), SetValue(), and TUNER_SLIDER().
|
protectedinherited |
Definition at line 61 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateModeControls(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 55 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onESeries(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateValueText(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 51 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onESeries(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateValueText(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 53 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onESeries(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateValueText(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 54 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onESeries(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateValueText(), and ~TUNER_SLIDER_BASE().
|
private |
Definition at line 132 of file tuner_slider.h.
Referenced by onClose(), onSave(), TUNER_SLIDER(), and updateComponentValue().
|
private |
Definition at line 128 of file tuner_slider.h.
Referenced by GetMax(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateMax(), and updateSlider().
|
protectedinherited |
Definition at line 57 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::SetMax(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateMax(), and ~TUNER_SLIDER_BASE().
|
private |
Definition at line 127 of file tuner_slider.h.
Referenced by GetMin(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateMin(), and updateSlider().
|
protectedinherited |
Definition at line 59 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::SetMin(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateMin(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 47 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onRunModeChanged(), TUNER_SLIDER::ShowChangedLanguage(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 46 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::ShowChangedLanguage(), TUNER_SLIDER::TUNER_SLIDER(), and TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 45 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE().
|
private |
Definition at line 125 of file tuner_slider.h.
Referenced by GetSymbolRef(), ShowChangedLanguage(), and TUNER_SLIDER().
|
private |
Definition at line 131 of file tuner_slider.h.
Referenced by GetRunMode(), onRunModeChanged(), TUNER_SLIDER(), updateMax(), updateMin(), and updateModeControls().
|
protectedinherited |
Definition at line 60 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE(), TUNER_SLIDER::updateModeControls(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 52 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::TUNER_SLIDER(), and TUNER_SLIDER_BASE().
|
private |
Definition at line 124 of file tuner_slider.h.
Referenced by GetSymbol(), onSave(), and TUNER_SLIDER().
|
protectedinherited |
Definition at line 56 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onSliderChanged(), TUNER_SLIDER::onSliderScroll(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateModeControls(), TUNER_SLIDER::updateSlider(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 50 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 49 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::GetStepCount(), TUNER_SLIDER::onStepsTextEnter(), TUNER_SLIDER::TUNER_SLIDER(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateModeControls(), and ~TUNER_SLIDER_BASE().
|
protectedinherited |
Definition at line 48 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::ShowChangedLanguage(), TUNER_SLIDER_BASE(), and TUNER_SLIDER::updateModeControls().
|
private |
Definition at line 123 of file tuner_slider.h.
Referenced by GetSymbol(), onSave(), and TUNER_SLIDER().
|
private |
Definition at line 129 of file tuner_slider.h.
Referenced by GetValue(), onSliderChanged(), onSliderScroll(), SetMax(), SetMin(), SetValue(), TUNER_SLIDER(), updateSlider(), updateValue(), and updateValueText().
|
protectedinherited |
Definition at line 58 of file tuner_slider_base.h.
Referenced by TUNER_SLIDER::onESeries(), TUNER_SLIDER::onSave(), TUNER_SLIDER_BASE(), TUNER_SLIDER::updateModeControls(), TUNER_SLIDER::updateValue(), TUNER_SLIDER::updateValueText(), and ~TUNER_SLIDER_BASE().