KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcbnew/dialogs/dialog_global_edit_text_and_graphics.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) 2012 Jean-Pierre Charras, jp.charras at wanadoo.fr
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 <string_utils.h>
26#include <board_commit.h>
27#include <pcb_edit_frame.h>
30#include <board.h>
32#include <footprint.h>
33#include <pcb_group.h>
34#include <pcb_barcode.h>
35#include <pcb_dimension.h>
36#include <pcb_shape.h>
37#include <pcb_text.h>
38#include <widgets/unit_binder.h>
39#include <widgets/font_choice.h>
40#include <tool/tool_manager.h>
44
45// Columns of layer classes grid
46enum
47{
55};
56
57enum
58{
66};
67
68
69static wxString g_referenceFilter;
70static wxString g_footprintFilter;
71
72
74{
75public:
78
79protected:
80 void onActionButtonChange( wxCommandEvent& event ) override;
81 void onSpecifiedValueUpdateUI( wxUpdateUIEvent& event ) override;
82 void onDimensionItemCheckbox( wxCommandEvent& aEvent ) override;
83
84 void OnLayerFilterSelect( wxCommandEvent& event ) override
85 {
86 m_layerFilterOpt->SetValue( true );
87 }
88 void OnReferenceFilterText( wxCommandEvent& event ) override
89 {
90 m_referenceFilterOpt->SetValue( true );
91 }
92 void OnFootprintFilterText( wxCommandEvent& event ) override
93 {
94 m_footprintFilterOpt->SetValue( true );
95 }
96
97 bool TransferDataToWindow() override;
98 bool TransferDataFromWindow() override;
99
100 void visitItem( BOARD_COMMIT& aCommit, BOARD_ITEM* aItem );
101 void processItem( BOARD_COMMIT& aCommit, BOARD_ITEM* aItem );
102
103private:
108
113};
114
115
122{
123 m_parent = parent;
124 m_brdSettings = &m_parent->GetDesignSettings();
125 m_isBoardEditor = dynamic_cast<PCB_EDIT_FRAME*>( m_parent ) != nullptr;
126
127 if( !m_isBoardEditor )
128 {
129 m_footprintTexts->SetLabel( _( "Text items" ) );
130 m_footprintGraphics->SetLabel( _( "Graphic items" ) );
131 m_footprintDimensions->SetLabel( _( "Dimension items" ) );
132
133 m_boardText->Show( false );
134 m_boardGraphics->Show( false );
135 m_boardDimensions->Show( false );
136
137 m_referenceFilterOpt->Show( false );
138 m_referenceFilter->Show( false );
139 m_footprintFilterOpt->Show( false );
140 m_footprintFilter->Show( false );
141 }
142
143 // Allow indeterminate state in font control and rebuild list
144 m_fontCtrl->SetHasIndeterminateChoice();
145 m_fontCtrl->RefreshFonts();
146
147 m_layerFilter->SetBoardFrame( m_parent );
148 m_layerFilter->SetLayersHotkeys( false );
149 m_layerFilter->Resync();
150
151 m_LayerCtrl->SetBoardFrame( m_parent );
152 m_LayerCtrl->SetLayersHotkeys( false );
153 m_LayerCtrl->SetUndefinedLayerName( INDETERMINATE_ACTION );
154 m_LayerCtrl->Resync();
155
156 m_grid->SetCellHighlightPenWidth( 0 );
157 m_grid->SetDefaultCellFont( KIUI::GetInfoFont( this ) );
158 m_grid->SetDefaultRowSize( m_grid->GetDefaultRowSize() - FromDIP( 2 ) );
159
160 SetupStandardButtons( { { wxID_OK, _( "Apply and Close" ) },
161 { wxID_CANCEL, _( "Close" ) } } );
162
164}
165
166
168{
169 if( m_isBoardEditor )
170 {
173 }
174}
175
176
178{
179 PCB_SELECTION_TOOL* selTool = m_parent->GetToolManager()->GetTool<PCB_SELECTION_TOOL>();
180 m_selection = selTool->GetSelection();
181
182 if( m_isBoardEditor )
183 {
184 // SetValue() generates events, ChangeValue() does not
185 m_referenceFilter->ChangeValue( g_referenceFilter );
186 m_footprintFilter->ChangeValue( g_footprintFilter );
187 }
188
190
191 m_fontCtrl->SetStringSelection( INDETERMINATE_ACTION );
192
196 m_bold->Set3StateValue( wxCHK_UNDETERMINED );
197 m_italic->Set3StateValue( wxCHK_UNDETERMINED );
198 m_keepUpright->Set3StateValue( wxCHK_UNDETERMINED );
199 m_visible->Set3StateValue( wxCHK_UNDETERMINED );
200 m_LayerCtrl->SetLayerSelection( UNDEFINED_LAYER );
201
202 wxCommandEvent dummy;
204
205#define SET_INT_VALUE( aRow, aCol, aValue ) \
206 m_grid->SetCellValue( aRow, aCol, m_parent->StringFromValue( aValue, true ) )
207
208#define SET_BOOL_VALUE( aRow, aCol, aValue ) \
209 attr = new wxGridCellAttr; \
210 attr->SetRenderer( new wxGridCellBoolRenderer() ); \
211 attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); \
212 attr->SetReadOnly(); \
213 m_grid->SetAttr( aRow, aCol, attr ); \
214 m_grid->SetCellValue( aRow, aCol, ( aValue ) ? wxT( "1" ) : wxT( "" ) )
215
216 const BOARD_DESIGN_SETTINGS& bds = m_parent->GetBoard()->GetDesignSettings();
217 wxGridCellAttr* attr;
218
219 m_grid->SetCellValue( ROW_SILK, COL_CLASS_NAME, _( "Silk Layers" ) );
220 m_grid->SetCellValue( ROW_COPPER, COL_CLASS_NAME, _( "Copper Layers" ) );
221 m_grid->SetCellValue( ROW_EDGES, COL_CLASS_NAME, _( "Edge Cuts" ) );
222 m_grid->SetCellValue( ROW_COURTYARD, COL_CLASS_NAME, _( "Courtyards" ) );
223 m_grid->SetCellValue( ROW_FAB, COL_CLASS_NAME, _( "Fab Layers" ) );
224 m_grid->SetCellValue( ROW_OTHERS, COL_CLASS_NAME, _( "Other Layers" ) );
225
226 m_grid->SetCellValue( ROW_HEADER, COL_LINE_THICKNESS, _( "Line Thickness" ) );
233
234 m_grid->SetCellValue( ROW_HEADER, COL_TEXT_WIDTH, _( "Text Width" ) );
239
240 m_grid->SetCellValue( ROW_HEADER, COL_TEXT_HEIGHT, _( "Text Height" ) );
245
246 m_grid->SetCellValue( ROW_HEADER, COL_TEXT_THICKNESS, _( "Text Thickness" ) );
251
252 attr = new wxGridCellAttr;
253 attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); \
254 m_grid->SetAttr( ROW_HEADER, COL_TEXT_ITALIC, attr ); \
255 m_grid->SetCellValue( ROW_HEADER, COL_TEXT_ITALIC, _( "Italic" ) );
260
261 attr = new wxGridCellAttr;
262 attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); \
263 m_grid->SetAttr( ROW_HEADER, COL_TEXT_UPRIGHT, attr ); \
264 m_grid->SetCellValue( ROW_HEADER, COL_TEXT_UPRIGHT, _( "Keep Upright" ) );
269
270 return true;
271
272#undef SET_INT_VALUE
273#undef SET_BOOL_VALUE
274}
275
276
278{
279 // Update the UNIT_BINDER controls if the action to take is changed
280 bool enable = m_setToSpecifiedValues->GetValue();
281
282 m_LayerLabel->Enable( enable );
283 m_LayerCtrl->Enable( enable );
284
285 m_lineWidth.Enable( enable );
286 m_textWidth.Enable( enable );
287 m_textHeight.Enable( enable );
288 m_thickness.Enable( enable );
289
290 m_fontLabel->Enable( enable );
291 m_fontCtrl->Enable( enable );
292
293 m_centerOnFP->Enable( enable );
294
295 enable = !enable;
296 m_grid->Enable( enable );
297}
298
299
301{
302 // Update the UI for the elements inside the use specified values sizer
303 event.Enable( m_setToSpecifiedValues->GetValue() );
304}
305
306
308{
309 if( m_footprintDimensions->GetValue() || m_boardDimensions->GetValue() )
310 m_setToLayerDefaults->SetLabel( _( "Set to layer and dimension default values:" ) );
311 else
312 m_setToLayerDefaults->SetLabel( _( "Set to layer default values:" ) );
313}
314
315
317{
318 aCommit.Modify( aItem );
319
320 PCB_FIELD* field = dynamic_cast<PCB_FIELD*>( aItem );
321 EDA_TEXT* text = dynamic_cast<EDA_TEXT*>( aItem );
322 PCB_SHAPE* shape = dynamic_cast<PCB_SHAPE*>( aItem );
323 PCB_DIMENSION_BASE* dimension = dynamic_cast<PCB_DIMENSION_BASE*>( aItem );
324 PCB_BARCODE* barcode = dynamic_cast<PCB_BARCODE*>( aItem );
325 FOOTPRINT* parentFP = aItem->GetParentFootprint();
326
327 if( m_setToSpecifiedValues->GetValue() )
328 {
329 if( m_LayerCtrl->GetLayerSelection() != UNDEFINED_LAYER )
330 aItem->SetLayer( ToLAYER_ID( m_LayerCtrl->GetLayerSelection() ) );
331
332 if( text )
333 {
334 if( !m_textWidth.IsIndeterminate() )
335 text->SetTextSize( VECTOR2I( m_textWidth.GetIntValue(), text->GetTextSize().y ) );
336
337 if( !m_textHeight.IsIndeterminate() )
338 text->SetTextSize( VECTOR2I( text->GetTextSize().x, m_textHeight.GetIntValue() ) );
339
340 if( !m_thickness.IsIndeterminate() )
341 text->SetTextThickness( m_thickness.GetIntValue() );
342
343 // Must be after SetTextSize()
344 if( m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
345 text->SetBold( m_bold->GetValue() );
346
347 if( m_italic->Get3StateValue() != wxCHK_UNDETERMINED )
348 text->SetItalic( m_italic->GetValue() );
349
350 // Must come after setting bold & italic
351 if( m_fontCtrl->GetStringSelection() != INDETERMINATE_ACTION )
352 {
353 text->SetFont( m_fontCtrl->GetFontSelection( text->IsBold(), text->IsItalic() ) );
354 }
355 else if(( m_italic->Get3StateValue() != wxCHK_UNDETERMINED
356 || m_bold->Get3StateValue() != wxCHK_UNDETERMINED ) )
357 {
358 if( !text->GetFontName().IsEmpty() )
359 {
360 text->SetFont( KIFONT::FONT::GetFont( text->GetFontName(), text->IsBold(),
361 text->IsItalic(),
362 m_parent->GetBoard()->GetEmbeddedFiles()->GetFontFiles() ) );
363 }
364 }
365
366 if( parentFP )
367 {
368 if( m_keepUpright->Get3StateValue() != wxCHK_UNDETERMINED )
369 text->SetKeepUpright( m_keepUpright->GetValue() );
370
371 if( m_centerOnFP->GetValue() == wxCHK_CHECKED )
372 text->SetTextPos( aItem->GetParent()->GetCenter() );
373 }
374 }
375
376 if( barcode )
377 {
378 if( !m_textHeight.IsIndeterminate() )
379 barcode->SetTextSize( m_textHeight.GetIntValue() );
380 else if( !m_textWidth.IsIndeterminate() )
381 barcode->SetTextSize( m_textWidth.GetIntValue() );
382 }
383
384 if( field )
385 {
386 if( m_visible->Get3StateValue() != wxCHK_UNDETERMINED )
387 field->SetVisible( m_visible->GetValue() );
388 }
389
390 if( !m_lineWidth.IsIndeterminate() )
391 {
392 if( shape )
393 {
394 STROKE_PARAMS stroke = shape->GetStroke();
395 stroke.SetWidth( m_lineWidth.GetIntValue() );
396 shape->SetStroke( stroke );
397 }
398
399 if( dimension )
400 dimension->SetLineThickness( m_lineWidth.GetIntValue() );
401 }
402 }
403 else
404 {
405 aItem->StyleFromSettings( *m_brdSettings, false );
406 }
407}
408
409
411{
412 if( m_selectedItemsFilter->GetValue() )
413 {
414 EDA_ITEM* candidate = aItem;
415
416 if( !candidate->IsSelected() )
417 {
418 if( candidate->GetParent() && candidate->GetParent()->Type() == PCB_FOOTPRINT_T )
419 candidate = candidate->GetParent();
420 }
421
422 if( !candidate->IsSelected() )
423 {
424 candidate = ( candidate->GetParentGroup() ? candidate->GetParentGroup()->AsEdaItem() : nullptr );
425
426 while( candidate && !candidate->IsSelected() )
427 candidate = candidate->GetParentGroup()->AsEdaItem();
428
429 if( !candidate )
430 return;
431 }
432 }
433
434 if( m_layerFilterOpt->GetValue() && m_layerFilter->GetLayerSelection() != UNDEFINED_LAYER )
435 {
436 if( aItem->GetLayer() != m_layerFilter->GetLayerSelection() )
437 return;
438 }
439
440 if( m_isBoardEditor )
441 {
442 if( m_referenceFilterOpt->GetValue() && !m_referenceFilter->GetValue().IsEmpty() )
443 {
444 if( FOOTPRINT* fp = aItem->GetParentFootprint() )
445 {
446 if( !WildCompareString( m_referenceFilter->GetValue(), fp->GetReference(), false ) )
447 return;
448 }
449 }
450
451 if( m_footprintFilterOpt->GetValue() && !m_footprintFilter->GetValue().IsEmpty() )
452 {
453 if( FOOTPRINT* fp = aItem->GetParentFootprint() )
454 {
455 if( !WildCompareString( m_footprintFilter->GetValue(), fp->GetFPID().Format(), false ) )
456 return;
457 }
458 }
459 }
460
461 processItem( aCommit, aItem );
462}
463
464
466{
467 int minTextSize = pcbIUScale.mmToIU( TEXT_MIN_SIZE_MM );
468 int maxTextSize = pcbIUScale.mmToIU( TEXT_MAX_SIZE_MM );
469
470 if( !m_textWidth.Validate( minTextSize, maxTextSize )
471 || !m_textHeight.Validate( minTextSize, maxTextSize ) )
472 {
473 return false;
474 }
475
476 BOARD_COMMIT commit( m_parent );
477
478 // Go through the footprints
479 for( FOOTPRINT* fp : m_parent->GetBoard()->Footprints() )
480 {
481 if( m_references->GetValue() )
482 visitItem( commit, &fp->Reference() );
483
484 if( m_values->GetValue() )
485 visitItem( commit, &fp->Value() );
486
487 for( PCB_FIELD* field : fp->GetFields() )
488 {
489 wxCHECK2( field, continue );
490
491 if( field->IsReference() )
492 continue;
493
494 if( field->IsValue() )
495 continue;
496
497 if( m_otherFootprintFields->GetValue() )
498 visitItem( commit, field );
499 else if( m_references->GetValue() && field->GetText() == wxT( "${REFERENCE}" ) )
500 visitItem( commit, field );
501 else if( m_values->GetValue() && field->GetText() == wxT( "${VALUE}" ) )
502 visitItem( commit, field );
503 }
504
505 // Go through all other footprint items
506 for( BOARD_ITEM* boardItem : fp->GraphicalItems() )
507 {
508 KICAD_T itemType = boardItem->Type();
509
510 if( itemType == PCB_TEXT_T || itemType == PCB_TEXTBOX_T )
511 {
512 EDA_TEXT* textItem = dynamic_cast<EDA_TEXT*>( boardItem );
513
514 if( m_footprintTexts->GetValue() )
515 visitItem( commit, boardItem );
516 else if( m_references->GetValue() && textItem->GetText() == wxT( "${REFERENCE}" ) )
517 visitItem( commit, boardItem );
518 else if( m_values->GetValue() && textItem->GetText() == wxT( "${VALUE}" ) )
519 visitItem( commit, boardItem );
520 }
521 else if( itemType == PCB_TABLE_T )
522 {
523 boardItem->RunOnChildren(
524 [&]( BOARD_ITEM* child )
525 {
526 if( child->Type() == PCB_TABLECELL_T && m_footprintTexts->GetValue() )
527 visitItem( commit, child );
528 },
530 }
531 else if( BaseType( itemType ) == PCB_DIMENSION_T )
532 {
533 if( m_footprintDimensions->GetValue() )
534 visitItem( commit, boardItem );
535 }
536 else if( itemType == PCB_SHAPE_T || itemType == PCB_BARCODE_T )
537 {
538 if( m_footprintGraphics->GetValue() )
539 visitItem( commit, boardItem );
540 }
541 }
542 }
543
544 if( m_isBoardEditor )
545 {
546 // Go through the PCB text & graphic items
547 for( BOARD_ITEM* boardItem : m_parent->GetBoard()->Drawings() )
548 {
549 KICAD_T itemType = boardItem->Type();
550
551 if( itemType == PCB_TEXT_T || itemType == PCB_TEXTBOX_T )
552 {
553 if( m_boardText->GetValue() )
554 visitItem( commit, boardItem );
555 }
556 else if( itemType == PCB_TABLE_T )
557 {
558 boardItem->RunOnChildren(
559 [&]( BOARD_ITEM* child )
560 {
561 if( child->Type() == PCB_TABLECELL_T && m_boardText->GetValue() )
562 visitItem( commit, child );
563 },
565 }
566 else if( BaseType( itemType ) == PCB_DIMENSION_T )
567 {
568 if( m_boardDimensions->GetValue() )
569 visitItem( commit, boardItem );
570 }
571 else if( itemType == PCB_SHAPE_T || itemType == PCB_BARCODE_T )
572 {
573 if( m_boardGraphics->GetValue() )
574 visitItem( commit, boardItem );
575 }
576 }
577 }
578
579 commit.Push( _( "Edit Text and Graphics" ) );
580 m_parent->GetCanvas()->Refresh();
581
582 return true;
583}
584
585
587{
590
591 dlg.ShowModal();
592 return 0;
593}
594
595
597{
600
601 dlg.ShowModal();
602 return 0;
603}
604
605
constexpr EDA_IU_SCALE pcbIUScale
Definition base_units.h:112
@ LAYER_CLASS_OTHERS
@ LAYER_CLASS_FAB
@ LAYER_CLASS_COURTYARD
@ LAYER_CLASS_SILK
@ LAYER_CLASS_COPPER
@ LAYER_CLASS_EDGES
Container for design settings for a BOARD object.
bool m_TextUpright[LAYER_CLASS_COUNT]
int m_TextThickness[LAYER_CLASS_COUNT]
int m_LineThickness[LAYER_CLASS_COUNT]
VECTOR2I m_TextSize[LAYER_CLASS_COUNT]
bool m_TextItalic[LAYER_CLASS_COUNT]
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
Definition board_item.h:237
virtual VECTOR2I GetCenter() const
This defaults to the center of the bounding box if not overridden.
Definition board_item.h:117
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
Definition board_item.h:285
FOOTPRINT * GetParentFootprint() const
BOARD_ITEM_CONTAINER * GetParent() const
Definition board_item.h:215
virtual void StyleFromSettings(const BOARD_DESIGN_SETTINGS &settings, bool aCheckSide)
Definition board_item.h:332
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
DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Edit Text and Graphic Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void processItem(SCH_COMMIT *aCommit, const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
void visitItem(SCH_COMMIT *aCommit, const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
int ShowModal() override
virtual EDA_ITEM * AsEdaItem()=0
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:99
virtual EDA_GROUP * GetParentGroup() const
Definition eda_item.h:117
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:111
bool IsSelected() const
Definition eda_item.h:128
EDA_ITEM * GetParent() const
Definition eda_item.h:113
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
Definition eda_text.h:80
virtual const wxString & GetText() const
Return the string associated with the text object.
Definition eda_text.h:98
virtual void SetVisible(bool aVisible)
Definition eda_text.cpp:400
static FONT * GetFont(const wxString &aFontName=wxEmptyString, bool aBold=false, bool aItalic=false, const std::vector< wxString > *aEmbeddedFiles=nullptr, bool aForDrawingSheet=false)
Definition font.cpp:147
void SetTextSize(int aTextSize)
Change the height of the human-readable text displayed below the barcode.
Common, abstract interface for edit frames.
Abstract dimension API.
void SetLineThickness(int aWidth)
The main frame for Pcbnew.
PCB_SELECTION & GetSelection()
STROKE_PARAMS GetStroke() const override
Definition pcb_shape.h:91
void SetStroke(const STROKE_PARAMS &aStroke) override
Definition pcb_shape.h:92
Simple container to manage line stroke parameters.
void SetWidth(int aWidth)
T * getEditFrame() const
Return the application window object, casted to requested user type.
Definition tool_base.h:186
Generic, UI-independent tool event.
Definition tool_event.h:171
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED)
Validate the control against the given range, informing the user of any errors found.
#define _(s)
@ NO_RECURSE
Definition eda_item.h:53
#define TEXT_MIN_SIZE_MM
Minimum text size (1 micron).
Definition eda_text.h:47
#define TEXT_MAX_SIZE_MM
Maximum text size in mm (~10 inches)
Definition eda_text.h:48
@ UNDEFINED_LAYER
Definition layer_ids.h:61
PCB_LAYER_ID ToLAYER_ID(int aLayer)
Definition lset.cpp:754
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
BARCODE class definition.
Class to handle a set of BOARD_ITEMs.
#define SET_INT_VALUE(aRow, aCol, aValue)
#define SET_BOOL_VALUE(aRow, aCol, aValue)
std::vector< FAB_LAYER_COLOR > dummy
bool WildCompareString(const wxString &pattern, const wxString &string_to_tst, bool case_sensitive)
Compare a string against wild card (* and ?) pattern using the usual rules.
constexpr KICAD_T BaseType(const KICAD_T aType)
Return the underlying type of the given type.
Definition typeinfo.h:254
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition typeinfo.h:78
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:88
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:93
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:92
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:101
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:95
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:86
@ PCB_DIMENSION_T
class PCB_DIMENSION_BASE: abstract dimension meta-type
Definition typeinfo.h:100
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:94
#define INDETERMINATE_ACTION
Definition ui_common.h:47
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695