From 141ef0c4be63dbba540ed56c542e82c7f08a3d72 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 4 Feb 2018 18:38:01 +0100 Subject: [PATCH] Dialog footprint generators list selector: open the first page (generators list) by default. --- pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp | 9 ++++----- pcbnew/dialogs/dialog_footprint_wizard_list_base.fbp | 6 +++--- pcbnew/dialogs/dialog_footprint_wizard_list_base.h | 8 +++++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp b/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp index d32f1ff20c..48b2c5d173 100644 --- a/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp +++ b/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Nov 22 2017) +// C++ code generated with wxFormBuilder (version Aug 4 2017) // http://www.wxformbuilder.org/ // -// PLEASE DO *NOT* EDIT THIS FILE! +// PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #include "dialog_footprint_wizard_list_base.h" @@ -62,7 +62,7 @@ DIALOG_FOOTPRINT_WIZARD_LIST_BASE::DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* m_panelGenerators->SetSizer( bSizerpanelGen ); m_panelGenerators->Layout(); bSizerpanelGen->Fit( m_panelGenerators ); - m_notebook->AddPage( m_panelGenerators, _("Available Footprint Generators"), false ); + m_notebook->AddPage( m_panelGenerators, _("Available Footprint Generators"), true ); m_panelInfo = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); wxBoxSizer* m_bsizerPanelInfo; m_bsizerPanelInfo = new wxBoxSizer( wxVERTICAL ); @@ -88,7 +88,7 @@ DIALOG_FOOTPRINT_WIZARD_LIST_BASE::DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* m_panelInfo->SetSizer( m_bsizerPanelInfo ); m_panelInfo->Layout(); m_bsizerPanelInfo->Fit( m_panelInfo ); - m_notebook->AddPage( m_panelInfo, _("Messages"), true ); + m_notebook->AddPage( m_panelInfo, _("Messages"), false ); bSizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 ); @@ -119,7 +119,6 @@ DIALOG_FOOTPRINT_WIZARD_LIST_BASE::DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* this->SetSizer( bSizerMain ); this->Layout(); - bSizerMain->Fit( this ); this->Centre( wxBOTH ); diff --git a/pcbnew/dialogs/dialog_footprint_wizard_list_base.fbp b/pcbnew/dialogs/dialog_footprint_wizard_list_base.fbp index 3d1a3fcce5..02e017c3b8 100644 --- a/pcbnew/dialogs/dialog_footprint_wizard_list_base.fbp +++ b/pcbnew/dialogs/dialog_footprint_wizard_list_base.fbp @@ -44,7 +44,7 @@ -1,-1 DIALOG_FOOTPRINT_WIZARD_LIST_BASE - -1,-1 + 525,374 wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER DIALOG_SHIM; dialog_shim.h Footprint Generators @@ -178,7 +178,7 @@ Available Footprint Generators - 0 + 1 1 1 @@ -407,7 +407,7 @@ Messages - 1 + 0 1 1 diff --git a/pcbnew/dialogs/dialog_footprint_wizard_list_base.h b/pcbnew/dialogs/dialog_footprint_wizard_list_base.h index 0dd9403682..0fb3c676d2 100644 --- a/pcbnew/dialogs/dialog_footprint_wizard_list_base.h +++ b/pcbnew/dialogs/dialog_footprint_wizard_list_base.h @@ -1,8 +1,8 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Nov 22 2017) +// C++ code generated with wxFormBuilder (version Aug 4 2017) // http://www.wxformbuilder.org/ // -// PLEASE DO *NOT* EDIT THIS FILE! +// PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #ifndef __DIALOG_FOOTPRINT_WIZARD_LIST_BASE_H__ @@ -11,6 +11,8 @@ #include #include #include +class DIALOG_SHIM; + #include "dialog_shim.h" #include #include @@ -63,7 +65,7 @@ class DIALOG_FOOTPRINT_WIZARD_LIST_BASE : public DIALOG_SHIM public: - DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Footprint Generators"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); + DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Footprint Generators"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 525,374 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); ~DIALOG_FOOTPRINT_WIZARD_LIST_BASE(); };