50 const wxArrayString& aFootprintHistoryList,
52 std::function<
void()> aAcceptHandler,
53 std::function<
void()> aEscapeHandler ) :
54 wxPanel( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize ),
73 std::vector<LIB_TREE_ITEM*> historyInfos;
75 for(
const wxString& item : aFootprintHistoryList )
79 if( fpid.
Parse( item ) >= 0 )
86 historyInfos.push_back( fp );
91 adapter->
DoAddLibrary( wxT(
"-- " ) +
_(
"Recently Used" ) + wxT(
" --" ), wxEmptyString,
92 historyInfos,
false,
true )
95 if( historyInfos.size() )
105 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
107 m_vsplitter =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
108 wxSP_LIVE_UPDATE | wxSP_NOBORDER | wxSP_3DSASH );
111 wxSP_LIVE_UPDATE | wxSP_NOBORDER | wxSP_3DSASH );
118 auto detailsSizer =
new wxBoxSizer( wxVERTICAL );
122 detailsSizer->Add(
m_details, 1, wxEXPAND, 5 );
202 cfg->m_FootprintChooser.width = GetParent()->GetSize().x;
203 cfg->m_FootprintChooser.height = GetParent()->GetSize().y;
204 cfg->m_FootprintChooser.sash_h =
m_hsplitter->GetSashPosition();
207 cfg->m_FootprintChooser.sash_v =
m_vsplitter->GetSashPosition();
209 cfg->m_FootprintChooser.sort_mode =
m_tree->GetSortMode();
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
LIB_TREE_NODE_LIBRARY & DoAddLibrary(const wxString &aNodeName, const wxString &aDesc, const std::vector< LIB_TREE_ITEM * > &aItemList, bool pinned, bool presorted)
Add the given list of symbols by alias.