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, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#include <sch_commit.h>
26#include <sch_sheet_pin.h>
27#include <schematic.h>
29#include <sch_sheet_path.h>
30#include "sch_actions.h"
31
32
34{
35 m_frame->ShowFindReplaceDialog( aEvent.IsAction( &ACTIONS::findAndReplace ) );
36 return UpdateFind( aEvent );
37}
38
39
41{
42 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
43 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
44 SCH_SHEET_PATH* sheetPath = nullptr;
45 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
46
47 if( m_frame->GetFrameType() == FRAME_SCH )
48 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
49
50 auto visit =
51 [&]( EDA_ITEM* aItem, SCH_SHEET_PATH* aSheet )
52 {
53 // We may get triggered when the dialog is not opened due to binding
54 // SelectedItemsModified we also get triggered when the find dialog is
55 // closed....so we need to double check the dialog is open.
56 if( m_frame->GetFindReplaceDialog() != nullptr
57 && !data.findString.IsEmpty()
58 && aItem->Matches( data, aSheet )
59 && ( !selectedOnly || aItem->IsSelected() ) )
60 {
61 aItem->SetForceVisible( true );
62 m_selectionTool->BrightenItem( aItem );
64 }
65 else if( aItem->IsBrightened() || aItem->IsForceVisible() )
66 {
67 aItem->SetForceVisible( false );
68 m_selectionTool->UnbrightenItem( aItem );
69 }
70 };
71
72 auto visitAll =
73 [&]()
74 {
75 if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
76 {
77 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
78 {
79 for( SCH_ITEM& item : symbol->GetDrawItems() )
80 visit( &item, nullptr );
81 }
82 }
83 else
84 {
85 for( SCH_ITEM* item : m_frame->GetScreen()->Items() )
86 visit( item, sheetPath );
87 }
88 };
89
90 if( aEvent.IsAction( &ACTIONS::find ) || aEvent.IsAction( &ACTIONS::findAndReplace )
91 || aEvent.IsAction( &ACTIONS::updateFind ) )
92 {
94 visitAll();
95 }
96 else if( aEvent.Matches( EVENTS::SelectedItemsModified ) )
97 {
98 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
99 visit( item, sheetPath );
100 }
101 else if( aEvent.Matches( EVENTS::PointSelectedEvent )
102 || aEvent.Matches( EVENTS::SelectedEvent )
104 || aEvent.Matches( EVENTS::ClearedEvent ) )
105 {
106 if( !m_frame->GetFindReplaceDialog() )
107 {
109 {
111 visitAll();
112 }
113 }
114 else if( selectedOnly )
115 {
116 // Normal find modifies the selection, but selection-based find does not, so we want
117 // to start over in the items we are searching through when the selection changes
118 m_afterItem = nullptr;
119 m_afterItemScreen = nullptr;
120 visitAll();
121 }
122 }
123 else if( m_foundItemHighlighted )
124 {
126 visitAll();
127 }
128
129 getView()->UpdateItems();
130 m_frame->GetCanvas()->Refresh();
131
132 return 0;
133}
134
135
137 EDA_SEARCH_DATA& aData, bool reversed )
138{
139 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &aData );
140 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
141 bool past_item = !aAfter;
142 std::vector<SCH_ITEM*> sorted_items;
143
144 auto addItem =
145 [&](SCH_ITEM* item)
146 {
147 sorted_items.push_back( item );
148
149 if( item->Type() == SCH_SYMBOL_T )
150 {
151 SCH_SYMBOL* cmp = static_cast<SCH_SYMBOL*>( item );
152
153 for( SCH_FIELD& field : cmp->GetFields() )
154 sorted_items.push_back( &field );
155
156 for( SCH_PIN* pin : cmp->GetPins() )
157 sorted_items.push_back( pin );
158 }
159 else if( item->Type() == SCH_SHEET_T )
160 {
161 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
162
163 for( SCH_FIELD& field : sheet->GetFields() )
164 sorted_items.push_back( &field );
165
166 for( SCH_SHEET_PIN* pin : sheet->GetPins() )
167 sorted_items.push_back( pin );
168 }
169 else if( item->IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
170 {
171 SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( item );
172
173 for( SCH_FIELD& field : label->GetFields() )
174 sorted_items.push_back( &field );
175 }
176 };
177
178 if( selectedOnly )
179 {
180 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
181 addItem( static_cast<SCH_ITEM*>( item ) );
182 }
183 else if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
184 {
185 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
186 {
187 for( SCH_ITEM& item : symbol->GetDrawItems() )
188 addItem( &item );
189 }
190 }
191 else
192 {
193 for( SCH_ITEM* item : aScreen->Items() )
194 addItem( item );
195 }
196
197 std::sort( sorted_items.begin(), sorted_items.end(),
198 [&]( SCH_ITEM* a, SCH_ITEM* b )
199 {
200 if( a->GetPosition().x == b->GetPosition().x )
201 {
202 // Ensure deterministic sort
203 if( a->GetPosition().y == b->GetPosition().y )
204 return a->m_Uuid < b->m_Uuid;
205
206 return a->GetPosition().y < b->GetPosition().y;
207 }
208 else
209 return a->GetPosition().x < b->GetPosition().x;
210 } );
211
212 if( reversed )
213 std::reverse( sorted_items.begin(), sorted_items.end() );
214
215 for( SCH_ITEM* item : sorted_items )
216 {
217 if( item == aAfter )
218 {
219 past_item = true;
220 }
221 else if( past_item )
222 {
223 if( aData.markersOnly && item->Type() == SCH_MARKER_T )
224 return item;
225
226 if( item->Matches( aData, aSheet ) )
227 return item;
228 }
229 }
230
231 return nullptr;
232}
233
234
236{
237 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
238 bool searchAllSheets = false;
239 bool selectedOnly = false;
240 bool isReversed = aEvent.IsAction( &ACTIONS::findPrevious );
241 SCH_ITEM* item = nullptr;
242 SCH_SHEET_PATH* currentSheet = nullptr;
243 SCH_SHEET_PATH* afterSheet = nullptr;
244
245 try
246 {
247 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
248
249 if( m_frame->GetFrameType() == FRAME_SCH )
250 {
251 currentSheet = afterSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
252 searchAllSheets = !schSearchData.searchCurrentSheetOnly;
253 }
254
255 selectedOnly = schSearchData.searchSelectedOnly;
256 }
257 catch( const std::bad_cast& )
258 {
259 }
260
261 if( aEvent.IsAction( &ACTIONS::findNextMarker ) )
262 data.markersOnly = true;
263 else if( data.findString.IsEmpty() )
264 return FindAndReplace( ACTIONS::find.MakeEvent() );
265
266 if( m_afterItem && m_afterItemScreen != m_frame->GetScreen() )
267 {
268 m_afterItem = nullptr;
269 m_afterItemScreen = nullptr;
270 }
271
272 if( data.findString != m_lastSearchString )
273 {
274 m_afterItem = nullptr;
275 m_afterItemScreen = nullptr;
277 }
278
279 bool wrappedAround = false;
280
281 for( int attempt = 0; attempt < 2; ++attempt )
282 {
283 if( attempt == 1 )
284 {
285 if( m_afterItem == nullptr )
286 break; // already a fresh session; nothing to wrap to
287
288 m_afterItem = nullptr;
289 m_afterItemScreen = nullptr;
290 afterSheet = nullptr;
291 wrappedAround = true;
292 }
293
294 bool freshSession = ( m_afterItem == nullptr );
295
296 if( afterSheet || !searchAllSheets || selectedOnly )
297 item = nextMatch( m_frame->GetScreen(), currentSheet, m_afterItem, data, isReversed );
298
299 if( !item && searchAllSheets && !selectedOnly )
300 {
301 if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
302 {
303 SCH_SCREENS screens( editFrame->Schematic().Root() );
304 SCH_SHEET_LIST paths;
305
306 screens.BuildClientSheetPathList();
307
308 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
309 {
310 for( SCH_SHEET_PATH& sheet : screen->GetClientSheetPaths() )
311 paths.push_back( sheet );
312 }
313
314 paths.SortByPageNumbers( false );
315
316 if( isReversed )
317 std::reverse( paths.begin(), paths.end() );
318
319 for( SCH_SHEET_PATH& sheet : paths )
320 {
321 if( afterSheet && !freshSession )
322 {
323 if( afterSheet->GetCurrentHash() == sheet.GetCurrentHash() )
324 afterSheet = nullptr;
325
326 continue;
327 }
328
329 item = nextMatch( sheet.LastScreen(), &sheet, nullptr, data, isReversed );
330
331 if( item )
332 {
333 if( editFrame->Schematic().CurrentSheet() != sheet )
334 editFrame->GetToolManager()->RunAction<SCH_SHEET_PATH*>( SCH_ACTIONS::changeSheet, &sheet );
335
336 break;
337 }
338 }
339 }
340 }
341
342 if( item )
343 break;
344 }
345
346 if( item )
347 {
348 m_afterItem = item;
349 m_afterItemScreen = m_frame->GetScreen();
350
351 if( !selectedOnly )
352 {
353 m_selectionTool->ClearSelection();
354 m_selectionTool->AddItemToSel( item );
355 }
356
357 if( !item->IsBrightened() )
358 {
359 // Clear any previous brightening
360 UpdateFind( aEvent );
361
362 // Brighten (and show) found object
363 item->SetForceVisible( true );
364 m_selectionTool->BrightenItem( item );
366 }
367
368 m_frame->FocusOnLocation( item->GetBoundingBox().GetCenter() );
369 m_frame->GetCanvas()->Refresh();
370
371 if( wrappedAround )
372 {
373 wxString msg;
374
375 if( m_frame->GetFrameType() == FRAME_SCH_SYMBOL_EDITOR )
376 msg = _( "Reached end of symbol." );
377 else if( searchAllSheets )
378 msg = _( "Reached end of schematic." );
379 else
380 msg = _( "Reached end of sheet." );
381
382 m_frame->ShowFindReplaceStatus( msg, 2000 );
383 }
384 }
385 else
386 {
387 m_afterItem = nullptr;
388 m_afterItemScreen = nullptr;
389 m_frame->ShowFindReplaceStatus( _( "No matches found." ), 2000 );
390 }
391
392 return 0;
393}
394
396{
397 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
398 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
399 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
400
401 return selectedOnly ? m_afterItem : m_selectionTool->GetSelection().Front();
402}
403
405{
406 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
407 EDA_ITEM* match = getCurrentMatch();
408 SCH_SHEET_PATH* sheetPath = nullptr;
409
410 if( m_frame->GetFrameType() == FRAME_SCH )
411 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
412
413 return match && match->Matches( data, sheetPath );
414}
415
416
418{
419 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
420 EDA_ITEM* item = getCurrentMatch();
421 SCH_SHEET_PATH* currentSheet = nullptr;
422
423 if( m_frame->GetFrameType() == FRAME_SCH )
424 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
425
426 if( data.findString.IsEmpty() )
427 return FindAndReplace( ACTIONS::find.MakeEvent() );
428
429 if( item && HasMatch() )
430 {
431 SCH_COMMIT commit( m_frame );
432 SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
433
434 commit.Modify( sch_item, m_frame->GetScreen(), RECURSE_MODE::NO_RECURSE );
435
436 if( item->Replace( data, currentSheet ) )
437 {
438 if( currentSheet )
439 currentSheet->UpdateAllScreenReferences();
440
441 commit.Push( wxS( "Find and Replace" ) );
442 }
443
444 FindNext( ACTIONS::findNext.MakeEvent() );
445 }
446
447 return 0;
448}
449
450
452{
453 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
454 SCH_SHEET_PATH* currentSheet = nullptr;
455 bool currentSheetOnly = true;
456 bool selectedOnly = false;
457
458 try
459 {
460 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
461
462 if( m_frame->GetFrameType() == FRAME_SCH )
463 {
464 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
465 currentSheetOnly = schSearchData.searchCurrentSheetOnly;
466 }
467
468 selectedOnly = schSearchData.searchSelectedOnly;
469 }
470 catch( const std::bad_cast& )
471 {
472 }
473
474 SCH_COMMIT commit( m_frame );
475
476 if( data.findString.IsEmpty() )
477 return FindAndReplace( ACTIONS::find.MakeEvent() );
478
479 auto doReplace =
480 [&]( SCH_ITEM* aItem, SCH_SHEET_PATH* aSheet, EDA_SEARCH_DATA& aData )
481 {
482 wxCHECK_RET( aSheet, wxT( "must have a sheetpath for undo" ) );
483
484 commit.Modify( aItem, aSheet->LastScreen(), RECURSE_MODE::NO_RECURSE );
485
486 if( aItem->Replace( aData, aSheet ) )
487 m_frame->UpdateItem( aItem, false, true );
488 };
489
490 if( currentSheetOnly || selectedOnly )
491 {
492 SCH_ITEM* item = nextMatch( m_frame->GetScreen(), currentSheet, nullptr, data, false );
493
494 while( item )
495 {
496 if( !selectedOnly || item->IsSelected() )
497 doReplace( item, currentSheet, data );
498
499 item = nextMatch( m_frame->GetScreen(), currentSheet, item, data, false );
500 }
501 }
502 else if( SCH_EDIT_FRAME* schematicFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
503 {
504 SCH_SHEET_LIST allSheets = schematicFrame->Schematic().Hierarchy();
505 SCH_SCREENS screens( schematicFrame->Schematic().Root() );
506
507 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
508 {
509 SCH_SHEET_LIST sheets = allSheets.FindAllSheetsForScreen( screen );
510
511 for( unsigned ii = 0; ii < sheets.size(); ++ii )
512 {
513 SCH_ITEM* item = nextMatch( screen, &sheets[ii], nullptr, data, false );
514
515 while( item )
516 {
517 if( ii == 0 )
518 {
519 doReplace( item, &sheets[0], data );
520 }
521 else if( item->Type() == SCH_FIELD_T )
522 {
523 SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
524
525 // References must be handled for each distinct sheet
526 if( field->GetId() == FIELD_T::REFERENCE )
527 doReplace( field, &sheets[ii], data );
528 }
529
530 item = nextMatch( screen, &sheets[ii], item, data, false );
531 }
532 }
533 }
534 }
535
536 if( !commit.Empty() )
537 {
538 commit.Push( wxS( "Find and Replace All" ) );
539
540 if( currentSheet )
541 currentSheet->UpdateAllScreenReferences();
542 }
543
544 return 0;
545}
546
547
static TOOL_ACTION replaceAll
Definition actions.h:123
static TOOL_ACTION updateFind
Definition actions.h:124
static TOOL_ACTION findPrevious
Definition actions.h:120
static TOOL_ACTION findAndReplace
Definition actions.h:118
static TOOL_ACTION replaceAndFindNext
Definition actions.h:122
static TOOL_ACTION findNext
Definition actions.h:119
static TOOL_ACTION findNextMarker
Definition actions.h:121
static TOOL_ACTION find
Definition actions.h:117
constexpr const Vec GetCenter() const
Definition box2.h:230
bool Empty() const
Definition commit.h:137
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:106
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:100
virtual VECTOR2I GetPosition() const
Definition eda_item.h:279
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:120
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:112
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:217
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:413
bool IsSelected() const
Definition eda_item.h:129
bool IsBrightened() const
Definition eda_item.h:131
bool IsForceVisible() const
Definition eda_item.h:218
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:246
static const TOOL_EVENT ClearedEvent
Definition actions.h:347
static const TOOL_EVENT SelectedEvent
Definition actions.h:345
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
Definition actions.h:352
static const TOOL_EVENT PointSelectedEvent
Definition actions.h:344
static const TOOL_EVENT UnselectedEvent
Definition actions.h:346
void UpdateItems()
Iterate through the list of items that asked for updating and updates them.
Definition view.cpp:1568
Define a library symbol object.
Definition lib_symbol.h:83
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:130
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:168
std::vector< SCH_FIELD > & GetFields()
Definition sch_label.h:214
Container class that holds multiple SCH_SCREEN objects in a hierarchy.
Definition sch_screen.h:750
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:119
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:48
std::vector< SCH_FIELD > & GetFields()
Return a reference to the vector holding the sheet's fields.
Definition sch_sheet.h:91
std::vector< SCH_SHEET_PIN * > & GetPins()
Definition sch_sheet.h:231
Schematic symbol object.
Definition sch_symbol.h:76
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:38
Generic, UI-independent tool event.
Definition tool_event.h:171
bool Matches(const TOOL_EVENT &aEvent) const
Test whether two events match in terms of category & action or command.
Definition tool_event.h:392
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:54
@ FRAME_SCH_SYMBOL_EDITOR
Definition frame_type.h:35
@ FRAME_SCH
Definition frame_type.h:34
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:173
@ SCH_FIELD_T
Definition typeinfo.h:151
@ SCH_SHEET_T
Definition typeinfo.h:176
@ SCH_MARKER_T
Definition typeinfo.h:159