diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt index c770371d91..8bd9a40b13 100644 --- a/eeschema/CMakeLists.txt +++ b/eeschema/CMakeLists.txt @@ -345,8 +345,8 @@ if( KICAD_SPICE ) ${EESCHEMA_SRCS} dialogs/dialog_signal_list.cpp dialogs/dialog_signal_list_base.cpp - dialogs/dialog_sim_settings.cpp - dialogs/dialog_sim_settings_base.cpp + dialogs/dialog_sim_command.cpp + dialogs/dialog_sim_command_base.cpp dialogs/dialog_sim_model.cpp dialogs/dialog_sim_model_base.cpp sim/ngspice_circuit_model.cpp diff --git a/eeschema/dialogs/dialog_sim_settings.cpp b/eeschema/dialogs/dialog_sim_command.cpp similarity index 96% rename from eeschema/dialogs/dialog_sim_settings.cpp rename to eeschema/dialogs/dialog_sim_command.cpp index 5510867e63..3bdd57bbf3 100644 --- a/eeschema/dialogs/dialog_sim_settings.cpp +++ b/eeschema/dialogs/dialog_sim_command.cpp @@ -23,7 +23,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "dialog_sim_settings.h" +#include "dialog_sim_command.h" #include #include @@ -56,10 +56,10 @@ static wxString getStringSelection( const wxChoice* aCtrl ) } -DIALOG_SIM_SETTINGS::DIALOG_SIM_SETTINGS( wxWindow* aParent, +DIALOG_SIM_COMMAND::DIALOG_SIM_COMMAND( wxWindow* aParent, std::shared_ptr aCircuitModel, std::shared_ptr& aSettings ) : - DIALOG_SIM_SETTINGS_BASE( aParent ), + DIALOG_SIM_COMMAND_BASE( aParent ), m_circuitModel( aCircuitModel ), m_settings( aSettings ), m_spiceEmptyValidator( true ) @@ -102,7 +102,7 @@ DIALOG_SIM_SETTINGS::DIALOG_SIM_SETTINGS( wxWindow* aParent, SetupStandardButtons(); } -wxString DIALOG_SIM_SETTINGS::evaluateDCControls( wxChoice* aDcSource, wxTextCtrl* aDcStart, +wxString DIALOG_SIM_COMMAND::evaluateDCControls( wxChoice* aDcSource, wxTextCtrl* aDcStart, wxTextCtrl* aDcStop, wxTextCtrl* aDcIncr ) { wxString dcSource = aDcSource->GetString( aDcSource->GetSelection() ); @@ -156,7 +156,7 @@ wxString DIALOG_SIM_SETTINGS::evaluateDCControls( wxChoice* aDcSource, wxTextCtr } -bool DIALOG_SIM_SETTINGS::TransferDataFromWindow() +bool DIALOG_SIM_COMMAND::TransferDataFromWindow() { if( !wxDialog::TransferDataFromWindow() ) return false; @@ -303,7 +303,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataFromWindow() } -bool DIALOG_SIM_SETTINGS::TransferDataToWindow() +bool DIALOG_SIM_COMMAND::TransferDataToWindow() { /// @todo one day it could interpret the sim command and fill out appropriate fields. if( empty( m_customTxt ) ) @@ -350,7 +350,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataToWindow() } -int DIALOG_SIM_SETTINGS::ShowModal() +int DIALOG_SIM_COMMAND::ShowModal() { // Fill out comboboxes that allows one to select nets // Map comoboxes to their current values @@ -377,11 +377,11 @@ int DIALOG_SIM_SETTINGS::ShowModal() c.first->SetSelection( idx ); } - return DIALOG_SIM_SETTINGS_BASE::ShowModal(); + return DIALOG_SIM_COMMAND_BASE::ShowModal(); } -void DIALOG_SIM_SETTINGS::updateDCSources( wxChar aType, wxChoice* aSource ) +void DIALOG_SIM_COMMAND::updateDCSources( wxChar aType, wxChoice* aSource ) { wxString prevSelection; @@ -426,7 +426,7 @@ void DIALOG_SIM_SETTINGS::updateDCSources( wxChar aType, wxChoice* aSource ) } -bool DIALOG_SIM_SETTINGS::parseCommand( const wxString& aCommand ) +bool DIALOG_SIM_COMMAND::parseCommand( const wxString& aCommand ) { if( aCommand.IsEmpty() ) return false; @@ -528,7 +528,7 @@ bool DIALOG_SIM_SETTINGS::parseCommand( const wxString& aCommand ) } -void DIALOG_SIM_SETTINGS::onSwapDCSources( wxCommandEvent& event ) +void DIALOG_SIM_COMMAND::onSwapDCSources( wxCommandEvent& event ) { std::vector> textCtrl = { { m_dcStart1, m_dcStart2 }, { m_dcStop1, m_dcStop2 }, @@ -561,7 +561,7 @@ void DIALOG_SIM_SETTINGS::onSwapDCSources( wxCommandEvent& event ) } -void DIALOG_SIM_SETTINGS::onDCEnableSecondSource( wxCommandEvent& event ) +void DIALOG_SIM_COMMAND::onDCEnableSecondSource( wxCommandEvent& event ) { bool is2ndSrcEnabled = m_dcEnable2->IsChecked(); wxChar type = getStringSelection( m_dcSourceType2 ).Upper().GetChar( 0 ); @@ -574,7 +574,7 @@ void DIALOG_SIM_SETTINGS::onDCEnableSecondSource( wxCommandEvent& event ) } -void DIALOG_SIM_SETTINGS::updateDCUnits( wxChar aType, wxChoice* aSource, +void DIALOG_SIM_COMMAND::updateDCUnits( wxChar aType, wxChoice* aSource, wxStaticText* aStartValUnit, wxStaticText* aEndValUnit, wxStaticText* aStepUnit ) { @@ -596,7 +596,7 @@ void DIALOG_SIM_SETTINGS::updateDCUnits( wxChar aType, wxChoice* aSource, } -void DIALOG_SIM_SETTINGS::loadDirectives() +void DIALOG_SIM_COMMAND::loadDirectives() { if( m_circuitModel ) m_customTxt->SetValue( m_circuitModel->GetSheetSimCommand() ); diff --git a/eeschema/dialogs/dialog_sim_settings.h b/eeschema/dialogs/dialog_sim_command.h similarity index 94% rename from eeschema/dialogs/dialog_sim_settings.h rename to eeschema/dialogs/dialog_sim_command.h index 263e89c9a1..f9e9db1c17 100644 --- a/eeschema/dialogs/dialog_sim_settings.h +++ b/eeschema/dialogs/dialog_sim_command.h @@ -24,10 +24,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#ifndef DIALOG_SIM_SETTINGS_H -#define DIALOG_SIM_SETTINGS_H +#ifndef DIALOG_SIM_COMMAND_H +#define DIALOG_SIM_COMMAND_H -#include "dialog_sim_settings_base.h" +#include "dialog_sim_command_base.h" #include #include @@ -36,10 +36,10 @@ class NGSPICE_CIRCUIT_MODEL; class SPICE_SIMULATOR_SETTINGS; -class DIALOG_SIM_SETTINGS : public DIALOG_SIM_SETTINGS_BASE +class DIALOG_SIM_COMMAND : public DIALOG_SIM_COMMAND_BASE { public: - DIALOG_SIM_SETTINGS( wxWindow* aParent, std::shared_ptr aCircuitModel, + DIALOG_SIM_COMMAND( wxWindow* aParent, std::shared_ptr aCircuitModel, std::shared_ptr& aSettings ); const wxString& GetSimCommand() const @@ -170,4 +170,4 @@ private: wxIntegerValidator m_posIntValidator; }; -#endif /* DIALOG_SIM_SETTINGS_H */ +#endif /* DIALOG_SIM_COMMAND_H */ diff --git a/eeschema/dialogs/dialog_sim_settings_base.cpp b/eeschema/dialogs/dialog_sim_command_base.cpp similarity index 77% rename from eeschema/dialogs/dialog_sim_settings_base.cpp rename to eeschema/dialogs/dialog_sim_command_base.cpp index 35c8275d84..3f3e077afe 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.cpp +++ b/eeschema/dialogs/dialog_sim_command_base.cpp @@ -1,15 +1,15 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-88b0f50) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// -#include "dialog_sim_settings_base.h" +#include "dialog_sim_command_base.h" /////////////////////////////////////////////////////////////////////////// -DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) +DIALOG_SIM_COMMAND_BASE::DIALOG_SIM_COMMAND_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); @@ -21,41 +21,37 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID wxBoxSizer* bSizer3; bSizer3 = new wxBoxSizer( wxVERTICAL ); - - bSizer3->Add( 0, 0, 1, wxEXPAND, 5 ); - wxString m_acScaleChoices[] = { _("Decade"), _("Octave"), _("Linear") }; int m_acScaleNChoices = sizeof( m_acScaleChoices ) / sizeof( wxString ); m_acScale = new wxRadioBox( m_pgAC, wxID_ANY, _("Frequency scale"), wxDefaultPosition, wxDefaultSize, m_acScaleNChoices, m_acScaleChoices, 1, wxRA_SPECIFY_COLS ); m_acScale->SetSelection( 0 ); m_acScale->Hide(); - bSizer3->Add( m_acScale, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); - - - bSizer3->Add( 0, 0, 1, wxEXPAND, 5 ); + bSizer3->Add( m_acScale, 0, wxALL|wxEXPAND, 5 ); wxFlexGridSizer* fgSizer1; - fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 ); - fgSizer1->SetFlexibleDirection( wxBOTH ); + fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 0 ); + fgSizer1->SetFlexibleDirection( wxHORIZONTAL ); fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); m_staticText1 = new wxStaticText( m_pgAC, wxID_ANY, _("Number of points per decade:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1->Wrap( -1 ); - fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_acPointsNumber = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer1->Add( m_acPointsNumber, 0, wxALL|wxEXPAND, 5 ); + fgSizer1->Add( m_acPointsNumber, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 ); m_staticText2 = new wxStaticText( m_pgAC, wxID_ANY, _("Start frequency:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText2->Wrap( -1 ); - fgSizer1->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizer1->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_acFreqStart = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer1->Add( m_acFreqStart, 0, wxALL|wxEXPAND, 5 ); + m_acFreqStart->SetMinSize( wxSize( 100,-1 ) ); + + fgSizer1->Add( m_acFreqStart, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_staticText19 = new wxStaticText( m_pgAC, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText19->Wrap( -1 ); @@ -63,17 +59,17 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID m_staticText3 = new wxStaticText( m_pgAC, wxID_ANY, _("Stop frequency:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText3->Wrap( -1 ); - fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_acFreqStop = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer1->Add( m_acFreqStop, 0, wxALL|wxEXPAND, 5 ); + fgSizer1->Add( m_acFreqStop, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_staticText110 = new wxStaticText( m_pgAC, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText110->Wrap( -1 ); fgSizer1->Add( m_staticText110, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 ); - bSizer3->Add( fgSizer1, 0, wxALIGN_CENTER_HORIZONTAL, 5 ); + bSizer3->Add( fgSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); bSizer3->Add( 0, 0, 1, wxEXPAND, 5 ); @@ -87,123 +83,122 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID wxBoxSizer* bSizer82; bSizer82 = new wxBoxSizer( wxVERTICAL ); - - bSizer82->Add( 0, 0, 1, wxEXPAND, 5 ); - wxGridBagSizer* gbSizer1; - gbSizer1 = new wxGridBagSizer( 0, 0 ); + gbSizer1 = new wxGridBagSizer( 5, 0 ); gbSizer1->SetFlexibleDirection( wxBOTH ); gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); m_dcEnable2 = new wxCheckBox( m_pgDC, wxID_ANY, _("Source 2"), wxDefaultPosition, wxDefaultSize, 0 ); m_dcEnable2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - gbSizer1->Add( m_dcEnable2, wxGBPosition( 0, 3 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); + gbSizer1->Add( m_dcEnable2, wxGBPosition( 0, 3 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 ); wxString m_dcSourceType1Choices[] = { _("V"), _("I"), _("R"), _("TEMP") }; int m_dcSourceType1NChoices = sizeof( m_dcSourceType1Choices ) / sizeof( wxString ); m_dcSourceType1 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSourceType1NChoices, m_dcSourceType1Choices, 0 ); m_dcSourceType1->SetSelection( 0 ); - gbSizer1->Add( m_dcSourceType1, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); + gbSizer1->Add( m_dcSourceType1, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 ); wxString m_dcSourceType2Choices[] = { _("V"), _("I"), _("R"), _("TEMP") }; int m_dcSourceType2NChoices = sizeof( m_dcSourceType2Choices ) / sizeof( wxString ); m_dcSourceType2 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSourceType2NChoices, m_dcSourceType2Choices, 0 ); m_dcSourceType2->SetSelection( 0 ); - gbSizer1->Add( m_dcSourceType2, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); + gbSizer1->Add( m_dcSourceType2, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_staticText4 = new wxStaticText( m_pgDC, wxID_ANY, _("Source:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText4->Wrap( -1 ); - gbSizer1->Add( m_staticText4, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_staticText4, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); m_staticText41 = new wxStaticText( m_pgDC, wxID_ANY, _("Sweep type:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText41->Wrap( -1 ); - gbSizer1->Add( m_staticText41, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 ); + gbSizer1->Add( m_staticText41, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT, 5 ); m_staticText411 = new wxStaticText( m_pgDC, wxID_ANY, _("Source 1"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText411->Wrap( -1 ); m_staticText411->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); - gbSizer1->Add( m_staticText411, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 ); + gbSizer1->Add( m_staticText411, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 ); wxArrayString m_dcSource1Choices; m_dcSource1 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSource1Choices, 0 ); m_dcSource1->SetSelection( 0 ); - gbSizer1->Add( m_dcSource1, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); + gbSizer1->Add( m_dcSource1, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 ); wxArrayString m_dcSource2Choices; m_dcSource2 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSource2Choices, 0 ); m_dcSource2->SetSelection( 0 ); - gbSizer1->Add( m_dcSource2, wxGBPosition( 2, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); + gbSizer1->Add( m_dcSource2, wxGBPosition( 2, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_staticText5 = new wxStaticText( m_pgDC, wxID_ANY, _("Starting value:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText5->Wrap( -1 ); - gbSizer1->Add( m_staticText5, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_staticText5, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); m_dcStart1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcStart1, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcStart1, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src1DCStartValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src1DCStartValUnit->Wrap( -1 ); m_src1DCStartValUnit->SetMinSize( wxSize( 80,-1 ) ); - gbSizer1->Add( m_src1DCStartValUnit, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src1DCStartValUnit, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_dcStart2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcStart2, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcStart2, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src2DCStartValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src2DCStartValUnit->Wrap( -1 ); - gbSizer1->Add( m_src2DCStartValUnit, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src2DCStartValUnit, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_staticText6 = new wxStaticText( m_pgDC, wxID_ANY, _("Final value:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText6->Wrap( -1 ); - gbSizer1->Add( m_staticText6, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_staticText6, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); m_dcStop1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcStop1, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcStop1, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src1DCEndValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src1DCEndValUnit->Wrap( -1 ); m_src1DCEndValUnit->SetMinSize( wxSize( 80,-1 ) ); - gbSizer1->Add( m_src1DCEndValUnit, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src1DCEndValUnit, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_dcStop2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcStop2, wxGBPosition( 4, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcStop2, wxGBPosition( 4, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src2DCEndValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src2DCEndValUnit->Wrap( -1 ); - gbSizer1->Add( m_src2DCEndValUnit, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src2DCEndValUnit, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_staticText7 = new wxStaticText( m_pgDC, wxID_ANY, _("Increment step:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText7->Wrap( -1 ); - gbSizer1->Add( m_staticText7, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_staticText7, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); m_dcIncr1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcIncr1, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcIncr1, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src1DCStepUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src1DCStepUnit->Wrap( -1 ); m_src1DCStepUnit->SetMinSize( wxSize( 80,-1 ) ); - gbSizer1->Add( m_src1DCStepUnit, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src1DCStepUnit, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); m_dcIncr2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_dcIncr2, wxGBPosition( 5, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_dcIncr2, wxGBPosition( 5, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); m_src2DCStepUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 ); m_src2DCStepUnit->Wrap( -1 ); - gbSizer1->Add( m_src2DCStepUnit, wxGBPosition( 5, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + gbSizer1->Add( m_src2DCStepUnit, wxGBPosition( 5, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); + + + bSizer82->Add( gbSizer1, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 5 ); + + + bSizer82->Add( 0, 5, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); m_swapDCSources = new wxButton( m_pgDC, wxID_ANY, _("Swap sources"), wxDefaultPosition, wxDefaultSize, 0 ); - gbSizer1->Add( m_swapDCSources, wxGBPosition( 6, 0 ), wxGBSpan( 1, 5 ), wxALL|wxEXPAND, 5 ); + m_swapDCSources->SetMinSize( wxSize( 132,-1 ) ); - - bSizer82->Add( gbSizer1, 0, wxALIGN_CENTER_HORIZONTAL, 5 ); - - - bSizer82->Add( 0, 0, 1, wxEXPAND, 5 ); + bSizer82->Add( m_swapDCSources, 0, wxALL, 5 ); m_pgDC->SetSizer( bSizer82 ); @@ -344,68 +339,64 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID wxBoxSizer* bSizer81; bSizer81 = new wxBoxSizer( wxVERTICAL ); - - bSizer81->Add( 0, 0, 1, wxEXPAND, 5 ); - wxFlexGridSizer* fgSizer6; - fgSizer6 = new wxFlexGridSizer( 0, 4, 0, 0 ); + fgSizer6 = new wxFlexGridSizer( 0, 4, 5, 0 ); fgSizer6->SetFlexibleDirection( wxBOTH ); fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); - m_staticText151 = new wxStaticText( m_pgTransient, wxID_ANY, _("Time step:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText151->Wrap( -1 ); - fgSizer6->Add( m_staticText151, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + m_timeLabel = new wxStaticText( m_pgTransient, wxID_ANY, _("Time step:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_timeLabel->Wrap( -1 ); + fgSizer6->Add( m_timeLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_transStep = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer6->Add( m_transStep, 0, wxALL, 5 ); + m_transStep->SetMinSize( wxSize( 100,-1 ) ); - m_staticText1511 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText1511->Wrap( -1 ); - fgSizer6->Add( m_staticText1511, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 ); + fgSizer6->Add( m_transStep, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); + + m_timeUnits = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); + m_timeUnits->Wrap( -1 ); + fgSizer6->Add( m_timeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 ); fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 ); - m_staticText161 = new wxStaticText( m_pgTransient, wxID_ANY, _("Final time:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText161->Wrap( -1 ); - fgSizer6->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + m_transFinalLabel = new wxStaticText( m_pgTransient, wxID_ANY, _("Final time:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_transFinalLabel->Wrap( -1 ); + fgSizer6->Add( m_transFinalLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_transFinal = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer6->Add( m_transFinal, 0, wxALL, 5 ); + fgSizer6->Add( m_transFinal, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); - m_staticText1512 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText1512->Wrap( -1 ); - fgSizer6->Add( m_staticText1512, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 ); + m_transFinalUnits = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); + m_transFinalUnits->Wrap( -1 ); + fgSizer6->Add( m_transFinalUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 ); fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 ); - m_staticText17 = new wxStaticText( m_pgTransient, wxID_ANY, _("Initial time:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText17->Wrap( -1 ); - fgSizer6->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + m_transInitialLabel = new wxStaticText( m_pgTransient, wxID_ANY, _("Initial time:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_transInitialLabel->Wrap( -1 ); + fgSizer6->Add( m_transInitialLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_transInitial = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer6->Add( m_transInitial, 0, wxALL, 5 ); + fgSizer6->Add( m_transInitial, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 ); - m_staticText1513 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText1513->Wrap( -1 ); - fgSizer6->Add( m_staticText1513, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 ); + m_transInitialUnits = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 ); + m_transInitialUnits->Wrap( -1 ); + fgSizer6->Add( m_transInitialUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 ); m_staticText24 = new wxStaticText( m_pgTransient, wxID_ANY, _("(optional; default 0)"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText24->Wrap( -1 ); fgSizer6->Add( m_staticText24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - bSizer81->Add( fgSizer6, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 ); - - - bSizer81->Add( 0, 0, 1, wxEXPAND, 5 ); + bSizer81->Add( fgSizer6, 0, wxALL|wxEXPAND, 5 ); m_pgTransient->SetSizer( bSizer81 ); m_pgTransient->Layout(); bSizer81->Fit( m_pgTransient ); - m_simPages->AddPage( m_pgTransient, _("Transient"), false ); + m_simPages->AddPage( m_pgTransient, _("Transient"), true ); m_pgCustom = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); wxBoxSizer* bSizer2; bSizer2 = new wxBoxSizer( wxVERTICAL ); @@ -428,7 +419,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID bSizer2->Fit( m_pgCustom ); m_simPages->AddPage( m_pgCustom, _("Custom"), false ); - bSizer1->Add( m_simPages, 1, wxALL|wxEXPAND, 5 ); + bSizer1->Add( m_simPages, 1, wxALL|wxEXPAND, 10 ); wxBoxSizer* bSizer88; bSizer88 = new wxBoxSizer( wxVERTICAL ); @@ -457,7 +448,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID bSizer88->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); - bSizer1->Add( bSizer88, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); + bSizer1->Add( bSizer88, 0, wxEXPAND, 5 ); m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizerOK = new wxButton( this, wxID_OK ); @@ -476,22 +467,22 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID this->Centre( wxBOTH ); // Connect Events - this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) ); - m_dcEnable2->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCEnableSecondSource ), NULL, this ); - m_dcSourceType1->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource1Selected ), NULL, this ); - m_dcSourceType2->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource2Selected ), NULL, this ); - m_swapDCSources->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onSwapDCSources ), NULL, this ); - m_loadDirectives->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this ); + this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_COMMAND_BASE::onInitDlg ) ); + m_dcEnable2->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCEnableSecondSource ), NULL, this ); + m_dcSourceType1->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCSource1Selected ), NULL, this ); + m_dcSourceType2->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCSource2Selected ), NULL, this ); + m_swapDCSources->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onSwapDCSources ), NULL, this ); + m_loadDirectives->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onLoadDirectives ), NULL, this ); } -DIALOG_SIM_SETTINGS_BASE::~DIALOG_SIM_SETTINGS_BASE() +DIALOG_SIM_COMMAND_BASE::~DIALOG_SIM_COMMAND_BASE() { // Disconnect Events - this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) ); - m_dcEnable2->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCEnableSecondSource ), NULL, this ); - m_dcSourceType1->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource1Selected ), NULL, this ); - m_dcSourceType2->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource2Selected ), NULL, this ); - m_swapDCSources->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onSwapDCSources ), NULL, this ); - m_loadDirectives->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this ); + this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_COMMAND_BASE::onInitDlg ) ); + m_dcEnable2->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCEnableSecondSource ), NULL, this ); + m_dcSourceType1->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCSource1Selected ), NULL, this ); + m_dcSourceType2->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onDCSource2Selected ), NULL, this ); + m_swapDCSources->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onSwapDCSources ), NULL, this ); + m_loadDirectives->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_COMMAND_BASE::onLoadDirectives ), NULL, this ); } diff --git a/eeschema/dialogs/dialog_sim_settings_base.fbp b/eeschema/dialogs/dialog_sim_command_base.fbp similarity index 97% rename from eeschema/dialogs/dialog_sim_settings_base.fbp rename to eeschema/dialogs/dialog_sim_command_base.fbp index 598f56eadd..a3a0efca20 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.fbp +++ b/eeschema/dialogs/dialog_sim_command_base.fbp @@ -11,13 +11,13 @@ res UTF-8 connect - dialog_sim_settings_base + dialog_sim_command_base 1000 none 1 - DIALOG_SIM_SETTINGS_BASE + DIALOG_SIM_COMMAND_BASE . @@ -45,7 +45,7 @@ wxID_ANY - DIALOG_SIM_SETTINGS_BASE + DIALOG_SIM_COMMAND_BASE -1,-1 wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER @@ -63,7 +63,7 @@ wxVERTICAL none - 5 + 10 wxALL|wxEXPAND 1 @@ -181,17 +181,7 @@ none 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALIGN_CENTER_HORIZONTAL|wxALL + wxALL|wxEXPAND 0 1 @@ -255,23 +245,13 @@ - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - 5 - wxALIGN_CENTER_HORIZONTAL + wxEXPAND|wxTOP|wxBOTTOM 0 3 - wxBOTH + wxHORIZONTAL 0 @@ -280,10 +260,10 @@ wxFLEX_GROWMODE_SPECIFIED none 0 - 0 + 5 5 - wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -344,7 +324,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 0 1 @@ -377,7 +357,7 @@ 0 - 0 + 0 @@ -418,7 +398,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -479,7 +459,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 0 1 @@ -512,10 +492,10 @@ 0 - 0 + 0 - + 100,-1 1 m_acFreqStart 1 @@ -604,7 +584,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -665,7 +645,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 0 1 @@ -698,7 +678,7 @@ 0 - 0 + 0 @@ -865,17 +845,7 @@ none 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALIGN_CENTER_HORIZONTAL + wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM 0 @@ -887,12 +857,12 @@ gbSizer1 wxFLEX_GROWMODE_SPECIFIED none - 0 + 5 5 2 3 - wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT 0 1 @@ -960,7 +930,7 @@ 5 1 1 - wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT 1 1 @@ -1028,7 +998,7 @@ 5 1 3 - wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT 1 1 @@ -1096,7 +1066,7 @@ 5 1 0 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 2 1 @@ -1160,7 +1130,7 @@ 5 1 0 - wxALL + wxRIGHT|wxLEFT 1 1 @@ -1224,7 +1194,7 @@ 5 1 1 - wxALL + wxBOTTOM|wxRIGHT|wxLEFT 0 1 @@ -1288,7 +1258,7 @@ 5 1 1 - wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT 2 1 @@ -1355,7 +1325,7 @@ 5 1 3 - wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND + wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT 2 1 @@ -1422,7 +1392,7 @@ 5 1 0 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 3 1 @@ -1486,7 +1456,7 @@ 5 1 1 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 3 1 @@ -1520,7 +1490,7 @@ 0 - 0 + 0 @@ -1553,7 +1523,7 @@ 5 1 2 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 3 1 @@ -1617,7 +1587,7 @@ 5 1 3 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 3 1 @@ -1651,7 +1621,7 @@ 0 - 0 + 0 @@ -1684,7 +1654,7 @@ 5 1 4 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 3 1 @@ -1748,7 +1718,7 @@ 5 1 0 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 4 1 @@ -1812,7 +1782,7 @@ 5 1 1 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 4 1 @@ -1846,7 +1816,7 @@ 0 - 0 + 0 @@ -1879,7 +1849,7 @@ 5 1 2 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 4 1 @@ -1943,7 +1913,7 @@ 5 1 3 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 4 1 @@ -1977,7 +1947,7 @@ 0 - 0 + 0 @@ -2010,7 +1980,7 @@ 5 1 4 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 4 1 @@ -2074,7 +2044,7 @@ 5 1 0 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT 5 1 @@ -2138,7 +2108,7 @@ 5 1 1 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 5 1 @@ -2172,7 +2142,7 @@ 0 - 0 + 0 @@ -2205,7 +2175,7 @@ 5 1 2 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 5 1 @@ -2269,7 +2239,7 @@ 5 1 3 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 5 1 @@ -2303,7 +2273,7 @@ 0 - 0 + 0 @@ -2336,7 +2306,7 @@ 5 1 4 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT 5 1 @@ -2396,95 +2366,92 @@ -1 - - 5 - 5 - 0 - wxALL|wxEXPAND - 6 - 1 - - 1 - 1 - 1 - 1 - - - - - 0 - - - - - 1 - 0 - 1 - - 1 - - 0 - 0 - - Dock - 0 - Left - 1 - - 1 - - - 0 - 0 - wxID_ANY - Swap sources - - 0 - - 0 - - - 0 - - 1 - m_swapDCSources - 1 - - - protected - 1 - - - - Resizable - 1 - - - ; ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - onSwapDCSources - - 5 - wxEXPAND - 1 + wxEXPAND|wxTOP|wxBOTTOM + 0 - 0 + 5 protected 0 + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + Swap sources + + 0 + + 0 + + + 0 + 132,-1 + 1 + m_swapDCSources + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + onSwapDCSources + + @@ -2545,7 +2512,7 @@ wxTAB_TRAVERSAL - + Noise 0 @@ -3899,11 +3866,11 @@ wxTAB_TRAVERSAL - + Transient - 0 - + 1 + 1 1 1 @@ -3954,26 +3921,16 @@ wxTAB_TRAVERSAL - + bSizer81 wxVERTICAL none - + 5 - wxEXPAND - 1 - - 0 - protected - 0 - - - - 5 - wxALL|wxALIGN_CENTER_HORIZONTAL + wxALL|wxEXPAND 0 - + 4 wxBOTH @@ -3984,10 +3941,10 @@ wxFLEX_GROWMODE_SPECIFIED none 0 - 0 + 5 5 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -4026,7 +3983,7 @@ 0 1 - m_staticText151 + m_timeLabel 1 @@ -4048,7 +4005,7 @@ 5 - wxALL + wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND 0 1 @@ -4081,10 +4038,10 @@ 0 - 0 + 0 - + 100,-1 1 m_transStep 1 @@ -4151,7 +4108,7 @@ 0 1 - m_staticText1511 + m_timeUnits 1 @@ -4183,7 +4140,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -4222,7 +4179,7 @@ 0 1 - m_staticText161 + m_transFinalLabel 1 @@ -4244,7 +4201,7 @@ 5 - wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 0 1 @@ -4277,7 +4234,7 @@ 0 - 0 + 0 @@ -4347,7 +4304,7 @@ 0 1 - m_staticText1512 + m_transFinalUnits 1 @@ -4379,7 +4336,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxLEFT 0 1 @@ -4418,7 +4375,7 @@ 0 1 - m_staticText17 + m_transInitialLabel 1 @@ -4440,7 +4397,7 @@ 5 - wxALL + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND 0 1 @@ -4473,7 +4430,7 @@ 0 - 0 + 0 @@ -4543,7 +4500,7 @@ 0 1 - m_staticText1513 + m_transInitialUnits 1 @@ -4626,16 +4583,6 @@ - - 5 - wxEXPAND - 1 - - 0 - protected - 0 - - @@ -4905,7 +4852,7 @@ 5 - wxEXPAND|wxRIGHT|wxLEFT + wxEXPAND 0 diff --git a/eeschema/dialogs/dialog_sim_settings_base.h b/eeschema/dialogs/dialog_sim_command_base.h similarity index 85% rename from eeschema/dialogs/dialog_sim_settings_base.h rename to eeschema/dialogs/dialog_sim_command_base.h index 17467fdb43..e47a1f7608 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.h +++ b/eeschema/dialogs/dialog_sim_command_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-88b0f50) +// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -27,8 +27,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -38,9 +38,9 @@ /////////////////////////////////////////////////////////////////////////////// -/// Class DIALOG_SIM_SETTINGS_BASE +/// Class DIALOG_SIM_COMMAND_BASE /////////////////////////////////////////////////////////////////////////////// -class DIALOG_SIM_SETTINGS_BASE : public DIALOG_SHIM +class DIALOG_SIM_COMMAND_BASE : public DIALOG_SHIM { private: @@ -103,15 +103,15 @@ class DIALOG_SIM_SETTINGS_BASE : public DIALOG_SHIM wxPanel* m_pgSensitivity; wxPanel* m_pgTransferFunction; wxPanel* m_pgTransient; - wxStaticText* m_staticText151; + wxStaticText* m_timeLabel; wxTextCtrl* m_transStep; - wxStaticText* m_staticText1511; - wxStaticText* m_staticText161; + wxStaticText* m_timeUnits; + wxStaticText* m_transFinalLabel; wxTextCtrl* m_transFinal; - wxStaticText* m_staticText1512; - wxStaticText* m_staticText17; + wxStaticText* m_transFinalUnits; + wxStaticText* m_transInitialLabel; wxTextCtrl* m_transInitial; - wxStaticText* m_staticText1513; + wxStaticText* m_transInitialUnits; wxStaticText* m_staticText24; wxPanel* m_pgCustom; wxStaticText* m_staticText18; @@ -136,9 +136,9 @@ class DIALOG_SIM_SETTINGS_BASE : public DIALOG_SHIM public: - DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Simulation Command"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); + DIALOG_SIM_COMMAND_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Simulation Command"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); - ~DIALOG_SIM_SETTINGS_BASE(); + ~DIALOG_SIM_COMMAND_BASE(); }; diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index d6328c6891..4929171c2a 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -1484,7 +1484,7 @@ void SIM_PLOT_FRAME::onSimulate( wxCommandEvent& event ) void SIM_PLOT_FRAME::onSettings( wxCommandEvent& event ) { SIM_PANEL_BASE* plotPanelWindow = getCurrentPlotWindow(); - DIALOG_SIM_SETTINGS dlg( this, m_circuitModel, m_simulator->Settings() ); + DIALOG_SIM_COMMAND dlg( this, m_circuitModel, m_simulator->Settings() ); wxString errors; WX_STRING_REPORTER reporter( &errors ); diff --git a/eeschema/sim/sim_plot_frame.h b/eeschema/sim/sim_plot_frame.h index a126e42d69..ee8f77137f 100644 --- a/eeschema/sim/sim_plot_frame.h +++ b/eeschema/sim/sim_plot_frame.h @@ -38,7 +38,7 @@ #include "sim_types.h" #include -#include +#include #include diff --git a/eeschema/sim/sim_workbook.h b/eeschema/sim/sim_workbook.h index 6149949487..292535d0e9 100644 --- a/eeschema/sim/sim_workbook.h +++ b/eeschema/sim/sim_workbook.h @@ -25,7 +25,7 @@ #ifndef __SIM_WORKBOOK__ #define __SIM_WORKBOOK__ -#include +#include #include #include