KiCad PCB EDA Suite
Loading...
Searching...
No Matches
bitmap2cmp_frame.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) 1992-2010 jean-pierre.charras
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 <bitmap2component.h>
26#include <bitmap2cmp_frame.h>
27#include <bitmap2cmp_panel.h>
28#include <bitmap2cmp_settings.h>
29#include <bitmap_io.h>
30#include <bitmaps.h>
31#include <common.h>
32#include <id.h>
33#include <widgets/wx_menubar.h>
35#include <file_history.h>
36#include <tool/tool_manager.h>
38#include <tool/common_control.h>
39#include <tool/action_manager.h>
40#include <bitmap2cmp_control.h>
41#include <tool/actions.h>
42
43#include <wx/filedlg.h>
44#include <wx/msgdlg.h>
45
46
47#define DEFAULT_DPI 300 // the image DPI used in formats that do not define a DPI
48
50{
51 m_outputSize = 0.0;
54 m_unit = EDA_UNITS::MILLIMETRES;
55}
56
57
59{
60 // Safety-check to guarantee no divide-by-zero
61 m_originalDPI = std::max( 1, m_originalDPI );
62
63 // Set the m_outputSize value from the m_originalSizePixels and the selected unit
64 if( m_unit == EDA_UNITS::MILLIMETRES )
66 else if( m_unit == EDA_UNITS::INCHES )
68 else
70}
71
72
74{
75 int outputDPI;
76
77 if( m_unit == EDA_UNITS::MILLIMETRES )
78 outputDPI = GetOriginalSizePixels() / ( m_outputSize / 25.4 );
79 else if( m_unit == EDA_UNITS::INCHES )
80 outputDPI = GetOriginalSizePixels() / m_outputSize;
81 else
82 outputDPI = KiROUND( m_outputSize );
83
84 // Zero is not a DPI, and may cause divide-by-zero errors...
85 outputDPI = std::max( 1, outputDPI );
86
87 return outputDPI;
88}
89
90
92{
93 // Set the unit used for m_outputSize, and convert the old m_outputSize value
94 // to the value in new unit
95 if( aUnit == m_unit )
96 return;
97
98 // Convert m_outputSize to mm:
99 double size_mm;
100
101 if( m_unit == EDA_UNITS::MILLIMETRES )
102 {
103 size_mm = m_outputSize;
104 }
105 else if( m_unit == EDA_UNITS::INCHES )
106 {
107 size_mm = m_outputSize * 25.4;
108 }
109 else
110 {
111 // m_outputSize is the DPI, not an image size
112 // the image size is m_originalSizePixels / m_outputSize (in inches)
113 if( m_outputSize )
114 size_mm = m_originalSizePixels / m_outputSize * 25.4;
115 else
116 size_mm = 0;
117 }
118
119 // Convert m_outputSize to new value:
120 if( aUnit == EDA_UNITS::MILLIMETRES )
121 {
122 m_outputSize = size_mm;
123 }
124 else if( aUnit == EDA_UNITS::INCHES )
125 {
126 m_outputSize = size_mm / 25.4;
127 }
128 else
129 {
130 if( size_mm )
131 m_outputSize = m_originalSizePixels / size_mm * 25.4;
132 else
133 m_outputSize = 0;
134 }
135
136 m_unit = aUnit;
137}
138
139
140BEGIN_EVENT_TABLE( BITMAP2CMP_FRAME, KIWAY_PLAYER )
141 EVT_MENU( wxID_CLOSE, BITMAP2CMP_FRAME::OnExit )
142 EVT_MENU( wxID_EXIT, BITMAP2CMP_FRAME::OnExit )
143
146END_EVENT_TABLE()
147
148
149BITMAP2CMP_FRAME::BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
150 KIWAY_PLAYER( aKiway, aParent, FRAME_BM2CMP, _( "Image Converter" ), wxDefaultPosition,
151 wxDefaultSize, wxDEFAULT_FRAME_STYLE, wxT( "bitmap2cmp" ), unityScale ),
152 m_panel( nullptr ),
153 m_statusBar( nullptr )
154{
155 m_aboutTitle = _HKI( "KiCad Image Converter" );
156
157 // Give an icon
158 wxIcon icon;
159 wxIconBundle icon_bundle;
160
161 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 48 ) );
162 icon_bundle.AddIcon( icon );
163 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 128 ) );
164 icon_bundle.AddIcon( icon );
165 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 256 ) );
166 icon_bundle.AddIcon( icon );
167 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component_32 ) );
168 icon_bundle.AddIcon( icon );
169 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component_16 ) );
170 icon_bundle.AddIcon( icon );
171
172 SetIcons( icon_bundle );
173
174 wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
175 SetSizer( mainSizer );
176
177 m_panel = new BITMAP2CMP_PANEL( this );
178 mainSizer->Add( m_panel, 1, wxEXPAND, 5 );
179
180 m_statusBar = this->CreateStatusBar( 1, wxSTB_SIZEGRIP, wxID_ANY );
181
182 LoadSettings( config() );
183
184 m_toolManager = new TOOL_MANAGER;
185 m_toolManager->SetEnvironment( nullptr, nullptr, nullptr, config(), this );
186
187 m_toolDispatcher = new TOOL_DISPATCHER( m_toolManager );
188
189 // Register tools
190 m_toolManager->RegisterTool( new COMMON_CONTROL );
191 m_toolManager->RegisterTool( new BITMAP2CMP_CONTROL );
192 m_toolManager->InitTools();
193
194 ReCreateMenuBar();
195 setupUIConditions();
196
197 GetSizer()->SetSizeHints( this );
198
199 SetSize( m_framePos.x, m_framePos.y, m_frameSize.x, m_frameSize.y );
200
201 if ( m_framePos == wxDefaultPosition )
202 Centre();
203}
204
205
207{
208 SaveSettings( config() );
209 /*
210 * This needed for OSX: avoids further OnDraw processing after this
211 * destructor and before the native window is destroyed
212 */
213 Freeze();
214}
215
216
217void BITMAP2CMP_FRAME::OnExit( wxCommandEvent& aEvent )
218{
219 // Just generate a wxCloseEvent
220 Close( false );
221}
222
223
225{
226 return m_panel->GetCurrentPage();
227}
228
229
230void BITMAP2CMP_FRAME::OnFileHistory( wxCommandEvent& event )
231{
232 wxString fn = GetFileFromHistory( event.GetId(), _( "Image files" ) );
233
234 if( !fn.IsEmpty() )
235 {
236 OpenProjectFiles( std::vector<wxString>( 1, fn ) );
237 Refresh();
238 }
239}
240
241
242void BITMAP2CMP_FRAME::OnClearFileHistory( wxCommandEvent& aEvent )
243{
245}
246
247
249{
251 EDA_BASE_FRAME* base_frame = dynamic_cast<EDA_BASE_FRAME*>( this );
252
253 // base_frame == nullptr should not happen, but it makes Coverity happy
254 wxCHECK( base_frame, /* void */ );
255
256 // wxWidgets handles the OSX Application menu behind the scenes, but that means
257 // we always have to start from scratch with a new wxMenuBar.
258 wxMenuBar* oldMenuBar = base_frame->GetMenuBar();
259 WX_MENUBAR* menuBar = new WX_MENUBAR();
260
261 //-- File menu -----------------------------------------------------------
262 //
263 ACTION_MENU* fileMenu = new ACTION_MENU( false, tool );
264
265 fileMenu->Add( ACTIONS::open );
266
267 static ACTION_MENU* openRecentMenu;
268 FILE_HISTORY& fileHistory = GetFileHistory();
269
270 // Create the menu if it does not exist. Adding a file to/from the history
271 // will automatically refresh the menu.
272 if( !openRecentMenu )
273 {
274 openRecentMenu = new ACTION_MENU( false, tool );
275 openRecentMenu->SetIcon( BITMAPS::recent );
276
277 fileHistory.UseMenu( openRecentMenu );
278 fileHistory.AddFilesToMenu();
279 }
280
281 // Ensure the title is up to date after changing language
282 openRecentMenu->SetTitle( _( "Open Recent" ) );
283 fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
284
285 wxMenuItem* item = fileMenu->Add( openRecentMenu->Clone() );
286
287 // Add the file menu condition here since it needs the item ID for the submenu
289 cond.Enable( FILE_HISTORY::FileHistoryNotEmpty( fileHistory ) );
290 RegisterUIUpdateHandler( item->GetId(), cond );
291
292 fileMenu->AppendSeparator();
293 fileMenu->AddQuit( _( "Image Converter" ) );
294
295 //-- Preferences menu -----------------------------------------------
296 //
297 ACTION_MENU* prefsMenu = new ACTION_MENU( false, tool );
298
299 prefsMenu->Add( ACTIONS::openPreferences );
300
301 prefsMenu->AppendSeparator();
302 AddMenuLanguageList( prefsMenu, tool );
303
304
305 //-- Menubar -------------------------------------------------------------
306 //
307 menuBar->Append( fileMenu, _( "&File" ) );
308 menuBar->Append( prefsMenu, _( "&Preferences" ) );
309 base_frame->AddStandardHelpMenu( menuBar );
310
311 base_frame->SetMenuBar( menuBar );
312 delete oldMenuBar;
313}
314
315
317{
319
320 UpdateTitle();
321
322 SaveSettings( config() );
323 IMAGE_SIZE imageSizeX = m_panel->GetOutputSizeX();
324 IMAGE_SIZE imageSizeY = m_panel->GetOutputSizeY();
325 Freeze();
326
327 wxSizer* mainSizer = m_panel->GetContainingSizer();
328 mainSizer->Detach( m_panel );
329 m_panel->Destroy();
330
331 m_panel = new BITMAP2CMP_PANEL( this );
332 mainSizer->Add( m_panel, 1, wxEXPAND, 5 );
333 Layout();
334
335 if( !m_srcFileName.IsEmpty() )
336 OpenProjectFiles( std::vector<wxString>( 1, m_srcFileName ) );
337
338 LoadSettings( config() );
339 m_panel->SetOutputSize( imageSizeX, imageSizeY );
340
341 Thaw();
342 Refresh();
343}
344
345
347{
348 wxString title;
349
350 if( !m_srcFileName.IsEmpty() )
351 {
352 wxFileName filename( m_srcFileName );
353 title = filename.GetFullName() + wxT( " \u2014 " );
354 }
355
356 title += _( "Image Converter" );
357
358 SetTitle( title );
359}
360
361
363{
365
366 if( BITMAP2CMP_SETTINGS* cfg = dynamic_cast<BITMAP2CMP_SETTINGS*>( aCfg ) )
367 {
368 m_srcFileName = cfg->m_BitmapFileName;
369 m_outFileName = cfg->m_ConvertedFileName;
370 m_panel->LoadSettings( cfg );
371 }
372}
373
374
376{
378
379 if( BITMAP2CMP_SETTINGS* cfg = dynamic_cast<BITMAP2CMP_SETTINGS*>( aCfg ) )
380 {
381 cfg->m_BitmapFileName = m_srcFileName;
382 cfg->m_ConvertedFileName = m_outFileName;
383 m_panel->SaveSettings( cfg );
384 }
385}
386
387
389{
390 wxFileName fn( m_srcFileName );
391 wxString path = fn.GetPath();
392
393 if( path.IsEmpty() || !wxDirExists( path ) )
394 path = m_mruPath;
395
396 wxFileDialog fileDlg( this, _( "Choose Image" ), path, wxEmptyString,
397 _( "Image Files" ) + wxS( " " )+ wxImage::GetImageExtWildcard(),
398 wxFD_OPEN | wxFD_FILE_MUST_EXIST );
399
400 if( fileDlg.ShowModal() != wxID_OK )
401 return;
402
403 wxString fullFilename = fileDlg.GetPath();
404
405 if( !OpenProjectFiles( std::vector<wxString>( 1, fullFilename ) ) )
406 return;
407
408 fn = fullFilename;
409 m_mruPath = fn.GetPath();
410 SetStatusText( fullFilename );
411 UpdateTitle();
412 Refresh();
413}
414
415
416bool BITMAP2CMP_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, int aCtl )
417{
418 m_srcFileName = aFileSet[0];
419
420 if( m_panel->OpenProjectFiles( aFileSet, aCtl ) )
421 {
423 return true;
424 }
425
426 return false;
427}
428
429
431{
432 wxFileName fn( m_outFileName );
433 wxString path = fn.GetPath();
434
435 if( path.IsEmpty() || !wxDirExists(path) )
436 path = ::wxGetCwd();
437
438 wxFileDialog fileDlg( this, _( "Create Drawing Sheet File" ), path, wxEmptyString,
439 FILEEXT::DrawingSheetFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
440
441 if( fileDlg.ShowModal() != wxID_OK )
442 return;
443
444 fn = fileDlg.GetPath();
446 m_outFileName = fn.GetFullPath();
447
448 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
449
450 if( !outfile )
451 {
452 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
453 return;
454 }
455
456 std::string buffer;
458 fputs( buffer.c_str(), outfile );
459 fclose( outfile );
460}
461
462
464{
465 wxFileName fn( m_outFileName );
466 wxString path = fn.GetPath();
467
468 if( path.IsEmpty() || !wxDirExists( path ) )
469 path = ::wxGetCwd();
470
471 wxFileDialog fileDlg( this, _( "Create PostScript File" ), path, wxEmptyString,
472 FILEEXT::PSFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
473
474 if( fileDlg.ShowModal() != wxID_OK )
475 return;
476
477 fn = fileDlg.GetPath();
478 fn.SetExt( wxT( "ps" ) );
479 m_outFileName = fn.GetFullPath();
480
481 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
482
483 if( !outfile )
484 {
485 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
486 return;
487 }
488
489 std::string buffer;
491 fputs( buffer.c_str(), outfile );
492 fclose( outfile );
493}
494
495
497{
498 wxFileName fn( m_outFileName );
499 wxString path = fn.GetPath();
500
501 if( path.IsEmpty() || !wxDirExists( path ) )
502 path = ::wxGetCwd();
503
504 wxFileDialog fileDlg( this, _( "Create Symbol Library" ), path, wxEmptyString,
506 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
507
508 if( fileDlg.ShowModal() != wxID_OK )
509 return;
510
512 m_outFileName = fn.GetFullPath();
513
514 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
515
516 if( !outfile )
517 {
518 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
519 return;
520 }
521
522 std::string buffer;
524 fputs( buffer.c_str(), outfile );
525 fclose( outfile );
526}
527
528
530{
531 wxFileName fn( m_outFileName );
532 wxString path = fn.GetPath();
533
534 if( path.IsEmpty() || !wxDirExists( path ) )
535 path = m_mruPath;
536
537 wxFileDialog fileDlg( this, _( "Create Footprint Library" ), path, wxEmptyString,
539 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
540
541 if( fileDlg.ShowModal() != wxID_OK )
542 return;
543
545 m_outFileName = fn.GetFullPath();
546
547 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
548
549 if( !outfile )
550 {
551 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
552 return;
553 }
554
555 std::string buffer;
557 fputs( buffer.c_str(), outfile );
558 fclose( outfile );
559 m_mruPath = fn.GetPath();
560}
561
562
constexpr EDA_IU_SCALE unityScale
Definition: base_units.h:111
#define DEFAULT_DPI
@ DRAWING_SHEET_FMT
@ SYMBOL_FMT
@ POSTSCRIPT_FMT
@ FOOTPRINT_FMT
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Definition: bitmap.cpp:104
@ icon_bitmap2component
@ icon_bitmap2component_32
@ icon_bitmap2component_16
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
Definition: box2.h:990
static TOOL_ACTION openPreferences
Definition: actions.h:227
static TOOL_ACTION open
Definition: actions.h:50
Define the structure of a menu based on ACTIONs.
Definition: action_menu.h:49
void AddQuit(const wxString &aAppname="")
Add a standard Quit item to the menu.
ACTION_MENU * Clone() const
Create a deep, recursive copy of this ACTION_MENU.
void SetTitle(const wxString &aTitle) override
Set title for the menu.
Definition: action_menu.cpp:92
void SetIcon(BITMAPS aIcon)
Assign an icon for the entry.
Definition: action_menu.cpp:78
wxMenuItem * Add(const wxString &aLabel, int aId, BITMAPS aIcon)
Add a wxWidgets-style entry to the menu.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition: app_settings.h:92
Handle actions for the various symbol editor and viewers.
void ExportPcbnewFormat()
Generate a footprint in S expr format.
void ExportDrawingSheetFormat()
Generate a file suitable to be copied into a drawing sheet (.kicad_wks) file.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void ExportEeschemaFormat()
Generate a schematic library which contains one component: the logo.
void OnExit(wxCommandEvent &aEvent)
Event handler for the wxID_EXIT and wxID_CLOSE events.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void OnFileHistory(wxCommandEvent &event)
void doReCreateMenuBar() override
wxWindow * GetToolCanvas() const override
Canvas access.
void ExportPostScriptFormat()
Generate a postscript file.
BITMAP2CMP_PANEL * m_panel
bool OpenProjectFiles(const std::vector< wxString > &aFilenames, int aCtl=0) override
Open a project or set of files given by aFileList.
void OnClearFileHistory(wxCommandEvent &event)
void ShowChangedLanguage() override
void SetOutputSize(const IMAGE_SIZE &aSizeX, const IMAGE_SIZE &aSizeY)
void LoadSettings(BITMAP2CMP_SETTINGS *aCfg)
IMAGE_SIZE GetOutputSizeX() const
bool OpenProjectFiles(const std::vector< wxString > &aFilenames, int aCtl=0)
wxWindow * GetCurrentPage()
void SaveSettings(BITMAP2CMP_SETTINGS *aCfg)
IMAGE_SIZE GetOutputSizeY() const
void ExportToBuffer(std::string &aOutput, OUTPUT_FMT_ID aFormat)
generate a export data of the current bitmap.
Handle actions that are shared between different applications.
The base frame for deriving all KiCad main window classes.
virtual APP_SETTINGS_BASE * config() const
Return the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
void ShowChangedLanguage() override
Redraw the menus and what not in current language.
void AddMenuLanguageList(ACTION_MENU *aMasterMenu, TOOL_INTERACTIVE *aControlTool)
Create a menu list for language choice, and add it as submenu to MasterMenu.
void UpdateFileHistory(const wxString &FullFileName, FILE_HISTORY *aFileHistory=nullptr)
Update the list of recently opened files.
void ClearFileHistory(FILE_HISTORY *aFileHistory=nullptr)
Remove all files from the file history.
virtual void LoadSettings(APP_SETTINGS_BASE *aCfg)
Load common frame parameters from a configuration file.
FILE_HISTORY & GetFileHistory()
Get the frame's main file history.
wxString GetFileFromHistory(int cmdId, const wxString &type, FILE_HISTORY *aFileHistory=nullptr)
Fetch the file name from the file history list.
virtual void SaveSettings(APP_SETTINGS_BASE *aCfg)
Save common frame parameters to a configuration data file.
virtual void RegisterUIUpdateHandler(int aID, const ACTION_CONDITIONS &aConditions) override
Register a UI update handler for the control with ID aID.
wxString m_mruPath
This class implements a file history object to store a list of files, that can then be added to a men...
Definition: file_history.h:43
static SELECTION_CONDITION FileHistoryNotEmpty(const FILE_HISTORY &aHistory)
Create a SELECTION_CONDITION that can be used to enable a menu item when the file history has items i...
void UpdateClearText(wxMenu *aMenu, wxString aClearText)
Update the text displayed on the menu item that clears the entire menu.
void AddFilesToMenu() override
Add the files to all registered menus.
Definition: file_history.h:98
void SetUnit(EDA_UNITS aUnit)
double m_outputSize
EDA_UNITS m_unit
int GetOriginalSizePixels()
int m_originalSizePixels
void SetOutputSizeFromInitialImageSize()
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
Definition: kiway_player.h:65
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition: kiway.h:285
TOOL_MANAGER * m_toolManager
Definition: tools_holder.h:167
Master controller class:
Definition: tool_manager.h:62
void SetEnvironment(EDA_ITEM *aModel, KIGFX::VIEW *aView, KIGFX::VIEW_CONTROLS *aViewControls, APP_SETTINGS_BASE *aSettings, TOOLS_HOLDER *aFrame)
Set the work environment (model, view, view controls and the parent window).
Wrapper around a wxMenuBar object that prevents the accelerator table from being used.
Definition: wx_menubar.h:47
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:425
The common library.
#define _HKI(x)
#define _(s)
EDA_UNITS
Definition: eda_units.h:46
EVT_MENU_RANGE(ID_GERBVIEW_DRILL_FILE1, ID_GERBVIEW_DRILL_FILEMAX, GERBVIEW_FRAME::OnDrlFileHistory) EVT_MENU_RANGE(ID_GERBVIEW_ZIP_FILE1
@ FRAME_BM2CMP
Definition: frame_type.h:61
static const std::string KiCadSymbolLibFileExtension
static const std::string DrawingSheetFileExtension
static const std::string KiCadFootprintFileExtension
static wxString KiCadSymbolLibFileWildcard()
static wxString KiCadFootprintLibFileWildcard()
static wxString PSFileWildcard()
static wxString DrawingSheetFileWildcard()
Common command IDs shared by more than one of the KiCad applications.
@ ID_FILE_LIST_CLEAR
Definition: id.h:84
@ ID_FILEMAX
Definition: id.h:82
@ ID_FILE1
Definition: id.h:81
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
Functors that can be used to figure out how the action controls should be displayed in the UI and if ...
ACTION_CONDITIONS & Enable(const SELECTION_CONDITION &aCondition)
Definition of file extensions used in Kicad.