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#include <kiplatform/ui.h>
46
47
48#define DEFAULT_DPI 300 // the image DPI used in formats that do not define a DPI
49
57
58
60{
61 // Safety-check to guarantee no divide-by-zero
62 m_originalDPI = std::max( 1, m_originalDPI );
63
64 // Set the m_outputSize value from the m_originalSizePixels and the selected unit
65 if( m_unit == EDA_UNITS::MM )
67 else if( m_unit == EDA_UNITS::INCH )
69 else
71}
72
73
75{
76 int outputDPI;
77
78 if( m_unit == EDA_UNITS::MM )
79 outputDPI = GetOriginalSizePixels() / ( m_outputSize / 25.4 );
80 else if( m_unit == EDA_UNITS::INCH )
81 outputDPI = GetOriginalSizePixels() / m_outputSize;
82 else
83 outputDPI = KiROUND( m_outputSize );
84
85 // Zero is not a DPI, and may cause divide-by-zero errors...
86 outputDPI = std::max( 1, outputDPI );
87
88 return outputDPI;
89}
90
91
93{
94 // Set the unit used for m_outputSize, and convert the old m_outputSize value
95 // to the value in new unit
96 if( aUnit == m_unit )
97 return;
98
99 // Convert m_outputSize to mm:
100 double size_mm;
101
102 if( m_unit == EDA_UNITS::MM )
103 {
104 size_mm = m_outputSize;
105 }
106 else if( m_unit == EDA_UNITS::INCH )
107 {
108 size_mm = m_outputSize * 25.4;
109 }
110 else
111 {
112 // m_outputSize is the DPI, not an image size
113 // the image size is m_originalSizePixels / m_outputSize (in inches)
114 if( m_outputSize )
115 size_mm = m_originalSizePixels / m_outputSize * 25.4;
116 else
117 size_mm = 0;
118 }
119
120 // Convert m_outputSize to new value:
121 if( aUnit == EDA_UNITS::MM )
122 {
123 m_outputSize = size_mm;
124 }
125 else if( aUnit == EDA_UNITS::INCH )
126 {
127 m_outputSize = size_mm / 25.4;
128 }
129 else
130 {
131 if( size_mm )
132 m_outputSize = m_originalSizePixels / size_mm * 25.4;
133 else
134 m_outputSize = 0;
135 }
136
137 m_unit = aUnit;
138}
139
140
141BEGIN_EVENT_TABLE( BITMAP2CMP_FRAME, KIWAY_PLAYER )
142 EVT_MENU( wxID_CLOSE, BITMAP2CMP_FRAME::OnExit )
143 EVT_MENU( wxID_EXIT, BITMAP2CMP_FRAME::OnExit )
144
147END_EVENT_TABLE()
148
149
150BITMAP2CMP_FRAME::BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
151 KIWAY_PLAYER( aKiway, aParent, FRAME_BM2CMP, _( "Image Converter" ), wxDefaultPosition,
152 wxDefaultSize, wxDEFAULT_FRAME_STYLE, wxT( "bitmap2cmp" ), unityScale ),
153 m_panel( nullptr ),
154 m_statusBar( nullptr )
155{
156 m_aboutTitle = _HKI( "KiCad Image Converter" );
157
158 // Give an icon
159 wxIcon icon;
160 wxIconBundle icon_bundle;
161
162 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 48 ) );
163 icon_bundle.AddIcon( icon );
164 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 128 ) );
165 icon_bundle.AddIcon( icon );
166 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component, 256 ) );
167 icon_bundle.AddIcon( icon );
168 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component_32 ) );
169 icon_bundle.AddIcon( icon );
170 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_bitmap2component_16 ) );
171 icon_bundle.AddIcon( icon );
172
173 SetIcons( icon_bundle );
174
175 wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
176 SetSizer( mainSizer );
177
178 m_panel = new BITMAP2CMP_PANEL( this );
179 mainSizer->Add( m_panel, 1, wxEXPAND, 5 );
180
181 m_statusBar = this->CreateStatusBar( 1, wxSTB_SIZEGRIP, wxID_ANY );
182
183 LoadSettings( config() );
184
186 m_toolManager->SetEnvironment( nullptr, nullptr, nullptr, config(), this );
187
189
190 // Register tools
191 m_toolManager->RegisterTool( new COMMON_CONTROL );
192 m_toolManager->RegisterTool( new BITMAP2CMP_CONTROL );
193 m_toolManager->InitTools();
194
197
198 GetSizer()->SetSizeHints( this );
199
200 SetSize( m_framePos.x, m_framePos.y, m_frameSize.x, m_frameSize.y );
201
202 if ( m_framePos == wxDefaultPosition )
203 Centre();
204}
205
206
208{
209 // Shutdown all running tools
210 if( m_toolManager )
211 m_toolManager->ShutdownAllTools();
212
213 SaveSettings( config() );
214
215 /*
216 * This needed for OSX: avoids further OnDraw processing after this
217 * destructor and before the native window is destroyed
218 */
219 Freeze();
220}
221
222
223void BITMAP2CMP_FRAME::OnExit( wxCommandEvent& aEvent )
224{
225 // Just generate a wxCloseEvent
226 Close( false );
227}
228
229
231{
232 return m_panel->GetCurrentPage();
233}
234
235
236void BITMAP2CMP_FRAME::OnFileHistory( wxCommandEvent& event )
237{
238 wxString fn = GetFileFromHistory( event.GetId(), _( "Image files" ) );
239
240 if( !fn.IsEmpty() )
241 {
242 OpenProjectFiles( std::vector<wxString>( 1, fn ) );
243 Refresh();
244 }
245}
246
247
248void BITMAP2CMP_FRAME::OnClearFileHistory( wxCommandEvent& aEvent )
249{
251}
252
253
255{
256 COMMON_CONTROL* tool = m_toolManager->GetTool<COMMON_CONTROL>();
257 EDA_BASE_FRAME* base_frame = dynamic_cast<EDA_BASE_FRAME*>( this );
258
259 // base_frame == nullptr should not happen, but it makes Coverity happy
260 wxCHECK( base_frame, /* void */ );
261
262 // wxWidgets handles the OSX Application menu behind the scenes, but that means
263 // we always have to start from scratch with a new wxMenuBar.
264 wxMenuBar* oldMenuBar = base_frame->GetMenuBar();
265 WX_MENUBAR* menuBar = new WX_MENUBAR();
266
267 //-- File menu -----------------------------------------------------------
268 //
269 ACTION_MENU* fileMenu = new ACTION_MENU( false, tool );
270
271 fileMenu->Add( ACTIONS::open );
272
273 static ACTION_MENU* openRecentMenu;
274 FILE_HISTORY& fileHistory = GetFileHistory();
275
276 // Create the menu if it does not exist. Adding a file to/from the history
277 // will automatically refresh the menu.
278 if( !openRecentMenu )
279 {
280 openRecentMenu = new ACTION_MENU( false, tool );
281 openRecentMenu->SetIcon( BITMAPS::recent );
282
283 fileHistory.UseMenu( openRecentMenu );
284 fileHistory.AddFilesToMenu();
285 }
286
287 // Ensure the title is up to date after changing language
288 openRecentMenu->SetTitle( _( "Open Recent" ) );
289 fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
290
291 wxMenuItem* item = fileMenu->Add( openRecentMenu->Clone() );
292
293 // Add the file menu condition here since it needs the item ID for the submenu
295 cond.Enable( FILE_HISTORY::FileHistoryNotEmpty( fileHistory ) );
296 RegisterUIUpdateHandler( item->GetId(), cond );
297
298 fileMenu->AppendSeparator();
299 fileMenu->AddQuit( _( "Image Converter" ) );
300
301 //-- Preferences menu -----------------------------------------------
302 //
303 ACTION_MENU* prefsMenu = new ACTION_MENU( false, tool );
304
305 prefsMenu->Add( ACTIONS::openPreferences );
306
307 prefsMenu->AppendSeparator();
308 AddMenuLanguageList( prefsMenu, tool );
309
310
311 //-- Menubar -------------------------------------------------------------
312 //
313 menuBar->Append( fileMenu, _( "&File" ) );
314 menuBar->Append( prefsMenu, _( "&Preferences" ) );
315 base_frame->AddStandardHelpMenu( menuBar );
316
317 base_frame->SetMenuBar( menuBar );
318 delete oldMenuBar;
319}
320
321
323{
325
326 UpdateTitle();
327
328 SaveSettings( config() );
329 IMAGE_SIZE imageSizeX = m_panel->GetOutputSizeX();
330 IMAGE_SIZE imageSizeY = m_panel->GetOutputSizeY();
331 Freeze();
332
333 wxSizer* mainSizer = m_panel->GetContainingSizer();
334 mainSizer->Detach( m_panel );
335 m_panel->Destroy();
336
337 m_panel = new BITMAP2CMP_PANEL( this );
338 mainSizer->Add( m_panel, 1, wxEXPAND, 5 );
339 Layout();
340
341 if( !m_srcFileName.IsEmpty() )
342 OpenProjectFiles( std::vector<wxString>( 1, m_srcFileName ) );
343
344 LoadSettings( config() );
345 m_panel->SetOutputSize( imageSizeX, imageSizeY );
346
347 Thaw();
348 Refresh();
349}
350
351
353{
354 wxString title;
355
356 if( !m_srcFileName.IsEmpty() )
357 {
358 wxFileName filename( m_srcFileName );
359 title = filename.GetFullName() + wxT( " \u2014 " );
360 }
361
362 title += _( "Image Converter" );
363
364 SetTitle( title );
365}
366
367
369{
371
372 if( BITMAP2CMP_SETTINGS* cfg = dynamic_cast<BITMAP2CMP_SETTINGS*>( aCfg ) )
373 {
374 m_srcFileName = cfg->m_BitmapFileName;
375 m_outFileName = cfg->m_ConvertedFileName;
376 m_panel->LoadSettings( cfg );
377 }
378}
379
380
382{
384
385 if( BITMAP2CMP_SETTINGS* cfg = dynamic_cast<BITMAP2CMP_SETTINGS*>( aCfg ) )
386 {
387 cfg->m_BitmapFileName = m_srcFileName;
388 cfg->m_ConvertedFileName = m_outFileName;
389 m_panel->SaveSettings( cfg );
390 }
391}
392
393
395{
396 wxFileName fn( m_srcFileName );
397 wxString path = fn.GetPath();
398
399 if( path.IsEmpty() || !wxDirExists( path ) )
400 path = m_mruPath;
401
402 wxFileDialog fileDlg( this, _( "Choose Image" ), path, wxEmptyString,
403 FILEEXT::ImageFileWildcard(), wxFD_OPEN | wxFD_FILE_MUST_EXIST );
404
406
407 if( fileDlg.ShowModal() != wxID_OK )
408 return;
409
410 wxString fullFilename = fileDlg.GetPath();
411
412 if( !OpenProjectFiles( std::vector<wxString>( 1, fullFilename ) ) )
413 return;
414
415 fn = fullFilename;
416 m_mruPath = fn.GetPath();
417 SetStatusText( fullFilename );
418 UpdateTitle();
419 Refresh();
420}
421
422
423bool BITMAP2CMP_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, int aCtl )
424{
425 m_srcFileName = aFileSet[0];
426
427 if( m_panel->OpenProjectFiles( aFileSet, aCtl ) )
428 {
430 return true;
431 }
432
433 return false;
434}
435
436
438{
439 wxFileName fn( m_outFileName );
440 wxString path = fn.GetPath();
441
442 if( path.IsEmpty() || !wxDirExists(path) )
443 path = ::wxGetCwd();
444
445 wxFileDialog fileDlg( this, _( "Create Drawing Sheet File" ), path, wxEmptyString,
446 FILEEXT::DrawingSheetFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
447
449
450 if( fileDlg.ShowModal() != wxID_OK )
451 return;
452
453 fn = fileDlg.GetPath();
455 m_outFileName = fn.GetFullPath();
456
457 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
458
459 if( !outfile )
460 {
461 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
462 return;
463 }
464
465 std::string buffer;
466 m_panel->ExportToBuffer( buffer, DRAWING_SHEET_FMT );
467 fputs( buffer.c_str(), outfile );
468 fclose( outfile );
469}
470
471
473{
474 wxFileName fn( m_outFileName );
475 wxString path = fn.GetPath();
476
477 if( path.IsEmpty() || !wxDirExists( path ) )
478 path = ::wxGetCwd();
479
480 wxFileDialog fileDlg( this, _( "Create PostScript File" ), path, wxEmptyString,
481 FILEEXT::PSFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
482
484
485 if( fileDlg.ShowModal() != wxID_OK )
486 return;
487
488 fn = fileDlg.GetPath();
489 fn.SetExt( wxT( "ps" ) );
490 m_outFileName = fn.GetFullPath();
491
492 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
493
494 if( !outfile )
495 {
496 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
497 return;
498 }
499
500 std::string buffer;
501 m_panel->ExportToBuffer( buffer, POSTSCRIPT_FMT );
502 fputs( buffer.c_str(), outfile );
503 fclose( outfile );
504}
505
506
508{
509 wxFileName fn( m_outFileName );
510 wxString path = fn.GetPath();
511
512 if( path.IsEmpty() || !wxDirExists( path ) )
513 path = ::wxGetCwd();
514
515 wxFileDialog fileDlg( this, _( "Create Symbol Library" ), path, wxEmptyString,
517 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
518
520
521 if( fileDlg.ShowModal() != wxID_OK )
522 return;
523
525 m_outFileName = fn.GetFullPath();
526
527 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
528
529 if( !outfile )
530 {
531 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
532 return;
533 }
534
535 std::string buffer;
536 m_panel->ExportToBuffer( buffer, SYMBOL_FMT );
537 fputs( buffer.c_str(), outfile );
538 fclose( outfile );
539}
540
541
543{
544 wxFileName fn( m_outFileName );
545 wxString path = fn.GetPath();
546
547 if( path.IsEmpty() || !wxDirExists( path ) )
548 path = m_mruPath;
549
550 wxFileDialog fileDlg( this, _( "Create Footprint Library" ), path, wxEmptyString,
552 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
553
555
556 if( fileDlg.ShowModal() != wxID_OK )
557 return;
558
560 m_outFileName = fn.GetFullPath();
561
562 FILE* outfile = wxFopen( m_outFileName, wxT( "w" ) );
563
564 if( !outfile )
565 {
566 wxMessageBox( wxString::Format( _( "File '%s' could not be created." ), m_outFileName ) );
567 return;
568 }
569
570 std::string buffer;
571 m_panel->ExportToBuffer( buffer, FOOTPRINT_FMT );
572 fputs( buffer.c_str(), outfile );
573 fclose( outfile );
574 m_mruPath = fn.GetPath();
575}
576
577
constexpr EDA_IU_SCALE unityScale
Definition base_units.h:115
#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:280
static TOOL_ACTION open
Definition actions.h:57
Define the structure of a menu based on ACTIONs.
Definition action_menu.h:47
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.
void SetIcon(BITMAPS aIcon)
Assign an icon for the entry.
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.
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.
wxStatusBar * m_statusBar
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)
BITMAP2CMP_FRAME(KIWAY *aKiway, wxWindow *aParent)
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
Handle actions that are shared between different applications.
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.
virtual void setupUIConditions()
Setup the UI conditions for the various actions and their controls in this frame.
EDA_BASE_FRAME(wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName, KIWAY *aKiway, const EDA_IU_SCALE &aIuScale)
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.
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.
virtual void ClearFileHistory()
Remove all files from the 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_aboutTitle
void ReCreateMenuBar()
Recreate the menu bar.
This class implements a file history object to store a list of files, that can then be added to a men...
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.
void SetUnit(EDA_UNITS aUnit)
double m_outputSize
EDA_UNITS m_unit
int GetOriginalSizePixels()
void SetOutputSizeFromInitialImageSize()
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
KIWAY_PLAYER(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName, const EDA_IU_SCALE &aIuScale)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition kiway.h:294
TOOL_MANAGER * m_toolManager
TOOL_DISPATCHER * m_toolDispatcher
Master controller class:
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:629
The common library.
#define _(s)
EDA_UNITS
Definition eda_units.h:48
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 ImageFileWildcard()
static wxString KiCadSymbolLibFileWildcard()
static wxString KiCadFootprintLibFileWildcard()
static wxString PSFileWildcard()
static wxString DrawingSheetFileWildcard()
@ ID_FILE_LIST_CLEAR
Definition id.h:62
@ ID_FILEMAX
Definition id.h:60
@ ID_FILE1
Definition id.h:59
void AllowNetworkFileSystems(wxDialog *aDialog)
Configure a file dialog to show network and virtual file systems.
Definition wxgtk/ui.cpp:717
#define _HKI(x)
Definition page_info.cpp:44
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)
std::string path
Definition of file extensions used in Kicad.