KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_edit_symbols_libid.cpp File Reference

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.
 

Detailed Description

Dialog to remap library id of symbols to another library id.

Definition in file dialog_edit_symbols_libid.cpp.

Macro Definition Documentation

◆ COL_CURR_LIBID

#define COL_CURR_LIBID   1

Definition at line 53 of file dialog_edit_symbols_libid.cpp.

◆ COL_NEW_LIBID

#define COL_NEW_LIBID   2

Definition at line 54 of file dialog_edit_symbols_libid.cpp.

◆ COL_REFS

#define COL_REFS   0

Definition at line 52 of file dialog_edit_symbols_libid.cpp.

◆ GRID_CELL_MARGIN

#define GRID_CELL_MARGIN   4

Definition at line 227 of file dialog_edit_symbols_libid.cpp.

Function Documentation

◆ getLibIdValue()

◆ InvokeDialogEditSymbolsLibId()

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.

Returns
true if changes are made, false if no change

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().

◆ sort_by_libid()

static bool sort_by_libid ( const SYMBOL_CANDIDATE candidate1,
const SYMBOL_CANDIDATE candidate2 
)
static