KiCad PCB EDA Suite
load_select_footprint.cpp File Reference
#include <functional>
#include <board.h>
#include <footprint.h>
#include <confirm.h>
#include <connectivity/connectivity_data.h>
#include <dialog_choose_footprint.h>
#include <dialog_get_footprint_by_name.h>
#include <eda_list_dialog.h>
#include <footprint_edit_frame.h>
#include <footprint_info_impl.h>
#include <footprint_tree_pane.h>
#include <footprint_viewer_frame.h>
#include <fp_lib_table.h>
#include <ignore.h>
#include <io_mgr.h>
#include <string_utils.h>
#include <kiway.h>
#include <lib_id.h>
#include <macros.h>
#include <pcb_edit_frame.h>
#include <pcbnew_settings.h>
#include <view/view_controls.h>
#include <widgets/lib_tree.h>
#include <widgets/wx_progress_reporters.h>
#include <dialog_pad_properties.h>
#include "fp_tree_model_adapter.h"
#include <bitmaps.h>

Go to the source code of this file.

Functions

static void AddFootprintToHistory (const wxString &aName)
 

Variables

static wxArrayString s_FootprintHistoryList
 
static unsigned s_FootprintHistoryMaxCount = 8
 
static FOOTPRINTs_FootprintInitialCopy = nullptr
 
static PICKED_ITEMS_LIST s_PickedList
 

Function Documentation

◆ AddFootprintToHistory()

static void AddFootprintToHistory ( const wxString &  aName)
static

Definition at line 60 of file load_select_footprint.cpp.

61 {
62  // Remove duplicates
63  for( int ii = s_FootprintHistoryList.GetCount() - 1; ii >= 0; --ii )
64  {
65  if( s_FootprintHistoryList[ ii ] == aName )
66  s_FootprintHistoryList.RemoveAt((size_t) ii );
67  }
68 
69  // Add the new name at the beginning of the history list
70  s_FootprintHistoryList.Insert( aName, 0 );
71 
72  // Remove extra names
74  s_FootprintHistoryList.RemoveAt( s_FootprintHistoryList.GetCount() - 1 );
75 }
static wxArrayString s_FootprintHistoryList
static unsigned s_FootprintHistoryMaxCount

References s_FootprintHistoryList, and s_FootprintHistoryMaxCount.

Referenced by PCB_BASE_FRAME::SelectFootprintFromLibTree().

Variable Documentation

◆ s_FootprintHistoryList

wxArrayString s_FootprintHistoryList
static

◆ s_FootprintHistoryMaxCount

unsigned s_FootprintHistoryMaxCount = 8
static

Definition at line 58 of file load_select_footprint.cpp.

Referenced by AddFootprintToHistory().

◆ s_FootprintInitialCopy

FOOTPRINT* s_FootprintInitialCopy = nullptr
static

Definition at line 452 of file load_select_footprint.cpp.

Referenced by PCB_BASE_FRAME::PlaceFootprint().

◆ s_PickedList

PICKED_ITEMS_LIST s_PickedList
static

Definition at line 454 of file load_select_footprint.cpp.

Referenced by PCB_BASE_FRAME::PlaceFootprint().