CHANGED: Copper layer count is now set on physical stackup page
REMOVED: Board layer stackup presets that were not very useful Fixes https://gitlab.com/kicad/code/kicad/-/issues/6765
This commit is contained in:
parent
eee04f4482
commit
887ad1c30d
|
@ -80,6 +80,8 @@ PANEL_SETUP_BOARD_STACKUP::PANEL_SETUP_BOARD_STACKUP( PAGED_DIALOG* aParent, PCB
|
|||
m_brdSettings = &m_board->GetDesignSettings();
|
||||
m_units = aFrame->GetUserUnits();
|
||||
|
||||
m_panelLayers->SetPhysicalStackupPanel( this );
|
||||
|
||||
m_enabledLayers = m_board->GetEnabledLayers() & BOARD_STACKUP::StackupAllowedBrdLayers();
|
||||
|
||||
// Calculates a good size for color swatches (icons) in this dialog
|
||||
|
@ -112,6 +114,14 @@ PANEL_SETUP_BOARD_STACKUP::PANEL_SETUP_BOARD_STACKUP( PAGED_DIALOG* aParent, PCB
|
|||
|
||||
buildLayerStackPanel( true );
|
||||
synchronizeWithBoard( true );
|
||||
|
||||
m_choiceCopperLayers->Bind( wxEVT_CHOICE,
|
||||
[&]( wxCommandEvent )
|
||||
{
|
||||
updateCopperLayerCount();
|
||||
showOnlyActiveLayers();
|
||||
Layout();
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
@ -329,12 +339,34 @@ void PANEL_SETUP_BOARD_STACKUP::onUpdateThicknessValue( wxUpdateUIEvent& event )
|
|||
}
|
||||
|
||||
|
||||
int PANEL_SETUP_BOARD_STACKUP::GetCopperLayerCount() const
|
||||
{
|
||||
return ( m_choiceCopperLayers->GetSelection() + 1 ) * 2;
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_BOARD_STACKUP::updateCopperLayerCount()
|
||||
{
|
||||
int copperCount = GetCopperLayerCount();
|
||||
|
||||
wxASSERT( copperCount >= 2 );
|
||||
|
||||
m_enabledLayers |= LSET::ExternalCuMask();
|
||||
m_enabledLayers &= ~LSET::InternalCuMask();
|
||||
|
||||
for( int i = 1; i < copperCount - 1; i++ )
|
||||
m_enabledLayers.set( F_Cu + i );
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard( bool aFullSync )
|
||||
{
|
||||
const BOARD_STACKUP& brd_stackup = m_brdSettings->GetStackupDescriptor();
|
||||
|
||||
if( aFullSync )
|
||||
{
|
||||
m_choiceCopperLayers->SetSelection( ( m_board->GetCopperLayerCount() / 2 ) - 1 );
|
||||
|
||||
m_rbDielectricConstraint->SetSelection( brd_stackup.m_HasDielectricConstrains ? 1 : 0 );
|
||||
m_choiceEdgeConn->SetSelection( brd_stackup.m_EdgeConnectorConstraints );
|
||||
m_cbCastellatedPads->SetValue( brd_stackup.m_CastellatedPads );
|
||||
|
@ -1041,6 +1073,10 @@ bool PANEL_SETUP_BOARD_STACKUP::TransferDataFromWindow()
|
|||
if( !transferDataFromUIToStackup() )
|
||||
return false;
|
||||
|
||||
// NOTE: Copper layer count is transferred via PANEL_SETUP_LAYERS even though it is configured
|
||||
// on this page, because the logic for confirming deletion of board items on deleted layers is
|
||||
// on that panel and it doesn't make sense to split it up.
|
||||
|
||||
BOARD_STACKUP& brd_stackup = m_brdSettings->GetStackupDescriptor();
|
||||
|
||||
STRING_FORMATTER old_stackup;
|
||||
|
|
|
@ -93,6 +93,9 @@ public:
|
|||
*/
|
||||
void OnLayersOptionsChanged( LSET aNewLayerSet );
|
||||
|
||||
/// @return the number of copper layers configured for the board stackup
|
||||
int GetCopperLayerCount() const;
|
||||
|
||||
/// @return the BOARD_STACKUP_ITEM managed by the row aRow
|
||||
BOARD_STACKUP_ITEM* GetStackupItem( int aRow );
|
||||
/// @return the BOARD_STACKUP_ITEM sublayermanaged by the row aRow
|
||||
|
@ -170,6 +173,11 @@ private:
|
|||
*/
|
||||
bool transferDataFromUIToStackup();
|
||||
|
||||
/**
|
||||
* Updates the enabled copper layers when the dropdown is changed
|
||||
*/
|
||||
void updateCopperLayerCount();
|
||||
|
||||
void onUpdateThicknessValue( wxUpdateUIEvent& event ) override;
|
||||
void onColorSelected( wxCommandEvent& event );
|
||||
void onMaterialChange( wxCommandEvent& event );
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Dec 30 2020)
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -156,6 +156,23 @@ PANEL_SETUP_BOARD_STACKUP_BASE::PANEL_SETUP_BOARD_STACKUP_BASE( wxWindow* parent
|
|||
wxBoxSizer* bSizerBrdThickness;
|
||||
bSizerBrdThickness = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_lblCopperLayers = new wxStaticText( this, wxID_ANY, _("Copper layers:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_lblCopperLayers->Wrap( -1 );
|
||||
m_lblCopperLayers->SetToolTip( _("Select the number of copper layers in the stackup") );
|
||||
|
||||
bSizerBrdThickness->Add( m_lblCopperLayers, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
wxString m_choiceCopperLayersChoices[] = { _("2"), _("4"), _("6"), _("8"), _("10"), _("12"), _("14"), _("16"), _("18"), _("20"), _("22"), _("24"), _("26"), _("28"), _("30"), _("32") };
|
||||
int m_choiceCopperLayersNChoices = sizeof( m_choiceCopperLayersChoices ) / sizeof( wxString );
|
||||
m_choiceCopperLayers = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCopperLayersNChoices, m_choiceCopperLayersChoices, 0 );
|
||||
m_choiceCopperLayers->SetSelection( 0 );
|
||||
m_choiceCopperLayers->SetToolTip( _("Select the number of copper layers in the stackup") );
|
||||
|
||||
bSizerBrdThickness->Add( m_choiceCopperLayers, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
|
||||
bSizerBrdThickness->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
m_staticTextCT = new wxStaticText( this, wxID_ANY, _("Board thickness from stackup:"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
|
||||
m_staticTextCT->Wrap( -1 );
|
||||
bSizerBrdThickness->Add( m_staticTextCT, 2, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
<property name="file">panel_board_stackup_base</property>
|
||||
<property name="first_id">1000</property>
|
||||
<property name="help_provider">none</property>
|
||||
<property name="image_path_wrapper_function_name"></property>
|
||||
<property name="indent_with_spaces"></property>
|
||||
<property name="internationalize">1</property>
|
||||
<property name="name">PANEL_BOARD_SETUP_BASE</property>
|
||||
|
@ -26,7 +25,6 @@
|
|||
<property name="skip_php_events">1</property>
|
||||
<property name="skip_python_events">1</property>
|
||||
<property name="ui_table">UI</property>
|
||||
<property name="use_array_enum">0</property>
|
||||
<property name="use_enum">0</property>
|
||||
<property name="use_microsoft_bom">0</property>
|
||||
<object class="Panel" expanded="1">
|
||||
|
@ -841,7 +839,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
@ -915,7 +912,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
@ -1454,11 +1450,146 @@
|
|||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND|wxALL</property>
|
||||
<property name="proportion">2</property>
|
||||
<object class="wxBoxSizer" expanded="0">
|
||||
<object class="wxBoxSizer" expanded="1">
|
||||
<property name="minimum_size">-1,-1</property>
|
||||
<property name="name">bSizerBrdThickness</property>
|
||||
<property name="orient">wxHORIZONTAL</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Copper layers:</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">m_lblCopperLayers</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip">Select the number of copper layers in the stackup</property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxChoice" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices">"2" "4" "6" "8" "10" "12" "14" "16" "18" "20" "22" "24" "26" "28" "30" "32"</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">m_choiceCopperLayers</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="selection">0</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip">Select the number of copper layers in the stackup</property>
|
||||
<property name="validator_data_type"></property>
|
||||
<property name="validator_style">wxFILTER_NONE</property>
|
||||
<property name="validator_type">wxDefaultValidator</property>
|
||||
<property name="validator_variable"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
<property name="proportion">1</property>
|
||||
<object class="spacer" expanded="1">
|
||||
<property name="height">0</property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="width">0</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT</property>
|
||||
|
@ -1629,7 +1760,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Dec 30 2020)
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -65,11 +65,13 @@ class PANEL_SETUP_BOARD_STACKUP_BASE : public wxPanel
|
|||
wxChoice* m_choiceFinish;
|
||||
wxStaticText* m_staticTextEdgeConn;
|
||||
wxChoice* m_choiceEdgeConn;
|
||||
wxStaticText* m_lblCopperLayers;
|
||||
wxChoice* m_choiceCopperLayers;
|
||||
wxStaticText* m_staticTextCT;
|
||||
wxTextCtrl* m_tcCTValue;
|
||||
wxButton* m_buttonExport;
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
|
||||
virtual void onAddDielectricLayer( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void onRemoveDielectricLayer( wxCommandEvent& event ) { event.Skip(); }
|
||||
|
|
|
@ -72,7 +72,15 @@ DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP( PCB_EDIT_FRAME* aFrame ) :
|
|||
*/
|
||||
|
||||
m_treebook->AddPage( new wxPanel( this ), _( "Board Stackup" ) );
|
||||
|
||||
/*
|
||||
* WARNING: Code currently relies on the layers setup coming before the physical stackup panel,
|
||||
* and thus transferring data to the board first. See comment in
|
||||
* PANEL_SETUP_BOARD_STACKUP::TransferDataFromWindow and rework this logic if it is determined
|
||||
* that the order of these pages should be changed.
|
||||
*/
|
||||
m_treebook->AddSubPage( m_layers, _( "Board Editor Layers" ) );
|
||||
m_layerSetupPage = 1;
|
||||
m_treebook->AddSubPage( m_physicalStackup, _( "Physical Stackup" ) );
|
||||
// Change this value if m_physicalStackup is not the page 2 of m_treebook
|
||||
m_physicalStackupPage = 2; // The page number (from 0) to select the m_physicalStackup panel
|
||||
|
@ -117,6 +125,8 @@ void DIALOG_BOARD_SETUP::OnPageChange( wxBookCtrlEvent& event )
|
|||
{
|
||||
if( event.GetSelection() == m_physicalStackupPage )
|
||||
m_physicalStackup->OnLayersOptionsChanged( m_layers->GetUILayerMask() );
|
||||
else if( event.GetSelection() == m_layerSetupPage )
|
||||
m_layers->SyncCopperLayers( m_physicalStackup->GetCopperLayerCount() );
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// Work around an OSX bug where the wxGrid children don't get placed correctly until
|
||||
|
|
|
@ -65,6 +65,7 @@ protected:
|
|||
|
||||
private:
|
||||
int m_physicalStackupPage; // the page index of the PANEL_SETUP_BOARD_STACKUP page
|
||||
int m_layerSetupPage; // the page index of the PANEL_SETUP_LAYERS page
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <board.h>
|
||||
#include <collectors.h>
|
||||
#include <panel_setup_layers.h>
|
||||
#include <board_stackup_manager/panel_board_stackup.h>
|
||||
|
||||
#include <wx/choicdlg.h>
|
||||
|
||||
|
@ -118,35 +119,9 @@ static LSEQ dlg_layers()
|
|||
}
|
||||
|
||||
|
||||
// Layer bit masks for each defined "Preset Layer Grouping"
|
||||
static const LSET presets[] =
|
||||
{
|
||||
LSET(), // shift the array index up by one, matches with "Custom".
|
||||
|
||||
// "Two layers, parts on Front only"
|
||||
LSET( 2, F_Cu, B_Cu ) | LSET::FrontTechMask() | LSET( 1, B_Mask ) | LSET::UserMask(),
|
||||
|
||||
// "Two layers, parts on Back only",
|
||||
LSET( 2, F_Cu, B_Cu ) | LSET::BackTechMask() | LSET( 1, F_Mask ) | LSET::UserMask(),
|
||||
|
||||
// "Two layers, parts on Front and Back",
|
||||
LSET( 2, F_Cu, B_Cu ) | LSET::FrontTechMask() | LSET::BackTechMask() | LSET::UserMask(),
|
||||
|
||||
// "Four layers, parts on Front only"
|
||||
LSET( 4, F_Cu, B_Cu, In1_Cu, In2_Cu ) | LSET::FrontTechMask() | LSET::UserMask(),
|
||||
|
||||
// "Four layers, parts on Front and Back"
|
||||
LSET( 4, F_Cu, B_Cu, In1_Cu, In2_Cu ) | LSET::FrontTechMask() | LSET::BackTechMask() |
|
||||
LSET::UserMask(),
|
||||
|
||||
// "All layers on",
|
||||
LSET().set(),
|
||||
};
|
||||
|
||||
|
||||
PANEL_SETUP_LAYERS::PANEL_SETUP_LAYERS( PAGED_DIALOG* aParent, PCB_EDIT_FRAME* aFrame ) :
|
||||
PANEL_SETUP_LAYERS_BASE( aParent->GetTreebook() ),
|
||||
m_Parent( aParent ), m_frame( aFrame )
|
||||
m_parentDialog( aParent ), m_frame( aFrame )
|
||||
{
|
||||
m_pcb = aFrame->GetBoard();
|
||||
}
|
||||
|
@ -256,12 +231,11 @@ bool PANEL_SETUP_LAYERS::TransferDataToWindow()
|
|||
// Rescue may be enabled, but should not be shown in this dialog
|
||||
m_enabledLayers.reset( Rescue );
|
||||
|
||||
showCopperChoice( m_pcb->GetCopperLayerCount() );
|
||||
setCopperLayerCheckBoxes( m_pcb->GetCopperLayerCount() );
|
||||
|
||||
showBoardLayerNames();
|
||||
showSelectedLayerCheckBoxes( m_enabledLayers );
|
||||
showPresets( m_enabledLayers );
|
||||
|
||||
showLayerTypes();
|
||||
setMandatoryLayerCheckBoxes();
|
||||
setUserDefinedLayerCheckBoxes();
|
||||
|
@ -270,6 +244,12 @@ bool PANEL_SETUP_LAYERS::TransferDataToWindow()
|
|||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::SyncCopperLayers( int aNumCopperLayers )
|
||||
{
|
||||
setCopperLayerCheckBoxes( aNumCopperLayers );
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::setMandatoryLayerCheckBoxes()
|
||||
{
|
||||
for( int layer : { F_CrtYd, B_CrtYd, Edge_Cuts, Margin } )
|
||||
|
@ -306,27 +286,6 @@ void PANEL_SETUP_LAYERS::setUserDefinedLayerCheckBoxes()
|
|||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::showCopperChoice( int copperCount )
|
||||
{
|
||||
if( copperCount > MAX_CU_LAYERS )
|
||||
copperCount = MAX_CU_LAYERS;
|
||||
|
||||
if( copperCount < 2 )
|
||||
copperCount = 2;
|
||||
|
||||
for( int lyrCnt = 2; lyrCnt <= MAX_CU_LAYERS; lyrCnt += 2 )
|
||||
{
|
||||
// Note: This will change a 1 layer board to 2
|
||||
if( copperCount <= lyrCnt )
|
||||
{
|
||||
int idx = lyrCnt/2 - 1;
|
||||
m_CopperLayersChoice->SetSelection(idx);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::showBoardLayerNames()
|
||||
{
|
||||
// Set all the board's layer names into the dialog by calling BOARD::GetLayerName(),
|
||||
|
@ -361,23 +320,6 @@ void PANEL_SETUP_LAYERS::showSelectedLayerCheckBoxes( LSET enabledLayers )
|
|||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::showPresets( LSET enabledLayers )
|
||||
{
|
||||
int presetsNdx = 0; // The "Custom" setting, matches nothing
|
||||
|
||||
for( unsigned i=1; i<arrayDim( presets ); ++i )
|
||||
{
|
||||
if( enabledLayers == presets[i] )
|
||||
{
|
||||
presetsNdx = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
m_PresetsChoice->SetSelection( presetsNdx );
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::showLayerTypes()
|
||||
{
|
||||
for( LSEQ seq = LSET::AllCuMask().Seq(); seq; ++seq )
|
||||
|
@ -459,8 +401,6 @@ void PANEL_SETUP_LAYERS::setCopperLayerCheckBoxes( int copperCount )
|
|||
void PANEL_SETUP_LAYERS::OnCheckBox( wxCommandEvent& event )
|
||||
{
|
||||
m_enabledLayers = GetUILayerMask();
|
||||
|
||||
showPresets( m_enabledLayers );
|
||||
}
|
||||
|
||||
|
||||
|
@ -475,13 +415,8 @@ void PANEL_SETUP_LAYERS::DenyChangeCheckBox( wxCommandEvent& event )
|
|||
|
||||
if( source == copper )
|
||||
{
|
||||
wxString controlLabel = m_staticTextCopperLayers->GetLabel();
|
||||
// Knock the ':' off the end
|
||||
controlLabel = controlLabel.substr( 0, controlLabel.size() - 1 );
|
||||
|
||||
msg.Printf( _( "Use the \"%s\" control to change the number of copper layers." ),
|
||||
controlLabel );
|
||||
DisplayError( this, msg );
|
||||
DisplayError( this,
|
||||
_( "Use the Physical Stackup page to change the number of copper layers." ) );
|
||||
|
||||
copper->SetValue( true );
|
||||
return;
|
||||
|
@ -503,42 +438,14 @@ void PANEL_SETUP_LAYERS::DenyChangeCheckBox( wxCommandEvent& event )
|
|||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::OnPresetsChoice( wxCommandEvent& event )
|
||||
{
|
||||
int presetNdx = m_PresetsChoice->GetCurrentSelection();
|
||||
|
||||
if( presetNdx <= 0 ) // the Custom setting controls nothing.
|
||||
return;
|
||||
|
||||
if( presetNdx < (int) arrayDim(presets) )
|
||||
{
|
||||
m_enabledLayers = presets[ presetNdx ];
|
||||
LSET copperSet = m_enabledLayers & LSET::AllCuMask();
|
||||
int copperCount = copperSet.count();
|
||||
|
||||
showCopperChoice( copperCount );
|
||||
showSelectedLayerCheckBoxes( m_enabledLayers );
|
||||
setCopperLayerCheckBoxes( copperCount );
|
||||
}
|
||||
|
||||
// Ensure mandatory layers are activated
|
||||
setMandatoryLayerCheckBoxes();
|
||||
}
|
||||
|
||||
|
||||
void PANEL_SETUP_LAYERS::OnCopperLayersChoice( wxCommandEvent& event )
|
||||
{
|
||||
setCopperLayerCheckBoxes( m_CopperLayersChoice->GetCurrentSelection() * 2 + 2 );
|
||||
m_enabledLayers = GetUILayerMask();
|
||||
showPresets( m_enabledLayers );
|
||||
}
|
||||
|
||||
|
||||
bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
|
||||
{
|
||||
if( !testLayerNames() )
|
||||
return false;
|
||||
|
||||
// Make sure we have the latest copper layer count
|
||||
SyncCopperLayers( m_physicalStackup->GetCopperLayerCount() );
|
||||
|
||||
wxString msg;
|
||||
bool modified = false;
|
||||
|
||||
|
@ -739,20 +646,20 @@ bool PANEL_SETUP_LAYERS::testLayerNames()
|
|||
|
||||
if( !name )
|
||||
{
|
||||
m_Parent->SetError( _( "Layer must have a name." ), this, ctl );
|
||||
m_parentDialog->SetError( _( "Layer must have a name." ), this, ctl );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( hasOneOf( name, badchars ) )
|
||||
{
|
||||
auto msg = wxString::Format(_( "\"%s\" are forbidden in layer names." ), badchars );
|
||||
m_Parent->SetError( msg, this, ctl );
|
||||
m_parentDialog->SetError( msg, this, ctl );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( name == wxT( "signal" ) )
|
||||
{
|
||||
m_Parent->SetError( _( "Layer name \"signal\" is reserved." ), this, ctl );
|
||||
m_parentDialog->SetError( _( "Layer name \"signal\" is reserved." ), this, ctl );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -761,7 +668,7 @@ bool PANEL_SETUP_LAYERS::testLayerNames()
|
|||
if( name == existingName )
|
||||
{
|
||||
auto msg = wxString::Format(_( "Layer name \"%s\" is already in use." ), name );
|
||||
m_Parent->SetError( msg, this, ctl );
|
||||
m_parentDialog->SetError( msg, this, ctl );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
class PCB_EDIT_FRAME;
|
||||
class BOARD;
|
||||
class BOARD_DESIGN_SETTINGS;
|
||||
class PANEL_SETUP_BOARD_STACKUP;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -78,30 +79,33 @@ public:
|
|||
///< @return the layer name within the UI wxTextCtrl
|
||||
wxString GetLayerName( LAYER_NUM layer );
|
||||
|
||||
private:
|
||||
PAGED_DIALOG* m_Parent;
|
||||
PCB_EDIT_FRAME* m_frame;
|
||||
/**
|
||||
* Called when switching to this tab to make sure that any changes to the copper layer count
|
||||
* made on the physical stackup page are reflected here
|
||||
* @param aNumCopperLayers is the number of copper layers in the board
|
||||
*/
|
||||
void SyncCopperLayers( int aNumCopperLayers );
|
||||
|
||||
BOARD* m_pcb;
|
||||
LSET m_enabledLayers;
|
||||
void SetPhysicalStackupPanel( PANEL_SETUP_BOARD_STACKUP* aPanel )
|
||||
{
|
||||
m_physicalStackup = aPanel;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void setLayerCheckBox( LAYER_NUM layer, bool isChecked );
|
||||
void setCopperLayerCheckBoxes( int copperCount );
|
||||
void setMandatoryLayerCheckBoxes();
|
||||
void setUserDefinedLayerCheckBoxes();
|
||||
|
||||
void showCopperChoice( int copperCount );
|
||||
void showBoardLayerNames();
|
||||
void showSelectedLayerCheckBoxes( LSET enableLayerMask );
|
||||
void showLayerTypes();
|
||||
void showPresets( LSET enabledLayerMask );
|
||||
|
||||
int getLayerTypeIndex( LAYER_NUM layer );
|
||||
|
||||
void OnCheckBox( wxCommandEvent& event ) override;
|
||||
void DenyChangeCheckBox( wxCommandEvent& event ) override;
|
||||
void OnPresetsChoice( wxCommandEvent& event ) override;
|
||||
void OnCopperLayersChoice( wxCommandEvent& event ) override;
|
||||
bool TransferDataToWindow() override;
|
||||
bool TransferDataFromWindow() override;
|
||||
virtual void addUserDefinedLayer( wxCommandEvent& aEvent ) override;
|
||||
|
@ -126,6 +130,12 @@ private:
|
|||
wxControl* getName( LAYER_NUM aLayer );
|
||||
wxCheckBox* getCheckBox( LAYER_NUM aLayer );
|
||||
wxChoice* getChoice( LAYER_NUM aLayer );
|
||||
|
||||
PAGED_DIALOG* m_parentDialog;
|
||||
PCB_EDIT_FRAME* m_frame;
|
||||
PANEL_SETUP_BOARD_STACKUP* m_physicalStackup;
|
||||
BOARD* m_pcb;
|
||||
LSET m_enabledLayers;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -20,25 +20,6 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
wxBoxSizer* bSizerLayerCnt;
|
||||
bSizerLayerCnt = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
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 );
|
||||
bSizerLayerCnt->Add( m_PresetsChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
|
||||
|
||||
bSizerLayerCnt->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
m_staticTextCopperLayers = new wxStaticText( this, wxID_ANY, _("Copper layers:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticTextCopperLayers->Wrap( -1 );
|
||||
bSizerLayerCnt->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 );
|
||||
bSizerLayerCnt->Add( m_CopperLayersChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
|
||||
|
||||
|
||||
bSizerLayerCnt->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
|
@ -832,8 +813,6 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
bMainSizer->Fit( this );
|
||||
|
||||
// Connect Events
|
||||
m_PresetsChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnPresetsChoice ), NULL, this );
|
||||
m_CopperLayersChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCopperLayersChoice ), NULL, this );
|
||||
m_addUserDefinedLayerButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::addUserDefinedLayer ), NULL, this );
|
||||
m_addUserDefinedLayerButton->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_SETUP_LAYERS_BASE::onUpdateAddUserDefinedLayer ), NULL, this );
|
||||
m_CrtYdFrontCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::DenyChangeCheckBox ), NULL, this );
|
||||
|
@ -900,8 +879,6 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
|||
PANEL_SETUP_LAYERS_BASE::~PANEL_SETUP_LAYERS_BASE()
|
||||
{
|
||||
// Disconnect Events
|
||||
m_PresetsChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnPresetsChoice ), NULL, this );
|
||||
m_CopperLayersChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCopperLayersChoice ), NULL, this );
|
||||
m_addUserDefinedLayerButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::addUserDefinedLayer ), NULL, this );
|
||||
m_addUserDefinedLayerButton->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_SETUP_LAYERS_BASE::onUpdateAddUserDefinedLayer ), NULL, this );
|
||||
m_CrtYdFrontCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::DenyChangeCheckBox ), NULL, this );
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
<property name="file">panel_setup_layers_base</property>
|
||||
<property name="first_id">1000</property>
|
||||
<property name="help_provider">none</property>
|
||||
<property name="image_path_wrapper_function_name"></property>
|
||||
<property name="indent_with_spaces"></property>
|
||||
<property name="internationalize">1</property>
|
||||
<property name="name">PANEL_SETUP_LAYERS</property>
|
||||
|
@ -26,7 +25,6 @@
|
|||
<property name="skip_php_events">1</property>
|
||||
<property name="skip_python_events">1</property>
|
||||
<property name="ui_table">UI</property>
|
||||
<property name="use_array_enum">0</property>
|
||||
<property name="use_enum">0</property>
|
||||
<property name="use_microsoft_bom">0</property>
|
||||
<object class="Panel" expanded="1">
|
||||
|
@ -74,207 +72,6 @@
|
|||
<property name="name">bSizerLayerCnt</property>
|
||||
<property name="orient">wxHORIZONTAL</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxChoice" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices">"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"</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">m_PresetsChoice</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="selection">0</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass"></property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="validator_data_type"></property>
|
||||
<property name="validator_style">wxFILTER_NONE</property>
|
||||
<property name="validator_type">wxDefaultValidator</property>
|
||||
<property name="validator_variable"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<event name="OnChoice">OnPresetsChoice</event>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
<property name="proportion">1</property>
|
||||
<object class="spacer" expanded="1">
|
||||
<property name="height">0</property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="width">0</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">3</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Copper layers:</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">m_staticTextCopperLayers</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass"></property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">3</property>
|
||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxChoice" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices">"2" "4" "6" "8" "10" "12" "14" "16" "18" "20" "22" "24" "26" "28" "30" "32"</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">m_CopperLayersChoice</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="selection">0</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass"></property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="validator_data_type"></property>
|
||||
<property name="validator_style">wxFILTER_NONE</property>
|
||||
<property name="validator_type">wxDefaultValidator</property>
|
||||
<property name="validator_variable"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<event name="OnChoice">OnCopperLayersChoice</event>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
|
@ -298,7 +95,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -11,20 +11,20 @@
|
|||
#include <wx/xrc/xmlres.h>
|
||||
#include <wx/intl.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/font.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/icon.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/font.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statline.h>
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/scrolwin.h>
|
||||
#include <wx/panel.h>
|
||||
|
||||
|
@ -169,9 +169,6 @@ class PANEL_SETUP_LAYERS_BASE : public wxPanel
|
|||
private:
|
||||
|
||||
protected:
|
||||
wxChoice* m_PresetsChoice;
|
||||
wxStaticText* m_staticTextCopperLayers;
|
||||
wxChoice* m_CopperLayersChoice;
|
||||
wxButton* m_addUserDefinedLayerButton;
|
||||
wxStaticLine* m_staticline2;
|
||||
wxScrolledWindow* m_LayersListPanel;
|
||||
|
@ -355,8 +352,6 @@ class PANEL_SETUP_LAYERS_BASE : public wxPanel
|
|||
wxStaticText* m_User9StaticText;
|
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnPresetsChoice( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnCopperLayersChoice( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void addUserDefinedLayer( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void onUpdateAddUserDefinedLayer( wxUpdateUIEvent& event ) { event.Skip(); }
|
||||
virtual void DenyChangeCheckBox( wxCommandEvent& event ) { event.Skip(); }
|
||||
|
|
Loading…
Reference in New Issue