KiCad PCB EDA Suite
|
#include <set>
#include <wx/dir.h>
#include <wx/regex.h>
#include <wx/grid.h>
#include <wx/dirdlg.h>
#include <wx/filedlg.h>
#include <project.h>
#include <3d_viewer/eda_3d_viewer_frame.h>
#include <panel_fp_lib_table.h>
#include <lib_id.h>
#include <fp_lib_table.h>
#include <lib_table_lexer.h>
#include <invoke_pcb_dialog.h>
#include <bitmaps.h>
#include <lib_table_grid_tricks.h>
#include <widgets/wx_grid.h>
#include <widgets/std_bitmap_button.h>
#include <confirm.h>
#include <lib_table_grid.h>
#include <wildcards_and_files_ext.h>
#include <pgm_base.h>
#include <pcb_edit_frame.h>
#include <env_paths.h>
#include <dialogs/dialog_edit_library_tables.h>
#include <footprint_viewer_frame.h>
#include <footprint_edit_frame.h>
#include <kiway.h>
#include <kiway_express.h>
#include <widgets/grid_readonly_text_helpers.h>
#include <widgets/grid_text_button_helpers.h>
#include <pcbnew_id.h>
#include <settings/settings_manager.h>
#include <paths.h>
#include <macros.h>
Go to the source code of this file.
Classes | |
struct | SUPPORTED_FILE_TYPE |
Container that describes file type info for the add a library options. More... | |
class | LIBRARY_TRAVERSER |
Traverser implementation that looks to find any and all "folder" libraries by looking for files with a specific extension inside folders. More... | |
class | FP_LIB_TABLE_GRID |
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object. More... | |
class | FP_GRID_TRICKS |
Macros | |
#define | MYID_OPTIONS_EDITOR 15151 |
Enumerations | |
enum | { ID_PANEL_FPLIB_ADD_KICADMOD = ID_PCBNEW_END_LIST , ID_PANEL_FPLIB_ADD_ALTIUM , ID_PANEL_FPLIB_ADD_EAGLE6 , ID_PANEL_FPLIB_ADD_KICADLEGACY , ID_PANEL_FPLIB_ADD_GEDA } |
Event IDs for the menu items in the split button menu for add a library. More... | |
Functions | |
static const std::map< int, SUPPORTED_FILE_TYPE > & | fileTypes () |
Map with event id as the key to supported file types that will be listed for the add a library option. More... | |
void | InvokePcbLibTableEditor (KIWAY *aKiway, wxWindow *aCaller) |
Function InvokePcbLibTableEditor shows the modal DIALOG_FP_LIB_TABLE for purposes of editing the global and project library tables. More... | |
#define MYID_OPTIONS_EDITOR 15151 |
Definition at line 247 of file panel_fp_lib_table.cpp.
anonymous enum |
Event IDs for the menu items in the split button menu for add a library.
Enumerator | |
---|---|
ID_PANEL_FPLIB_ADD_KICADMOD | |
ID_PANEL_FPLIB_ADD_ALTIUM | |
ID_PANEL_FPLIB_ADD_EAGLE6 | |
ID_PANEL_FPLIB_ADD_KICADLEGACY | |
ID_PANEL_FPLIB_ADD_GEDA |
Definition at line 86 of file panel_fp_lib_table.cpp.
|
static |
Map with event id as the key to supported file types that will be listed for the add a library option.
Definition at line 99 of file panel_fp_lib_table.cpp.
References IO_MGR::ALTIUM_DESIGNER, AltiumFootprintLibPathWildcard(), IO_MGR::EAGLE, EagleFootprintLibPathWildcard(), fileTypes(), IO_MGR::GEDA_PCB, GedaPcbFootprintLibFileExtension, ID_PANEL_FPLIB_ADD_ALTIUM, ID_PANEL_FPLIB_ADD_EAGLE6, ID_PANEL_FPLIB_ADD_GEDA, ID_PANEL_FPLIB_ADD_KICADLEGACY, ID_PANEL_FPLIB_ADD_KICADMOD, IO_MGR::KICAD_SEXP, KiCadFootprintFileExtension, IO_MGR::LEGACY, and LegacyFootprintLibPathWildcard().
Referenced by PANEL_FP_LIB_TABLE::browseLibrariesHandler(), fileTypes(), and PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE().
void InvokePcbLibTableEditor | ( | KIWAY * | aKiway, |
wxWindow * | aCaller | ||
) |
Function InvokePcbLibTableEditor shows the modal DIALOG_FP_LIB_TABLE for purposes of editing the global and project library tables.
aCaller | is the wxWindow which is invoking the dialog. |
Definition at line 1086 of file panel_fp_lib_table.cpp.
References _, KIWAY::ExpressMail(), PROJECT::FootprintLibTblName(), FRAME_CVPCB, FRAME_FOOTPRINT_EDITOR, FRAME_FOOTPRINT_VIEWER, FP_LIB_TABLE::GetGlobalTableFileName(), PROJECT::GetProjectPath(), GFootprintTable, DIALOG_EDIT_LIBRARY_TABLES::InstallPanel(), PROJECT::IsNullProject(), DIALOG_EDIT_LIBRARY_TABLES::m_GlobalTableChanged, DIALOG_EDIT_LIBRARY_TABLES::m_ProjectTableChanged, MAIL_RELOAD_LIB, PROJECT::PcbFootprintLibs(), KIWAY::Prj(), LIB_TABLE::Save(), KIWAY_HOLDER::SetKiway(), and IO_ERROR::What().
Referenced by PCB::IFACE::CreateKiWindow().