54 const wxArrayString& aFootprintHistoryList,
56 std::function<
void()> aAcceptHandler,
57 std::function<
void()> aEscapeHandler ) :
58 wxPanel( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize ),
77 std::vector<LIB_TREE_ITEM*> historyInfos;
79 for(
const wxString& item : aFootprintHistoryList )
83 if( fpid.
Parse( item ) >= 0 )
90 historyInfos.push_back( fp );
95 adapter->
DoAddLibrary( wxT(
"-- " ) +
_(
"Recently Used" ) + wxT(
" --" ), wxEmptyString,
96 historyInfos,
false,
true )
99 if( historyInfos.size() )
109 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
111 m_vsplitter =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
112 wxSP_LIVE_UPDATE | wxSP_NOBORDER | wxSP_3DSASH );
115 wxSP_LIVE_UPDATE | wxSP_NOBORDER | wxSP_3DSASH );
122 auto detailsSizer =
new wxBoxSizer( wxVERTICAL );
126 detailsSizer->Add(
m_details, 1, wxEXPAND, 5 );
206 cfg->m_FootprintChooser.width = GetParent()->GetSize().x;
207 cfg->m_FootprintChooser.height = GetParent()->GetSize().y;
208 cfg->m_FootprintChooser.sash_h =
m_hsplitter->GetSashPosition();
211 cfg->m_FootprintChooser.sash_v =
m_vsplitter->GetSashPosition();
213 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.