27DIALOG_SHAPE_PROPERTIES_BASE::
DIALOG_SHAPE_PROPERTIES_BASE( wxWindow* parent, wxWindowID 
id, const wxString& title, const wxPoint& pos, const wxSize& size, 
long style ) : 
DIALOG_SHIM( parent, 
id, title, pos, size, style )
 
   29    this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
   31    wxBoxSizer* mainSizer;
 
   32    mainSizer = 
new wxBoxSizer( wxVERTICAL );
 
   35    m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
 
   39    mainSizer->Add( 
m_infoBar, 0, wxBOTTOM|wxEXPAND, 5 );
 
   43    m_cbExcludeFromSim = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Exclude from simulation"), wxDefaultPosition, wxDefaultSize, 0 );
 
   49    m_cbExcludeFromBom = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Exclude from bill of materials"), wxDefaultPosition, wxDefaultSize, 0 );
 
   50    m_cbExcludeFromBom->SetToolTip( 
_(
"This is useful for adding symbols for board footprints such as fiducials\nand logos that you do not want to appear in the bill of materials export") );
 
   54    m_cbExcludeFromBoard = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Exclude from board"), wxDefaultPosition, wxDefaultSize, 0 );
 
   55    m_cbExcludeFromBoard->SetToolTip( 
_(
"This is useful for adding symbols that only get exported to the bill of materials but\nnot required to layout the board such as mechanical fasteners and enclosures") );
 
   59    m_cbDNP = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Do not populate"), wxDefaultPosition, wxDefaultSize, 0 );
 
   69    bColumns = 
new wxBoxSizer( wxHORIZONTAL );
 
   73    m_borderSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
   76    m_borderCheckbox = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Border"), wxDefaultPosition, wxDefaultSize, 0 );
 
   79    m_borderWidthLabel = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   84    bSizer7 = 
new wxBoxSizer( wxHORIZONTAL );
 
   86    m_borderWidthCtrl = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
 
   89    m_borderWidthUnits = 
new wxStaticText( 
this, wxID_ANY, 
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
 
   93    m_borderColorLabel = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Color:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   98    bSizer7->Add( 5, 0, 0, 0, 5 );
 
  100    m_panelBorderColor = 
new wxPanel( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
 
  101    wxBoxSizer* bSizer23;
 
  102    bSizer23 = 
new wxBoxSizer( wxVERTICAL );
 
  105    bSizer23->Add( 
m_borderColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
 
  114    m_borderSizer->Add( bSizer7, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
 
  116    m_borderStyleLabel = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
 
  120    m_borderStyleCombo = 
new wxBitmapComboBox( 
this, wxID_ANY, 
_(
"Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
 
  125    m_helpLabel1 = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Set border width to 0 to use schematic's default line width."), wxDefaultPosition, wxDefaultSize, 0 );
 
  130    bColumns->Add( 
m_borderSizer, 9, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
 
  133    bColumns->Add( 15, 0, 0, wxEXPAND, 5 );
 
  135    m_fillBook = 
new wxSimplebook( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
 
  138    bSizer8 = 
new wxBoxSizer( wxVERTICAL );
 
  142    m_fillSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
  149    wxString m_fillCtrlChoices[] = { 
_(
"None"), 
_(
"Solid"), 
_(
"Hatch"), 
_(
"Reverse Hatch"), 
_(
"Cross-hatch") };
 
  150    int m_fillCtrlNChoices = 
sizeof( m_fillCtrlChoices ) / 
sizeof( wxString );
 
  151    m_fillCtrl = 
new wxChoice( 
m_schematicPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fillCtrlNChoices, m_fillCtrlChoices, 0 );
 
  153    m_fillSizer->Add( 
m_fillCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
 
  160    wxBoxSizer* bSizer21;
 
  161    bSizer21 = 
new wxBoxSizer( wxVERTICAL );
 
  164    bSizer21->Add( 
m_fillColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
 
  172    m_helpLabel2 = 
new wxStaticText( 
m_schematicPage, wxID_ANY, 
_(
"Clear colors to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
 
  177    bSizer8->Add( 
m_fillSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
 
  186    bSizer9 = 
new wxBoxSizer( wxVERTICAL );
 
  188    wxStaticBoxSizer* bSizerFill;
 
  189    bSizerFill = 
new wxStaticBoxSizer( 
new wxStaticBox( 
m_symbolEditorPage, wxID_ANY, 
_(
"Fill Style") ), wxVERTICAL );
 
  191    wxGridBagSizer* gbSizer1;
 
  192    gbSizer1 = 
new wxGridBagSizer( 3, 0 );
 
  193    gbSizer1->SetFlexibleDirection( wxBOTH );
 
  194    gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
  196    m_rbFillNone = 
new wxRadioButton( bSizerFill->GetStaticBox(), 
NO_FILL, 
_(
"Do not fill"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
 
  197    gbSizer1->Add( 
m_rbFillNone, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
 
  199    m_rbFillOutline = 
new wxRadioButton( bSizerFill->GetStaticBox(), 
FILLED_SHAPE, 
_(
"Fill with body outline color"), wxDefaultPosition, wxDefaultSize, 0 );
 
  200    gbSizer1->Add( 
m_rbFillOutline, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
 
  203    gbSizer1->Add( 
m_rbFillBackground, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
 
  206    gbSizer1->Add( 
m_rbFillCustom, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
 
  209    gbSizer1->Add( 
m_customColorSwatch, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
 
  212    bSizerFill->Add( gbSizer1, 1, wxEXPAND|wxBOTTOM, 5 );
 
  215    bSizer9->Add( bSizerFill, 1, wxEXPAND, 5 );
 
  223    bColumns->Add( 
m_fillBook, 8, wxEXPAND | wxALL, 10 );
 
  226    mainSizer->Add( bColumns, 0, wxEXPAND, 5 );
 
  233    wxBoxSizer* bColumns2;
 
  234    bColumns2 = 
new wxBoxSizer( wxHORIZONTAL );
 
  237    bLeft2 = 
new wxBoxSizer( wxVERTICAL );
 
  239    m_privateCheckbox = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Private to Symbol Editor"), wxDefaultPosition, wxDefaultSize, 0 );
 
  243    bColumns2->Add( bLeft2, 9, wxEXPAND|wxRIGHT|wxLEFT, 10 );
 
  246    bColumns2->Add( 15, 0, 0, wxEXPAND, 5 );
 
  249    bRight2 = 
new wxBoxSizer( wxVERTICAL );
 
  251    m_checkApplyToAllUnits = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Common to all &units in symbol"), wxDefaultPosition, wxDefaultSize, 0 );
 
  258    bColumns2->Add( bRight2, 8, wxEXPAND|wxRIGHT|wxLEFT, 10 );
 
  273    mainSizer->Add( 
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
 
  276    this->SetSizer( mainSizer );
 
  278    mainSizer->Fit( 
this );
 
  280    this->Centre( wxBOTH );