KiCad PCB EDA Suite
dialog_change_symbols.cpp File Reference
#include <algorithm>
#include <bitmaps.h>
#include <string_utils.h>
#include <kiway.h>
#include <lib_id.h>
#include <refdes_utils.h>
#include <core/kicad_algo.h>
#include <dialog_change_symbols.h>
#include <sch_symbol.h>
#include <sch_edit_frame.h>
#include <sch_screen.h>
#include <sch_sheet_path.h>
#include <schematic.h>
#include <template_fieldnames.h>
#include <wx_html_report_panel.h>

Go to the source code of this file.

Functions

wxString getLibIdValue (const wxTextCtrl *aCtrl)
 

Variables

bool g_selectRefDes = false
 
bool g_selectValue = false
 
bool g_removeExtraFields [2] = { false, false }
 
bool g_resetEmptyFields [2] = { false, false }
 
bool g_resetFieldText [2] = { true, true }
 
bool g_resetFieldVisibilities [2] = { true, false }
 
bool g_resetFieldEffects [2] = { true, false }
 
bool g_resetFieldPositions [2] = { true, false }
 
bool g_resetAttributes [2] = { true, false }
 

Function Documentation

◆ getLibIdValue()

wxString getLibIdValue ( const wxTextCtrl *  aCtrl)

Definition at line 236 of file dialog_change_symbols.cpp.

237 {
238  wxString rawValue = aCtrl->GetValue();
239  wxString itemName;
240  wxString libName = rawValue.BeforeFirst( ':', &itemName );
241 
242  return EscapeString( libName, CTX_LIBID ) + ':' + EscapeString( itemName, CTX_LIBID );
243 }
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...

References CTX_LIBID, and EscapeString().

Referenced by DIALOG_CHANGE_SYMBOLS::isMatch(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::processMatchingSymbols(), and DIALOG_CHANGE_SYMBOLS::updateFieldsList().

Variable Documentation

◆ g_removeExtraFields

bool g_removeExtraFields[2] = { false, false }

◆ g_resetAttributes

bool g_resetAttributes[2] = { true, false }

◆ g_resetEmptyFields

bool g_resetEmptyFields[2] = { false, false }

◆ g_resetFieldEffects

bool g_resetFieldEffects[2] = { true, false }

◆ g_resetFieldPositions

bool g_resetFieldPositions[2] = { true, false }

◆ g_resetFieldText

bool g_resetFieldText[2] = { true, true }

◆ g_resetFieldVisibilities

bool g_resetFieldVisibilities[2] = { true, false }

◆ g_selectRefDes

bool g_selectRefDes = false

◆ g_selectValue

bool g_selectValue = false