KiCad PCB EDA Suite
|
Dialog to remap library id of symbols to another library id. More...
#include <confirm.h>
#include <sch_edit_frame.h>
#include <sch_symbol.h>
#include <sch_reference_list.h>
#include <schematic.h>
#include <symbol_lib_table.h>
#include <trace_helpers.h>
#include <widgets/wx_grid.h>
#include <dialog_edit_symbols_libid_base.h>
#include <wx/tokenzr.h>
#include <wx/choicdlg.h>
#include <wx/dcclient.h>
#include <wx/msgdlg.h>
#include <grid_tricks.h>
#include <widgets/grid_text_button_helpers.h>
#include <kiplatform/ui.h>
#include <string_utils.h>
#include <project_sch.h>
Go to the source code of this file.
Classes | |
class | GRIDCELL_AUTOWRAP_STRINGRENDERER |
class | SYMBOL_CANDIDATE |
A helper to handle symbols to edit. More... | |
class | DIALOG_EDIT_SYMBOLS_LIBID |
Dialog to globally edit the LIB_ID of groups if symbols having the same initial LIB_ID. More... | |
Macros | |
#define | COL_REFS 0 |
#define | COL_CURR_LIBID 1 |
#define | COL_NEW_LIBID 2 |
#define | GRID_CELL_MARGIN 4 |
Functions | |
static bool | sort_by_libid (const SYMBOL_CANDIDATE &candidate1, const SYMBOL_CANDIDATE &candidate2) |
wxString | getLibIdValue (const WX_GRID *aGrid, int aRow, int aCol) |
bool | InvokeDialogEditSymbolsLibId (SCH_EDIT_FRAME *aCaller) |
Run a dialog to modify the LIB_ID of symbols for instance when a symbol has moved from a symbol library to another symbol library. | |
Dialog to remap library id of symbols to another library id.
Definition in file dialog_edit_symbols_libid.cpp.
#define COL_CURR_LIBID 1 |
Definition at line 53 of file dialog_edit_symbols_libid.cpp.
#define COL_NEW_LIBID 2 |
Definition at line 54 of file dialog_edit_symbols_libid.cpp.
#define COL_REFS 0 |
Definition at line 52 of file dialog_edit_symbols_libid.cpp.
#define GRID_CELL_MARGIN 4 |
Definition at line 227 of file dialog_edit_symbols_libid.cpp.
wxString getLibIdValue | ( | const WX_GRID * | aGrid, |
int | aRow, | ||
int | aCol | ||
) |
Definition at line 512 of file dialog_edit_symbols_libid.cpp.
References CTX_LIBID, and EscapeString().
Referenced by DIALOG_EDIT_SYMBOLS_LIBID::onClickOrphansButton(), DIALOG_EDIT_SYMBOLS_LIBID::setLibIdByBrowser(), DIALOG_EDIT_SYMBOLS_LIBID::TransferDataFromWindow(), and DIALOG_EDIT_SYMBOLS_LIBID::validateLibIds().
bool InvokeDialogEditSymbolsLibId | ( | SCH_EDIT_FRAME * | aCaller | ) |
Run a dialog to modify the LIB_ID of symbols for instance when a symbol has moved from a symbol library to another symbol library.
Definition at line 835 of file dialog_edit_symbols_libid.cpp.
References DIALOG_EDIT_SYMBOLS_LIBID::IsSchematicModified(), and DIALOG_SHIM::ShowQuasiModal().
Referenced by SCH_EDITOR_CONTROL::EditSymbolLibraryLinks().
|
static |
Definition at line 374 of file dialog_edit_symbols_libid.cpp.
References SCH_SYMBOL::GetLibId(), SYMBOL_CANDIDATE::m_Reference, and SYMBOL_CANDIDATE::m_Symbol.
Referenced by DIALOG_EDIT_SYMBOLS_LIBID::initDlg().