KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_tree.cpp File Reference
#include <widgets/lib_tree.h>
#include <widgets/std_bitmap_button.h>
#include <core/kicad_algo.h>
#include <macros.h>
#include <bitmaps.h>
#include <dialogs/eda_reorderable_list_dialog.h>
#include <tool/tool_interactive.h>
#include <tool/tool_manager.h>
#include <tool/action_manager.h>
#include <tool/actions.h>
#include <tool/tool_dispatcher.h>
#include <widgets/wx_dataviewctrl.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/srchctrl.h>
#include <wx/popupwin.h>
#include <eda_doc.h>
#include <pgm_base.h>
#include <settings/settings_manager.h>

Go to the source code of this file.

Macros

#define PREVIEW_SIZE   wxSize( 240, 200 )
 
#define HOVER_TIMER_MILLIS   400
 

Functions

 wxDEFINE_EVENT (EVT_LIBITEM_SELECTED, wxCommandEvent)
 
 wxDEFINE_EVENT (EVT_LIBITEM_CHOSEN, wxCommandEvent)
 

Variables

constexpr int RECENT_SEARCHES_MAX = 10
 
std::map< wxString, std::vector< wxString > > g_recentSearches
 

Macro Definition Documentation

◆ HOVER_TIMER_MILLIS

#define HOVER_TIMER_MILLIS   400

Definition at line 704 of file lib_tree.cpp.

◆ PREVIEW_SIZE

#define PREVIEW_SIZE   wxSize( 240, 200 )

Definition at line 703 of file lib_tree.cpp.

Function Documentation

◆ wxDEFINE_EVENT() [1/2]

wxDEFINE_EVENT ( EVT_LIBITEM_CHOSEN  ,
wxCommandEvent   
)

◆ wxDEFINE_EVENT() [2/2]

wxDEFINE_EVENT ( EVT_LIBITEM_SELECTED  ,
wxCommandEvent   
)

Variable Documentation

◆ g_recentSearches

std::map<wxString, std::vector<wxString> > g_recentSearches

Definition at line 48 of file lib_tree.cpp.

Referenced by LIB_TREE::LIB_TREE(), and LIB_TREE::updateRecentSearchMenu().

◆ RECENT_SEARCHES_MAX

constexpr int RECENT_SEARCHES_MAX = 10
constexpr

Definition at line 46 of file lib_tree.cpp.

Referenced by LIB_TREE::LIB_TREE(), and LIB_TREE::updateRecentSearchMenu().