Pressing Enter accepts changes in Simulation settings dialog
This commit is contained in:
parent
246a43baf0
commit
1a6e048afc
|
@ -55,6 +55,7 @@ DIALOG_SIM_SETTINGS::DIALOG_SIM_SETTINGS( wxWindow* aParent )
|
||||||
m_transFinal->SetValidator( m_posFloatValidator );
|
m_transFinal->SetValidator( m_posFloatValidator );
|
||||||
m_transInitial->SetValidator( m_posFloatValidator );
|
m_transInitial->SetValidator( m_posFloatValidator );
|
||||||
|
|
||||||
|
m_sdbSizerOK->SetDefault();
|
||||||
updateNetlistOpts();
|
updateNetlistOpts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -384,14 +384,14 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID
|
||||||
m_fixIncludePaths->SetValue(true);
|
m_fixIncludePaths->SetValue(true);
|
||||||
bSizer1->Add( m_fixIncludePaths, 0, wxALL, 5 );
|
bSizer1->Add( m_fixIncludePaths, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
||||||
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
||||||
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
||||||
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
||||||
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
||||||
m_sdbSizer1->Realize();
|
m_sdbSizer->Realize();
|
||||||
|
|
||||||
bSizer1->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
|
bSizer1->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( bSizer1 );
|
this->SetSizer( bSizer1 );
|
||||||
|
|
|
@ -5838,7 +5838,7 @@
|
||||||
<property name="Save">0</property>
|
<property name="Save">0</property>
|
||||||
<property name="Yes">0</property>
|
<property name="Yes">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">m_sdbSizer1</property>
|
<property name="name">m_sdbSizer</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<event name="OnApplyButtonClick"></event>
|
<event name="OnApplyButtonClick"></event>
|
||||||
<event name="OnCancelButtonClick"></event>
|
<event name="OnCancelButtonClick"></event>
|
||||||
|
|
|
@ -105,9 +105,9 @@ class DIALOG_SIM_SETTINGS_BASE : public wxDialog
|
||||||
wxButton* m_loadDirectives;
|
wxButton* m_loadDirectives;
|
||||||
wxCheckBox* m_fixPassiveVals;
|
wxCheckBox* m_fixPassiveVals;
|
||||||
wxCheckBox* m_fixIncludePaths;
|
wxCheckBox* m_fixIncludePaths;
|
||||||
wxStdDialogButtonSizer* m_sdbSizer1;
|
wxStdDialogButtonSizer* m_sdbSizer;
|
||||||
wxButton* m_sdbSizer1OK;
|
wxButton* m_sdbSizerOK;
|
||||||
wxButton* m_sdbSizer1Cancel;
|
wxButton* m_sdbSizerCancel;
|
||||||
|
|
||||||
// Virtual event handlers, overide them in your derived class
|
// Virtual event handlers, overide them in your derived class
|
||||||
virtual void onLoadDirectives( wxCommandEvent& event ) { event.Skip(); }
|
virtual void onLoadDirectives( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
Loading…
Reference in New Issue