KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gerbview_control.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) 2017 Jon Evans <[email protected]>
5 * Copyright (C) 2017-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include <confirm.h>
22#include <common.h>
24#include <export_to_pcbnew.h>
25#include <gerber_file_image.h>
27#include <gerbview_painter.h>
28#include <gerbview_frame.h>
29#include <gerbview_settings.h>
30#include <string_utils.h>
31#include <excellon_image.h>
32#include <tool/tool_manager.h>
33#include <project.h>
34#include <view/view.h>
36#include <wx/filedlg.h>
37
38#include "gerbview_actions.h"
39#include "gerbview_control.h"
41
42
43GERBVIEW_CONTROL::GERBVIEW_CONTROL() : TOOL_INTERACTIVE( "gerbview.Control" ), m_frame( nullptr )
44{
45}
46
47
49{
50 m_frame = getEditFrame<GERBVIEW_FRAME>();
51}
52
53
55{
56 m_frame->LoadAutodetectedFiles( wxEmptyString );
57
58 return 0;
59}
60
61
63{
64 m_frame->LoadGerberFiles( wxEmptyString );
65
66 return 0;
67}
68
69
71{
72 m_frame->LoadExcellonFiles( wxEmptyString );
73
74 return 0;
75}
76
77
79{
80 m_frame->LoadGerberJobFile( wxEmptyString );
81 canvas()->Refresh();
82
83 return 0;
84}
85
86
88{
89 m_frame->LoadZipArchiveFile( wxEmptyString );
90 canvas()->Refresh();
91
92 return 0;
93}
94
95
97{
99
100 return 0;
101}
102
103
105{
106 int layercount = 0;
107
109
110 // Count the Gerber layers which are actually currently used
111 for( int ii = 0; ii < (int) images->ImagesMaxCount(); ++ii )
112 {
113 if( images->GetGbrImage( ii ) )
114 layercount++;
115 }
116
117 if( layercount == 0 )
118 {
119 DisplayInfoMessage( m_frame, _( "None of the Gerber layers contain any data" ) );
120 return 0;
121 }
122
123 wxString fileDialogName( NAMELESS_PROJECT + wxT( "." ) + FILEEXT::KiCadPcbFileExtension );
124 wxString path = m_frame->GetMruPath();
125
126 wxFileDialog filedlg( m_frame, _( "Export as KiCad Board File" ), path, fileDialogName,
127 FILEEXT::PcbFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
128
129 if( filedlg.ShowModal() == wxID_CANCEL )
130 return 0;
131
132 wxFileName fileName = EnsureFileExtension( filedlg.GetPath(), FILEEXT::KiCadPcbFileExtension );
133
134 /* Install a dialog frame to choose the mapping
135 * between gerber layers and Pcbnew layers
136 */
138 int ok = layerdlg->ShowModal();
139 layerdlg->Destroy();
140
141 if( ok != wxID_OK )
142 return 0;
143
144 m_frame->SetMruPath( fileName.GetPath() );
145
146 GBR_TO_PCB_EXPORTER gbr_exporter( m_frame, fileName.GetFullPath() );
147
148 gbr_exporter.ExportPcb( layerdlg->GetLayersLookUpTable(), layerdlg->GetCopperLayersCount() );
149
150 return 0;
151}
152
153
155{
156 auto settings = static_cast<KIGFX::GERBVIEW_PAINTER*>( getView()->GetPainter() )->GetSettings();
157 const auto& selection = m_toolMgr->GetTool<GERBVIEW_SELECTION_TOOL>()->GetSelection();
158 GERBER_DRAW_ITEM* item = nullptr;
159
160 if( selection.Size() == 1 )
161 {
162 item = static_cast<GERBER_DRAW_ITEM*>( selection[0] );
163 }
164
166 {
167 m_frame->m_SelComponentBox->SetSelection( 0 );
168 m_frame->m_SelNetnameBox->SetSelection( 0 );
169 m_frame->m_SelAperAttributesBox->SetSelection( 0 );
170
171 settings->ClearHighlightSelections();
172
174
175 if( gerber )
176 gerber->m_Selected_Tool = settings->m_dcodeHighlightValue;
177 }
178 else if( item && aEvent.IsAction( &GERBVIEW_ACTIONS::highlightNet ) )
179 {
180 wxString net_name = item->GetNetAttributes().m_Netname;
181 settings->m_netHighlightString = net_name;
182 m_frame->m_SelNetnameBox->SetStringSelection( UnescapeString( net_name ) );
183 }
184 else if( item && aEvent.IsAction( &GERBVIEW_ACTIONS::highlightComponent ) )
185 {
186 wxString net_attr = item->GetNetAttributes().m_Cmpref;
187 settings->m_componentHighlightString = net_attr;
188 m_frame->m_SelComponentBox->SetStringSelection( net_attr );
189 }
190 else if( item && aEvent.IsAction( &GERBVIEW_ACTIONS::highlightAttribute ) )
191 {
192 D_CODE* apertDescr = item->GetDcodeDescr();
193
194 if( apertDescr )
195 {
196 wxString ap_name = apertDescr->m_AperFunction;
197 settings->m_attributeHighlightString = ap_name;
198 m_frame->m_SelAperAttributesBox->SetStringSelection( ap_name );
199 }
200 }
201 else if( item && aEvent.IsAction( &GERBVIEW_ACTIONS::highlightDCode ) )
202 {
203 D_CODE* apertDescr = item->GetDcodeDescr();
204
205 if( apertDescr )
206 {
207 int dcodeSelected = -1;
209
210 if( gerber )
211 dcodeSelected = apertDescr->m_Num_Dcode;
212
213 if( dcodeSelected > 0 )
214 {
215 settings->m_dcodeHighlightValue = dcodeSelected;
216 gerber->m_Selected_Tool = dcodeSelected;
217 m_frame->syncLayerBox( false );
218 }
219 }
220 }
221
223 canvas()->Refresh();
224
225 return 0;
226}
227
228
230{
232 KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
233
235 {
237
239 []( KIGFX::VIEW_ITEM* aItem )
240 {
241 GERBER_DRAW_ITEM* item = static_cast<GERBER_DRAW_ITEM*>( aItem );
242
243 switch( item->m_ShapeType )
244 {
245 case GBR_CIRCLE:
246 case GBR_ARC:
247 case GBR_SEGMENT:
248 return true;
249
250 default:
251 return false;
252 }
253 } );
254 }
256 {
258
260 []( KIGFX::VIEW_ITEM* aItem )
261 {
262 GERBER_DRAW_ITEM* item = static_cast<GERBER_DRAW_ITEM*>( aItem );
263
264 switch( item->m_ShapeType )
265 {
266 case GBR_SPOT_CIRCLE:
267 case GBR_SPOT_RECT:
268 case GBR_SPOT_OVAL:
269 case GBR_SPOT_POLY:
270 case GBR_SPOT_MACRO:
271 return true;
272
273 default:
274 return false;
275 }
276 } );
277 }
279 {
281
283 []( KIGFX::VIEW_ITEM* aItem )
284 {
285 GERBER_DRAW_ITEM* item = static_cast<GERBER_DRAW_ITEM*>( aItem );
286
287 return ( item->m_ShapeType == GBR_POLYGON );
288 } );
289 }
291 {
293 }
294 else if( aEvent.IsAction( &GERBVIEW_ACTIONS::dcodeDisplay ) )
295 {
297 }
298 else if( aEvent.IsAction( &ACTIONS::highContrastMode )
300 {
302 }
304 {
306
308 cfg->m_Display.m_XORMode = false;
309
311 }
312 else if( aEvent.IsAction( &GERBVIEW_ACTIONS::toggleXORMode ) )
313 {
315
317 cfg->m_Display.m_ForceOpacityMode = false;
318
320 }
321 else if( aEvent.IsAction( &GERBVIEW_ACTIONS::flipGerberView ) )
322 {
324 view->SetMirror( cfg->m_Display.m_FlipGerberView, false );
325 }
326
328
331
332 return 0;
333}
334
335
337{
338 int layer = m_frame->GetActiveLayer();
339
340 if( layer < ( (int) GERBER_FILE_IMAGE_LIST::GetImagesList().GetLoadedImageCount() - 1 ) )
341 m_frame->SetActiveLayer( layer + 1, true );
342
343 return 0;
344}
345
346
348{
349 int layer = m_frame->GetActiveLayer();
350
351 if( layer > 0 )
352 m_frame->SetActiveLayer( layer - 1, true );
353
354 return 0;
355}
356
357
359{
360 int layer = m_frame->GetActiveLayer();
361
362 if( layer > 0 )
363 {
365 GERBER_FILE_IMAGE_LIST::GetImagesList().SwapImages( layer, layer - 1 ) );
366 m_frame->SetActiveLayer( layer - 1 );
367 }
368
369 return 0;
370}
371
372
374{
375 int layer = m_frame->GetActiveLayer();
377
378 if( layer < ( (int) list.GetLoadedImageCount() - 1 ) )
379 {
380 m_frame->RemapLayers( list.SwapImages( layer, layer + 1 ) );
381 m_frame->SetActiveLayer( layer + 1 );
382 }
383
384 return 0;
385}
386
387
389{
392
393 return 0;
394}
395
396
398{
399 m_frame->Clear_DrawLayers( false );
401 canvas()->Refresh();
403
404 // Clear pending highlight selections, now outdated
406 static_cast<KIGFX::GERBVIEW_PAINTER*>( getView()->GetPainter() )->GetSettings();
407 settings->ClearHighlightSelections();
408
409 return 0;
410}
411
412
414{
415 // Store filenames
416 wxArrayString listOfGerberFiles;
417 std::vector<int> fileType;
419
420 for( unsigned i = 0; i < list->ImagesMaxCount(); i++ )
421 {
422 if( list->GetGbrImage( i ) == nullptr )
423 continue;
424
425 if( !list->GetGbrImage( i )->m_InUse )
426 continue;
427
428 EXCELLON_IMAGE* drill_file = dynamic_cast<EXCELLON_IMAGE*>( list->GetGbrImage( i ) );
429
430 if( drill_file )
431 fileType.push_back( 1 );
432 else
433 fileType.push_back( 0 );
434
435 listOfGerberFiles.Add( list->GetGbrImage( i )->m_FileName );
436 }
437
438 // Clear all layers
439 m_frame->Clear_DrawLayers( false );
441
442 // Load the layers from stored paths
443 wxBusyCursor wait;
444 m_frame->LoadListOfGerberAndDrillFiles( wxEmptyString, listOfGerberFiles, &fileType );
445
446 return 0;
447}
448
449
451{
453 GERBVIEW_SELECTION& selection = selTool->GetSelection();
454
455 if( selection.GetSize() == 1 )
456 {
457 EDA_ITEM* item = (EDA_ITEM*) selection.Front();
458
459 std::vector<MSG_PANEL_ITEM> msgItems;
460 item->GetMsgPanelInfo( m_frame, msgItems );
461 m_frame->SetMsgPanel( msgItems );
462 }
463 else
464 {
466 }
467
468 return 0;
469}
470
471
473{
474 m_frame->LoadZipArchiveFile( *aEvent.Parameter<wxString*>() );
475 canvas()->Refresh();
476
477 return 0;
478}
479
480
482{
483 // The event parameter is a string containing names of dropped files.
484 // Each file name has been enclosed with "", so file names with space character are allowed.
485 wxString files = *aEvent.Parameter<wxString*>();
486 // ie : files = "file1""another file""file3"...
487
488 std::vector<wxString> aFileNameList;
489
490 // Isolate each file name, deletting ""
491 files = files.AfterFirst( '"' );
492
493 // Gerber files are enclosed with "".
494 // Load files names in array.
495 while( !files.empty() )
496 {
497 wxString fileName = files.BeforeFirst( '"' );
498 // Check if file exists. If not, keep on and ignore fileName
499 if( wxFileName( fileName ).Exists() )
500 aFileNameList.push_back( fileName );
501 files = files.AfterFirst( '"' );
502 files = files.AfterFirst( '"' );
503 }
504
505 if( !aFileNameList.empty() )
506 m_frame->OpenProjectFiles( aFileNameList, KICTL_CREATE );
507
508 return 0;
509}
510
511
513{
522
528
536
547
552
555}
static TOOL_ACTION updateUnits
Definition: actions.h:196
static TOOL_ACTION highContrastModeCycle
Definition: actions.h:146
static TOOL_ACTION highContrastMode
Definition: actions.h:145
static TOOL_ACTION zoomFitScreen
Definition: actions.h:134
static TOOL_ACTION print
Definition: actions.h:57
int ShowModal() override
A gerber DCODE (also called Aperture) definition.
Definition: dcode.h:80
wxString m_AperFunction
the aperture attribute (created by a TA.AperFunction command).
Definition: dcode.h:203
int m_Num_Dcode
D code value ( >= 10 )
Definition: dcode.h:193
wxString GetMruPath() const
void SetMruPath(const wxString &aPath)
virtual void ClearMsgPanel()
Clear all messages from the message panel.
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
virtual void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
Definition: eda_item.h:203
static const TOOL_EVENT ClearedEvent
Definition: actions.h:294
static const TOOL_EVENT SelectedEvent
Definition: actions.h:292
static const TOOL_EVENT UnselectedEvent
Definition: actions.h:293
Handle a drill image.
bool m_DisplayFlashedItemsFill
Option to draw flashed items (filled/sketch)
bool m_HighContrastMode
High contrast mode (dim un-highlighted objects)
bool m_XORMode
Display layers in exclusive-or mode.
bool m_FlipGerberView
Display as a mirror image.
bool m_ForceOpacityMode
Display layers in transparency (alpha channel) forced mode.
bool m_DisplayPolygonsFill
Option to draw polygons (filled/sketch)
bool m_DisplayLinesFill
Option to draw line items (filled/sketch)
GERBER_FILE_IMAGE_LIST * GetImagesList() const
Definition: gbr_layout.cpp:41
wxString m_Cmpref
the component reference parent of the data
wxString m_Netname
for items associated to a net: the netname
A helper class to export a Gerber set of files to Pcbnew.
bool ExportPcb(const int *aLayerLookUpTable, int aCopperLayers)
Save a board from a set of Gerber images.
D_CODE * GetDcodeDescr() const
Return the GetDcodeDescr of this object, or NULL.
GBR_BASIC_SHAPE_TYPE m_ShapeType
const GBR_NETLIST_METADATA & GetNetAttributes() const
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
std::unordered_map< int, int > SwapImages(unsigned int layer1, unsigned int layer2)
Swap two images and their orders.
unsigned GetLoadedImageCount()
Get number of loaded images.
static GERBER_FILE_IMAGE_LIST & GetImagesList()
GERBER_FILE_IMAGE * GetGbrImage(int aIdx)
Hold the image data and parameters for one gerber file and layer parameters.
wxString m_FileName
Full File Name for this layer.
bool m_InUse
true if this image is currently in use (a file is loaded in it) false if it must be not drawn
static TOOL_ACTION dcodeDisplay
static TOOL_ACTION negativeObjectDisplay
static TOOL_ACTION flashedDisplayOutlines
static TOOL_ACTION highlightAttribute
static TOOL_ACTION exportToPcbnew
static TOOL_ACTION highlightNet
static TOOL_ACTION toggleXORMode
static TOOL_ACTION loadZipFile
static TOOL_ACTION toggleLayerManager
static TOOL_ACTION openGerber
static TOOL_ACTION clearAllLayers
static TOOL_ACTION layerNext
static TOOL_ACTION flipGerberView
static TOOL_ACTION openAutodetected
static TOOL_ACTION reloadAllLayers
static TOOL_ACTION toggleForceOpacityMode
static TOOL_ACTION linesDisplayOutlines
static TOOL_ACTION layerPrev
static TOOL_ACTION openDrillFile
static TOOL_ACTION polygonsDisplayOutlines
static TOOL_ACTION highlightComponent
static TOOL_ACTION openZipFile
static TOOL_ACTION highlightDCode
static TOOL_ACTION moveLayerUp
static TOOL_ACTION moveLayerDown
static TOOL_ACTION loadGerbFiles
static TOOL_ACTION openJobFile
static TOOL_ACTION clearLayer
static TOOL_ACTION highlightClear
EDA_DRAW_PANEL_GAL * canvas()
int OpenDrillFile(const TOOL_EVENT &aEvent)
int OpenAutodetected(const TOOL_EVENT &aEvent)
int LayerNext(const TOOL_EVENT &aEvent)
int HighlightControl(const TOOL_EVENT &aEvent)
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
int MoveLayerDown(const TOOL_EVENT &aEvent)
int ClearLayer(const TOOL_EVENT &aEvent)
int LayerPrev(const TOOL_EVENT &aEvent)
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
int ReloadAllLayers(const TOOL_EVENT &aEvent)
GERBVIEW_FRAME * m_frame
int ToggleLayerManager(const TOOL_EVENT &aEvent)
int OpenJobFile(const TOOL_EVENT &aEvent)
int MoveLayerUp(const TOOL_EVENT &aEvent)
int ExportToPcbnew(const TOOL_EVENT &aEvent)
int OpenGerber(const TOOL_EVENT &aEvent)
int LoadGerbFiles(const TOOL_EVENT &aEvent)
Set up handlers for various events.
int ClearAllLayers(const TOOL_EVENT &aEvent)
int DisplayControl(const TOOL_EVENT &aEvent)
int LoadZipfile(const TOOL_EVENT &aEvent)
int OpenZipFile(const TOOL_EVENT &aEvent)
int UpdateMessagePanel(const TOOL_EVENT &aEvent)
int Print(const TOOL_EVENT &aEvent)
wxChoice * m_SelAperAttributesBox
void UpdateXORLayers()
Update each layers' differential option.
GERBVIEW_SETTINGS * gvconfig() const
void ApplyDisplaySettingsToGAL()
Updates the GAL with display settings changes.
bool LoadGerberJobFile(const wxString &aFileName)
Load a Gerber job file, and load gerber files found in job files.
GERBER_FILE_IMAGE_LIST * GetImagesList() const
Accessors to GERBER_FILE_IMAGE_LIST and GERBER_FILE_IMAGE data.
void syncLayerBox(bool aRebuildLayerBox=false)
Update the currently "selected" layer within m_SelLayerBox.
GBR_LAYOUT * GetGerberLayout() const
bool LoadGerberFiles(const wxString &aFileName)
Load a given Gerber file or selected file(s), if the filename is empty.
wxChoice * m_SelComponentBox
wxChoice * m_SelNetnameBox
int GetActiveLayer() const
Return the active layer.
void SetActiveLayer(int aLayer, bool doLayerWidgetUpdate=true)
change the currently active layer to aLayer and update the GERBER_LAYER_WIDGET.
bool Clear_DrawLayers(bool query)
GERBER_FILE_IMAGE * GetGbrImage(int aIdx) const
bool LoadListOfGerberAndDrillFiles(const wxString &aPath, const wxArrayString &aFilenameList, std::vector< int > *aFileType)
Load a list of Gerber and NC drill files and updates the view based on them.
bool LoadAutodetectedFiles(const wxString &aFileName)
Load a given file or selected file(s), if the filename is empty.
void RemapLayers(const std::unordered_map< int, int > &remapping)
Takes a layer remapping and reorders the layers.
bool OpenProjectFiles(const std::vector< wxString > &aFileSet, int aCtl) override
Open a project or set of files given by aFileList.
void Erase_Current_DrawLayer(bool query)
bool LoadZipArchiveFile(const wxString &aFileName)
Load a zipped archive file.
void SetElementVisibility(int aLayerID, bool aNewState)
Change the visibility of an element category.
bool LoadExcellonFiles(const wxString &aFileName)
Load a drill (EXCELLON) file or many files.
Selection tool for GerbView, based on the one in Pcbnew.
GERBVIEW_SELECTION & GetSelection()
Return the set of currently selected items.
GBR_DISPLAY_OPTIONS m_Display
Methods for drawing GerbView specific items.
Store GerbView specific render settings.
void ClearHighlightSelections()
Clear all highlight selections (dcode, net, component, attribute selection)
An abstract base class for deriving all objects that can be added to a VIEW.
Definition: view_item.h:84
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:68
void SetMirror(bool aMirrorX, bool aMirrorY)
Control the mirroring of the VIEW.
Definition: view.cpp:574
void UpdateAllItems(int aUpdateFlags)
Update all items in the view according to the given flags.
Definition: view.cpp:1563
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
Definition: view.h:221
void UpdateAllItemsConditionally(int aUpdateFlags, std::function< bool(VIEW_ITEM *)> aCondition)
Update items in the view according to the given flags and condition.
Definition: view.cpp:1573
Show the Gerber files loaded and allow the user to choose between Gerber layers and pcb layers.
TOOL_MANAGER * m_toolMgr
Definition: tool_base.h:218
KIGFX::VIEW * getView() const
Returns the instance of #VIEW object used in the application.
Definition: tool_base.cpp:36
RESET_REASON
Determine the reason of reset for a tool.
Definition: tool_base.h:78
Generic, UI-independent tool event.
Definition: tool_event.h:167
bool IsAction(const TOOL_ACTION *aAction) const
Test if the event contains an action issued upon activation of the given TOOL_ACTION.
Definition: tool_event.cpp:82
T Parameter() const
Return a parameter assigned to the event.
Definition: tool_event.h:460
void Go(int(T::*aStateFunc)(const TOOL_EVENT &), const TOOL_EVENT_LIST &aConditions=TOOL_EVENT(TC_ANY, TA_ANY))
Define which state (aStateFunc) to go when a certain event arrives (aConditions).
bool RunAction(const std::string &aActionName, T aParam)
Run the specified action immediately, pausing the current action to run the new one.
Definition: tool_manager.h:150
wxString EnsureFileExtension(const wxString &aFilename, const wxString &aExtension)
It's annoying to throw up nag dialogs when the extension isn't right.
Definition: common.cpp:422
The common library.
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
Definition: confirm.cpp:222
This file is part of the common library.
#define _(s)
@ GBR_SPOT_OVAL
@ GBR_SEGMENT
@ GBR_SPOT_POLY
@ GBR_SPOT_RECT
@ GBR_CIRCLE
@ GBR_POLYGON
@ GBR_SPOT_CIRCLE
@ GBR_ARC
@ GBR_SPOT_MACRO
static const std::string KiCadPcbFileExtension
static wxString PcbFileWildcard()
#define KICTL_CREATE
caller thinks requested project files may not exist.
Definition: kiway_player.h:76
@ LAYER_DCODES
Definition: layer_ids.h:430
@ LAYER_NEGATIVE_OBJECTS
Definition: layer_ids.h:431
@ COLOR
Color has changed.
Definition: view_item.h:53
@ REPAINT
Item needs to be redrawn.
Definition: view_item.h:57
#define NAMELESS_PROJECT
default name for nameless projects
Definition: project.h:43
MODEL3D_FORMAT_TYPE fileType(const char *aFileName)
wxString UnescapeString(const wxString &aSource)
Definition of file extensions used in Kicad.