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_edit_frame.h>
22#include <symbol_edit_frame.h>
24#include <tool/tool_manager.h>
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->HasFlag( BRIGHTENED ) || 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 {
87 visit( item, sheetPath );
88
89 item->RunOnChildren(
90 [&]( SCH_ITEM* aChild )
91 {
92 visit( aChild, sheetPath );
93 },
95 }
96 }
97 };
98
99 if( aEvent.IsAction( &ACTIONS::find ) || aEvent.IsAction( &ACTIONS::findAndReplace )
100 || aEvent.IsAction( &ACTIONS::updateFind ) )
101 {
103 visitAll();
104 }
105 else if( aEvent.Matches( EVENTS::SelectedItemsModified ) )
106 {
107 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
108 visit( item, sheetPath );
109 }
110 else if( aEvent.Matches( EVENTS::PointSelectedEvent )
111 || aEvent.Matches( EVENTS::SelectedEvent )
113 || aEvent.Matches( EVENTS::ClearedEvent ) )
114 {
115 if( !m_frame->GetFindReplaceDialog() )
116 {
118 {
120 visitAll();
121 }
122 }
123 else if( selectedOnly )
124 {
125 // Normal find modifies the selection, but selection-based find does not, so we want
126 // to start over in the items we are searching through when the selection changes
127 m_afterItem = nullptr;
128 m_afterItemScreen = nullptr;
129 visitAll();
130 }
131 }
132 else if( m_foundItemHighlighted )
133 {
135 visitAll();
136 }
137
138 getView()->UpdateItems();
139 m_frame->GetCanvas()->Refresh();
140
141 return 0;
142}
143
144
146 EDA_SEARCH_DATA& aData, bool reversed )
147{
148 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &aData );
149 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
150 bool past_item = !aAfter;
151 std::vector<SCH_ITEM*> sorted_items;
152
153 auto addItem =
154 [&](SCH_ITEM* item)
155 {
156 sorted_items.push_back( item );
157
158 if( item->Type() == SCH_SYMBOL_T )
159 {
160 SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( item );
161
162 for( SCH_FIELD& field : symbol->GetFields() )
163 sorted_items.push_back( &field );
164
165 for( SCH_PIN* pin : symbol->GetPins( aSheet ) )
166 sorted_items.push_back( pin );
167 }
168 else if( item->Type() == SCH_SHEET_T )
169 {
170 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
171
172 for( SCH_FIELD& field : sheet->GetFields() )
173 sorted_items.push_back( &field );
174
175 for( SCH_SHEET_PIN* pin : sheet->GetPins() )
176 sorted_items.push_back( pin );
177 }
178 else if( item->IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
179 {
180 SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( item );
181
182 for( SCH_FIELD& field : label->GetFields() )
183 sorted_items.push_back( &field );
184 }
185 };
186
187 if( selectedOnly )
188 {
189 for( EDA_ITEM* item : m_selectionTool->GetSelection() )
190 addItem( static_cast<SCH_ITEM*>( item ) );
191 }
192 else if( SYMBOL_EDIT_FRAME* symbolEditor = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame ) )
193 {
194 if( LIB_SYMBOL* symbol = symbolEditor->GetCurSymbol() )
195 {
196 for( SCH_ITEM& item : symbol->GetDrawItems() )
197 addItem( &item );
198 }
199 }
200 else
201 {
202 for( SCH_ITEM* item : aScreen->Items() )
203 addItem( item );
204 }
205
206 std::sort( sorted_items.begin(), sorted_items.end(),
207 [&]( SCH_ITEM* a, SCH_ITEM* b )
208 {
209 if( a->GetPosition().x == b->GetPosition().x )
210 {
211 // Ensure deterministic sort
212 if( a->GetPosition().y == b->GetPosition().y )
213 return a->m_Uuid < b->m_Uuid;
214
215 return a->GetPosition().y < b->GetPosition().y;
216 }
217 else
218 return a->GetPosition().x < b->GetPosition().x;
219 } );
220
221 if( reversed )
222 std::reverse( sorted_items.begin(), sorted_items.end() );
223
224 for( SCH_ITEM* item : sorted_items )
225 {
226 if( item == aAfter )
227 {
228 past_item = true;
229 }
230 else if( past_item )
231 {
232 if( aData.markersOnly && item->Type() == SCH_MARKER_T )
233 return item;
234
235 if( item->Matches( aData, aSheet ) )
236 return item;
237 }
238 }
239
240 return nullptr;
241}
242
243
245{
246 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
247 bool searchAllSheets = false;
248 bool selectedOnly = false;
249 bool isReversed = aEvent.IsAction( &ACTIONS::findPrevious );
250 SCH_ITEM* item = nullptr;
251 SCH_SHEET_PATH* currentSheet = nullptr;
252 SCH_SHEET_PATH* afterSheet = nullptr;
253
254 try
255 {
256 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
257
258 if( m_frame->GetFrameType() == FRAME_SCH )
259 {
260 currentSheet = afterSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
261 searchAllSheets = !schSearchData.searchCurrentSheetOnly;
262 }
263
264 selectedOnly = schSearchData.searchSelectedOnly;
265 }
266 catch( const std::bad_cast& )
267 {
268 }
269
270 if( aEvent.IsAction( &ACTIONS::findNextMarker ) )
271 data.markersOnly = true;
272 else if( data.findString.IsEmpty() )
273 return FindAndReplace( ACTIONS::find.MakeEvent() );
274
275 if( m_afterItem && m_afterItemScreen != m_frame->GetScreen() )
276 {
277 m_afterItem = nullptr;
278 m_afterItemScreen = nullptr;
279 }
280
281 if( data.findString != m_lastSearchString )
282 {
283 m_afterItem = nullptr;
284 m_afterItemScreen = nullptr;
286 }
287
288 bool wrappedAround = false;
289
290 for( int attempt = 0; attempt < 2; ++attempt )
291 {
292 if( attempt == 1 )
293 {
294 if( m_afterItem == nullptr )
295 break; // already a fresh session; nothing to wrap to
296
297 m_afterItem = nullptr;
298 m_afterItemScreen = nullptr;
299 afterSheet = nullptr;
300 wrappedAround = true;
301 }
302
303 bool freshSession = ( m_afterItem == nullptr );
304
305 if( afterSheet || !searchAllSheets || selectedOnly )
306 item = nextMatch( m_frame->GetScreen(), currentSheet, m_afterItem, data, isReversed );
307
308 if( !item && searchAllSheets && !selectedOnly )
309 {
310 if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
311 {
312 SCH_SCREENS screens( editFrame->Schematic().Root() );
313 SCH_SHEET_LIST paths;
314
315 screens.BuildClientSheetPathList();
316
317 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
318 {
319 for( SCH_SHEET_PATH& sheet : screen->GetClientSheetPaths() )
320 paths.push_back( sheet );
321 }
322
323 paths.SortByPageNumbers( false );
324
325 if( isReversed )
326 std::reverse( paths.begin(), paths.end() );
327
328 for( SCH_SHEET_PATH& sheet : paths )
329 {
330 if( afterSheet && !freshSession )
331 {
332 if( afterSheet->GetCurrentHash() == sheet.GetCurrentHash() )
333 afterSheet = nullptr;
334
335 continue;
336 }
337
338 item = nextMatch( sheet.LastScreen(), &sheet, nullptr, data, isReversed );
339
340 if( item )
341 {
342 if( editFrame->Schematic().CurrentSheet() != sheet )
343 editFrame->GetToolManager()->RunAction<SCH_SHEET_PATH*>( SCH_ACTIONS::changeSheet, &sheet );
344
345 break;
346 }
347 }
348 }
349 }
350
351 if( item )
352 break;
353 }
354
355 if( item )
356 {
357 m_afterItem = item;
358 m_afterItemScreen = m_frame->GetScreen();
359
360 if( !selectedOnly )
361 {
362 m_selectionTool->ClearSelection();
363 m_selectionTool->AddItemToSel( item );
364 }
365
366 if( !item->HasFlag( BRIGHTENED ) )
367 {
368 // Clear any previous brightening
369 UpdateFind( aEvent );
370
371 // Brighten (and show) found object
372 item->SetForceVisible( true );
373 m_selectionTool->BrightenItem( item );
375 }
376
377 m_frame->FocusOnLocation( item->GetBoundingBox().GetCenter() );
378 m_frame->GetCanvas()->Refresh();
379
380 if( wrappedAround )
381 {
382 wxString msg;
383
384 if( m_frame->GetFrameType() == FRAME_SCH_SYMBOL_EDITOR )
385 msg = _( "Reached end of symbol." );
386 else if( searchAllSheets )
387 msg = _( "Reached end of schematic." );
388 else
389 msg = _( "Reached end of sheet." );
390
391 m_frame->ShowFindReplaceStatus( msg, 2000 );
392 }
393 }
394 else
395 {
396 m_afterItem = nullptr;
397 m_afterItemScreen = nullptr;
398 m_frame->ShowFindReplaceStatus( _( "No matches found." ), 2000 );
399 }
400
401 return 0;
402}
403
405{
406 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
407 SCH_SEARCH_DATA* schSearchData = dynamic_cast<SCH_SEARCH_DATA*>( &data );
408 bool selectedOnly = schSearchData ? schSearchData->searchSelectedOnly : false;
409
410 return selectedOnly ? m_afterItem : m_selectionTool->GetSelection().Front();
411}
412
414{
415 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
416 EDA_ITEM* match = getCurrentMatch();
417 SCH_SHEET_PATH* sheetPath = nullptr;
418
419 if( m_frame->GetFrameType() == FRAME_SCH )
420 sheetPath = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
421
422 return match && match->Matches( data, sheetPath );
423}
424
425
427{
428 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
429 EDA_ITEM* item = getCurrentMatch();
430 SCH_SHEET_PATH* currentSheet = nullptr;
431
432 if( m_frame->GetFrameType() == FRAME_SCH )
433 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
434
435 if( data.findString.IsEmpty() )
436 return FindAndReplace( ACTIONS::find.MakeEvent() );
437
438 if( item && HasMatch() )
439 {
440 SCH_COMMIT commit( m_frame );
441 SCH_ITEM* sch_item = static_cast<SCH_ITEM*>( item );
442
443 commit.Modify( sch_item, m_frame->GetScreen(), RECURSE_MODE::NO_RECURSE );
444
445 if( item->Replace( data, currentSheet ) )
446 {
447 if( currentSheet )
448 currentSheet->UpdateAllScreenReferences();
449
450 commit.Push( wxS( "Find and Replace" ) );
451 }
452 else if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
453 {
454 // Nothing changed, but Modify() bumped the connectivity revision of the screen
455 editFrame->RecalculateConnections( nullptr, NO_CLEANUP );
456 }
457
458 FindNext( ACTIONS::findNext.MakeEvent() );
459 }
460
461 return 0;
462}
463
464
466{
467 EDA_SEARCH_DATA& data = m_frame->GetFindReplaceData();
468 SCH_SHEET_PATH* currentSheet = nullptr;
469 bool currentSheetOnly = true;
470 bool selectedOnly = false;
471
472 try
473 {
474 const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
475
476 if( m_frame->GetFrameType() == FRAME_SCH )
477 {
478 currentSheet = &static_cast<SCH_EDIT_FRAME*>( m_frame )->GetCurrentSheet();
479 currentSheetOnly = schSearchData.searchCurrentSheetOnly;
480 }
481
482 selectedOnly = schSearchData.searchSelectedOnly;
483 }
484 catch( const std::bad_cast& )
485 {
486 }
487
488 SCH_COMMIT commit( m_frame );
489
490 if( data.findString.IsEmpty() )
491 return FindAndReplace( ACTIONS::find.MakeEvent() );
492
493 auto doReplace =
494 [&]( SCH_ITEM* aItem, SCH_SHEET_PATH* aSheet, EDA_SEARCH_DATA& aData )
495 {
496 wxCHECK_RET( aSheet, wxT( "must have a sheetpath for undo" ) );
497
498 commit.Modify( aItem, aSheet->LastScreen(), RECURSE_MODE::NO_RECURSE );
499
500 if( aItem->Replace( aData, aSheet ) )
501 m_frame->UpdateItem( aItem, false, true );
502 };
503
504 if( currentSheetOnly || selectedOnly )
505 {
506 if( currentSheet )
507 {
508 SCH_ITEM* item = nextMatch( m_frame->GetScreen(), currentSheet, nullptr, data, false );
509
510 while( item )
511 {
512 if( !selectedOnly || item->IsSelected() )
513 doReplace( item, currentSheet, data );
514
515 item = nextMatch( m_frame->GetScreen(), currentSheet, item, data, false );
516 }
517 }
518 }
519 else if( SCH_EDIT_FRAME* schematicFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
520 {
521 SCH_SHEET_LIST allSheets = schematicFrame->Schematic().Hierarchy();
522 SCH_SCREENS screens( schematicFrame->Schematic().Root() );
523
524 for( SCH_SCREEN* screen = screens.GetFirst(); screen; screen = screens.GetNext() )
525 {
526 SCH_SHEET_LIST sheets = allSheets.FindAllSheetsForScreen( screen );
527
528 for( unsigned ii = 0; ii < sheets.size(); ++ii )
529 {
530 SCH_ITEM* item = nextMatch( screen, &sheets[ii], nullptr, data, false );
531
532 while( item )
533 {
534 if( ii == 0 )
535 {
536 doReplace( item, &sheets[0], data );
537 }
538 else if( item->Type() == SCH_FIELD_T )
539 {
540 SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
541
542 // References must be handled for each distinct sheet
543 if( field->GetId() == FIELD_T::REFERENCE )
544 doReplace( field, &sheets[ii], data );
545 }
546
547 item = nextMatch( screen, &sheets[ii], item, data, false );
548 }
549 }
550 }
551 }
552
553 if( !commit.Empty() )
554 {
555 commit.Push( wxS( "Find and Replace All" ) );
556
557 if( currentSheet )
558 currentSheet->UpdateAllScreenReferences();
559 }
560
561 return 0;
562}
563
564
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:227
bool Empty() const
Definition commit.h:145
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:98
virtual VECTOR2I GetPosition() const
Definition eda_item.h:348
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:270
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
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:232
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:484
bool IsSelected() const
Definition eda_item.h:134
bool HasFlag(EDA_ITEM_FLAGS aFlag) const
Definition eda_item.h:168
bool IsForceVisible() const
Definition eda_item.h:233
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:396
static const TOOL_EVENT ClearedEvent
Definition actions.h:347
static const TOOL_EVENT SelectedEvent
Definition actions.h:345
static const TOOL_EVENT SelectedItemsModified
Selected item had a property changed (except movement)
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:1614
Define a library symbol object.
Definition lib_symbol.h:114
static TOOL_ACTION changeSheet
Commit for the schematic and symbol editors.
Definition sch_commit.h:54
void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
Schematic editor (Eeschema) main window.
FIELD_T GetId() const
Definition sch_field.h:143
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:170
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:818
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:122
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:243
Schematic symbol object.
Definition sch_symbol.h:73
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:52
#define BRIGHTENED
item is drawn with a bright contour
@ 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.
@ NO_CLEANUP
Definition schematic.h:93
@ REFERENCE
Field Reference of part, i.e. "IC21".
KIBIS_PIN * pin
@ SCH_SYMBOL_T
Definition typeinfo.h:168
@ SCH_FIELD_T
Definition typeinfo.h:146
@ SCH_SHEET_T
Definition typeinfo.h:171
@ SCH_MARKER_T
Definition typeinfo.h:154