mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
DIALOG_TEMPLATE_SELECTOR: minor cosmetic fixes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18736
This commit is contained in:
parent
8fdb6d6e88
commit
32f84da9a2
@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
|
||||
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
@ -60,7 +60,6 @@ DIALOG_TEMPLATE_SELECTOR_BASE::DIALOG_TEMPLATE_SELECTOR_BASE( wxWindow* parent,
|
||||
|
||||
this->SetSizer( bmainSizer );
|
||||
this->Layout();
|
||||
bmainSizer->Fit( this );
|
||||
|
||||
this->Centre( wxBOTH );
|
||||
|
||||
@ -85,21 +84,15 @@ TEMPLATE_SELECTION_PANEL_BASE::TEMPLATE_SELECTION_PANEL_BASE( wxWindow* parent,
|
||||
{
|
||||
m_SizerBase = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
wxBoxSizer* bSizerMargins;
|
||||
bSizerMargins = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_scrolledWindow = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxHSCROLL );
|
||||
m_scrolledWindow->SetScrollRate( 5, 5 );
|
||||
m_SizerChoice = new wxGridSizer( 1, 0, 0, 0 );
|
||||
m_scrolledWindow->SetScrollRate( 100, 5 );
|
||||
m_SizerChoice = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
|
||||
m_scrolledWindow->SetSizer( m_SizerChoice );
|
||||
m_scrolledWindow->Layout();
|
||||
m_SizerChoice->Fit( m_scrolledWindow );
|
||||
bSizerMargins->Add( m_scrolledWindow, 1, wxEXPAND|wxLEFT, 5 );
|
||||
|
||||
|
||||
m_SizerBase->Add( bSizerMargins, 1, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
|
||||
m_SizerBase->Add( m_scrolledWindow, 1, wxEXPAND, 5 );
|
||||
|
||||
|
||||
this->SetSizer( m_SizerBase );
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
|
||||
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
@ -36,7 +36,6 @@ class STD_BITMAP_BUTTON;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class DIALOG_TEMPLATE_SELECTOR_BASE
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -64,7 +63,7 @@ class DIALOG_TEMPLATE_SELECTOR_BASE : public DIALOG_SHIM
|
||||
|
||||
public:
|
||||
|
||||
DIALOG_TEMPLATE_SELECTOR_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Project Template Selector"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||
DIALOG_TEMPLATE_SELECTOR_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Project Template Selector"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 600,499 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||
|
||||
~DIALOG_TEMPLATE_SELECTOR_BASE();
|
||||
|
||||
@ -78,13 +77,13 @@ class TEMPLATE_SELECTION_PANEL_BASE : public wxPanel
|
||||
private:
|
||||
|
||||
protected:
|
||||
wxBoxSizer* m_SizerChoice;
|
||||
|
||||
public:
|
||||
wxBoxSizer* m_SizerBase;
|
||||
wxScrolledWindow* m_scrolledWindow;
|
||||
wxGridSizer* m_SizerChoice;
|
||||
|
||||
TEMPLATE_SELECTION_PANEL_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,140 ), long style = wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString& name = wxEmptyString );
|
||||
TEMPLATE_SELECTION_PANEL_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 258,140 ), long style = wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString& name = wxEmptyString );
|
||||
|
||||
~TEMPLATE_SELECTION_PANEL_BASE();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user