42                                              std::vector<PICKED_SYMBOL>&  aHistoryList,
 
   43                                              std::vector<PICKED_SYMBOL>&  aAlreadyPlaced,
 
   44                                              bool aAllowFieldEdits, 
bool aShowFootprints,
 
   46        DIALOG_SHIM( aParent, wxID_ANY, 
_( 
"Choose Symbol" ), wxDefaultPosition, wxDefaultSize,
 
   47                     wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
 
   49    wxBoxSizer* sizer = 
new wxBoxSizer( wxVERTICAL );
 
   51                                               aAllowFieldEdits, aShowFootprints, aCancelled,
 
   60                                                   EndModal( wxID_CANCEL );
 
   65    if( aPreselect && aPreselect->
IsValid() )
 
   69        SetTitle( 
_( 
"Choose Power Symbol" ) );
 
   76    wxBoxSizer* buttonsSizer = 
new wxBoxSizer( wxHORIZONTAL );
 
   78    m_keepSymbol = 
new wxCheckBox( 
this, wxID_ANY, 
_( 
"Place repeated copies" ) );
 
   79    m_keepSymbol->SetToolTip( 
_( 
"Keep the symbol selected for subsequent clicks." ) );
 
   81    m_useUnits = 
new wxCheckBox( 
this, wxID_ANY, 
_( 
"Place all units" ) );
 
   82    m_useUnits->SetToolTip( 
_( 
"Sequentially place all units of the symbol." ) );
 
   84    buttonsSizer->Add( 
m_keepSymbol, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, 5 );
 
   85    buttonsSizer->Add( 
m_useUnits, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, 30 );
 
   87    wxStdDialogButtonSizer* sdbSizer = 
new wxStdDialogButtonSizer();
 
   88    wxButton*               okButton = 
new wxButton( 
this, wxID_OK );
 
   89    wxButton*               cancelButton = 
new wxButton( 
this, wxID_CANCEL );
 
   91    sdbSizer->AddButton( okButton );
 
   92    sdbSizer->AddButton( cancelButton );
 
   95    buttonsSizer->Add( sdbSizer, 1, wxALL, 5 );
 
   97    sizer->Add( buttonsSizer, 0, wxEXPAND | wxLEFT, 5 );
 
 
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)
 
DIALOG_SYMBOL_CHOOSER(SCH_BASE_FRAME *aParent, const LIB_ID *aPreselect, const SYMBOL_LIBRARY_FILTER *aFilter, std::vector< PICKED_SYMBOL > &aHistoryList, std::vector< PICKED_SYMBOL > &aAlreadyPlaced, bool aAllowFieldEdits, bool aShowFootprints, bool &aCancelled)
Create dialog to choose symbol.