KiCad PCB EDA Suite
loadcmp.cpp File Reference

Footprints selection and loading functions. More...

#include <functional>
#include <fctsys.h>
#include <class_drawpanel.h>
#include <pcb_draw_panel_gal.h>
#include <confirm.h>
#include <eda_doc.h>
#include <kicad_string.h>
#include <pgm_base.h>
#include <kiway.h>
#include <wxPcbStruct.h>
#include <dialog_helpers.h>
#include <filter_reader.h>
#include <gr_basic.h>
#include <macros.h>
#include <fp_lib_table.h>
#include <lib_id.h>
#include <class_board.h>
#include <class_module.h>
#include <io_mgr.h>
#include <pcbnew.h>
#include <module_editor_frame.h>
#include <footprint_info.h>
#include <footprint_info_impl.h>
#include <dialog_get_component.h>
#include <modview_frame.h>
#include <wildcards_and_files_ext.h>
#include <class_pcb_layer_widget.h>

Go to the source code of this file.

Functions

static void DisplayCmpDoc (wxString &aName, void *aData)
 
static void clearModuleItemFlags (BOARD_ITEM *aItem)
 

Variables

static FOOTPRINT_LIST_IMPL MList
 

Detailed Description

Footprints selection and loading functions.

Definition in file loadcmp.cpp.

Function Documentation

static void clearModuleItemFlags ( BOARD_ITEM aItem)
static

Definition at line 70 of file loadcmp.cpp.

References EDA_ITEM::ClearFlags().

Referenced by FOOTPRINT_EDIT_FRAME::Load_Module_From_BOARD().

71 {
72  aItem->ClearFlags();
73 }
void ClearFlags(STATUS_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
Definition: base_struct.h:281
static void DisplayCmpDoc ( wxString &  aName,
void *  aData 
)
static

Definition at line 478 of file loadcmp.cpp.

References FOOTPRINT_INFO::GetDoc(), FOOTPRINT_INFO::GetKeywords(), and FOOTPRINT_LIST::GetModuleInfo().

Referenced by PCB_BASE_FRAME::SelectFootprint().

479 {
480  FOOTPRINT_INFO* module_info = MList.GetModuleInfo( aName );
481 
482  if( !module_info )
483  {
484  aName.Empty();
485  return;
486  }
487 
488  aName = _( "Description: " ) + module_info->GetDoc();
489  aName += _( "\nKey words: " ) + module_info->GetKeywords();
490 }
FOOTPRINT_INFO * GetModuleInfo(const wxString &aFootprintName)
Get info for a module by name.
static FOOTPRINT_LIST_IMPL MList
Definition: loadcmp.cpp:68
const wxString & GetDoc()
const wxString & GetKeywords()

Variable Documentation

FOOTPRINT_LIST_IMPL MList
static

Definition at line 68 of file loadcmp.cpp.