KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_find_replace_tool.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2019 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <sch_commit.h>
22#include <sch_sheet_pin.h>
23#include <schematic.h>
25#include <sch_sheet_path.h>
26#include "sch_actions.h"
27
28
30{
31 m_frame->ShowFindReplaceDialog( aEvent.IsAction( &ACTIONS::findAndReplace ) );
32 return UpdateFind( aEvent );
33}
34
35
37{
38 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
39 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
40 SCH_SHEET_PATH* sheetPath = nullptr;
41 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
42
43 if( m_frame->GetFrameType() == FRAME_SCH )
44 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
45
46 auto visit =
47 [&]( EDA_ITEM* aItem, SCH_SHEET_PATH* aSheet )
48 {
49 // We may get triggered when the dialog is not opened due to binding
50 // SelectedItemsModified we also get triggered when the find dialog is
51 // closed....so we need to double check the dialog is open.
52 if( m_frame->GetFindReplaceDialog() != nullptr
53 && !data.findString.IsEmpty()
54 && aItem->Matches( data, aSheet )
55 && ( !selectedOnly || aItem->IsSelected() ) )
56 {
57 aItem->SetForceVisible( true );
58 m_selectionTool->BrightenItem( aItem );
60 }
61 else if( aItem->IsBrightened() || aItem->IsForceVisible() )
62 {
63 aItem->SetForceVisible( false );
64 m_selectionTool->UnbrightenItem( aItem );
65 }
66 };
67
68 auto visitAll =
69 [&]()
70 {
71 if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
72 {
73 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
74 {
75 for( SCH_ITEM& item : symbol->GetDrawItems() )
76 visit( &item, nullptr );
77 }
78 }
79 else
80 {
81 for( SCH_ITEM* item : m_frame->GetScreen()->Items() )
82 {
83 visit( item, sheetPath );
84
85 item->RunOnChildren(
86 [&]( SCH_ITEM* aChild )
87 {
88 visit( aChild, sheetPath );
89 },
91 }
92 }
93 };
94
95 if( aEvent.IsAction( &ACTIONS::find ) || aEvent.IsAction( &ACTIONS::findAndReplace )
96 || aEvent.IsAction( &ACTIONS::updateFind ) )
97 {
99 visitAll();
100 }
101 else if( aEvent.Matches( EVENTS::SelectedItemsModified ) )
102 {
103 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
104 visit( item, sheetPath );
105 }
106 else if( aEvent.Matches( EVENTS::PointSelectedEvent )
107 || aEvent.Matches( EVENTS::SelectedEvent )
109 || aEvent.Matches( EVENTS::ClearedEvent ) )
110 {
111 if( !m_frame->GetFindReplaceDialog() )
112 {
114 {
116 visitAll();
117 }
118 }
119 else if( selectedOnly )
120 {
121 // Normal find modifies the selection, but selection-based find does not, so we want
122 // to start over in the items we are searching through when the selection changes
123 m_afterItem = nullptr;
124 m_afterItemScreen = nullptr;
125 visitAll();
126 }
127 }
128 else if( m_foundItemHighlighted )
129 {
131 visitAll();
132 }
133
134 getView()->UpdateItems();
135 m_frame->GetCanvas()->Refresh();
136
137 return 0;
138}
139
140
142 EDA_SEARCH_DATA& aData, bool reversed )
143{
144 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &aData );
145 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
146 bool past_item = !aAfter;
147 std::vector<SCH_ITEM*> sorted_items;
148
149 auto addItem =
150 [&](SCH_ITEM* item)
151 {
152 sorted_items.push_back( item );
153
154 if( item->Type() == SCH_SYMBOL_T )
155 {
156 SCH_SYMBOL* cmp = static_cast<SCH_SYMBOL*>( item );
157
158 for( SCH_FIELD& field : cmp->GetFields() )
159 sorted_items.push_back( &field );
160
161 for( SCH_PIN* pin : cmp->GetPins() )
162 sorted_items.push_back( pin );
163 }
164 else if( item->Type() == SCH_SHEET_T )
165 {
166 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
167
168 for( SCH_FIELD& field : sheet->GetFields() )
169 sorted_items.push_back( &field );
170
171 for( SCH_SHEET_PIN* pin : sheet->GetPins() )
172 sorted_items.push_back( pin );
173 }
174 else if( item->IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
175 {
176 SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( item );
177
178 for( SCH_FIELD& field : label->GetFields() )
179 sorted_items.push_back( &field );
180 }
181 };
182
183 if( selectedOnly )
184 {
185 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
186 addItem( static_cast<SCH_ITEM*>( item ) );
187 }
188 else if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
189 {
190 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
191 {
192 for( SCH_ITEM& item : symbol->GetDrawItems() )
193 addItem( &item );
194 }
195 }
196 else
197 {
198 for( SCH_ITEM* item : aScreen->Items() )
199 addItem( item );
200 }
201
202 std::sort( sorted_items.begin(), sorted_items.end(),
203 [&]( SCH_ITEM* a, SCH_ITEM* b )
204 {
205 if( a->GetPosition().x == b->GetPosition().x )
206 {
207 // Ensure deterministic sort
208 if( a->GetPosition().y == b->GetPosition().y )
209 return a->m_Uuid < b->m_Uuid;
210
211 return a->GetPosition().y < b->GetPosition().y;
212 }
213 else
214 return a->GetPosition().x < b->GetPosition().x;
215 } );
216
217 if( reversed )
218 std::reverse( sorted_items.begin(), sorted_items.end() );
219
220 for( SCH_ITEM* item : sorted_items )
221 {
222 if( item == aAfter )
223 {
224 past_item = true;
225 }
226 else if( past_item )
227 {
228 if( aData.markersOnly && item->Type() == SCH_MARKER_T )
229 return item;
230
231 if( item->Matches( aData, aSheet ) )
232 return item;
233 }
234 }
235
236 return nullptr;
237}
238
239
241{
242 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
243 bool searchAllSheets = false;
244 bool selectedOnly = false;
245 bool isReversed = aEvent.IsAction( &ACTIONS::findPrevious );
246 SCH_ITEM* item = nullptr;
247 SCH_SHEET_PATH* currentSheet = nullptr;
248 SCH_SHEET_PATH* afterSheet = nullptr;
249
250 try
251 {
252 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
253
254 if( m_frame->GetFrameType() == FRAME_SCH )
255 {
256 currentSheet = afterSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
257 searchAllSheets = !schSearchData.searchCurrentSheetOnly;
258 }
259
260 selectedOnly = schSearchData.searchSelectedOnly;
261 }
262 catch( const std::bad_cast& )
263 {
264 }
265
266 if( aEvent.IsAction( &ACTIONS::findNextMarker ) )
267 data.markersOnly = true;
268 else if( data.findString.IsEmpty() )
269 return FindAndReplace( ACTIONS::find.MakeEvent() );
270
271 if( m_afterItem && m_afterItemScreen != m_frame->GetScreen() )
272 {
273 m_afterItem = nullptr;
274 m_afterItemScreen = nullptr;
275 }
276
277 if( data.findString != m_lastSearchString )
278 {
279 m_afterItem = nullptr;
280 m_afterItemScreen = nullptr;
282 }
283
284 bool wrappedAround = false;
285
286 for( int attempt = 0; attempt < 2; ++attempt )
287 {
288 if( attempt == 1 )
289 {
290 if( m_afterItem == nullptr )
291 break; // already a fresh session; nothing to wrap to
292
293 m_afterItem = nullptr;
294 m_afterItemScreen = nullptr;
295 afterSheet = nullptr;
296 wrappedAround = true;
297 }
298
299 bool freshSession = ( m_afterItem == nullptr );
300
301 if( afterSheet || !searchAllSheets || selectedOnly )
302 item = nextMatch( m_frame->GetScreen(), currentSheet, m_afterItem, data, isReversed );
303
304 if( !item && searchAllSheets && !selectedOnly )
305 {
306 if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
307 {
308 SCH_SCREENS screens( editFrame->Schematic().Root() );
309 SCH_SHEET_LIST paths;
310
311 screens.BuildClientSheetPathList();
312
313 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
314 {
315 for( SCH_SHEET_PATH& sheet : screen->GetClientSheetPaths() )
316 paths.push_back( sheet );
317 }
318
319 paths.SortByPageNumbers( false );
320
321 if( isReversed )
322 std::reverse( paths.begin(), paths.end() );
323
324 for( SCH_SHEET_PATH& sheet : paths )
325 {
326 if( afterSheet && !freshSession )
327 {
328 if( afterSheet->GetCurrentHash() == sheet.GetCurrentHash() )
329 afterSheet = nullptr;
330
331 continue;
332 }
333
334 item = nextMatch( sheet.LastScreen(), &sheet, nullptr, data, isReversed );
335
336 if( item )
337 {
338 if( editFrame->Schematic().CurrentSheet() != sheet )
339 editFrame->GetToolManager()->RunAction<SCH_SHEET_PATH*>( SCH_ACTIONS::changeSheet, &sheet );
340
341 break;
342 }
343 }
344 }
345 }
346
347 if( item )
348 break;
349 }
350
351 if( item )
352 {
353 m_afterItem = item;
354 m_afterItemScreen = m_frame->GetScreen();
355
356 if( !selectedOnly )
357 {
358 m_selectionTool->ClearSelection();
359 m_selectionTool->AddItemToSel( item );
360 }
361
362 if( !item->IsBrightened() )
363 {
364 // Clear any previous brightening
365 UpdateFind( aEvent );
366
367 // Brighten (and show) found object
368 item->SetForceVisible( true );
369 m_selectionTool->BrightenItem( item );
371 }
372
373 m_frame->FocusOnLocation( item->GetBoundingBox().GetCenter() );
374 m_frame->GetCanvas()->Refresh();
375
376 if( wrappedAround )
377 {
378 wxString msg;
379
380 if( m_frame->GetFrameType() == FRAME_SCH_SYMBOL_EDITOR )
381 msg = _( "Reached end of symbol." );
382 else if( searchAllSheets )
383 msg = _( "Reached end of schematic." );
384 else
385 msg = _( "Reached end of sheet." );
386
387 m_frame->ShowFindReplaceStatus( msg, 2000 );
388 }
389 }
390 else
391 {
392 m_afterItem = nullptr;
393 m_afterItemScreen = nullptr;
394 m_frame->ShowFindReplaceStatus( _( "No matches found." ), 2000 );
395 }
396
397 return 0;
398}
399
401{
402 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
403 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
404 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
405
406 return selectedOnly ? m_afterItem : m_selectionTool->GetSelection().Front();
407}
408
410{
411 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
412 EDA_ITEM* match = getCurrentMatch();
413 SCH_SHEET_PATH* sheetPath = nullptr;
414
415 if( m_frame->GetFrameType() == FRAME_SCH )
416 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
417
418 return match && match->Matches( data, sheetPath );
419}
420
421
423{
424 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
425 EDA_ITEM* item = getCurrentMatch();
426 SCH_SHEET_PATH* currentSheet = nullptr;
427
428 if( m_frame->GetFrameType() == FRAME_SCH )
429 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
430
431 if( data.findString.IsEmpty() )
432 return FindAndReplace( ACTIONS::find.MakeEvent() );
433
434 if( item && HasMatch() )
435 {
436 SCH_COMMIT commit( m_frame );
437 SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
438
439 commit.Modify( sch_item, m_frame->GetScreen(), RECURSE_MODE::NO_RECURSE );
440
441 if( item->Replace( data, currentSheet ) )
442 {
443 if( currentSheet )
444 currentSheet->UpdateAllScreenReferences();
445
446 commit.Push( wxS( "Find and Replace" ) );
447 }
448
449 FindNext( ACTIONS::findNext.MakeEvent() );
450 }
451
452 return 0;
453}
454
455
457{
458 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
459 SCH_SHEET_PATH* currentSheet = nullptr;
460 bool currentSheetOnly = true;
461 bool selectedOnly = false;
462
463 try
464 {
465 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
466
467 if( m_frame->GetFrameType() == FRAME_SCH )
468 {
469 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
470 currentSheetOnly = schSearchData.searchCurrentSheetOnly;
471 }
472
473 selectedOnly = schSearchData.searchSelectedOnly;
474 }
475 catch( const std::bad_cast& )
476 {
477 }
478
479 SCH_COMMIT commit( m_frame );
480
481 if( data.findString.IsEmpty() )
482 return FindAndReplace( ACTIONS::find.MakeEvent() );
483
484 auto doReplace =
485 [&]( SCH_ITEM* aItem, SCH_SHEET_PATH* aSheet, EDA_SEARCH_DATA& aData )
486 {
487 wxCHECK_RET( aSheet, wxT( "must have a sheetpath for undo" ) );
488
489 commit.Modify( aItem, aSheet->LastScreen(), RECURSE_MODE::NO_RECURSE );
490
491 if( aItem->Replace( aData, aSheet ) )
492 m_frame->UpdateItem( aItem, false, true );
493 };
494
495 if( currentSheetOnly || selectedOnly )
496 {
497 if( currentSheet )
498 {
499 SCH_ITEM* item = nextMatch( m_frame->GetScreen(), currentSheet, nullptr, data, false );
500
501 while( item )
502 {
503 if( !selectedOnly || item->IsSelected() )
504 doReplace( item, currentSheet, data );
505
506 item = nextMatch( m_frame->GetScreen(), currentSheet, item, data, false );
507 }
508 }
509 }
510 else if( SCH_EDIT_FRAME* schematicFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
511 {
512 SCH_SHEET_LIST allSheets = schematicFrame->Schematic().Hierarchy();
513 SCH_SCREENS screens( schematicFrame->Schematic().Root() );
514
515 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
516 {
517 SCH_SHEET_LIST sheets = allSheets.FindAllSheetsForScreen( screen );
518
519 for( unsigned ii = 0; ii < sheets.size(); ++ii )
520 {
521 SCH_ITEM* item = nextMatch( screen, &sheets[ii], nullptr, data, false );
522
523 while( item )
524 {
525 if( ii == 0 )
526 {
527 doReplace( item, &sheets[0], data );
528 }
529 else if( item->Type() == SCH_FIELD_T )
530 {
531 SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
532
533 // References must be handled for each distinct sheet
534 if( field->GetId() == FIELD_T::REFERENCE )
535 doReplace( field, &sheets[ii], data );
536 }
537
538 item = nextMatch( screen, &sheets[ii], item, data, false );
539 }
540 }
541 }
542 }
543
544 if( !commit.Empty() )
545 {
546 commit.Push( wxS( "Find and Replace All" ) );
547
548 if( currentSheet )
549 currentSheet->UpdateAllScreenReferences();
550 }
551
552 return 0;
553}
554
555
static TOOL_ACTION replaceAll
Definition actions.h:119
static TOOL_ACTION updateFind
Definition actions.h:120
static TOOL_ACTION findPrevious
Definition actions.h:116
static TOOL_ACTION findAndReplace
Definition actions.h:114
static TOOL_ACTION replaceAndFindNext
Definition actions.h:118
static TOOL_ACTION findNext
Definition actions.h:115
static TOOL_ACTION findNextMarker
Definition actions.h:117
static TOOL_ACTION find
Definition actions.h:113
constexpr const Vec GetCenter() const
Definition box2.h:226
bool Empty() const
Definition commit.h:134
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
Definition commit.h:102
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
virtual VECTOR2I GetPosition() const
Definition eda_item.h:282
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:135
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:108
void SetForceVisible(bool aEnable)
Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is se...
Definition eda_item.h:220
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:416
bool IsSelected() const
Definition eda_item.h:132
bool IsBrightened() const
Definition eda_item.h:134
bool IsForceVisible() const
Definition eda_item.h:221
static bool Replace(const EDA_SEARCH_DATA &aSearchData, wxString &aText)
Perform a text replace on aText using the find and replace criteria in aSearchData on items that supp...
Definition eda_item.cpp:261
static const TOOL_EVENT ClearedEvent
Definition actions.h:343
static const TOOL_EVENT SelectedEvent
Definition actions.h:341
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition actions.h:348
static const TOOL_EVENT PointSelectedEvent
Definition actions.h:340
static const TOOL_EVENT UnselectedEvent
Definition actions.h:342
void UpdateItems()
Iterate through the list of items that asked for updating and updates them.
Definition view.cpp:1569
Define a library symbol object.
Definition lib_symbol.h:80
static TOOL_ACTION changeSheet
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
Schematic editor (Eeschema) main window.
FIELD_T GetId() const
Definition sch_field.h:132
void setTransitions() override
< Set up handlers for various events.
int UpdateFind(const TOOL_EVENT &aEvent)
int FindNext(const TOOL_EVENT &aEvent)
SCH_ITEM * nextMatch(SCH_SCREEN *aScreen, SCH_SHEET_PATH *aSheet, SCH_ITEM *aAfter, EDA_SEARCH_DATA &aData, bool reverse)
Advance the search and returns the next matching item after aAfter.
int ReplaceAll(const TOOL_EVENT &aEvent)
int FindAndReplace(const TOOL_EVENT &aEvent)
int ReplaceAndFindNext(const TOOL_EVENT &aEvent)
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition sch_item.h:162
std::vector< SCH_FIELD > & GetFields()
Definition sch_label.h:210
Container class that holds multiple SCH_SCREEN objects in a hierarchy.
Definition sch_screen.h:746
SCH_SCREEN * GetNext()
SCH_SCREEN * GetFirst()
void BuildClientSheetPathList()
Build the list of sheet paths sharing a screen for each screen in use.
EE_RTREE & Items()
Get the full RTree, usually for iterating.
Definition sch_screen.h:115
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void SortByPageNumbers(bool aUpdateVirtualPageNums=true)
Sort the list of sheets by page number.
SCH_SHEET_LIST FindAllSheetsForScreen(const SCH_SCREEN *aScreen) const
Return a SCH_SHEET_LIST with a copy of all the SCH_SHEET_PATH using a particular screen.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
size_t GetCurrentHash() const
void UpdateAllScreenReferences() const
Update all the symbol references for this sheet path.
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Definition sch_sheet.h:44
std::vector< SCH_FIELD > & GetFields()
Return a reference to the vector holding the sheet's fields.
Definition sch_sheet.h:87
std::vector< SCH_SHEET_PIN * > & GetPins()
Definition sch_sheet.h:227
Schematic symbol object.
Definition sch_symbol.h:69
std::vector< const SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
SCH_SELECTION_TOOL * m_selectionTool
The symbol library editor main window.
KIGFX::VIEW * getView() const
Definition tool_base.cpp:34
Generic, UI-independent tool event.
Definition tool_event.h:167
bool Matches(const TOOL_EVENT &aEvent) const
Test whether two events match in terms of category & action or command.
Definition tool_event.h:388
bool IsAction(const TOOL_ACTION *aAction) const
Test if the event contains an action issued upon activation of the given TOOL_ACTION.
void Go(int(SCH_BASE_FRAME::*aStateFunc)(const TOOL_EVENT &), const TOOL_EVENT_LIST &aConditions=TOOL_EVENT(TC_ANY, TA_ANY))
#define _(s)
@ NO_RECURSE
Definition eda_item.h:50
@ FRAME_SCH_SYMBOL_EDITOR
Definition frame_type.h:31
@ FRAME_SCH
Definition frame_type.h:30
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
@ REFERENCE
Field Reference of part, i.e. "IC21".
KIBIS_PIN * pin
@ SCH_SYMBOL_T
Definition typeinfo.h:169
@ SCH_FIELD_T
Definition typeinfo.h:147
@ SCH_SHEET_T
Definition typeinfo.h:172
@ SCH_MARKER_T
Definition typeinfo.h:155