From e750382e7579150ba96d11cfeca76220d06e8e21 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 29 Jul 2018 17:27:11 +0200 Subject: [PATCH] Fix a few wxWidgets minor asserts --- eeschema/dialogs/dialog_sim_settings_base.cpp | 6 ++--- eeschema/dialogs/dialog_sim_settings_base.fbp | 4 +-- eeschema/dialogs/dialog_sim_settings_base.h | 2 +- eeschema/sim/sim_plot_frame_base.cpp | 15 ++++++----- eeschema/sim/sim_plot_frame_base.fbp | 25 ++++++++++--------- eeschema/sim/sim_plot_frame_base.h | 11 +++----- 6 files changed, 30 insertions(+), 33 deletions(-) diff --git a/eeschema/dialogs/dialog_sim_settings_base.cpp b/eeschema/dialogs/dialog_sim_settings_base.cpp index 6b76231da7..a3daed8100 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.cpp +++ b/eeschema/dialogs/dialog_sim_settings_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Apr 19 2018) +// C++ code generated with wxFormBuilder (version Jun 5 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -444,7 +444,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID m_fixIncludePaths = new wxCheckBox( this, wxID_ANY, _("Add full path for .include library directives"), wxDefaultPosition, wxDefaultSize, 0 ); m_fixIncludePaths->SetValue(true); - bSizer1->Add( m_fixIncludePaths, 0, wxALL, 5 ); + bSizer1->Add( m_fixIncludePaths, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizerOK = new wxButton( this, wxID_OK ); @@ -453,7 +453,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID m_sdbSizer->AddButton( m_sdbSizerCancel ); m_sdbSizer->Realize(); - bSizer1->Add( m_sdbSizer, 0, wxALL|wxEXPAND|wxALIGN_RIGHT, 5 ); + bSizer1->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 ); this->SetSizer( bSizer1 ); diff --git a/eeschema/dialogs/dialog_sim_settings_base.fbp b/eeschema/dialogs/dialog_sim_settings_base.fbp index 1090bcc05a..1fae4ae578 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.fbp +++ b/eeschema/dialogs/dialog_sim_settings_base.fbp @@ -6692,7 +6692,7 @@ 5 - wxALL + wxBOTTOM|wxRIGHT|wxLEFT 0 1 @@ -6780,7 +6780,7 @@ 5 - wxALL|wxEXPAND|wxALIGN_RIGHT + wxALL|wxALIGN_RIGHT 0 0 diff --git a/eeschema/dialogs/dialog_sim_settings_base.h b/eeschema/dialogs/dialog_sim_settings_base.h index 5fe04e5942..adeda57072 100644 --- a/eeschema/dialogs/dialog_sim_settings_base.h +++ b/eeschema/dialogs/dialog_sim_settings_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Apr 19 2018) +// C++ code generated with wxFormBuilder (version Jun 5 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! diff --git a/eeschema/sim/sim_plot_frame_base.cpp b/eeschema/sim/sim_plot_frame_base.cpp index 453e4b498e..2340db2177 100644 --- a/eeschema/sim/sim_plot_frame_base.cpp +++ b/eeschema/sim/sim_plot_frame_base.cpp @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Jul 17 2016) +// C++ code generated with wxFormBuilder (version Jun 5 2018) // http://www.wxformbuilder.org/ // -// PLEASE DO "NOT" EDIT THIS FILE! +// PLEASE DO *NOT* EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #include "sim_plot_frame_base.h" @@ -139,12 +139,12 @@ SIM_PLOT_FRAME_BASE::SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id, const bSizer81->Add( 0, 0, 1, wxEXPAND, 5 ); - m_staticText2 = new wxStaticText( m_welcomePanel, wxID_ANY, _("Start the simulation by clicking the Run Simulation button"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText2->Wrap( -1 ); - m_staticText2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) ); - m_staticText2->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) ); + m_staticTextInfo = new wxStaticText( m_welcomePanel, wxID_ANY, _("Start the simulation by clicking the Run Simulation button"), wxDefaultPosition, wxDefaultSize, 0 ); + m_staticTextInfo->Wrap( -1 ); + m_staticTextInfo->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) ); + m_staticTextInfo->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) ); - bSizer81->Add( m_staticText2, 0, wxALIGN_RIGHT|wxALL|wxEXPAND, 5 ); + bSizer81->Add( m_staticTextInfo, 0, wxALL|wxEXPAND, 5 ); bSizer81->Add( 0, 0, 1, wxEXPAND, 5 ); @@ -269,7 +269,6 @@ SIM_PLOT_FRAME_BASE::SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id, const this->SetSizer( m_sizerMain ); this->Layout(); - m_sizerMain->Fit( this ); this->Centre( wxBOTH ); diff --git a/eeschema/sim/sim_plot_frame_base.fbp b/eeschema/sim/sim_plot_frame_base.fbp index d0c5a788c2..c6cb802ee4 100644 --- a/eeschema/sim/sim_plot_frame_base.fbp +++ b/eeschema/sim/sim_plot_frame_base.fbp @@ -14,6 +14,7 @@ sim_plot_frame_base 1000 none + 1 SpiceWindow @@ -44,7 +45,7 @@ 200,200 SIM_PLOT_FRAME_BASE - -1,-1 + 511,468 wxDEFAULT_FRAME_STYLE KIWAY_PLAYER; kiway_player.h Spice Simulator @@ -240,7 +241,7 @@ - + Simulation m_simulationMenu protected @@ -308,7 +309,7 @@ - + 0 1 @@ -854,11 +855,11 @@ m_sizerPlot wxHORIZONTAL protected - + 5 wxEXPAND | wxALL 1 - + 1 1 1 @@ -944,11 +945,11 @@ - + a page 0 - + 1 1 1 @@ -1022,7 +1023,7 @@ - + m_sizer8 wxVERTICAL @@ -1037,11 +1038,11 @@ 0 - + 5 wxEXPAND 0 - + bSizer81 wxHORIZONTAL @@ -1058,7 +1059,7 @@ 5 - wxALIGN_RIGHT|wxALL|wxEXPAND + wxALL|wxEXPAND 0 1 @@ -1096,7 +1097,7 @@ 0 1 - m_staticText2 + m_staticTextInfo 1 diff --git a/eeschema/sim/sim_plot_frame_base.h b/eeschema/sim/sim_plot_frame_base.h index c23134735f..6c5a7bb186 100644 --- a/eeschema/sim/sim_plot_frame_base.h +++ b/eeschema/sim/sim_plot_frame_base.h @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Jul 17 2016) +// C++ code generated with wxFormBuilder (version Jun 5 2018) // http://www.wxformbuilder.org/ // -// PLEASE DO "NOT" EDIT THIS FILE! +// PLEASE DO *NOT* EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #ifndef __SIM_PLOT_FRAME_BASE_H__ @@ -11,9 +11,6 @@ #include #include #include -class KIWAY_PLAYER; -class wxListView; - #include "kiway_player.h" #include #include @@ -67,7 +64,7 @@ class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER wxAuiNotebook* m_plotNotebook; wxPanel* m_welcomePanel; wxBoxSizer* m_sizer8; - wxStaticText* m_staticText2; + wxStaticText* m_staticTextInfo; wxPanel* m_panelConsole; wxBoxSizer* m_sizerConsole; wxTextCtrl* m_simConsole; @@ -106,7 +103,7 @@ class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER public: - SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Simulator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("SIM_PLOT_FRAME") ); + SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Simulator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 511,468 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("SIM_PLOT_FRAME") ); ~SIM_PLOT_FRAME_BASE();