Indent layer properties for better comprehension.
This commit is contained in:
parent
f90ca7408d
commit
3c6adbdf03
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Jul 11 2018)
|
||||
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -14,14 +14,14 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
wxBoxSizer* bMainSizer;
|
||||
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizerMargins;
|
||||
bSizerMargins = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxString m_PresetsChoiceChoices[] = { _("Custom layer set"), _("Two layers, parts on Front"), _("Two layers, parts on Back"), _("Two layers, parts on Front & Back"), _("Four layers, parts on Front"), _("Four layers, parts on Front & Back"), _("All layers on") };
|
||||
int m_PresetsChoiceNChoices = sizeof( m_PresetsChoiceChoices ) / sizeof( wxString );
|
||||
m_PresetsChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_PresetsChoiceNChoices, m_PresetsChoiceChoices, 0 );
|
||||
m_PresetsChoice->SetSelection( 0 );
|
||||
bMainSizer->Add( m_PresetsChoice, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||
bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxALL, 5 );
|
||||
bSizerMargins->Add( m_PresetsChoice, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
wxFlexGridSizer* fgSizerBrdSetup;
|
||||
fgSizerBrdSetup = new wxFlexGridSizer( 0, 3, 0, 0 );
|
||||
|
@ -31,35 +31,41 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
|
||||
m_staticTextCopperLayers = new wxStaticText( this, wxID_ANY, _("Copper layers:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticTextCopperLayers->Wrap( -1 );
|
||||
fgSizerBrdSetup->Add( m_staticTextCopperLayers, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
fgSizerBrdSetup->Add( m_staticTextCopperLayers, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||
|
||||
wxString m_CopperLayersChoiceChoices[] = { _("2"), _("4"), _("6"), _("8"), _("10"), _("12"), _("14"), _("16"), _("18"), _("20"), _("22"), _("24"), _("26"), _("28"), _("30"), _("32") };
|
||||
int m_CopperLayersChoiceNChoices = sizeof( m_CopperLayersChoiceChoices ) / sizeof( wxString );
|
||||
m_CopperLayersChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_CopperLayersChoiceNChoices, m_CopperLayersChoiceChoices, 0 );
|
||||
m_CopperLayersChoice->SetSelection( 0 );
|
||||
fgSizerBrdSetup->Add( m_CopperLayersChoice, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
fgSizerBrdSetup->Add( m_CopperLayersChoice, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||
|
||||
|
||||
fgSizerBrdSetup->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
m_thicknessLabel = new wxStaticText( this, wxID_ANY, _("PCB thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_thicknessLabel->Wrap( -1 );
|
||||
fgSizerBrdSetup->Add( m_thicknessLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
fgSizerBrdSetup->Add( m_thicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||
|
||||
m_thicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_thicknessCtrl->SetMinSize( wxSize( 190,-1 ) );
|
||||
|
||||
fgSizerBrdSetup->Add( m_thicknessCtrl, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
fgSizerBrdSetup->Add( m_thicknessCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||
|
||||
m_thicknessUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_thicknessUnits->Wrap( -1 );
|
||||
fgSizerBrdSetup->Add( m_thicknessUnits, 0, wxALL, 5 );
|
||||
fgSizerBrdSetup->Add( m_thicknessUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
|
||||
|
||||
|
||||
bMainSizer->Add( fgSizerBrdSetup, 0, wxEXPAND, 5 );
|
||||
bSizerMargins->Add( fgSizerBrdSetup, 0, wxEXPAND|wxRIGHT|wxLEFT, 20 );
|
||||
|
||||
wxBoxSizer* bLineMargins;
|
||||
bLineMargins = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||
bMainSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
||||
bLineMargins->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
||||
|
||||
|
||||
bSizerMargins->Add( bLineMargins, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||
|
||||
m_LayersListPanel = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL|wxVSCROLL );
|
||||
m_LayersListPanel->SetScrollRate( 0, 5 );
|
||||
|
@ -761,7 +767,10 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
m_LayersListPanel->SetSizer( m_LayerListFlexGridSizer );
|
||||
m_LayersListPanel->Layout();
|
||||
m_LayerListFlexGridSizer->Fit( m_LayersListPanel );
|
||||
bMainSizer->Add( m_LayersListPanel, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 );
|
||||
bSizerMargins->Add( m_LayersListPanel, 1, wxEXPAND|wxALL, 5 );
|
||||
|
||||
|
||||
bMainSizer->Add( bSizerMargins, 1, wxEXPAND|wxRIGHT, 10 );
|
||||
|
||||
|
||||
this->SetSizer( bMainSizer );
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Jul 11 2018)
|
||||
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -17,10 +17,10 @@
|
|||
#include <wx/font.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include <wx/panel.h>
|
||||
|
@ -185,7 +185,6 @@ class PANEL_SETUP_LAYERS_BASE : public wxPanel
|
|||
|
||||
protected:
|
||||
wxChoice* m_PresetsChoice;
|
||||
wxStaticLine* m_staticline1;
|
||||
wxStaticText* m_staticTextCopperLayers;
|
||||
wxChoice* m_CopperLayersChoice;
|
||||
wxStaticText* m_thicknessLabel;
|
||||
|
|
Loading…
Reference in New Issue