KiCad PCB EDA Suite
DIALOG_SPICE_MODEL Class Reference

#include <dialog_spice_model.h>

Inheritance diagram for DIALOG_SPICE_MODEL:
DIALOG_SPICE_MODEL_BASE DIALOG_SHIM KIWAY_HOLDER

Classes

struct  MODEL
 

Public Member Functions

 DIALOG_SPICE_MODEL (wxWindow *aParent, SCH_COMPONENT &aComponent, SCH_FIELDS &aSchFields)
 
int ShowQuasiModal ()
 
void EndQuasiModal (int retCode)
 
bool IsQuasiModal ()
 
bool Show (bool show) override
 
bool Enable (bool enable) override
 
void OnPaint (wxPaintEvent &event)
 
KIWAYKiway () const
 Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in. More...
 
PROJECTPrj () const
 Function Prj returns a reference to the PROJECT "associated with" this KIWAY. More...
 
void SetKiway (wxWindow *aDest, KIWAY *aKiway)
 Function SetKiway. More...
 

Protected Member Functions

void FinishDialogSettings ()
 In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls. More...
 
void SetSizeInDU (int x, int y)
 Set the dialog to the given dimensions in "dialog units". More...
 
int HorizPixelsFromDU (int x)
 Convert an integer number of dialog units to pixels, horizontally. More...
 
int VertPixelsFromDU (int y)
 Convert an integer number of dialog units to pixels, vertically. More...
 

Protected Attributes

wxNotebook * m_notebook
 
wxPanel * m_passive
 
wxStaticText * m_staticText2
 
wxComboBox * m_pasType
 
wxStaticText * m_staticText62
 
wxStaticText * m_staticText3
 
wxTextCtrl * m_pasValue
 
wxStaticText * m_staticText63
 
wxStaticLine * m_staticline1
 
wxStaticText * m_staticText32
 
wxStaticText * m_staticText321
 
wxStaticText * m_staticText341
 
wxStaticText * m_staticText_femto
 
wxStaticText * m_staticText36
 
wxStaticText * m_staticText37
 
wxStaticText * m_staticText38
 
wxStaticText * m_staticText39
 
wxStaticText * m_staticText40
 
wxStaticText * m_staticText41
 
wxStaticText * m_staticText42
 
wxStaticText * m_staticText43
 
wxStaticText * m_staticText44
 
wxStaticText * m_staticText46
 
wxStaticText * m_staticText47
 
wxStaticText * m_staticText48
 
wxStaticText * m_staticText45
 
wxStaticText * m_staticText49
 
wxStaticText * m_staticText50
 
wxStaticText * m_staticText51
 
wxStaticText * m_staticText52
 
wxStaticText * m_staticText53
 
wxStaticText * m_staticText54
 
wxStaticText * m_staticText55
 
wxStaticText * m_staticText56
 
wxStaticText * m_staticText57
 
wxStaticText * m_staticText58
 
wxStaticText * m_staticText59
 
wxStaticText * m_staticText60
 
wxPanel * m_model
 
wxStaticText * m_staticText7
 
wxTextCtrl * m_modelLibrary
 
wxButton * m_selectLibrary
 
wxStaticText * m_staticText5
 
wxComboBox * m_modelName
 
wxStaticText * m_staticText4
 
wxComboBox * m_modelType
 
wxTextCtrl * m_libraryContents
 
wxPanel * m_power
 
wxStaticText * m_staticText10
 
wxTextCtrl * m_genDc
 
wxStaticText * m_staticText113
 
wxStaticText * m_staticText11
 
wxTextCtrl * m_genAcMag
 
wxStaticText * m_staticText111
 
wxStaticText * m_staticText12
 
wxTextCtrl * m_genAcPhase
 
wxStaticText * m_staticText112
 
wxNotebook * m_powerNotebook
 
wxPanel * m_pwrPulse
 
wxStaticText * m_staticText13
 
wxTextCtrl * m_pulseInit
 
wxStaticText * m_staticText131
 
wxStaticText * m_staticText14
 
wxTextCtrl * m_pulseNominal
 
wxStaticText * m_staticText132
 
wxStaticText * m_staticText15
 
wxTextCtrl * m_pulseDelay
 
wxStaticText * m_staticText133
 
wxStaticText * m_staticText16
 
wxTextCtrl * m_pulseRise
 
wxStaticText * m_staticText134
 
wxStaticText * m_staticText17
 
wxTextCtrl * m_pulseFall
 
wxStaticText * m_staticText135
 
wxStaticText * m_staticText18
 
wxTextCtrl * m_pulseWidth
 
wxStaticText * m_staticText136
 
wxStaticText * m_staticText20
 
wxTextCtrl * m_pulsePeriod
 
wxStaticText * m_staticText137
 
wxPanel * m_pwrSin
 
wxStaticText * m_staticText21
 
wxTextCtrl * m_sinOffset
 
wxStaticText * m_staticText211
 
wxStaticText * m_staticText22
 
wxTextCtrl * m_sinAmplitude
 
wxStaticText * m_staticText212
 
wxStaticText * m_staticText23
 
wxTextCtrl * m_sinFreq
 
wxStaticText * m_staticText213
 
wxStaticText * m_staticText24
 
wxTextCtrl * m_sinDelay
 
wxStaticText * m_staticText214
 
wxStaticText * m_staticText25
 
wxTextCtrl * m_sinDampFactor
 
wxStaticText * m_staticText215
 
wxPanel * m_pwrExp
 
wxStaticText * m_staticText26
 
wxTextCtrl * m_expInit
 
wxStaticText * m_staticText261
 
wxStaticText * m_staticText27
 
wxTextCtrl * m_expPulsed
 
wxStaticText * m_staticText262
 
wxStaticText * m_staticText28
 
wxTextCtrl * m_expRiseDelay
 
wxStaticText * m_staticText263
 
wxStaticText * m_staticText29
 
wxTextCtrl * m_expRiseConst
 
wxStaticText * m_staticText264
 
wxStaticText * m_staticText30
 
wxTextCtrl * m_expFallDelay
 
wxStaticText * m_staticText265
 
wxStaticText * m_staticText31
 
wxTextCtrl * m_expFallConst
 
wxStaticText * m_staticText266
 
wxPanel * m_pwrPwl
 
wxStaticText * m_staticText34
 
wxTextCtrl * m_pwlTime
 
wxStaticText * m_staticText342
 
wxStaticText * m_staticText35
 
wxTextCtrl * m_pwlValue
 
wxStaticText * m_staticText343
 
wxButton * m_pwlAddButton
 
wxListCtrl * m_pwlValList
 
wxButton * m_pwlRemoveBtn
 
wxPanel * m_pwrFm
 
wxPanel * m_pwrAm
 
wxPanel * m_pwrTransNoise
 
wxPanel * m_pwrRandom
 
wxPanel * m_pwrExtData
 
wxRadioBox * m_pwrType
 
wxStaticLine * m_staticline2
 
wxCheckBox * m_disabled
 
wxCheckBox * m_nodeSeqCheck
 
wxTextCtrl * m_nodeSeqVal
 
wxStaticLine * m_staticline3
 
wxStdDialogButtonSizer * m_sdbSizer
 
wxButton * m_sdbSizerOK
 
wxButton * m_sdbSizerCancel
 
bool m_fixupsRun
 
std::string m_hash_key
 
EVENT_LOOPm_qmodal_loop
 
bool m_qmodal_showing
 
WDO_ENABLE_DISABLEm_qmodal_parent_disabler
 

Private Member Functions

bool parsePowerSource (const wxString &aModel)
 Parse a string describing a power source, so appropriate settings are checked in the dialog. More...
 
bool generatePowerSource (wxString &aTarget) const
 Generates a string to describe power source parameters, basing on the current selection. More...
 
void loadLibrary (const wxString &aFilePath)
 Loads a list of components (.model and .subckt) from a spice library file and adds them to a combo box. More...
 
SCH_FIELDgetField (int aFieldType)
 Returns or creates a field in the edited schematic fields vector. More...
 
bool addPwlValue (const wxString &aTime, const wxString &aValue)
 Adds a value to the PWL values list. More...
 
virtual bool TransferDataFromWindow () override
 
virtual bool TransferDataToWindow () override
 
virtual bool Validate () override
 
virtual void onInitDlg (wxInitDialogEvent &event) override
 
void onSelectLibrary (wxCommandEvent &event) override
 
void onModelSelected (wxCommandEvent &event) override
 
void onPwlAdd (wxCommandEvent &event) override
 
void onPwlRemove (wxCommandEvent &event) override
 

Private Attributes

SCH_COMPONENTm_component
 

Edited component

More...
 
SCH_FIELDSm_fields
 

Fields from the component properties dialog

More...
 
std::map< int, wxString > m_fieldsTmp
 

Temporary field values

More...
 
std::map< wxString, MODELm_models
 

Models available in the selected library file

More...
 
long m_pwlTimeCol
 

Column identifiers for PWL power source value list

More...
 
long m_pwlValueCol
 
SPICE_VALIDATOR m_spiceValidator
 
SPICE_VALIDATOR m_spiceEmptyValidator
 
wxTextValidator m_notEmptyValidator
 

Detailed Description

Definition at line 35 of file dialog_spice_model.h.

Constructor & Destructor Documentation

DIALOG_SPICE_MODEL::DIALOG_SPICE_MODEL ( wxWindow *  aParent,
SCH_COMPONENT aComponent,
SCH_FIELDS aSchFields 
)

Definition at line 58 of file dialog_spice_model.cpp.

References DIALOG_SPICE_MODEL_BASE::m_expFallConst, DIALOG_SPICE_MODEL_BASE::m_expFallDelay, DIALOG_SPICE_MODEL_BASE::m_expInit, DIALOG_SPICE_MODEL_BASE::m_expPulsed, DIALOG_SPICE_MODEL_BASE::m_expRiseConst, DIALOG_SPICE_MODEL_BASE::m_expRiseDelay, DIALOG_SPICE_MODEL_BASE::m_genAcMag, DIALOG_SPICE_MODEL_BASE::m_genAcPhase, DIALOG_SPICE_MODEL_BASE::m_genDc, DIALOG_SPICE_MODEL_BASE::m_modelName, DIALOG_SPICE_MODEL_BASE::m_modelType, m_notEmptyValidator, DIALOG_SPICE_MODEL_BASE::m_pasValue, DIALOG_SPICE_MODEL_BASE::m_pulseDelay, DIALOG_SPICE_MODEL_BASE::m_pulseFall, DIALOG_SPICE_MODEL_BASE::m_pulseInit, DIALOG_SPICE_MODEL_BASE::m_pulseNominal, DIALOG_SPICE_MODEL_BASE::m_pulsePeriod, DIALOG_SPICE_MODEL_BASE::m_pulseRise, DIALOG_SPICE_MODEL_BASE::m_pulseWidth, m_pwlTimeCol, DIALOG_SPICE_MODEL_BASE::m_pwlValList, m_pwlValueCol, DIALOG_SPICE_MODEL_BASE::m_sdbSizerOK, DIALOG_SPICE_MODEL_BASE::m_sinAmplitude, DIALOG_SPICE_MODEL_BASE::m_sinDampFactor, DIALOG_SPICE_MODEL_BASE::m_sinDelay, DIALOG_SPICE_MODEL_BASE::m_sinFreq, DIALOG_SPICE_MODEL_BASE::m_sinOffset, m_spiceEmptyValidator, and m_spiceValidator.

59  : DIALOG_SPICE_MODEL_BASE( aParent ), m_component( aComponent ), m_fields( aFields ),
60  m_spiceEmptyValidator( true ), m_notEmptyValidator( wxFILTER_EMPTY )
61 {
62  m_pasValue->SetValidator( m_spiceValidator );
63 
64  m_modelType->SetValidator( m_notEmptyValidator );
65  m_modelName->SetValidator( m_notEmptyValidator );
66 
67  m_genDc->SetValidator( m_spiceEmptyValidator );
68  m_genAcMag->SetValidator( m_spiceEmptyValidator );
69  m_genAcPhase->SetValidator( m_spiceEmptyValidator );
70 
71  m_pulseInit->SetValidator( m_spiceEmptyValidator );
72  m_pulseNominal->SetValidator( m_spiceEmptyValidator );
73  m_pulseDelay->SetValidator( m_spiceEmptyValidator );
74  m_pulseRise->SetValidator( m_spiceEmptyValidator );
75  m_pulseFall->SetValidator( m_spiceEmptyValidator );
76  m_pulseWidth->SetValidator( m_spiceEmptyValidator );
77  m_pulsePeriod->SetValidator( m_spiceEmptyValidator );
78 
79  m_sinOffset->SetValidator( m_spiceEmptyValidator );
80  m_sinAmplitude->SetValidator( m_spiceEmptyValidator );
81  m_sinFreq->SetValidator( m_spiceEmptyValidator );
82  m_sinDelay->SetValidator( m_spiceEmptyValidator );
83  m_sinDampFactor->SetValidator( m_spiceEmptyValidator );
84 
85  m_expInit->SetValidator( m_spiceEmptyValidator );
86  m_expPulsed->SetValidator( m_spiceEmptyValidator );
87  m_expRiseDelay->SetValidator( m_spiceEmptyValidator );
88  m_expRiseConst->SetValidator( m_spiceEmptyValidator );
89  m_expFallDelay->SetValidator( m_spiceEmptyValidator );
90  m_expFallConst->SetValidator( m_spiceEmptyValidator );
91 
92  m_pwlTimeCol = m_pwlValList->AppendColumn( "Time [s]", wxLIST_FORMAT_LEFT, 100 );
93  m_pwlValueCol = m_pwlValList->AppendColumn( "Value [V/A]", wxLIST_FORMAT_LEFT, 100 );
94 
95  m_sdbSizerOK->SetDefault();
96 
97 }
SCH_COMPONENT & m_component
Edited component
SPICE_VALIDATOR m_spiceValidator
long m_pwlTimeCol
Column identifiers for PWL power source value list
wxTextValidator m_notEmptyValidator
SCH_FIELDS & m_fields
Fields from the component properties dialog
DIALOG_SPICE_MODEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Spice Model Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
SPICE_VALIDATOR m_spiceEmptyValidator

Member Function Documentation

bool DIALOG_SPICE_MODEL::addPwlValue ( const wxString &  aTime,
const wxString &  aValue 
)
private

Adds a value to the PWL values list.

Parameters
aTimeis the time value.
aValueis the source value at the given time.
Returns
True if request has completed successfully, false if the data is invalid.

Definition at line 694 of file dialog_spice_model.cpp.

References comparePwlValues(), DIALOG_SPICE_MODEL_BASE::m_pwlTime, m_pwlTimeCol, DIALOG_SPICE_MODEL_BASE::m_pwlValList, and m_pwlValueCol.

Referenced by onPwlAdd(), and parsePowerSource().

695 {
696  // TODO execute validators
697  if( aTime.IsEmpty() || aValue.IsEmpty() )
698  return false;
699 
700  long idx = m_pwlValList->InsertItem( m_pwlTimeCol, aTime );
701  m_pwlValList->SetItem( idx, m_pwlValueCol, aValue );
702 
703  // There is no wxString::ToFloat, but we need to guarantee it fits in 4 bytes
704  double timeD;
705  float timeF;
706  m_pwlTime->GetValue().ToDouble( &timeD );
707  timeF = timeD;
708 
709  // Store the time value, so the entries can be sorted
710  m_pwlValList->SetItemData( idx, *reinterpret_cast<long*>( &timeF ) );
711 
712  // Sort items by timestamp
713  m_pwlValList->SortItems( comparePwlValues, -1 );
714 
715  return true;
716 }
long m_pwlTimeCol
Column identifiers for PWL power source value list
static int wxCALLBACK comparePwlValues(wxIntPtr aItem1, wxIntPtr aItem2, wxIntPtr WXUNUSED(aSortData))
bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 205 of file dialog_shim.cpp.

Referenced by DIALOG_PRINT_USING_PRINTER::InitValues(), and DIALOG_SHIM::IsQuasiModal().

206 {
207  // so we can do logging of this state change:
208 
209 #if defined(DEBUG)
210  const char* type_id = typeid( *this ).name();
211  printf( "wxDialog %s: %s\n", type_id, enable ? "enabled" : "disabled" );
212 #endif
213 
214  return wxDialog::Enable( enable );
215 }
void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 610 of file dialog_shim.cpp.

References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by DIALOG_SHIM::OnButton(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCancelButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCancelButtonClick(), DIALOG_EDIT_ONE_FIELD::OnCancelClick(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCloseDialog(), DIALOG_EDIT_ONE_FIELD::OnCloseDialog(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCloseDialog(), DIALOG_CHOOSE_COMPONENT::OnCloseTimer(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick(), DIALOG_EDIT_ONE_FIELD::OnOkClick(), DIALOG_EXCHANGE_FOOTPRINTS::OnQuit(), DIALOG_CHOOSE_COMPONENT::OnSchViewDClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), and DIALOG_SHIM::~DIALOG_SHIM().

611 {
612  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
613  // handle validation in the same way as other dialogs.
614  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
615  return;
616 
617  SetReturnCode( retCode );
618 
619  if( !IsQuasiModal() )
620  {
621  wxFAIL_MSG( wxT( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal wasn't called" ) );
622  return;
623  }
624 
625  m_qmodal_showing = false;
626 
627  if( m_qmodal_loop )
628  {
629  if( m_qmodal_loop->IsRunning() )
630  m_qmodal_loop->Exit( 0 );
631  else
632  m_qmodal_loop->ScheduleExit( 0 );
633 
634  m_qmodal_loop = NULL;
635  }
636 
639 
640  Show( false );
641 }
bool m_qmodal_showing
Definition: dialog_shim.h:155
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:154
bool IsQuasiModal()
Definition: dialog_shim.h:103
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:156
void DIALOG_SHIM::FinishDialogSettings ( )
protectedinherited

In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls.

FinishDialogSettings must be called from derived classes, when all widgets are initialized, and therefore their size fixed. If TransferDataToWindow() is used to initialize widgets, at end of TransferDataToWindow, or better at end of a wxInitDialogEvent handler

In any case, the best way is to call it in a wxInitDialogEvent handler after calling TransfertDataToWindow(), which is the default wxInitDialogEvent handler wxDialog

Definition at line 104 of file dialog_shim.cpp.

References PCAD2KICAD::Center.

Referenced by COLOR4D_PICKER_DLG::COLOR4D_PICKER_DLG(), DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DESIGN_RULES::DIALOG_DESIGN_RULES(), DIALOG_DIMENSION_EDITOR::DIALOG_DIMENSION_EDITOR(), DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EDIT_LINE_STYLE::DIALOG_EDIT_LINE_STYLE(), DIALOG_EESCHEMA_OPTIONS::DIALOG_EESCHEMA_OPTIONS(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_LIB_NEW_COMPONENT::DIALOG_LIB_NEW_COMPONENT(), DIALOG_LIBEDIT_OPTIONS::DIALOG_LIBEDIT_OPTIONS(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PADS_MASK_CLEARANCE::DIALOG_PADS_MASK_CLEARANCE(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCH_EDIT_SHEET_PIN::DIALOG_SCH_EDIT_SHEET_PIN(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SELECT_PRETTY_LIB::DIALOG_SELECT_PRETTY_LIB(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_SHIM::IsQuasiModal(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_LIB_EDIT_PIN::OnInitDialog(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnInitDialog(), DIALOG_TRACK_VIA_PROPERTIES::OnInitDlg(), DIALOG_GRAPHIC_ITEMS_OPTIONS::OnInitDlg(), DIALOG_EDIT_FPTEXT::OnInitDlg(), DIALOG_SET_GRID::OnInitDlg(), DIALOG_PCB_TEXT_PROPERTIES::OnInitDlg(), DIALOG_PRINT_FOR_MODEDIT::OnInitDlg(), DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::OnInitDlg(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_FOOTPRINT_FP_EDITOR::OnInitDlg(), DIALOG_SIM_SETTINGS::onInitDlg(), onInitDlg(), DIALOG_FOOTPRINT_BOARD_EDITOR::OnInitDlg(), DIALOG_PRINT_USING_PRINTER::OnInitDlg(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnInitDlg(), TARGET_PROPERTIES_DIALOG_EDITOR::TARGET_PROPERTIES_DIALOG_EDITOR(), DIALOG_SIGNAL_LIST::TransferDataToWindow(), and DIALOG_UPDATE_FIELDS::TransferDataToWindow().

105 {
106  // must be called from the constructor of derived classes,
107  // when all widgets are initialized, and therefore their size fixed
108 
109  // SetSizeHints fixes the minimal size of sizers in the dialog
110  // (SetSizeHints calls Fit(), so no need to call it)
111  GetSizer()->SetSizeHints( this );
112 
113  // the default position, when calling the first time the dlg
114  Center();
115 }
bool DIALOG_SPICE_MODEL::generatePowerSource ( wxString &  aTarget) const
private

Generates a string to describe power source parameters, basing on the current selection.

If there are missing fields, it will not modify the target string.

Parameters
aTargetis the destination for the generated string.
Returns
True if the string was saved successfully.

DC / AC section

Transient section

Definition at line 440 of file dialog_spice_model.cpp.

References DisplayError(), empty(), Format(), i, DIALOG_SPICE_MODEL_BASE::m_expFallConst, DIALOG_SPICE_MODEL_BASE::m_expFallDelay, DIALOG_SPICE_MODEL_BASE::m_expInit, DIALOG_SPICE_MODEL_BASE::m_expPulsed, DIALOG_SPICE_MODEL_BASE::m_expRiseConst, DIALOG_SPICE_MODEL_BASE::m_expRiseDelay, DIALOG_SPICE_MODEL_BASE::m_genAcMag, DIALOG_SPICE_MODEL_BASE::m_genAcPhase, DIALOG_SPICE_MODEL_BASE::m_genDc, DIALOG_SPICE_MODEL_BASE::m_powerNotebook, DIALOG_SPICE_MODEL_BASE::m_pulseDelay, DIALOG_SPICE_MODEL_BASE::m_pulseFall, DIALOG_SPICE_MODEL_BASE::m_pulseInit, DIALOG_SPICE_MODEL_BASE::m_pulseNominal, DIALOG_SPICE_MODEL_BASE::m_pulsePeriod, DIALOG_SPICE_MODEL_BASE::m_pulseRise, DIALOG_SPICE_MODEL_BASE::m_pulseWidth, m_pwlTimeCol, DIALOG_SPICE_MODEL_BASE::m_pwlValList, m_pwlValueCol, DIALOG_SPICE_MODEL_BASE::m_pwrExp, DIALOG_SPICE_MODEL_BASE::m_pwrPulse, DIALOG_SPICE_MODEL_BASE::m_pwrPwl, DIALOG_SPICE_MODEL_BASE::m_pwrSin, DIALOG_SPICE_MODEL_BASE::m_sinAmplitude, DIALOG_SPICE_MODEL_BASE::m_sinDampFactor, DIALOG_SPICE_MODEL_BASE::m_sinDelay, DIALOG_SPICE_MODEL_BASE::m_sinFreq, and DIALOG_SPICE_MODEL_BASE::m_sinOffset.

Referenced by TransferDataFromWindow().

441 {
442  wxString acdc, trans;
443  wxWindow* page = m_powerNotebook->GetCurrentPage();
444  bool useTrans = true; // shall we use the transient command part?
445 
446  // Variables for generic processing
447  bool genericProcessing = false;
448  unsigned int genericReqParamsCount = 0;
449  std::vector<wxTextCtrl*> genericControls;
450 
452  // If SPICE_VALUE can be properly constructed, then it is a valid value
453  try
454  {
455  if( !empty( m_genDc ) )
456  acdc += wxString::Format( "dc %s ", SPICE_VALUE( m_genDc->GetValue() ).ToSpiceString() );
457  }
458  catch( ... )
459  {
460  DisplayError( NULL, wxT( "Invalid DC value" ) );
461  return false;
462  }
463 
464  try
465  {
466  if( !empty( m_genAcMag ) )
467  {
468  acdc += wxString::Format( "ac %s ", SPICE_VALUE( m_genAcMag->GetValue() ).ToSpiceString() );
469 
470  if( !empty( m_genAcPhase ) )
471  acdc += wxString::Format( "%s ", SPICE_VALUE( m_genAcPhase->GetValue() ).ToSpiceString() );
472  }
473  }
474  catch( ... )
475  {
476  DisplayError( NULL, wxT( "Invalid AC magnitude or phase" ) );
477  return false;
478  }
479 
481  if( page == m_pwrPulse )
482  {
483  if( !m_pwrPulse->Validate() )
484  return false;
485 
486  genericProcessing = true;
487  trans += "pulse";
488  genericReqParamsCount = 2;
489  genericControls = { m_pulseInit, m_pulseNominal, m_pulseDelay,
491  }
492 
493 
494  else if( page == m_pwrSin )
495  {
496  if( !m_pwrSin->Validate() )
497  return false;
498 
499  genericProcessing = true;
500  trans += "sin";
501  genericReqParamsCount = 2;
503  }
504 
505 
506  else if( page == m_pwrExp )
507  {
508  if( !m_pwrExp->Validate() )
509  return false;
510 
511  genericProcessing = true;
512  trans += "exp";
513  genericReqParamsCount = 2;
514  genericControls = { m_expInit, m_expPulsed,
516  }
517 
518 
519  else if( page == m_pwrPwl )
520  {
521  if( m_pwlValList->GetItemCount() > 0 )
522  {
523  trans += "pwl(";
524 
525  for( int i = 0; i < m_pwlValList->GetItemCount(); ++i )
526  {
527  trans += wxString::Format( "%s %s ", m_pwlValList->GetItemText( i, m_pwlTimeCol ),
528  m_pwlValList->GetItemText( i, m_pwlValueCol ) );
529  }
530 
531  trans.Trim();
532  trans += ")";
533  }
534  }
535 
536  if( genericProcessing )
537  {
538  trans += "(";
539 
540  auto first_empty = std::find_if( genericControls.begin(), genericControls.end(), empty );
541  auto first_not_empty = std::find_if( genericControls.begin(), genericControls.end(),
542  []( const wxTextCtrl* c ){ return !empty( c ); } );
543 
544  if( std::distance( first_not_empty, genericControls.end() ) == 0 )
545  {
546  // all empty
547  useTrans = false;
548  }
549  else if( std::distance( genericControls.begin(), first_empty ) < (int)genericReqParamsCount )
550  {
551  DisplayError( nullptr,
552  wxString::Format( wxT( "You need to specify at least the "
553  "first %d parameters for the transient source" ),
554  genericReqParamsCount ) );
555 
556  return false;
557  }
558  else if( std::find_if_not( first_empty, genericControls.end(),
559  empty ) != genericControls.end() )
560  {
561  DisplayError( nullptr, wxT( "You cannot leave interleaved empty fields "
562  "when defining a transient source" ) );
563  return false;
564  }
565  else
566  {
567  std::for_each( genericControls.begin(), first_empty,
568  [&trans] ( wxTextCtrl* ctrl ) {
569  trans += wxString::Format( "%s ", ctrl->GetValue() );
570  } );
571  }
572 
573  trans.Trim();
574  trans += ")";
575  }
576 
577  aTarget = acdc;
578 
579  if( useTrans )
580  aTarget += trans;
581 
582  // Remove whitespaces from left and right side
583  aTarget.Trim( false );
584  aTarget.Trim( true );
585 
586  return true;
587 }
long m_pwlTimeCol
Column identifiers for PWL power source value list
static bool empty(const wxTextCtrl *aCtrl)
Helper class to handle Spice way of expressing values (e.g. 10.5 Meg)
Definition: spice_value.h:32
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
size_t i
Definition: json11.cpp:597
void DisplayError(wxWindow *parent, const wxString &text, int displaytime)
Function DisplayError displays an error or warning message box with aMessage.
Definition: confirm.cpp:185
SCH_FIELD & DIALOG_SPICE_MODEL::getField ( int  aFieldType)
private

Returns or creates a field in the edited schematic fields vector.

Parameters
aFieldTypeis an SPICE_FIELD enum value.
Returns
Requested field.

Definition at line 676 of file dialog_spice_model.cpp.

References NETLIST_EXPORTER_PSPICE::GetSpiceFieldName(), m_component, and m_fields.

Referenced by TransferDataFromWindow().

677 {
678  const wxString& spiceField = NETLIST_EXPORTER_PSPICE::GetSpiceFieldName( (SPICE_FIELD) aFieldType );
679 
680  auto fieldIt = std::find_if( m_fields.begin(), m_fields.end(), [&]( const SCH_FIELD& f ) {
681  return f.GetName() == spiceField;
682  } );
683 
684  // Found one, so return it
685  if( fieldIt != m_fields.end() )
686  return *fieldIt;
687 
688  // Create a new field with requested name
689  m_fields.emplace_back( wxPoint(), m_fields.size(), &m_component, spiceField );
690  return m_fields.back();
691 }
Class SCH_FIELD instances are attached to a component and provide a place for the component&#39;s value...
Definition: sch_field.h:56
SCH_COMPONENT & m_component
Edited component
static const wxString & GetSpiceFieldName(SPICE_FIELD aField)
Returns a string used for a particular component field related to Spice simulation.
SCH_FIELDS & m_fields
Fields from the component properties dialog
int DIALOG_SHIM::HorizPixelsFromDU ( int  x)
protectedinherited

Convert an integer number of dialog units to pixels, horizontally.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 125 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), and DIALOG_SHIM::IsQuasiModal().

126 {
127  wxSize sz( x, 0 );
128  return ConvertDialogToPixels( sz ).x;
129 }
KIWAY& KIWAY_HOLDER::Kiway ( ) const
inlineinherited

Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in.

A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.

Definition at line 60 of file kiway_player.h.

References KIWAY_HOLDER::m_kiway, KIWAY_HOLDER::Prj(), and KIWAY_HOLDER::SetKiway().

Referenced by SCH_EDIT_FRAME::AppendSchematic(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), PCB_BASE_FRAME::CreateAndShow3D_Frame(), CVPCB_MAINFRAME::CreateScreenCmp(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_SHIM::DIALOG_SHIM(), EDIT_TOOL::editFootprintInFpEditor(), SCH_EDIT_FRAME::EditSheet(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), LIB_MANAGER::GetBufferedPart(), LIB_MANAGER::getLibraryBuffer(), FOOTPRINT_EDIT_FRAME::GetPlotSettings(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers(), SCH_EDIT_FRAME::KiwayMailIn(), KIWAY_PLAYER::language_change(), CVPCB_MAINFRAME::LoadFootprintFiles(), KIWAY_PLAYER::OnChangeIconsOptions(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_CHOOSE_COMPONENT::OnIdle(), KICAD_MANAGER_FRAME::OnImportEagleFiles(), SCH_EDIT_FRAME::OnLeftClick(), SCH_BASE_FRAME::OnOpenLibraryViewer(), SCH_EDIT_FRAME::OnSimulate(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateReplaceModuleInBoard(), SCH_EDIT_FRAME::OpenProjectFiles(), KIWAY_HOLDER::Prj(), PCB_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Special_Functions(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), FOOTPRINT_WIZARD_FRAME::ReCreateVToolbar(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDIT_FRAME::SaveEEFile(), CVPCB_MAINFRAME::SaveFootprintAssociation(), SCH_BASE_FRAME::SelectComponentFromLibBrowser(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_EDIT_FRAME::SetPlotSettings(), FOOTPRINT_VIEWER_FRAME::Show3D_Frame(), FOOTPRINT_WIZARD_FRAME::Show3D_Frame(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::UpdatePart(), and DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint().

61  {
62  wxASSERT( m_kiway ); // smoke out bugs in Debug build, then Release runs fine.
63  return *m_kiway;
64  }
KIWAY * m_kiway
Definition: kiway_player.h:85
void DIALOG_SPICE_MODEL::loadLibrary ( const wxString &  aFilePath)
private

Loads a list of components (.model and .subckt) from a spice library file and adds them to a combo box.

Parameters
aComboBoxis the target combo box
aFilePathis path to the library file

Definition at line 590 of file dialog_spice_model.cpp.

References DIALOG_SPICE_MODEL_BASE::m_libraryContents, DIALOG_SPICE_MODEL_BASE::m_modelName, m_models, name, DIALOG_SPICE_MODEL::MODEL::parseModelType(), KIWAY_HOLDER::Prj(), DIALOG_SPICE_MODEL::MODEL::SUBCKT, and DIALOG_SPICE_MODEL::MODEL::UNKNOWN.

Referenced by onSelectLibrary(), and TransferDataToWindow().

591 {
592  wxString curModel = m_modelName->GetValue();
593  m_models.clear();
594  wxFileName filePath( aFilePath );
595  bool in_subckt = false; // flag indicating that the parser is inside a .subckt section
596 
597  // Look for the file in the project path
598  if( !filePath.Exists() )
599  {
600  filePath.SetPath( Prj().GetProjectPath() + filePath.GetPath() );
601 
602  if( !filePath.Exists() )
603  return;
604  }
605 
606  // Display the library contents
607  m_libraryContents->LoadFile( filePath.GetFullPath() );
608 
609  // Process the file, looking for components
610  for( int line_nr = 0; line_nr < m_libraryContents->GetNumberOfLines(); ++line_nr )
611  {
612  wxStringTokenizer tokenizer( m_libraryContents->GetLineText( line_nr ) );
613 
614  while( tokenizer.HasMoreTokens() )
615  {
616  wxString token = tokenizer.GetNextToken().Lower();
617 
618  // some subckts contain .model clauses inside,
619  // skip them as they are a part of the subckt, not another model
620  if( token == ".model" && !in_subckt )
621  {
622  wxString name = tokenizer.GetNextToken();
623 
624  if( name.IsEmpty() )
625  break;
626 
627  token = tokenizer.GetNextToken();
628  MODEL::TYPE type = MODEL::parseModelType( token );
629 
630  if( type != MODEL::UNKNOWN )
631  m_models.emplace( name, MODEL( line_nr, type ) );
632  }
633 
634  else if( token == ".subckt" )
635  {
636  wxASSERT( !in_subckt );
637  in_subckt = true;
638 
639  wxString name = tokenizer.GetNextToken();
640 
641  if( name.IsEmpty() )
642  break;
643 
644  m_models.emplace( name, MODEL( line_nr, MODEL::SUBCKT ) );
645  }
646 
647  else if( token == ".ends" )
648  {
649  wxASSERT( in_subckt );
650  in_subckt = false;
651  }
652  }
653  }
654 
655  wxArrayString models;
656 
657  // Refresh the model name combobox values
658  m_modelName->Clear();
659 
660  for( const auto& model : m_models )
661  {
662  m_modelName->Append( model.first );
663  models.Add( model.first );
664  }
665 
666  m_modelName->AutoComplete( models );
667 
668  // Restore the previous value or if there is none - pick the first one from the loaded library
669  if( !curModel.IsEmpty() )
670  m_modelName->SetValue( curModel );
671  else if( m_modelName->GetCount() > 0 )
672  m_modelName->SetSelection( 0 );
673 }
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
static TYPE parseModelType(const wxString &aValue)
Convert string to model
const char * name
Definition: DXF_plotter.cpp:61
std::map< wxString, MODEL > m_models
Models available in the selected library file
virtual void DIALOG_SPICE_MODEL::onInitDlg ( wxInitDialogEvent &  event)
inlineoverrideprivatevirtual

Reimplemented from DIALOG_SPICE_MODEL_BASE.

Definition at line 91 of file dialog_spice_model.h.

References DIALOG_SHIM::FinishDialogSettings(), onModelSelected(), onPwlAdd(), onPwlRemove(), onSelectLibrary(), and TransferDataToWindow().

92  {
93  // Call the default wxDialog handler of a wxInitDialogEvent
95 
96  // Now all widgets have the size fixed, call FinishDialogSettings
98  }
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
virtual bool TransferDataToWindow() override
void DIALOG_SPICE_MODEL::onModelSelected ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_SPICE_MODEL_BASE.

Definition at line 746 of file dialog_spice_model.cpp.

References DIALOG_SPICE_MODEL_BASE::m_libraryContents, DIALOG_SPICE_MODEL_BASE::m_modelName, m_models, and DIALOG_SPICE_MODEL_BASE::m_modelType.

Referenced by onInitDlg().

747 {
748  // autoselect the model type
749  auto it = m_models.find( m_modelName->GetValue() );
750 
751  if( it != m_models.end() )
752  {
753  m_modelType->SetSelection( (int) it->second.model );
754 
755  // scroll to the bottom, so the model definition is shown in the first line
756  m_libraryContents->ShowPosition(
757  m_libraryContents->XYToPosition( 0, m_libraryContents->GetNumberOfLines() ) );
758  m_libraryContents->ShowPosition( m_libraryContents->XYToPosition( 0, it->second.line ) );
759  }
760  else
761  {
762  m_libraryContents->ShowPosition( 0 );
763  }
764 }
std::map< wxString, MODEL > m_models
Models available in the selected library file
void DIALOG_SHIM::OnPaint ( wxPaintEvent &  event)
inherited

Definition at line 271 of file dialog_shim.cpp.

References DIALOG_SHIM::m_fixupsRun, and recursiveDescent().

Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::IsQuasiModal().

272 {
273  if( !m_fixupsRun )
274  {
275 #if DLGSHIM_SELECT_ALL_IN_TEXT_CONTROLS
276  const bool selectAllInTextCtrls = true;
277 #else
278  const bool selectAllInTextCtrls = false;
279 #endif
280  wxWindow* firstTextCtrl = NULL;
281  wxWindow* windowWithFocus = NULL;
282 
283  recursiveDescent( GetChildren(), selectAllInTextCtrls, firstTextCtrl,
284  windowWithFocus );
285 
286 #if DLGSHIM_USE_SETFOCUS
287  // While it would be nice to honour any focus already set (which was
288  // recorded in windowWithFocus), the reality is that it's currently wrong
289  // far more often than it's right.
290  // So just focus on the first text control if we have one; otherwise the
291  // focus on the dialog itself, which will at least allow esc, return, etc.
292  // to function.
293  if( firstTextCtrl )
294  firstTextCtrl->SetFocus();
295  else
296  SetFocus();
297 #endif
298 
299 #ifdef __WXMAC__
300  fixOSXCancelButtonIssue( this );
301 #endif
302 
303  m_fixupsRun = true;
304  }
305 
306  event.Skip();
307 }
static void recursiveDescent(wxWindowList &children, const bool selectTextInTextCtrls, wxWindow *&firstTextCtrl, wxWindow *&windowWithFocus)
bool m_fixupsRun
Definition: dialog_shim.h:149
void DIALOG_SPICE_MODEL::onPwlAdd ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_SPICE_MODEL_BASE.

Definition at line 767 of file dialog_spice_model.cpp.

References addPwlValue(), DIALOG_SPICE_MODEL_BASE::m_pwlTime, and DIALOG_SPICE_MODEL_BASE::m_pwlValue.

Referenced by onInitDlg().

768 {
769  addPwlValue( m_pwlTime->GetValue(), m_pwlValue->GetValue() );
770 }
bool addPwlValue(const wxString &aTime, const wxString &aValue)
Adds a value to the PWL values list.
void DIALOG_SPICE_MODEL::onPwlRemove ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_SPICE_MODEL_BASE.

Definition at line 773 of file dialog_spice_model.cpp.

References DIALOG_SPICE_MODEL_BASE::m_pwlValList.

Referenced by onInitDlg().

774 {
775  long idx = m_pwlValList->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
776  m_pwlValList->DeleteItem( idx );
777 }
void DIALOG_SPICE_MODEL::onSelectLibrary ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_SPICE_MODEL_BASE.

Definition at line 719 of file dialog_spice_model.cpp.

References AllFilesWildcard, PROJECT::GetProjectPath(), loadLibrary(), DIALOG_SPICE_MODEL_BASE::m_modelLibrary, DIALOG_SPICE_MODEL_BASE::m_modelName, KIWAY_HOLDER::Prj(), and SpiceLibraryFileWildcard().

Referenced by onInitDlg().

720 {
721  wxString searchPath = wxFileName( m_modelLibrary->GetValue() ).GetPath();
722 
723  if( searchPath.IsEmpty() )
724  searchPath = Prj().GetProjectPath();
725 
726  wxString wildcards = SpiceLibraryFileWildcard() + "|" + AllFilesWildcard;
727  wxFileDialog openDlg( this, _( "Select library" ), searchPath, "", wildcards,
728  wxFD_OPEN | wxFD_FILE_MUST_EXIST );
729 
730  if( openDlg.ShowModal() == wxID_CANCEL )
731  return;
732 
733  wxFileName libPath( openDlg.GetPath() );
734 
735  // Try to convert the path to relative to project
736  if( libPath.MakeRelativeTo( Prj().GetProjectPath() ) && !libPath.GetFullPath().StartsWith( ".." ) )
737  m_modelLibrary->SetValue( libPath.GetFullPath() );
738  else
739  m_modelLibrary->SetValue( openDlg.GetPath() );
740 
741  loadLibrary( openDlg.GetPath() );
742  m_modelName->Popup();
743 }
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
void loadLibrary(const wxString &aFilePath)
Loads a list of components (.model and .subckt) from a spice library file and adds them to a combo bo...
wxString SpiceLibraryFileWildcard()
VTBL_ENTRY const wxString GetProjectPath() const
Function GetProjectPath returns the full path of the project.
Definition: project.cpp:102
const wxString AllFilesWildcard
bool DIALOG_SPICE_MODEL::parsePowerSource ( const wxString &  aModel)
private

Parse a string describing a power source, so appropriate settings are checked in the dialog.

Parameters
aModelcontains the string to be parse (e.g. sin(0 1 10k))
Returns
True if the input string was parsed without errors.

Definition at line 288 of file dialog_spice_model.cpp.

References addPwlValue(), i, DIALOG_SPICE_MODEL_BASE::m_expFallConst, DIALOG_SPICE_MODEL_BASE::m_expFallDelay, DIALOG_SPICE_MODEL_BASE::m_expInit, DIALOG_SPICE_MODEL_BASE::m_expPulsed, DIALOG_SPICE_MODEL_BASE::m_expRiseConst, DIALOG_SPICE_MODEL_BASE::m_expRiseDelay, DIALOG_SPICE_MODEL_BASE::m_genAcMag, DIALOG_SPICE_MODEL_BASE::m_genAcPhase, DIALOG_SPICE_MODEL_BASE::m_genDc, DIALOG_SPICE_MODEL_BASE::m_powerNotebook, DIALOG_SPICE_MODEL_BASE::m_pulseDelay, DIALOG_SPICE_MODEL_BASE::m_pulseFall, DIALOG_SPICE_MODEL_BASE::m_pulseInit, DIALOG_SPICE_MODEL_BASE::m_pulseNominal, DIALOG_SPICE_MODEL_BASE::m_pulsePeriod, DIALOG_SPICE_MODEL_BASE::m_pulseRise, DIALOG_SPICE_MODEL_BASE::m_pulseWidth, DIALOG_SPICE_MODEL_BASE::m_pwrExp, DIALOG_SPICE_MODEL_BASE::m_pwrPulse, DIALOG_SPICE_MODEL_BASE::m_pwrPwl, DIALOG_SPICE_MODEL_BASE::m_pwrSin, DIALOG_SPICE_MODEL_BASE::m_sinAmplitude, DIALOG_SPICE_MODEL_BASE::m_sinDampFactor, DIALOG_SPICE_MODEL_BASE::m_sinDelay, DIALOG_SPICE_MODEL_BASE::m_sinFreq, DIALOG_SPICE_MODEL_BASE::m_sinOffset, and SPICE_VALUE::ToSpiceString().

Referenced by TransferDataToWindow().

289 {
290  if( aModel.IsEmpty() )
291  return false;
292 
293  wxStringTokenizer tokenizer( aModel, " ()" );
294  wxString tkn = tokenizer.GetNextToken().Lower();
295 
296  while( tokenizer.HasMoreTokens() )
297  {
298  // Variables used for generic values processing (filling out wxTextCtrls in sequence)
299  bool genericProcessing = false;
300  unsigned int genericReqParamsCount = 0;
301  std::vector<wxTextCtrl*> genericControls;
302 
303  if( tkn == "dc" )
304  {
305  // There might be an optional "dc" or "trans" directive, skip it
306  if( tkn == "dc" || tkn == "trans" )
307  tkn = tokenizer.GetNextToken().Lower();
308 
309  // DC value
310  try
311  {
312  m_genDc->SetValue( SPICE_VALUE( tkn ).ToSpiceString() );
313  }
314  catch( ... )
315  {
316  return false;
317  }
318  }
319 
320 
321  else if( tkn == "ac" )
322  {
323  // AC magnitude
324  try
325  {
326  tkn = tokenizer.GetNextToken().Lower();
327  m_genAcMag->SetValue( SPICE_VALUE( tkn ).ToSpiceString() );
328  }
329  catch( ... )
330  {
331  return false;
332  }
333 
334  // AC phase (optional)
335  try
336  {
337  tkn = tokenizer.GetNextToken().Lower();
338  m_genAcPhase->SetValue( SPICE_VALUE( tkn ).ToSpiceString() );
339  }
340  catch( ... )
341  {
342  continue; // perhaps another directive
343  }
344  }
345 
346 
347  else if( tkn == "pulse" )
348  {
349  m_powerNotebook->SetSelection( m_powerNotebook->FindPage( m_pwrPulse ) );
350 
351  genericProcessing = true;
352  genericReqParamsCount = 2;
353  genericControls = { m_pulseInit, m_pulseNominal, m_pulseDelay,
355  }
356 
357 
358  else if( tkn == "sin" )
359  {
360  m_powerNotebook->SetSelection( m_powerNotebook->FindPage( m_pwrSin ) );
361 
362  genericProcessing = true;
363  genericReqParamsCount = 2;
365  }
366 
367 
368  else if( tkn == "exp" )
369  {
370  m_powerNotebook->SetSelection( m_powerNotebook->FindPage( m_pwrExp ) );
371 
372  genericProcessing = true;
373  genericReqParamsCount = 2;
374  genericControls = { m_expInit, m_expPulsed,
376  }
377 
378 
379  else if( tkn == "pwl" )
380  {
381  m_powerNotebook->SetSelection( m_powerNotebook->FindPage( m_pwrPwl ) );
382 
383  try
384  {
385  while( tokenizer.HasMoreTokens() )
386  {
387  tkn = tokenizer.GetNextToken();
388  SPICE_VALUE time( tkn );
389 
390  tkn = tokenizer.GetNextToken();
391  SPICE_VALUE value( tkn );
392 
393  addPwlValue( time.ToSpiceString(), value.ToSpiceString() );
394  }
395  }
396  catch( ... )
397  {
398  return false;
399  }
400  }
401 
402 
403  else
404  {
405  // Unhandled power source type
406  wxASSERT_MSG( false, "Unhandled power source type" );
407  return false;
408  }
409 
410 
411  if( genericProcessing )
412  {
413  try
414  {
415  for( unsigned int i = 0; i < genericControls.size(); ++i )
416  {
417  // If there are no more tokens, let's check if we got at least required fields
418  if( !tokenizer.HasMoreTokens() )
419  return ( i >= genericReqParamsCount );
420 
421  tkn = tokenizer.GetNextToken().Lower();
422  genericControls[i]->SetValue( SPICE_VALUE( tkn ).ToSpiceString() );
423  }
424  }
425  catch( ... )
426  {
427  return false;
428  }
429  }
430 
431  // Get the next token now, so if any of the branches catches an expection, try to
432  // process it in another branch
433  tkn = tokenizer.GetNextToken().Lower();
434  }
435 
436  return true;
437 }
bool addPwlValue(const wxString &aTime, const wxString &aValue)
Adds a value to the PWL values list.
Helper class to handle Spice way of expressing values (e.g. 10.5 Meg)
Definition: spice_value.h:32
size_t i
Definition: json11.cpp:597
PROJECT & KIWAY_HOLDER::Prj ( ) const
inherited

Function Prj returns a reference to the PROJECT "associated with" this KIWAY.

Definition at line 34 of file kiway_holder.cpp.

References KIWAY_HOLDER::Kiway(), and KIWAY::Prj().

Referenced by SCH_EDIT_FRAME::AppendSchematic(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), DIALOG_SYMBOL_REMAP::backupProject(), LIB_VIEW_FRAME::BestZoom(), DIALOG_FOOTPRINT_FP_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_FOOTPRINT_BOARD_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::BrowseAndSelectDocFile(), DIALOG_SYMBOL_LIB_TABLE::browseLibrariesHandler(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_FOOTPRINT_FP_EDITOR::Cfg3DPath(), DIALOG_FOOTPRINT_BOARD_EDITOR::Cfg3DPath(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::checkNewAlias(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToOptions(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromCurrentLibrary(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), LIB_VIEW_FRAME::DisplayLibInfos(), LIB_EDIT_FRAME::DisplayLibInfos(), SCH_BASE_FRAME::DisplayListComponentsInLib(), PCB_EDIT_FRAME::doAutoSave(), DIALOG_FOOTPRINT_FP_EDITOR::Edit3DShapeFileName(), DIALOG_FOOTPRINT_BOARD_EDITOR::Edit3DShapeFileName(), SCH_EDIT_FRAME::EditSheet(), PCB_EDIT_FRAME::Export_IDF3(), PCB_EDIT_FRAME::Files_io_from_id(), NETLIST_DIALOG::GenNetlist(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), FOOTPRINT_EDIT_FRAME::GetCurrentLib(), SCH_BASE_FRAME::GetLibAlias(), SCH_BASE_FRAME::GetLibPart(), FOOTPRINT_EDIT_FRAME::getLibPath(), LIB_EDIT_FRAME::getLibraryFileName(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), DIALOG_BOM::getPluginFileName(), LIB_VIEW_FRAME::getSelectedAlias(), FP_THREAD_IFACE::GetTable(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), DIALOG_FOOTPRINT_FP_EDITOR::initModeditProperties(), DIALOG_FOOTPRINT_BOARD_EDITOR::InitModeditProperties(), PCB_EDIT_FRAME::InstallNetlistFrame(), SCH_EDIT_FRAME::IsSearchCacheObsolete(), KIWAY_HOLDER::Kiway(), SCH_EDIT_FRAME::Load_Component(), SCH_EDIT_FRAME::LoadCmpToFootprintLinkFile(), LIB_EDIT_FRAME::LoadComponentFromCurrentLib(), CVPCB_MAINFRAME::LoadFootprintFiles(), loadLibrary(), LIB_EDIT_FRAME::LoadOneSymbol(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), DIALOG_DRC_CONTROL::makeValidFileNameReport(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_GENCAD_EXPORT_OPTIONS::onBrowse(), DIALOG_DRC_CONTROL::OnButtonBrowseRptFileClick(), DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_GENDRILL::OnGenReportFile(), DIALOG_CHOOSE_COMPONENT::OnIdle(), SCH_EDIT_FRAME::OnImportProject(), PCB_EDIT_FRAME::OnLeftClick(), DIALOG_NETLIST::OnOpenNetlistClick(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_SVG_PRINT::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), LIB_EDIT_FRAME::OnPlotCurrentComponent(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), SCH_EDIT_FRAME::OnRightClick(), DIALOG_BOM::OnRunPlugin(), SCH_EDIT_FRAME::OnSaveProject(), DIALOG_CHOOSE_COMPONENT::OnSchViewPaint(), onSelectLibrary(), LIB_VIEW_FRAME::OnSelectSymbol(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnTestChipName(), FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib(), LIB_EDIT_FRAME::OnViewEntryDoc(), LIB_VIEW_FRAME::onViewSymbolDocument(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::PasteListOfItems(), DIALOG_CHOOSE_COMPONENT::PopulateFootprintSelector(), SCH_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), LIB_VIEW_FRAME::RedrawActiveWindow(), EDA_3D_VIEWER::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), SCH_EDIT_FRAME::SaveEEFile(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), LIB_EDIT_FRAME::saveLibrary(), LIB_EDIT_FRAME::SaveOneSymbol(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectComponentFromLibrary(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), LIB_EDIT_FRAME::selectSymLibTable(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), DIALOG_CHOOSE_COMPONENT::ShowFootprintFor(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::symTable(), EDA_3D_VIEWER::takeScreenshot(), SIM_PLOT_FRAME::updateNetlistExporter(), SCH_SCREEN::UpdateSymbolLinks(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::WriteNetListFile(), DIALOG_FOOTPRINT_BOARD_EDITOR::~DIALOG_FOOTPRINT_BOARD_EDITOR(), and DIALOG_FOOTPRINT_FP_EDITOR::~DIALOG_FOOTPRINT_FP_EDITOR().

35 {
36  return Kiway().Prj();
37 }
KIWAY & Kiway() const
Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in...
Definition: kiway_player.h:60
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:142
void KIWAY_HOLDER::SetKiway ( wxWindow *  aDest,
KIWAY aKiway 
)
inherited

Function SetKiway.

Parameters
aDestis the recipient of aKiway pointer. It is only used for debugging, since "this" is not a wxWindow*. "this" is a KIWAY_HOLDER mix-in.
aKiwayis often from a parent window, or from KIFACE::CreateWindow().

Definition at line 41 of file kiway_holder.cpp.

References KIWAY_HOLDER::m_kiway, and name.

Referenced by DIALOG_SHIM::DIALOG_SHIM(), KIWAY_HOLDER::Kiway(), and SIM_PLOT_FRAME::SIM_PLOT_FRAME().

42 {
43 #if defined(DEBUG)
44  // offer a trap point for debugging most any window
45  wxASSERT( aDest );
46  if( !strcmp( typeid(aDest).name(), "DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB" ) )
47  {
48  int breakhere=1;
49  (void) breakhere;
50  }
51 #endif
52 
53  (void) aDest;
54 
55  m_kiway = aKiway;
56 }
KIWAY * m_kiway
Definition: kiway_player.h:85
const char * name
Definition: DXF_plotter.cpp:61
void DIALOG_SHIM::SetSizeInDU ( int  x,
int  y 
)
protectedinherited

Set the dialog to the given dimensions in "dialog units".

These are units equivalent to 4* the average character width and 8* the average character height, allowing a dialog to be sized in a way that scales it with the system font.

Definition at line 118 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), HOTKEYS_EDITOR_DIALOG::HOTKEYS_EDITOR_DIALOG(), HTML_MESSAGE_BOX::HTML_MESSAGE_BOX(), DIALOG_SHIM::IsQuasiModal(), DIALOG_LAYERS_SETUP::OnInitDialog(), and HTML_MESSAGE_BOX::SetDialogSizeInDU().

119 {
120  wxSize sz( x, y );
121  SetSize( ConvertDialogToPixels( sz ) );
122 }
bool DIALOG_SHIM::Show ( bool  show)
overrideinherited

Definition at line 146 of file dialog_shim.cpp.

References class_map, EDA_RECT::GetPosition(), EDA_RECT::GetSize(), DIALOG_SHIM::m_hash_key, max, wxPoint::x, and wxPoint::y.

Referenced by DisplayHotkeyList(), DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), DIALOG_SHIM::IsQuasiModal(), DIALOG_SCH_FIND::OnCancel(), DIALOG_DRC_CONTROL::OnLeftDClickClearance(), DIALOG_DRC_CONTROL::OnLeftDClickUnconnected(), DIALOG_DRC_CONTROL::OnPopupMenu(), DIALOG_EXCHANGE_FOOTPRINTS::OnQuit(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), SCH_COMPONENT::SetPosition(), DRC::ShowDRCDialog(), and DIALOG_SHIM::ShowQuasiModal().

147 {
148  bool ret;
149  const char* hash_key;
150 
151  if( m_hash_key.size() )
152  {
153  // a special case like EDA_LIST_DIALOG, which has multiple uses.
154  hash_key = m_hash_key.c_str();
155  }
156  else
157  {
158  hash_key = typeid(*this).name();
159  }
160 
161  // Show or hide the window. If hiding, save current position and size.
162  // If showing, use previous position and size.
163  if( show )
164  {
165 #ifndef __WINDOWS__
166  wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
167 #endif
168  ret = wxDialog::Show( show );
169 
170  // classname is key, returns a zeroed out default EDA_RECT if none existed before.
171  EDA_RECT savedDialogRect = class_map[ hash_key ];
172 
173  if( savedDialogRect.GetSize().x != 0 && savedDialogRect.GetSize().y != 0 )
174  {
175  SetSize( savedDialogRect.GetPosition().x,
176  savedDialogRect.GetPosition().y,
177  std::max( wxDialog::GetSize().x, savedDialogRect.GetSize().x ),
178  std::max( wxDialog::GetSize().y, savedDialogRect.GetSize().y ),
179  0 );
180  }
181 
182  // Be sure that the dialog appears in a visible area
183  // (the dialog position might have been stored at the time when it was
184  // shown on another display)
185  if( wxDisplay::GetFromWindow( this ) == wxNOT_FOUND )
186  Centre();
187  }
188  else
189  {
190  // Save the dialog's position & size before hiding, using classname as key
191  class_map[ hash_key ] = EDA_RECT( wxDialog::GetPosition(), wxDialog::GetSize() );
192 
193 #ifdef __WXMAC__
194  if ( m_eventLoop )
195  m_eventLoop->Exit( GetReturnCode() ); // Needed for APP-MODAL dlgs on OSX
196 #endif
197 
198  ret = wxDialog::Show( show );
199  }
200 
201  return ret;
202 }
const wxSize GetSize() const
Definition: eda_rect.h:101
std::string m_hash_key
Definition: dialog_shim.h:151
static RECT_MAP class_map
const wxPoint GetPosition() const
Definition: eda_rect.h:113
#define max(a, b)
Definition: auxiliary.h:86
Class EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44
int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 558 of file dialog_shim.cpp.

References DBG, DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by SCH_EDIT_FRAME::EditComponent(), SCH_EDIT_FRAME::EditComponentFieldText(), LIB_EDIT_FRAME::EditField(), EDIT_TOOL::ExchangeFootprints(), PCB_EDIT_FRAME::InstallExchangeModuleFrame(), LIB_EDIT_FRAME::InstallFieldsEditorDialog(), SCH_EDIT_FRAME::InstallHierarchyFrame(), InvokeDialogEditComponentsLibId(), InvokeDialogUpdateFields(), SCH_EDIT_FRAME::OnLaunchBomManager(), SCH_EDIT_FRAME::OnRemapSymbols(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OpenProjectFiles(), and SCH_BASE_FRAME::SelectComponentFromLibrary().

559 {
560  // This is an exception safe way to zero a pointer before returning.
561  // Yes, even though DismissModal() clears this first normally, this is
562  // here in case there's an exception before the dialog is dismissed.
563  struct NULLER
564  {
565  void*& m_what;
566  NULLER( void*& aPtr ) : m_what( aPtr ) {}
567  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
568  } clear_this( (void*&) m_qmodal_loop );
569 
570  // release the mouse if it's currently captured as the window having it
571  // will be disabled when this dialog is shown -- but will still keep the
572  // capture making it impossible to do anything in the modal dialog itself
573  wxWindow* win = wxWindow::GetCapture();
574  if( win )
575  win->ReleaseMouse();
576 
577  // Get the optimal parent
578  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
579 
580  // Show the optimal parent
581  DBG( if( parent ) printf( "%s: optimal parent: %s\n", __func__, typeid(*parent).name() );)
582 
583  wxASSERT_MSG( !m_qmodal_parent_disabler,
584  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
585 
586  // quasi-modal: disable only my "optimal" parent
588 
589 #ifdef __WXMAC__
590  // Apple in its infinite wisdom will raise a disabled window before even passing
591  // us the event, so we have no way to stop it. Instead, we must set an order on
592  // the windows so that the quasi-modal will be pushed in front of the disabled
593  // window when it is raised.
594  ReparentQuasiModal();
595 #endif
596  Show( true );
597 
598  m_qmodal_showing = true;
599 
600  EVENT_LOOP event_loop;
601 
602  m_qmodal_loop = &event_loop;
603 
604  event_loop.Run();
605 
606  return GetReturnCode();
607 }
bool m_qmodal_showing
Definition: dialog_shim.h:155
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:154
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:156
Toggle a window&#39;s "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:33
#define DBG(x)
Definition: fctsys.h:33
bool DIALOG_SPICE_MODEL::TransferDataFromWindow ( )
overrideprivatevirtual

Definition at line 100 of file dialog_spice_model.cpp.

References empty(), generatePowerSource(), getField(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldName(), i, DIALOG_SPICE_MODEL_BASE::m_disabled, m_fields, m_fieldsTmp, DIALOG_SPICE_MODEL_BASE::m_model, DIALOG_SPICE_MODEL_BASE::m_modelLibrary, DIALOG_SPICE_MODEL_BASE::m_modelName, DIALOG_SPICE_MODEL_BASE::m_modelType, DIALOG_SPICE_MODEL_BASE::m_nodeSeqCheck, DIALOG_SPICE_MODEL_BASE::m_nodeSeqVal, DIALOG_SPICE_MODEL_BASE::m_notebook, DIALOG_SPICE_MODEL_BASE::m_passive, DIALOG_SPICE_MODEL_BASE::m_pasType, DIALOG_SPICE_MODEL_BASE::m_pasValue, DIALOG_SPICE_MODEL_BASE::m_power, DIALOG_SPICE_MODEL_BASE::m_pwrType, EDA_TEXT::SetText(), SF_ENABLED, SF_END, SF_LIB_FILE, SF_MODEL, SF_NODE_SEQUENCE, SF_PRIMITIVE, SP_BJT, SP_CAPACITOR, SP_DIODE, SP_INDUCTOR, SP_ISOURCE, SP_MOSFET, SP_RESISTOR, SP_SUBCKT, and SP_VSOURCE.

101 {
102  if( !DIALOG_SPICE_MODEL_BASE::TransferDataFromWindow() )
103  return false;
104 
105  wxWindow* page = m_notebook->GetCurrentPage();
106 
107  // Passive
108  if( page == m_passive )
109  {
110  if( !m_passive->Validate() )
111  return false;
112 
113  switch( m_pasType->GetSelection() )
114  {
115  case 0: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_RESISTOR; break;
116  case 1: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_CAPACITOR; break;
117  case 2: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_INDUCTOR; break;
118 
119  default:
120  wxASSERT_MSG( false, "Unhandled passive type" );
121  return false;
122  break;
123  }
124 
125  m_fieldsTmp[SF_MODEL] = m_pasValue->GetValue();
126  }
127 
128 
129  // Model
130  else if( page == m_model )
131  {
132  if( !m_model->Validate() )
133  return false;
134 
135  switch( m_modelType->GetSelection() )
136  {
137  case 0: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_SUBCKT; break;
138  case 1: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_BJT; break;
139  case 2: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_MOSFET; break;
140  case 3: m_fieldsTmp[SF_PRIMITIVE] = (char) SP_DIODE; break;
141 
142  default:
143  wxASSERT_MSG( false, "Unhandled semiconductor type" );
144  return false;
145  break;
146  }
147 
148  m_fieldsTmp[SF_MODEL] = m_modelName->GetValue();
149 
150  if( !empty( m_modelLibrary ) )
151  m_fieldsTmp[SF_LIB_FILE] = m_modelLibrary->GetValue();
152  }
153 
154 
155  // Power source
156  else if( page == m_power )
157  {
158  wxString model;
159 
160  if( !generatePowerSource( model ) )
161  return false;
162 
163  m_fieldsTmp[SF_PRIMITIVE] = (char)( m_pwrType->GetSelection() ? SP_ISOURCE : SP_VSOURCE );
164  m_fieldsTmp[SF_MODEL] = model;
165  }
166 
167 
168  else
169  {
170  wxASSERT_MSG( false, "Unhandled model type" );
171  return false;
172  }
173 
174  m_fieldsTmp[SF_ENABLED] = !m_disabled->GetValue() ? "Y" : "N"; // note bool inversion
175  m_fieldsTmp[SF_NODE_SEQUENCE] = m_nodeSeqCheck->IsChecked() ? m_nodeSeqVal->GetValue() : "";
176 
177  // Apply the settings
178  for( int i = 0; i < SF_END; ++i )
179  {
180  if( m_fieldsTmp.count( (SPICE_FIELD) i ) > 0 && !m_fieldsTmp.at( i ).IsEmpty() )
181  {
182  getField( i ).SetText( m_fieldsTmp[i] );
183  }
184  else
185  {
186  // Erase empty fields (having empty fields causes a warning in the properties dialog)
187  const wxString& spiceField = NETLIST_EXPORTER_PSPICE::GetSpiceFieldName( (SPICE_FIELD) i );
188 
189  auto fieldIt = std::find_if( m_fields.begin(), m_fields.end(), [&]( const SCH_FIELD& f ) {
190  return f.GetName() == spiceField;
191  } );
192 
193  if( fieldIt != m_fields.end() )
194  m_fields.erase( fieldIt );
195  }
196  }
197 
198  return true;
199 }
Class SCH_FIELD instances are attached to a component and provide a place for the component&#39;s value...
Definition: sch_field.h:56
SCH_FIELD & getField(int aFieldType)
Returns or creates a field in the edited schematic fields vector.
static const wxString & GetSpiceFieldName(SPICE_FIELD aField)
Returns a string used for a particular component field related to Spice simulation.
bool generatePowerSource(wxString &aTarget) const
Generates a string to describe power source parameters, basing on the current selection.
static bool empty(const wxTextCtrl *aCtrl)
std::map< int, wxString > m_fieldsTmp
Temporary field values
SCH_FIELDS & m_fields
Fields from the component properties dialog
size_t i
Definition: json11.cpp:597
virtual void SetText(const wxString &aText)
Definition: eda_text.h:139
bool DIALOG_SPICE_MODEL::TransferDataToWindow ( )
overrideprivatevirtual

Definition at line 202 of file dialog_spice_model.cpp.

References empty(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldDefVal(), NETLIST_EXPORTER_PSPICE::GetSpiceFields(), loadLibrary(), m_component, DIALOG_SPICE_MODEL_BASE::m_disabled, m_fields, m_fieldsTmp, DIALOG_SPICE_MODEL_BASE::m_model, DIALOG_SPICE_MODEL_BASE::m_modelLibrary, DIALOG_SPICE_MODEL_BASE::m_modelName, DIALOG_SPICE_MODEL_BASE::m_modelType, DIALOG_SPICE_MODEL_BASE::m_nodeSeqCheck, DIALOG_SPICE_MODEL_BASE::m_nodeSeqVal, DIALOG_SPICE_MODEL_BASE::m_notebook, DIALOG_SPICE_MODEL_BASE::m_passive, DIALOG_SPICE_MODEL_BASE::m_pasType, DIALOG_SPICE_MODEL_BASE::m_pasValue, DIALOG_SPICE_MODEL_BASE::m_power, DIALOG_SPICE_MODEL_BASE::m_pwrType, NET_ADJUST_INCLUDE_PATHS, NET_ADJUST_PASSIVE_VALS, parsePowerSource(), SF_ENABLED, SF_LIB_FILE, SF_MODEL, SF_NODE_SEQUENCE, SF_PRIMITIVE, SP_BJT, SP_CAPACITOR, SP_DIODE, SP_INDUCTOR, SP_ISOURCE, SP_MOSFET, SP_RESISTOR, SP_SUBCKT, SP_VSOURCE, and NETLIST_EXPORTER_PSPICE::StringToBool().

Referenced by onInitDlg().

203 {
204  const auto& spiceFields = NETLIST_EXPORTER_PSPICE::GetSpiceFields();
205 
206  // Fill out the working buffer
207  for( unsigned int idx = 0; idx < spiceFields.size(); ++idx )
208  {
209  const wxString& spiceField = spiceFields[idx];
210 
211  auto fieldIt = std::find_if( m_fields.begin(), m_fields.end(), [&]( const SCH_FIELD& f ) {
212  return f.GetName() == spiceField;
213  } );
214 
215  // Do not modify the existing value, just add missing fields with default values
216  if( fieldIt != m_fields.end() && !fieldIt->GetText().IsEmpty() )
217  m_fieldsTmp[idx] = fieldIt->GetText();
218  else
221  }
222 
223  // Analyze the component fields to fill out the dialog
224  char primitive = toupper( m_fieldsTmp[SF_PRIMITIVE][0] );
225 
226  switch( primitive )
227  {
228  case SP_RESISTOR:
229  case SP_CAPACITOR:
230  case SP_INDUCTOR:
231  m_notebook->SetSelection( m_notebook->FindPage( m_passive ) );
232  m_pasType->SetSelection( primitive == SP_RESISTOR ? 0
233  : primitive == SP_CAPACITOR ? 1
234  : primitive == SP_INDUCTOR ? 2
235  : -1 );
236  m_pasValue->SetValue( m_fieldsTmp[SF_MODEL] );
237  break;
238 
239  case SP_SUBCKT:
240  case SP_DIODE:
241  case SP_BJT:
242  case SP_MOSFET:
243  m_notebook->SetSelection( m_notebook->FindPage( m_model ) );
244  m_modelType->SetSelection( primitive == SP_SUBCKT ? 0
245  : primitive == SP_BJT ? 1
246  : primitive == SP_MOSFET ? 2
247  : primitive == SP_DIODE ? 3
248  : -1 );
249  m_modelName->SetValue( m_fieldsTmp[SF_MODEL] );
250  m_modelLibrary->SetValue( m_fieldsTmp[SF_LIB_FILE] );
251 
252  if( !empty( m_modelLibrary ) )
253  {
254  const wxString& libFile = m_modelLibrary->GetValue();
255  m_fieldsTmp[SF_LIB_FILE] = libFile;
256  loadLibrary( libFile );
257  }
258  break;
259 
260  case SP_VSOURCE:
261  case SP_ISOURCE:
262  if( !parsePowerSource( m_fieldsTmp[SF_MODEL] ) )
263  return false;
264 
265  m_notebook->SetSelection( m_notebook->FindPage( m_power ) );
266  m_pwrType->SetSelection( primitive == SP_ISOURCE ? 1 : 0 );
267  break;
268 
269  default:
270  //wxASSERT_MSG( false, "Unhandled Spice primitive type" );
271  break;
272  }
273 
275 
276  // Check if node sequence is different than the default one
279  {
280  m_nodeSeqCheck->SetValue( true );
282  }
283 
284  return DIALOG_SPICE_MODEL_BASE::TransferDataToWindow();
285 }
Class SCH_FIELD instances are attached to a component and provide a place for the component&#39;s value...
Definition: sch_field.h:56
SCH_COMPONENT & m_component
Edited component
static bool StringToBool(const wxString &aStr)
Convertes typical boolean string values (no/yes, true/false, 1/0) to a boolean value.
bool parsePowerSource(const wxString &aModel)
Parse a string describing a power source, so appropriate settings are checked in the dialog...
static wxString GetSpiceFieldDefVal(SPICE_FIELD aField, SCH_COMPONENT *aComponent, unsigned aCtl)
Retrieves the default value for a given field.
static bool empty(const wxTextCtrl *aCtrl)
std::map< int, wxString > m_fieldsTmp
Temporary field values
SCH_FIELDS & m_fields
Fields from the component properties dialog
void loadLibrary(const wxString &aFilePath)
Loads a list of components (.model and .subckt) from a spice library file and adds them to a combo bo...
static const std::vector< wxString > & GetSpiceFields()
Returns a vector of component field names related to Spice simulation.
virtual bool DIALOG_SPICE_MODEL::Validate ( )
inlineoverrideprivatevirtual

Definition at line 86 of file dialog_spice_model.h.

87  {
88  return true;
89  }
int DIALOG_SHIM::VertPixelsFromDU ( int  y)
protectedinherited

Convert an integer number of dialog units to pixels, vertically.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 132 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_SHIM::IsQuasiModal(), and DIALOG_LAYERS_SETUP::OnInitDialog().

133 {
134  wxSize sz( 0, y );
135  return ConvertDialogToPixels( sz ).y;
136 }

Member Data Documentation

SCH_COMPONENT& DIALOG_SPICE_MODEL::m_component
private

Edited component

Definition at line 107 of file dialog_spice_model.h.

Referenced by getField(), and TransferDataToWindow().

wxCheckBox* DIALOG_SPICE_MODEL_BASE::m_disabled
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expFallConst
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expFallDelay
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expInit
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expPulsed
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expRiseConst
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_expRiseDelay
protectedinherited
SCH_FIELDS& DIALOG_SPICE_MODEL::m_fields
private

Fields from the component properties dialog

Definition at line 110 of file dialog_spice_model.h.

Referenced by getField(), TransferDataFromWindow(), and TransferDataToWindow().

std::map<int, wxString> DIALOG_SPICE_MODEL::m_fieldsTmp
private

Temporary field values

Definition at line 113 of file dialog_spice_model.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

bool DIALOG_SHIM::m_fixupsRun
protectedinherited

Definition at line 149 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnPaint().

wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_genAcMag
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_genAcPhase
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_genDc
protectedinherited
std::string DIALOG_SHIM::m_hash_key
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_libraryContents
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_model
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_modelLibrary
protectedinherited
std::map<wxString, MODEL> DIALOG_SPICE_MODEL::m_models
private

Models available in the selected library file

Definition at line 133 of file dialog_spice_model.h.

Referenced by loadLibrary(), and onModelSelected().

wxComboBox* DIALOG_SPICE_MODEL_BASE::m_modelType
protectedinherited
wxCheckBox* DIALOG_SPICE_MODEL_BASE::m_nodeSeqCheck
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_nodeSeqVal
protectedinherited
wxNotebook* DIALOG_SPICE_MODEL_BASE::m_notebook
protectedinherited
wxTextValidator DIALOG_SPICE_MODEL::m_notEmptyValidator
private

Definition at line 140 of file dialog_spice_model.h.

Referenced by DIALOG_SPICE_MODEL().

wxPanel* DIALOG_SPICE_MODEL_BASE::m_passive
protectedinherited
wxComboBox* DIALOG_SPICE_MODEL_BASE::m_pasType
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pasValue
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_power
protectedinherited
wxNotebook* DIALOG_SPICE_MODEL_BASE::m_powerNotebook
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseDelay
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseFall
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseInit
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseNominal
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulsePeriod
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseRise
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pulseWidth
protectedinherited
wxButton* DIALOG_SPICE_MODEL_BASE::m_pwlAddButton
protectedinherited
wxButton* DIALOG_SPICE_MODEL_BASE::m_pwlRemoveBtn
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pwlTime
protectedinherited
long DIALOG_SPICE_MODEL::m_pwlTimeCol
private

Column identifiers for PWL power source value list

Definition at line 136 of file dialog_spice_model.h.

Referenced by addPwlValue(), DIALOG_SPICE_MODEL(), and generatePowerSource().

wxListCtrl* DIALOG_SPICE_MODEL_BASE::m_pwlValList
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_pwlValue
protectedinherited
long DIALOG_SPICE_MODEL::m_pwlValueCol
private

Definition at line 136 of file dialog_spice_model.h.

Referenced by addPwlValue(), DIALOG_SPICE_MODEL(), and generatePowerSource().

wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrAm
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrExp
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrExtData
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrFm
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrPulse
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrPwl
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrRandom
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrSin
protectedinherited
wxPanel* DIALOG_SPICE_MODEL_BASE::m_pwrTransNoise
protectedinherited
wxRadioBox* DIALOG_SPICE_MODEL_BASE::m_pwrType
protectedinherited
EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 154 of file dialog_shim.h.

Referenced by DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().

WDO_ENABLE_DISABLE* DIALOG_SHIM::m_qmodal_parent_disabler
protectedinherited
bool DIALOG_SHIM::m_qmodal_showing
protectedinherited
wxStdDialogButtonSizer* DIALOG_SPICE_MODEL_BASE::m_sdbSizer
protectedinherited
wxButton* DIALOG_SPICE_MODEL_BASE::m_sdbSizerCancel
protectedinherited
wxButton* DIALOG_SPICE_MODEL_BASE::m_sdbSizerOK
protectedinherited
wxButton* DIALOG_SPICE_MODEL_BASE::m_selectLibrary
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_sinAmplitude
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_sinDampFactor
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_sinDelay
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_sinFreq
protectedinherited
wxTextCtrl* DIALOG_SPICE_MODEL_BASE::m_sinOffset
protectedinherited
SPICE_VALIDATOR DIALOG_SPICE_MODEL::m_spiceEmptyValidator
private

Definition at line 139 of file dialog_spice_model.h.

Referenced by DIALOG_SPICE_MODEL().

SPICE_VALIDATOR DIALOG_SPICE_MODEL::m_spiceValidator
private

Definition at line 138 of file dialog_spice_model.h.

Referenced by DIALOG_SPICE_MODEL().

wxStaticLine* DIALOG_SPICE_MODEL_BASE::m_staticline1
protectedinherited
wxStaticLine* DIALOG_SPICE_MODEL_BASE::m_staticline2
protectedinherited
wxStaticLine* DIALOG_SPICE_MODEL_BASE::m_staticline3
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText10
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText11
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText111
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText112
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText113
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText12
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText13
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText131
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText132
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText133
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText134
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText135
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText136
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText137
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText14
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText15
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText16
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText17
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText18
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText2
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText20
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText21
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText211
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText212
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText213
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText214
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText215
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText22
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText23
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText24
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText25
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText26
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText261
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText262
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText263
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText264
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText265
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText266
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText27
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText28
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText29
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText3
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText30
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText31
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText32
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText321
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText34
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText341
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText342
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText343
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText35
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText36
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText37
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText38
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText39
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText4
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText40
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText41
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText42
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText43
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText44
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText45
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText46
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText47
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText48
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText49
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText5
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText50
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText51
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText52
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText53
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText54
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText55
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText56
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText57
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText58
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText59
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText60
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText62
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText63
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText7
protectedinherited
wxStaticText* DIALOG_SPICE_MODEL_BASE::m_staticText_femto
protectedinherited

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