KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcbnew_action_plugins.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
25#include <pgm_base.h>
27#include <pcbnew_settings.h>
28#include <bitmaps.h>
29#include <board.h>
30#include <board_commit.h>
32#include <footprint.h>
34#include <pcb_track.h>
35#include <zone.h>
36#include <pcbnew_settings.h>
37#include <tool/action_menu.h>
38#include <tool/action_toolbar.h>
39#include <tool/tool_manager.h>
40#include <tools/pcb_actions.h>
42#include <pcb_painter.h>
43#include <wx/msgdlg.h>
44#include <wx/app.h>
45#include <kiplatform/app.h>
46#include "../../scripting/python_scripting.h"
47
49{
50 PyLOCK lock;
51
52 m_PyAction = aAction;
53 Py_XINCREF( aAction );
54}
55
56
58{
59 PyLOCK lock;
60
61 Py_XDECREF( m_PyAction );
62}
63
64
65PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArglist )
66{
67 PyLOCK lock;
68
69 PyErr_Clear();
70
71 // pFunc is a new reference to the desired method
72 PyObject* pFunc = PyObject_GetAttrString( m_PyAction, aMethod );
73
74 if( pFunc && PyCallable_Check( pFunc ) )
75 {
76 PyObject* result = PyObject_CallObject( pFunc, aArglist );
77
78 if( !wxTheApp )
80
81 if( PyErr_Occurred() )
82 {
83 wxString message = _HKI( "Exception on python action plugin code" );
84 wxString traceback = PyErrStringWithTraceback();
85
86 std::cerr << message << std::endl << std::endl;
87 std::cerr << traceback << std::endl;
88
89 if( wxTheApp )
90 wxSafeShowMessage( wxGetTranslation( message ), traceback );
91 }
92
93 if( !wxTheApp )
94 {
95 wxArrayString messages;
96 messages.Add( "Fatal error");
97 messages.Add( wxString::Format(
98 "The application handle was destroyed after running Python plugin '%s'.",
99 m_cachedName ) );
100
101 // Poor man's ASCII message box
102 {
103 int maxLen = 0;
104
105 for( const wxString& msg : messages )
106 if( (int)msg.length() > maxLen )
107 maxLen = msg.length();
108
109 wxChar ch = '*';
110 wxString border( ch, 3 );
111
112 std::cerr << wxString( ch, maxLen + 2 + border.length() * 2 ) << std::endl;
113 std::cerr << border << ' ' << wxString( ' ', maxLen ) << ' ' << border << std::endl;
114
115 for( wxString msg : messages )
116 std::cerr << border << ' ' << msg.Pad( maxLen - msg.length() ) << ' ' << border
117 << std::endl;
118
119 std::cerr << border << ' ' << wxString( ' ', maxLen ) << ' ' << border << std::endl;
120 std::cerr << wxString( ch, maxLen + 2 + border.length() * 2 ) << std::endl;
121 }
122
123#ifdef _WIN32
124 std::cerr << std::endl << "Press any key to abort..." << std::endl;
125 (void) std::getchar();
126#endif
127
128 abort();
129 }
130
131 if( result )
132 {
133 Py_XDECREF( pFunc );
134 return result;
135 }
136 }
137 else
138 {
139 wxString msg = wxString::Format( _( "Method '%s' not found, or not callable" ), aMethod );
140 wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
141 }
142
143 if( pFunc )
144 {
145 Py_XDECREF( pFunc );
146 }
147
148 return nullptr;
149}
150
151
152wxString PYTHON_ACTION_PLUGIN::CallRetStrMethod( const char* aMethod, PyObject* aArglist )
153{
154 wxString ret;
155 PyLOCK lock;
156
157 PyObject* result = CallMethod( aMethod, aArglist );
158
159 ret = PyStringToWx( result );
160 Py_XDECREF( result );
161
162 return ret;
163}
164
165
167{
168 PyLOCK lock;
169
170 return CallRetStrMethod( "GetCategoryName" );
171}
172
173
175{
176 PyLOCK lock;
177
178 return CallRetStrMethod( "GetClassName" );
179}
180
181
183{
184 PyLOCK lock;
185
186 wxString name = CallRetStrMethod( "GetName" );
188
189 return name;
190}
191
192
194{
195 PyLOCK lock;
196
197 return CallRetStrMethod( "GetDescription" );
198}
199
200
202{
203 PyLOCK lock;
204
205 PyObject* result = CallMethod( "GetShowToolbarButton");
206
207 return PyObject_IsTrue(result);
208}
209
210
212{
213 PyLOCK lock;
214
215 PyObject* arglist = Py_BuildValue( "(i)", static_cast<int>( aDark ) );
216
217 wxString result = CallRetStrMethod( "GetIconFileName", arglist );
218
219 Py_DECREF( arglist );
220
221 return result;
222}
223
224
226{
227 PyLOCK lock;
228
229 return CallRetStrMethod( "GetPluginPath" );
230}
231
232
234{
235 PyLOCK lock;
236
237 CallMethod( "Run" );
238}
239
240
242{
243 return (void*) m_PyAction;
244}
245
246
247void PYTHON_ACTION_PLUGINS::register_action( PyObject* aPyAction )
248{
249 PYTHON_ACTION_PLUGIN* fw = new PYTHON_ACTION_PLUGIN( aPyAction );
250
251 fw->register_action();
252}
253
254
256{
257 // deregister also destroys the previously created "PYTHON_ACTION_PLUGIN object"
258 ACTION_PLUGINS::deregister_object( (void*) aPyAction );
259}
260
261
262void PCB_EDIT_FRAME::OnActionPluginMenu( wxCommandEvent& aEvent )
263{
264 ACTION_PLUGIN* actionPlugin = ACTION_PLUGINS::GetActionByMenu( aEvent.GetId() );
265
266 if( actionPlugin )
267 RunActionPlugin( actionPlugin );
268}
269
270
271void PCB_EDIT_FRAME::OnActionPluginButton( wxCommandEvent& aEvent )
272{
273 ACTION_PLUGIN* actionPlugin = ACTION_PLUGINS::GetActionByButton( aEvent.GetId() );
274
275 if( actionPlugin )
276 RunActionPlugin( actionPlugin );
277}
278
280{
281
282 PICKED_ITEMS_LIST itemsList;
283 BOARD* currentPcb = GetBoard();
284 bool fromEmpty = false;
285
286 for( BOARD_ITEM* item : currentPcb->GetItemSet() )
287 {
288 ITEM_PICKER picker( nullptr, item, UNDO_REDO::CHANGED );
289 itemsList.PushItem( picker );
290 }
291
292 if( itemsList.GetCount() > 0 )
294 else
295 fromEmpty = true;
296
297 itemsList.ClearItemsList();
298
299 BOARD_COMMIT commit( this );
300
301 // Execute plugin itself...
303 aActionPlugin->Run();
305
306 // Get back the undo buffer to fix some modifications
307 PICKED_ITEMS_LIST* oldBuffer = nullptr;
308
309 if( fromEmpty )
310 {
311 oldBuffer = new PICKED_ITEMS_LIST();
312 }
313 else
314 {
315 oldBuffer = PopCommandFromUndoList();
316 wxASSERT( oldBuffer );
317 }
318
319 // Try do discover what was modified
320 PICKED_ITEMS_LIST deletedItemsList;
321
322 // The list of existing items after running the action script
323 const auto currItemList = currentPcb->GetItemSet();
324
325 // Found deleted items
326 for( unsigned int i = 0; i < oldBuffer->GetCount(); i++ )
327 {
328 BOARD_ITEM* item = (BOARD_ITEM*) oldBuffer->GetPickedItem( i );
329 ITEM_PICKER picker( nullptr, item, UNDO_REDO::DELETED );
330
331 wxASSERT( item );
332
333 if( currItemList.find( item ) == currItemList.end() )
334 {
335 deletedItemsList.PushItem( picker );
336 commit.Removed( item );
337 }
338 }
339
340 // Mark deleted elements in undolist
341
342 for( unsigned int i = 0; i < deletedItemsList.GetCount(); i++ )
343 {
344 oldBuffer->PushItem( deletedItemsList.GetItemWrapper( i ) );
345 }
346
347 // Find new items
348 for( BOARD_ITEM* item : currentPcb->GetItemSet() )
349 {
350 if( !oldBuffer->ContainsItem( item ) )
351 {
352 ITEM_PICKER picker( nullptr, item, UNDO_REDO::NEWITEM );
353 oldBuffer->PushItem( picker );
354 commit.Added( item );
355 }
356 }
357
358 if( oldBuffer->GetCount() )
359 {
360 OnModify();
361 PushCommandToUndoList( oldBuffer );
362 }
363 else
364 {
365 delete oldBuffer;
366 }
367
368 // Apply changes, UndoList already handled
369 commit.Push( _( "Apply Action Script" ), SKIP_UNDO | SKIP_SET_DIRTY );
370
372}
373
374
376{
377 // The list of existing items after running the action script
378 const BOARD_ITEM_SET items = GetBoard()->GetItemSet();
379
380 // Sync selection with items selection state
381 SELECTION& selection = GetCurrentSelection();
383 EDA_ITEMS to_add;
384 EDA_ITEMS to_remove;
385
386 for( BOARD_ITEM* item : items )
387 {
388 if( item->IsSelected() && !selection.Contains( item ) )
389 {
390 item->ClearSelected(); // temporarily
391 to_add.push_back( item );
392 }
393 }
394
395 for( EDA_ITEM* item : selection.GetItems() )
396 {
397 if( !item->IsSelected() && item->IsBOARD_ITEM() )
398 to_remove.push_back( static_cast<BOARD_ITEM*>( item ) );
399 }
400
401 if( !to_add.empty() )
402 selTool->AddItemsToSel( &to_add );
403
404 if( !to_remove.empty() )
405 selTool->RemoveItemsFromSel( &to_remove );
406
407 m_pcb->BuildConnectivity();
408
409 PCB_DRAW_PANEL_GAL* canvas = GetCanvas();
410
411 canvas->GetView()->Clear();
412 canvas->GetView()->InitPreview();
413 canvas->GetGAL()->SetGridOrigin( VECTOR2D( m_pcb->GetDesignSettings().GetGridOrigin() ) );
414 canvas->DisplayBoard( m_pcb );
415
416 // allow tools to re-add their view items (selection previews, grids, etc.)
417 if( m_toolManager )
418 m_toolManager->ResetTools( TOOL_BASE::REDRAW );
419
420 // reload the drawing-sheet
421 SetPageSettings( m_pcb->GetPageSettings() );
422
423 canvas->SyncLayersVisibility( m_pcb );
424
425 canvas->Refresh();
426}
427
428
430{
431 if( !actionMenu ) // Should not occur.
432 return;
433
435
436 for( int ii = 0; ii < ACTION_PLUGINS::GetActionsCount(); ii++ )
437 {
438 wxMenuItem* item;
440
441 wxBitmapBundle bundle;
442
443 if( ap->iconBitmap.IsOk() && ap->iconBitmap.GetHeight() > 0 )
444 {
445 wxBitmap bmp = ap->iconBitmap;
446 wxSize size = bmp.GetSize();
447 double defScale = (double) iconSize / size.GetHeight();
448 wxSize defSize( iconSize, wxRound( size.GetWidth() * defScale ) );
449
450 wxBitmap bmp1 = bmp;
451 wxBitmapHelpers::Rescale( bmp1, defSize );
452
453 wxBitmap bmp2 = bmp;
454 wxBitmapHelpers::Rescale( bmp2, defSize * 2 );
455
456 bundle = wxBitmapBundle::FromBitmaps( bmp1, bmp2 );
457 }
458 else
459 {
460 bundle = KiBitmapBundleDef( BITMAPS::puzzle_piece, iconSize );
461 }
462
463 item = KIUI::AddMenuItem( actionMenu, wxID_ANY, ap->GetName(), ap->GetDescription(), bundle );
464
465 Connect( item->GetId(), wxEVT_COMMAND_MENU_SELECTED,
466 wxCommandEventHandler( PCB_EDIT_FRAME::OnActionPluginMenu ) );
467
468 ACTION_PLUGINS::SetActionMenu( ii, item->GetId() );
469 }
470}
471
472
474{
475 bool need_separator = true;
476 const std::vector<LEGACY_OR_API_PLUGIN>& orderedPlugins = GetOrderedActionPlugins();
477
479
480 for( const auto& entry : orderedPlugins )
481 {
482 // API plugins are handled by EDA_BASE_FRAME
483 if( !std::holds_alternative<ACTION_PLUGIN*>( entry ) )
484 continue;
485
486 ACTION_PLUGIN* ap = std::get<ACTION_PLUGIN*>( entry );
487
489 {
490 if( need_separator )
491 {
492 aToolbar->AddScaledSeparator( this );
493 need_separator = false;
494 }
495
496 // Add button
497 wxBitmapBundle bundle;
498
499 if( ap->iconBitmap.IsOk() && ap->iconBitmap.GetHeight() > 0 )
500 {
501 wxBitmap bmp = ap->iconBitmap;
502 wxSize size = bmp.GetSize();
503 double defScale = (double) iconSize / size.GetHeight();
504 wxSize defSize( iconSize, wxRound( size.GetWidth() * defScale ) );
505
506 wxBitmap bmp1 = bmp;
507 wxBitmapHelpers::Rescale( bmp1, defSize );
508
509 wxBitmap bmp2 = bmp;
510 wxBitmapHelpers::Rescale( bmp2, defSize * 2 );
511
512 bundle = wxBitmapBundle::FromBitmaps( bmp1, bmp2 );
513 }
514 else
515 {
516 bundle = KiBitmapBundleDef( BITMAPS::puzzle_piece, iconSize );
517 }
518
519 wxAuiToolBarItem* button = aToolbar->AddTool( wxID_ANY, wxEmptyString, bundle, ap->GetName() );
520
521 Connect( button->GetId(), wxEVT_COMMAND_MENU_SELECTED,
522 wxCommandEventHandler( PCB_EDIT_FRAME::OnActionPluginButton ) );
523
524 // Link action plugin to button
525 ACTION_PLUGINS::SetActionButton( ap, button->GetId() );
526 }
527 }
528}
529
530
531std::vector<LEGACY_OR_API_PLUGIN> PCB_EDIT_FRAME::GetOrderedActionPlugins()
532{
534 std::vector<ACTION_PLUGIN*> plugins;
535 std::vector<LEGACY_OR_API_PLUGIN> orderedPlugins;
536
537 for( int i = 0; i < ACTION_PLUGINS::GetActionsCount(); i++ )
538 plugins.push_back( ACTION_PLUGINS::GetAction( i ) );
539
540 // First add plugins that have entries in settings
541 if( cfg )
542 {
543 for( const auto& [path, show] : cfg->m_VisibleActionPlugins )
544 {
545 auto loc = std::find_if( plugins.begin(), plugins.end(),
546 [&path] ( ACTION_PLUGIN* plugin )
547 {
548 return plugin->GetPluginPath() == path;
549 } );
550
551 if( loc != plugins.end() )
552 {
553 orderedPlugins.push_back( *loc );
554 plugins.erase( loc );
555 }
556 }
557 }
558
559 // Now append new plugins that have not been configured yet
560 for( ACTION_PLUGIN* remaining_plugin : plugins )
561 orderedPlugins.push_back( remaining_plugin );
562
563 // Finally append API plugins
565 orderedPlugins.push_back( action );
566
567 return orderedPlugins;
568}
569
570
571bool PCB_EDIT_FRAME::GetActionPluginButtonVisible( const wxString& aPluginPath, bool aPluginDefault )
572{
573 if( PCBNEW_SETTINGS* cfg = GetAppSettings<PCBNEW_SETTINGS>( "pcbnew" ) )
574 {
575 for( const auto& [path, visible] : cfg->m_VisibleActionPlugins )
576 {
577 if( path == aPluginPath )
578 return visible;
579 }
580
581 for( const auto& [identifier, visible] : cfg->m_Plugins.actions )
582 {
583 if( identifier == aPluginPath )
584 return visible;
585 }
586 }
587
588 // Plugin is not in settings, return default.
589 return aPluginDefault;
590}
const char * name
wxBitmapBundle KiBitmapBundleDef(BITMAPS aBitmap, int aDefHeight)
Constructs and returns a bitmap bundle for the given icon ID, with the default bitmap size being aDef...
Definition bitmap.cpp:116
std::set< BOARD_ITEM *, CompareByUuid > BOARD_ITEM_SET
Set of BOARD_ITEMs ordered by UUID.
Definition board.h:306
Define the structure of a menu based on ACTIONs.
Definition action_menu.h:47
static bool deregister_object(void *aObject)
Deregister an object which builds a action.
static ACTION_PLUGIN * GetActionByMenu(int aMenu)
Find action plugin associated to a menu ID.
static int GetActionsCount()
static ACTION_PLUGIN * GetAction(const wxString &aName)
static void SetActionButton(ACTION_PLUGIN *aAction, int idButton)
Associate a button id to an action plugin.
static void SetActionMenu(int aIndex, int idMenu)
Associate a menu id to an action plugin.
static void SetActionRunning(bool aRunning)
static ACTION_PLUGIN * GetActionByButton(int aButton)
Find action plugin associated to a button ID.
This is the parent class from where any action plugin class must derive.
wxBitmap iconBitmap
void register_action()
It's the standard method of a "ACTION_PLUGIN" to register itself into the ACTION_PLUGINS singleton ma...
virtual wxString GetDescription()=0
virtual wxString GetPluginPath()=0
virtual wxString GetName()=0
virtual void Run()=0
This method the the action.
virtual bool GetShowToolbarButton()=0
Define the structure of a toolbar with buttons that invoke ACTIONs.
void AddScaledSeparator(wxWindow *aWindow)
Add a separator that introduces space on either side to not squash the tools when scaled.
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:322
const BOARD_ITEM_SET GetItemSet()
Definition board.cpp:3557
COMMIT & Added(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Notify observers that aItem has been added.
Definition commit.h:84
COMMIT & Removed(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Definition commit.h:96
APPEARANCE m_Appearance
virtual void PushCommandToUndoList(PICKED_ITEMS_LIST *aItem)
Add a command to undo in the undo list.
virtual PICKED_ITEMS_LIST * PopCommandFromUndoList()
Return the last command to undo and remove it from list, nothing is deleted.
static std::vector< const PLUGIN_ACTION * > GetOrderedPluginActions(PLUGIN_ACTION_SCOPE aScope, APP_SETTINGS_BASE *aCfg)
Return ordered list of plugin actions for display in the toolbar.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
KIGFX::GAL * GetGAL() const
Return a pointer to the GAL instance used in the panel.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:99
void SetGridOrigin(const VECTOR2D &aGridOrigin)
Set the origin point for the grid.
void Clear()
Remove all items from the view.
Definition view.cpp:1148
void InitPreview()
Definition view.cpp:1737
ACTION_PLUGIN_SETTINGS_LIST m_VisibleActionPlugins
void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand) override
Create a new entry in undo list of commands.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
BOARD * GetBoard() const
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void DisplayBoard(BOARD *aBoard, PROGRESS_REPORTER *aReporter=nullptr)
Add all items from the current board to the VIEW, so they can be displayed by GAL.
void SyncLayersVisibility(const BOARD *aBoard)
Update "visibility" property of each layer of a given BOARD.
void OnModify() override
Must be called after a board change to set the modified flag.
static std::vector< std::variant< ACTION_PLUGIN *, const PLUGIN_ACTION * > > GetOrderedActionPlugins()
Return ordered list of plugins in sequence in which they should appear on toolbar or in settings.
void SetPageSettings(const PAGE_INFO &aPageSettings) override
void OnActionPluginButton(wxCommandEvent &aEvent)
Launched by the button when an action is called.
void RunActionPlugin(ACTION_PLUGIN *aActionPlugin)
Execute action plugin's Run() method and updates undo buffer.
void buildActionPluginMenus(ACTION_MENU *aActionMenu)
Fill action menu with all registered action plugins.
void addActionPluginTools(ACTION_TOOLBAR *aToolbar)
Append action plugin buttons to given toolbar.
void RebuildAndRefresh()
Rebuilds board connectivity, refreshes canvas.
static bool GetActionPluginButtonVisible(const wxString &aPluginPath, bool aPluginDefault)
Return true if button visibility action plugin setting was set to true or it is unset and plugin defa...
SELECTION & GetCurrentSelection() override
Get the current selection from the canvas area.
void OnActionPluginMenu(wxCommandEvent &aEvent)
Launched by the menu when an action is called.
The selection tool: currently supports:
virtual COMMON_SETTINGS * GetCommonSettings() const
Definition pgm_base.cpp:541
A holder to handle information on schematic or board items.
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
const ITEM_PICKER & GetItemWrapper(unsigned int aIdx) const
bool ContainsItem(const EDA_ITEM *aItem) const
unsigned GetCount() const
void ClearItemsList()
Delete only the list of pickers NOT the picked data itself.
EDA_ITEM * GetPickedItem(unsigned int aIdx) const
static void deregister_action(PyObject *aPyAction)
static void register_action(PyObject *aPyAction)
wxString CallRetStrMethod(const char *aMethod, PyObject *aArglist=nullptr)
PyObject * CallMethod(const char *aMethod, PyObject *aArglist=nullptr)
wxString GetCategoryName() override
wxString GetDescription() override
wxString GetPluginPath() override
PYTHON_ACTION_PLUGIN(PyObject *action)
void Run() override
This method the the action.
wxString GetIconFileName(bool aDark) override
wxString GetClassName() override
void * GetObject() override
This method gets the pointer to the object from where this action constructs.
int AddItemsToSel(const TOOL_EVENT &aEvent)
int RemoveItemsFromSel(const TOOL_EVENT &aEvent)
const std::deque< EDA_ITEM * > GetItems() const
Definition selection.h:126
bool Contains(EDA_ITEM *aItem) const
Definition selection.cpp:84
TOOL_MANAGER * m_toolManager
@ REDRAW
Full drawing refresh.
Definition tool_base.h:83
#define _(s)
bool AttachConsole(bool aTryAlloc)
Tries to attach a console window with stdout, stderr and stdin.
Definition unix/app.cpp:51
KICOMMON_API wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmapBundle &aImage, wxItemKind aType=wxITEM_NORMAL)
Create and insert a menu item with an icon into aMenu.
#define _HKI(x)
Definition page_info.cpp:44
Class PCBNEW_ACTION_PLUGINS.
PGM_BASE & Pgm()
The global program "get" accessor.
see class PGM_BASE
#define SKIP_SET_DIRTY
Definition sch_commit.h:42
#define SKIP_UNDO
Definition sch_commit.h:40
std::vector< EDA_ITEM * > EDA_ITEMS
T * GetAppSettings(const char *aFilename)
An action performed by a plugin via the IPC API (not to be confused with ACTION_PLUGIN,...
Definition api_plugin.h:72
std::string path
wxString result
Test unit parsing edge cases and error handling.
VECTOR2< double > VECTOR2D
Definition vector2d.h:694