43 std::vector<PICKED_SYMBOL>& aHistoryList,
44 std::vector<PICKED_SYMBOL>& aAlreadyPlaced,
45 bool aAllowFieldEdits,
bool aShowFootprints,
47 DIALOG_SHIM( aParent, wxID_ANY,
_(
"Choose Symbol" ), wxDefaultPosition, wxDefaultSize,
48 wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
50 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
52 aAllowFieldEdits, aShowFootprints, aCancelled,
61 EndModal( wxID_CANCEL );
66 if( aPreselect && aPreselect->
IsValid() )
70 SetTitle(
_(
"Choose Power Symbol" ) );
72 SetTitle( GetTitle() + wxString::Format(
_(
" (%d items loaded)" ),
75 wxBoxSizer* buttonsSizer =
new wxBoxSizer( wxHORIZONTAL );
77 m_keepSymbol =
new wxCheckBox(
this, wxID_ANY,
_(
"Place repeated copies" ) );
78 m_keepSymbol->SetToolTip(
_(
"Keep the symbol selected for subsequent clicks." ) );
80 m_useUnits =
new wxCheckBox(
this, wxID_ANY,
_(
"Place all units" ) );
81 m_useUnits->SetToolTip(
_(
"Sequentially place all units of the symbol." ) );
83 buttonsSizer->Add(
m_keepSymbol, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, 5 );
84 buttonsSizer->Add(
m_useUnits, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, 30 );
86 wxStdDialogButtonSizer* sdbSizer =
new wxStdDialogButtonSizer();
87 wxButton* okButton =
new wxButton(
this, wxID_OK );
88 wxButton* cancelButton =
new wxButton(
this, wxID_CANCEL );
90 sdbSizer->AddButton( okButton );
91 sdbSizer->AddButton( cancelButton );
94 buttonsSizer->Add( sdbSizer, 1, wxALL, 5 );
96 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.