14DIALOG_EDIT_SYMBOLS_LIBID_BASE::DIALOG_EDIT_SYMBOLS_LIBID_BASE( wxWindow* parent, wxWindowID 
id, 
const wxString& title, 
const wxPoint& pos, 
const wxSize& size, 
long style ) : 
DIALOG_SHIM( parent, id, title, pos, size, style )
 
   16    this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
   18    wxBoxSizer* bSizerMain;
 
   19    bSizerMain = 
new wxBoxSizer( wxVERTICAL );
 
   21    m_grid = 
new WX_GRID( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
 
   24    m_grid->CreateGrid( 5, 3 );
 
   25    m_grid->EnableEditing( 
true );
 
   26    m_grid->EnableGridLines( 
true );
 
   27    m_grid->EnableDragGridSize( 
false );
 
   28    m_grid->SetMargins( 0, 0 );
 
   31    m_grid->SetColSize( 0, 280 );
 
   32    m_grid->SetColSize( 1, 280 );
 
   33    m_grid->SetColSize( 2, 280 );
 
   34    m_grid->EnableDragColMove( 
false );
 
   35    m_grid->EnableDragColSize( 
true );
 
   36    m_grid->SetColLabelSize( 22 );
 
   37    m_grid->SetColLabelValue( 0, 
_(
"Symbols") );
 
   38    m_grid->SetColLabelValue( 1, 
_(
"Current Library Reference") );
 
   39    m_grid->SetColLabelValue( 2, 
_(
"New Library Reference") );
 
   40    m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
 
   43    m_grid->EnableDragRowSize( 
false );
 
   44    m_grid->SetRowLabelSize( 0 );
 
   45    m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
 
   50    m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
 
   51    m_grid->SetMinSize( wxSize( -1,300 ) );
 
   53    bSizerMain->Add( 
m_grid, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
 
   55    wxBoxSizer* bSizerButtons;
 
   56    bSizerButtons = 
new wxBoxSizer( wxHORIZONTAL );
 
   58    m_buttonOrphanItems = 
new wxButton( 
this, wxID_ANY, 
_(
"Map Orphans"), wxDefaultPosition, wxDefaultSize, 0 );
 
   59    m_buttonOrphanItems->SetToolTip( 
_(
"If some symbols are orphaned (the linked symbol is not found anywhere),\ntry to find a candidate having the same name in one of loaded symbol libraries.") );
 
   63    m_checkBoxUpdateFields = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Update symbol fields from new library"), wxDefaultPosition, wxDefaultSize, 0 );
 
   64    m_checkBoxUpdateFields->SetToolTip( 
_(
"Replace current symbols fields by fields from the new library.\nWarning: fields \"Value\" and \"Footprints\" will be therefore replaced.") );
 
   69    bSizerButtons->Add( 0, 0, 1, wxEXPAND, 5 );
 
   78    bSizerButtons->Add( 
m_sdbSizer, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
   81    bSizerMain->Add( bSizerButtons, 0, wxEXPAND|wxLEFT, 5 );
 
   84    this->SetSizer( bSizerMain );
 
   86    bSizerMain->Fit( 
this );
 
   88    this->Centre( wxBOTH );
 
 
DIALOG_EDIT_SYMBOLS_LIBID_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Symbol Library References"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)