KiCad PCB EDA Suite
|
Widget displaying a tree of symbols with optional search text control and description panel.Custom event sent when an item is selected in the list. More...
#include <lib_tree.h>
Classes | |
struct | STATE |
Structure storing state of the symbol tree widget. More... | |
Public Types | |
enum | FLAGS { FLAGS_NONE = 0x00 , SEARCH = 0x01 , FILTERS = 0x02 , DETAILS = 0x04 , ALL_WIDGETS = 0x0F , MULTISELECT = 0x10 } |
< Flags to select extra widgets and options More... | |
Public Member Functions | |
LIB_TREE (wxWindow *aParent, const wxString &aRecentSearchesKey, LIB_TABLE *aLibTable, wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > &aAdapter, int aFlags=ALL_WIDGETS, HTML_WINDOW *aDetails=nullptr) | |
Construct a symbol tree. | |
~LIB_TREE () override | |
LIB_ID | GetSelectedLibId (int *aUnit=nullptr) const |
For multi-unit symbols, if the user selects the symbol itself rather than picking an individual unit, 0 will be returned in aUnit. | |
int | GetSelectionCount () const |
int | GetSelectedLibIds (std::vector< LIB_ID > &aSelection, std::vector< int > *aUnit=nullptr) const |
Retrieves a list of selections for trees that allow multi-selection. | |
LIB_TREE_NODE * | GetCurrentTreeNode () const |
void | SelectLibId (const LIB_ID &aLibId) |
Select an item in the tree widget. | |
void | CenterLibId (const LIB_ID &aLibId) |
Ensure that an item is visible (preferably centered). | |
void | Unselect () |
Unselect currently selected item in wxDataViewCtrl. | |
void | ExpandLibId (const LIB_ID &aLibId) |
Expand and item i the tree widget. | |
void | ExpandAll () |
void | CollapseAll () |
void | SetSearchString (const wxString &aSearchString) |
Save/restore search string. | |
wxString | GetSearchString () const |
void | SetSortMode (LIB_TREE_MODEL_ADAPTER::SORT_MODE aMode) |
Save/restore the sorting mode. | |
LIB_TREE_MODEL_ADAPTER::SORT_MODE | GetSortMode () const |
void | Regenerate (bool aKeepState) |
Regenerate the tree. | |
void | RefreshLibTree () |
Refreshes the tree (mainly to update highlighting and asterisking) | |
wxWindow * | GetFocusTarget () |
wxSizer * | GetFiltersSizer () |
void | FocusSearchFieldIfExists () |
Focus the search widget if it exists. | |
void | ShowChangedLanguage () |
Protected Member Functions | |
void | toggleExpand (const wxDataViewItem &aTreeId) |
Expand or collapse a node, switching it to the opposite state. | |
void | selectIfValid (const wxDataViewItem &aTreeId) |
If a wxDataViewitem is valid, select it and post a selection event. | |
void | centerIfValid (const wxDataViewItem &aTreeId) |
void | expandIfValid (const wxDataViewItem &aTreeId) |
void | postPreselectEvent () |
Post a wxEVT_DATAVIEW_SELECTION_CHANGED to notify the selection handler that a new part has been preselected. | |
void | postSelectEvent () |
Post SYMBOL_SELECTED event to notify the selection handler that a part has been selected. | |
STATE | getState () const |
Return the symbol tree widget state. | |
void | setState (const STATE &aState) |
Restore the symbol tree widget state from an object. | |
void | updateRecentSearchMenu () |
void | showPreview (wxDataViewItem aItem) |
void | hidePreview () |
void | destroyPreview () |
void | onQueryText (wxCommandEvent &aEvent) |
void | onQueryCharHook (wxKeyEvent &aEvent) |
void | onQueryMouseMoved (wxMouseEvent &aEvent) |
void | onTreeSelect (wxDataViewEvent &aEvent) |
void | onTreeActivate (wxDataViewEvent &aEvent) |
void | onTreeCharHook (wxKeyEvent &aEvent) |
void | onIdle (wxIdleEvent &aEvent) |
void | onHoverTimer (wxTimerEvent &aEvent) |
void | onDetailsLink (wxHtmlLinkEvent &aEvent) |
void | onPreselect (wxCommandEvent &aEvent) |
void | onItemContextMenu (wxDataViewEvent &aEvent) |
void | onHeaderContextMenu (wxDataViewEvent &aEvent) |
void | onDebounceTimer (wxTimerEvent &aEvent) |
Protected Attributes | |
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > | m_adapter |
wxSearchCtrl * | m_query_ctrl |
STD_BITMAP_BUTTON * | m_sort_ctrl |
WX_DATAVIEWCTRL * | m_tree_ctrl |
HTML_WINDOW * | m_details_ctrl |
wxTimer * | m_debounceTimer |
bool | m_inTimerEvent |
wxString | m_recentSearchesKey |
wxBoxSizer * | m_filtersSizer |
bool | m_skipNextRightClick |
wxPoint | m_hoverPos |
wxDataViewItem | m_hoverItem |
wxRect | m_hoverItemRect |
wxTimer | m_hoverTimer |
wxDataViewItem | m_previewItem |
wxRect | m_previewItemRect |
wxPopupWindow * | m_previewWindow |
bool | m_previewDisabled |
Widget displaying a tree of symbols with optional search text control and description panel.Custom event sent when an item is selected in the list.
Definition at line 48 of file lib_tree.h.
enum LIB_TREE::FLAGS |
< Flags to select extra widgets and options
Enumerator | |
---|---|
FLAGS_NONE | |
SEARCH | |
FILTERS | |
DETAILS | |
ALL_WIDGETS | |
MULTISELECT |
Definition at line 52 of file lib_tree.h.
LIB_TREE::LIB_TREE | ( | wxWindow * | aParent, |
const wxString & | aRecentSearchesKey, | ||
LIB_TABLE * | aLibTable, | ||
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > & | aAdapter, | ||
int | aFlags = ALL_WIDGETS , |
||
HTML_WINDOW * | aDetails = nullptr |
||
) |
Construct a symbol tree.
aParent | parent window containing this tree widget |
aRecentSearchesKey | a key into a global map storing recent searches (usually "power", "symbols", or "footprints", but could be further differentiated) |
aLibTable | table containing libraries and items to display |
aAdapter | a LIB_TREE_MODEL_ADAPTER instance to use |
aFlags | selection of sub-widgets to include and other options |
aDetails | if not null, a custom HTML_WINDOW to hold symbol details. If null this will be created inside the LIB_TREE. |
Definition at line 51 of file lib_tree.cpp.
References _, LIB_TREE_MODEL_ADAPTER::BEST_MATCH, ACTIONS::collapseAll, DETAILS, ACTIONS::expandAll, FILTERS, g_recentSearches, KiBitmapBundle(), m_adapter, m_debounceTimer, m_details_ctrl, m_filtersSizer, m_hoverTimer, m_query_ctrl, m_recentSearchesKey, m_sort_ctrl, m_tree_ctrl, MULTISELECT, onDebounceTimer(), onDetailsLink(), onHeaderContextMenu(), onHoverTimer(), onIdle(), onItemContextMenu(), onPreselect(), onQueryCharHook(), onQueryMouseMoved(), onQueryText(), onTreeActivate(), onTreeCharHook(), onTreeSelect(), postPreselectEvent(), RECENT_SEARCHES_MAX, Regenerate(), SEARCH, STD_BITMAP_BUTTON::SetBitmap(), and updateRecentSearchMenu().
|
override |
Definition at line 253 of file lib_tree.cpp.
References destroyPreview(), m_debounceTimer, m_details_ctrl, m_hoverTimer, m_query_ctrl, m_tree_ctrl, onDebounceTimer(), onDetailsLink(), onHeaderContextMenu(), onHoverTimer(), onIdle(), onItemContextMenu(), onPreselect(), onQueryCharHook(), onQueryMouseMoved(), onQueryText(), onTreeActivate(), onTreeCharHook(), and onTreeSelect().
|
protected |
Definition at line 486 of file lib_tree.cpp.
References m_adapter, LIB_TREE_NODE::m_Parent, and m_tree_ctrl.
Referenced by CenterLibId().
void LIB_TREE::CenterLibId | ( | const LIB_ID & | aLibId | ) |
Ensure that an item is visible (preferably centered).
Definition at line 349 of file lib_tree.cpp.
References centerIfValid(), and m_adapter.
Referenced by SYMBOL_EDIT_FRAME::centerItemIdleHandler(), FOOTPRINT_EDIT_FRAME::centerItemIdleHandler(), SYMBOL_EDIT_FRAME::KiwayMailIn(), LIBRARY_EDITOR_CONTROL::regenerateLibraryTree(), PANEL_DESIGN_BLOCK_CHOOSER::SelectLibId(), SYMBOL_EDIT_FRAME::SyncLibraries(), and FOOTPRINT_EDIT_FRAME::SyncLibraryTree().
void LIB_TREE::CollapseAll | ( | ) |
Definition at line 375 of file lib_tree.cpp.
References WX_DATAVIEWCTRL::CollapseAll(), and m_tree_ctrl.
|
protected |
Definition at line 740 of file lib_tree.cpp.
References hidePreview(), and m_previewWindow.
Referenced by ~LIB_TREE().
void LIB_TREE::ExpandAll | ( | ) |
Definition at line 369 of file lib_tree.cpp.
References WX_DATAVIEWCTRL::ExpandAll(), and m_tree_ctrl.
|
protected |
void LIB_TREE::ExpandLibId | ( | const LIB_ID & | aLibId | ) |
Expand and item i the tree widget.
Definition at line 363 of file lib_tree.cpp.
References expandIfValid(), and m_adapter.
Referenced by SYMBOL_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), and SYMBOL_EDIT_FRAME::LoadSymbol().
void LIB_TREE::FocusSearchFieldIfExists | ( | ) |
Focus the search widget if it exists.
Definition at line 455 of file lib_tree.cpp.
References m_query_ctrl.
Referenced by SYMBOL_EDIT_FRAME::FocusLibraryTreeInput(), and FOOTPRINT_TREE_PANE::FocusSearchFieldIfExists().
LIB_TREE_NODE * LIB_TREE::GetCurrentTreeNode | ( | ) | const |
Definition at line 332 of file lib_tree.cpp.
References m_adapter, and m_tree_ctrl.
Referenced by LIBRARY_EDITOR_CONTROL::AddContextMenuItems(), SCH_DESIGN_BLOCK_CONTROL::getCurrentTreeNode(), onItemContextMenu(), PANEL_SYMBOL_CHOOSER::onSymbolSelected(), LIBRARY_EDITOR_CONTROL::PinLibrary(), and LIBRARY_EDITOR_CONTROL::UnpinLibrary().
|
inline |
Definition at line 155 of file lib_tree.h.
References m_filtersSizer.
Referenced by PANEL_FOOTPRINT_CHOOSER::GetFiltersSizer().
wxWindow * LIB_TREE::GetFocusTarget | ( | ) |
Definition at line 446 of file lib_tree.cpp.
References m_query_ctrl, and m_tree_ctrl.
Referenced by PANEL_SYMBOL_CHOOSER::GetFocusTarget(), and PANEL_FOOTPRINT_CHOOSER::GetFocusTarget().
wxString LIB_TREE::GetSearchString | ( | ) | const |
Definition at line 387 of file lib_tree.cpp.
References m_query_ctrl.
Referenced by PANEL_DESIGN_BLOCK_CHOOSER::OnChar(), PANEL_SYMBOL_CHOOSER::OnChar(), updateRecentSearchMenu(), PANEL_DESIGN_BLOCK_CHOOSER::~PANEL_DESIGN_BLOCK_CHOOSER(), and PANEL_SYMBOL_CHOOSER::~PANEL_SYMBOL_CHOOSER().
LIB_ID LIB_TREE::GetSelectedLibId | ( | int * | aUnit = nullptr | ) | const |
For multi-unit symbols, if the user selects the symbol itself rather than picking an individual unit, 0 will be returned in aUnit.
Beware that this is an invalid unit number - this should be replaced with whatever default is desired (usually 1).
aUnit | if not NULL, the selected unit is filled in here. |
Definition at line 301 of file lib_tree.cpp.
References m_adapter, and m_tree_ctrl.
Referenced by FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), FOOTPRINT_EDITOR_CONTROL::CutCopyFootprint(), FOOTPRINT_EDITOR_CONTROL::DuplicateFootprint(), FOOTPRINT_EDITOR_CONTROL::EditFootprint(), PANEL_FOOTPRINT_CHOOSER::GetSelectedLibId(), PANEL_DESIGN_BLOCK_CHOOSER::GetSelectedLibId(), PANEL_SYMBOL_CHOOSER::GetSelectedLibId(), getState(), FOOTPRINT_EDIT_FRAME::GetTargetFPID(), SYMBOL_EDIT_FRAME::GetTreeLIBID(), FOOTPRINT_EDITOR_CONTROL::Init(), PANEL_DESIGN_BLOCK_CHOOSER::onCloseTimer(), PANEL_DESIGN_BLOCK_CHOOSER::onDesignBlockChosen(), PANEL_FOOTPRINT_CHOOSER::onFootprintChosen(), PANEL_FOOTPRINT_CHOOSER::onFootprintSelected(), onPreselect(), onQueryCharHook(), PANEL_SYMBOL_CHOOSER::onSymbolChosen(), onTreeActivate(), FOOTPRINT_EDITOR_CONTROL::OpenWithTextEditor(), FOOTPRINT_EDITOR_CONTROL::PasteFootprint(), FOOTPRINT_EDITOR_CONTROL::RenameFootprint(), SYMBOL_EDIT_FRAME::SyncLibraries(), and FOOTPRINT_EDIT_FRAME::SyncLibraryTree().
int LIB_TREE::GetSelectedLibIds | ( | std::vector< LIB_ID > & | aSelection, |
std::vector< int > * | aUnit = nullptr |
||
) | const |
Retrieves a list of selections for trees that allow multi-selection.
aSelection | will be filled with a list of selected LIB_IDs |
aUnit | is an optional pointer to a list to fill with unit numbers |
Definition at line 315 of file lib_tree.cpp.
References m_adapter, and m_tree_ctrl.
Referenced by SYMBOL_EDIT_FRAME::GetTreeLIBIDs().
|
inline |
Definition at line 91 of file lib_tree.h.
References m_tree_ctrl.
Referenced by SYMBOL_EDIT_FRAME::GetTreeSelectionCount().
|
inline |
Definition at line 141 of file lib_tree.h.
References m_adapter.
Referenced by SYMBOL_EDIT_FRAME::SaveSettings(), FOOTPRINT_EDIT_FRAME::SaveSettings(), PANEL_DESIGN_BLOCK_CHOOSER::~PANEL_DESIGN_BLOCK_CHOOSER(), PANEL_FOOTPRINT_CHOOSER::~PANEL_FOOTPRINT_CHOOSER(), and PANEL_SYMBOL_CHOOSER::~PANEL_SYMBOL_CHOOSER().
|
protected |
Return the symbol tree widget state.
Definition at line 555 of file lib_tree.cpp.
References LIB_TREE::STATE::expanded, GetSelectedLibId(), m_adapter, m_tree_ctrl, and LIB_TREE::STATE::selection.
Referenced by Regenerate().
|
protected |
Definition at line 731 of file lib_tree.cpp.
References m_previewItem, and m_previewWindow.
Referenced by destroyPreview(), onHeaderContextMenu(), onHoverTimer(), onIdle(), onItemContextMenu(), onPreselect(), and onTreeActivate().
|
protected |
Definition at line 599 of file lib_tree.cpp.
References m_inTimerEvent, and Regenerate().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 887 of file lib_tree.cpp.
References GetAssociatedDocument(), PGM_BASE::GetSettingsManager(), info, Pgm(), and SETTINGS_MANAGER::Prj().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 982 of file lib_tree.cpp.
References _, ACTION_MENU::Add(), EDA_REORDERABLE_LIST_DIALOG::EnabledList(), hidePreview(), m_adapter, m_previewDisabled, ACTIONS::selectLibTreeColumns, and DIALOG_SHIM::ShowModal().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 807 of file lib_tree.cpp.
References TOOL_DISPATCHER::GetCurrentMenu(), hidePreview(), HOVER_TIMER_MILLIS, m_adapter, m_hoverItem, m_hoverItemRect, m_hoverPos, m_hoverTimer, m_previewDisabled, m_tree_ctrl, and showPreview().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 752 of file lib_tree.cpp.
References hidePreview(), HOVER_TIMER_MILLIS, m_hoverItem, m_hoverItemRect, m_hoverPos, m_hoverTimer, m_previewDisabled, m_previewItem, m_tree_ctrl, and showPreview().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 916 of file lib_tree.cpp.
References ACTION_MENU::Add(), BUT_RIGHT, GetCurrentTreeNode(), hidePreview(), m_adapter, LIB_TREE_NODE::m_Pinned, m_previewDisabled, m_skipNextRightClick, m_tree_ctrl, LIB_TREE_NODE::m_Type, ACTIONS::pinLibrary, TA_MOUSE_CLICK, TC_MOUSE, and ACTIONS::unpinLibrary.
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 897 of file lib_tree.cpp.
References GetSelectedLibId(), hidePreview(), m_adapter, m_details_ctrl, and HTML_WINDOW::SetPage().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 607 of file lib_tree.cpp.
References ACTIONS::collapseAll, WX_DATAVIEWCTRL::CollapseAll(), ACTIONS::expandAll, WX_DATAVIEWCTRL::ExpandAll(), WX_DATAVIEWCTRL::GetNextItem(), WX_DATAVIEWCTRL::GetPrevItem(), GetSelectedLibId(), m_adapter, m_tree_ctrl, MD_ALT, MD_CTRL, MD_SHIFT, postSelectEvent(), selectIfValid(), toggleExpand(), and updateRecentSearchMenu().
Referenced by LIB_TREE(), onTreeCharHook(), and ~LIB_TREE().
|
protected |
Definition at line 686 of file lib_tree.cpp.
References m_query_ctrl.
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 589 of file lib_tree.cpp.
References m_debounceTimer.
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 873 of file lib_tree.cpp.
References GetSelectedLibId(), hidePreview(), m_inTimerEvent, m_tree_ctrl, postSelectEvent(), toggleExpand(), and updateRecentSearchMenu().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 835 of file lib_tree.cpp.
References m_adapter, MD_ALT, MD_CTRL, MD_SHIFT, and onQueryCharHook().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Definition at line 861 of file lib_tree.cpp.
References m_inTimerEvent, m_tree_ctrl, postPreselectEvent(), and updateRecentSearchMenu().
Referenced by LIB_TREE(), and ~LIB_TREE().
|
protected |
Post a wxEVT_DATAVIEW_SELECTION_CHANGED to notify the selection handler that a new part has been preselected.
Definition at line 541 of file lib_tree.cpp.
Referenced by LIB_TREE(), onTreeSelect(), Regenerate(), and selectIfValid().
|
protected |
Post SYMBOL_SELECTED event to notify the selection handler that a part has been selected.
Definition at line 548 of file lib_tree.cpp.
Referenced by onQueryCharHook(), and onTreeActivate().
void LIB_TREE::RefreshLibTree | ( | ) |
Refreshes the tree (mainly to update highlighting and asterisking)
Definition at line 440 of file lib_tree.cpp.
References m_adapter.
Referenced by SYMBOL_EDIT_FRAME::DeleteSymbolFromLibrary(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), SYMBOL_EDIT_FRAME::LoadSymbol(), SYMBOL_EDIT_FRAME::OnModify(), FOOTPRINT_EDIT_FRAME::OnModify(), SYMBOL_TREE_PANE::onSymbolSelected(), SYMBOL_EDIT_FRAME::RefreshLibraryTree(), FOOTPRINT_EDIT_FRAME::RefreshLibraryTree(), SYMBOL_EDIT_FRAME::Save(), SYMBOL_EDIT_FRAME::SaveAll(), SYMBOL_EDIT_FRAME::SaveLibraryAs(), SYMBOL_EDIT_FRAME::SaveSymbolCopyAs(), SYMBOL_EDIT_FRAME::UpdateLibraryTree(), and FOOTPRINT_EDIT_FRAME::UpdateLibraryTree().
void LIB_TREE::Regenerate | ( | bool | aKeepState | ) |
Regenerate the tree.
Definition at line 422 of file lib_tree.cpp.
References filter, getState(), m_adapter, m_query_ctrl, postPreselectEvent(), and setState().
Referenced by PANEL_DESIGN_BLOCK_CHOOSER::addDesignBlockToHistory(), LIB_TREE(), onDebounceTimer(), PANEL_DESIGN_BLOCK_CHOOSER::RefreshLibs(), PANEL_FOOTPRINT_CHOOSER::Regenerate(), LIBRARY_EDITOR_CONTROL::regenerateLibraryTree(), SYMBOL_EDIT_FRAME::SyncLibraries(), and FOOTPRINT_EDIT_FRAME::SyncLibraryTree().
|
protected |
If a wxDataViewitem is valid, select it and post a selection event.
Definition at line 474 of file lib_tree.cpp.
References m_tree_ctrl, and postPreselectEvent().
Referenced by onQueryCharHook(), and SelectLibId().
void LIB_TREE::SelectLibId | ( | const LIB_ID & | aLibId | ) |
Select an item in the tree widget.
Definition at line 343 of file lib_tree.cpp.
References m_adapter, and selectIfValid().
Referenced by SYMBOL_EDIT_FRAME::DuplicateSymbol(), SYMBOL_EDIT_FRAME::FocusOnLibId(), FOOTPRINT_EDIT_FRAME::FocusOnLibID(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), SYMBOL_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::KiwayMailIn(), SYMBOL_EDIT_FRAME::LoadSymbol(), SYMBOL_EDIT_FRAME::Revert(), PANEL_DESIGN_BLOCK_CHOOSER::SelectLibId(), SYMBOL_EDIT_FRAME::SetCurSymbol(), setState(), SYMBOL_EDIT_FRAME::SyncLibraries(), FOOTPRINT_EDIT_FRAME::SyncLibraryTree(), and SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties().
void LIB_TREE::SetSearchString | ( | const wxString & | aSearchString | ) |
Save/restore search string.
Definition at line 381 of file lib_tree.cpp.
References m_query_ctrl.
Referenced by PANEL_DESIGN_BLOCK_CHOOSER::OnChar(), PANEL_SYMBOL_CHOOSER::OnChar(), PANEL_DESIGN_BLOCK_CHOOSER::PANEL_DESIGN_BLOCK_CHOOSER(), and PANEL_SYMBOL_CHOOSER::PANEL_SYMBOL_CHOOSER().
|
inline |
Save/restore the sorting mode.
Definition at line 140 of file lib_tree.h.
References m_adapter.
Referenced by FOOTPRINT_EDIT_FRAME::LoadSettings().
|
protected |
Restore the symbol tree widget state from an object.
Definition at line 573 of file lib_tree.cpp.
References UTF8::empty(), LIB_TREE::STATE::expanded, LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), m_tree_ctrl, LIB_TREE::STATE::selection, and SelectLibId().
Referenced by Regenerate().
void LIB_TREE::ShowChangedLanguage | ( | ) |
Definition at line 291 of file lib_tree.cpp.
References _, m_adapter, and m_query_ctrl.
Referenced by SYMBOL_EDIT_FRAME::ShowChangedLanguage(), and FOOTPRINT_EDIT_FRAME::ShowChangedLanguage().
|
protected |
Definition at line 707 of file lib_tree.cpp.
References m_adapter, m_previewItem, m_previewItemRect, m_previewWindow, m_tree_ctrl, and PREVIEW_SIZE.
Referenced by onHoverTimer(), and onIdle().
|
protected |
Expand or collapse a node, switching it to the opposite state.
Definition at line 462 of file lib_tree.cpp.
References m_tree_ctrl.
Referenced by onQueryCharHook(), and onTreeActivate().
void LIB_TREE::Unselect | ( | ) |
Unselect currently selected item in wxDataViewCtrl.
Definition at line 355 of file lib_tree.cpp.
References m_tree_ctrl.
Referenced by PANEL_DESIGN_BLOCK_CHOOSER::addDesignBlockToHistory(), SYMBOL_EDIT_FRAME::emptyScreen(), FOOTPRINT_TREE_PANE::onComponentSelected(), SYMBOL_TREE_PANE::onSymbolSelected(), SYMBOL_TREE_PANE::onUpdateUI(), FOOTPRINT_TREE_PANE::onUpdateUI(), PANEL_DESIGN_BLOCK_CHOOSER::RefreshLibs(), SYMBOL_EDIT_FRAME::SetCurSymbol(), SYMBOL_EDIT_FRAME::SyncLibraries(), and FOOTPRINT_EDIT_FRAME::SyncLibraryTree().
|
protected |
Definition at line 393 of file lib_tree.cpp.
References _, alg::contains(), alg::delete_matching(), g_recentSearches, GetSearchString(), m_query_ctrl, m_recentSearchesKey, recent, and RECENT_SEARCHES_MAX.
Referenced by LIB_TREE(), onQueryCharHook(), onTreeActivate(), and onTreeSelect().
|
protected |
Definition at line 237 of file lib_tree.h.
Referenced by centerIfValid(), CenterLibId(), ExpandLibId(), GetCurrentTreeNode(), GetSelectedLibId(), GetSelectedLibIds(), GetSortMode(), getState(), LIB_TREE(), onHeaderContextMenu(), onHoverTimer(), onItemContextMenu(), onPreselect(), onQueryCharHook(), onTreeCharHook(), RefreshLibTree(), Regenerate(), SelectLibId(), SetSortMode(), ShowChangedLanguage(), and showPreview().
|
protected |
Definition at line 243 of file lib_tree.h.
Referenced by LIB_TREE(), onQueryText(), and ~LIB_TREE().
|
protected |
Definition at line 242 of file lib_tree.h.
Referenced by LIB_TREE(), onPreselect(), and ~LIB_TREE().
|
protected |
Definition at line 248 of file lib_tree.h.
Referenced by GetFiltersSizer(), and LIB_TREE().
|
protected |
Definition at line 253 of file lib_tree.h.
Referenced by onHoverTimer(), and onIdle().
|
protected |
Definition at line 254 of file lib_tree.h.
Referenced by onHoverTimer(), and onIdle().
|
protected |
Definition at line 252 of file lib_tree.h.
Referenced by onHoverTimer(), and onIdle().
|
protected |
Definition at line 255 of file lib_tree.h.
Referenced by LIB_TREE(), onHoverTimer(), onIdle(), and ~LIB_TREE().
|
protected |
Definition at line 244 of file lib_tree.h.
Referenced by onDebounceTimer(), onTreeActivate(), and onTreeSelect().
|
protected |
Definition at line 259 of file lib_tree.h.
Referenced by onHeaderContextMenu(), onHoverTimer(), onIdle(), and onItemContextMenu().
|
protected |
Definition at line 256 of file lib_tree.h.
Referenced by hidePreview(), onIdle(), and showPreview().
|
protected |
Definition at line 257 of file lib_tree.h.
Referenced by showPreview().
|
protected |
Definition at line 258 of file lib_tree.h.
Referenced by destroyPreview(), hidePreview(), and showPreview().
|
protected |
Definition at line 239 of file lib_tree.h.
Referenced by FocusSearchFieldIfExists(), GetFocusTarget(), GetSearchString(), LIB_TREE(), onQueryMouseMoved(), Regenerate(), SetSearchString(), ShowChangedLanguage(), updateRecentSearchMenu(), and ~LIB_TREE().
|
protected |
Definition at line 246 of file lib_tree.h.
Referenced by LIB_TREE(), and updateRecentSearchMenu().
|
protected |
Definition at line 250 of file lib_tree.h.
Referenced by onItemContextMenu().
|
protected |
Definition at line 240 of file lib_tree.h.
Referenced by LIB_TREE().
|
protected |
Definition at line 241 of file lib_tree.h.
Referenced by centerIfValid(), CollapseAll(), ExpandAll(), expandIfValid(), GetCurrentTreeNode(), GetFocusTarget(), GetSelectedLibId(), GetSelectedLibIds(), GetSelectionCount(), getState(), LIB_TREE(), onHoverTimer(), onIdle(), onItemContextMenu(), onQueryCharHook(), onTreeActivate(), onTreeSelect(), selectIfValid(), setState(), showPreview(), toggleExpand(), Unselect(), and ~LIB_TREE().