Don't conflate instance and ibis widgets.
This commit is contained in:
parent
20a4d76635
commit
6390c28737
|
@ -292,6 +292,7 @@ void DIALOG_SIM_MODEL<T>::updateWidgets()
|
||||||
m_overrideCheckbox->SetValue( curModel().HasNonInstanceOverrides() );
|
m_overrideCheckbox->SetValue( curModel().HasNonInstanceOverrides() );
|
||||||
|
|
||||||
updateIbisWidgets();
|
updateIbisWidgets();
|
||||||
|
updateInstanceWidgets();
|
||||||
updateModelParamsTab();
|
updateModelParamsTab();
|
||||||
updateModelCodeTab();
|
updateModelCodeTab();
|
||||||
updatePinAssignments();
|
updatePinAssignments();
|
||||||
|
@ -356,10 +357,8 @@ void DIALOG_SIM_MODEL<T>::updateIbisWidgets()
|
||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void DIALOG_SIM_MODEL<T>::updateModelParamsTab()
|
void DIALOG_SIM_MODEL<T>::updateInstanceWidgets()
|
||||||
{
|
{
|
||||||
if( &curModel() != m_prevModel )
|
|
||||||
{
|
|
||||||
SIM_MODEL::DEVICE_TYPE_ deviceType = SIM_MODEL::TypeInfo( curModel().GetType() ).deviceType;
|
SIM_MODEL::DEVICE_TYPE_ deviceType = SIM_MODEL::TypeInfo( curModel().GetType() ).deviceType;
|
||||||
|
|
||||||
// Change the Type choice to match the current device type.
|
// Change the Type choice to match the current device type.
|
||||||
|
@ -383,7 +382,14 @@ void DIALOG_SIM_MODEL<T>::updateModelParamsTab()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
void DIALOG_SIM_MODEL<T>::updateModelParamsTab()
|
||||||
|
{
|
||||||
|
if( &curModel() != m_prevModel )
|
||||||
|
{
|
||||||
// This wxPropertyGridManager column and header stuff has to be here because it segfaults in
|
// This wxPropertyGridManager column and header stuff has to be here because it segfaults in
|
||||||
// the constructor.
|
// the constructor.
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,7 @@ private:
|
||||||
|
|
||||||
void updateWidgets();
|
void updateWidgets();
|
||||||
void updateIbisWidgets();
|
void updateIbisWidgets();
|
||||||
|
void updateInstanceWidgets();
|
||||||
void updateModelParamsTab();
|
void updateModelParamsTab();
|
||||||
void updateModelCodeTab();
|
void updateModelCodeTab();
|
||||||
void updatePinAssignments();
|
void updatePinAssignments();
|
||||||
|
|
Loading…
Reference in New Issue