KiCad PCB EDA Suite
Loading...
Searching...
No Matches
display_footprints_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) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 2015 Wayne Stambaugh <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#include <bitmaps.h>
23#include <board.h>
24#include <footprint.h>
25#include <pad.h>
26#include <common.h>
27#include <confirm.h>
31#include <id.h>
32#include <kiface_base.h>
33#include <lib_id.h>
34#include <macros.h>
35#include <widgets/msgpanel.h>
36#include <pcb_draw_panel_gal.h>
37#include <pcb_painter.h>
38#include <pgm_base.h>
39#include <reporter.h>
41#include <widgets/wx_infobar.h>
42#include <tool/action_toolbar.h>
43#include <tool/common_tools.h>
45#include <tool/tool_manager.h>
46#include <tool/zoom_tool.h>
47#include <cvpcb_mainframe.h>
49#include <string_utils.h>
50#include <tools/cvpcb_actions.h>
51#include <tools/pcb_actions.h>
52#include <tools/pcb_editor_conditions.h> // Shared conditions with other Pcbnew frames
53#include <tools/pcb_viewer_tools.h> // shared tools with other Pcbnew frames
56#include <wx/choice.h>
57#include <wx/debug.h>
58#include <cvpcb_id.h>
59#include <project_pcb.h>
60
61BEGIN_EVENT_TABLE( DISPLAY_FOOTPRINTS_FRAME, PCB_BASE_FRAME )
62 EVT_CLOSE( DISPLAY_FOOTPRINTS_FRAME::OnCloseWindow )
65END_EVENT_TABLE()
66
67
69 PCB_BASE_FRAME( aKiway, aParent, FRAME_CVPCB_DISPLAY, _( "Footprint Viewer" ),
70 wxDefaultPosition, wxDefaultSize,
72 m_currentComp( nullptr )
73{
74 // Give an icon
75 wxIcon icon;
76 icon.CopyFromBitmap( KiBitmap( BITMAPS::icon_cvpcb ) );
77 SetIcon( icon );
78
79 SetBoard( new BOARD() );
80
81 // This board will only be used to hold a footprint for viewing
82 GetBoard()->SetBoardUse( BOARD_USE::FPHOLDER );
83
85
86 // Create GAL canvas before loading settings
88
89 PCB_DRAW_PANEL_GAL* gal_drawPanel = new PCB_DRAW_PANEL_GAL( this, -1, wxPoint( 0, 0 ), m_frameSize,
91 SetCanvas( gal_drawPanel );
92
93 // Don't show the default board solder mask expansion. Only the footprint or pad expansion
94 // settings should be shown.
95 GetBoard()->GetDesignSettings().m_SolderMaskExpansion = 0;
96
98
99 // Create the manager and dispatcher & route draw panel events to the dispatcher
101 m_toolManager->SetEnvironment( GetBoard(), gal_drawPanel->GetView(),
102 gal_drawPanel->GetViewControls(), config(), this );
103 m_actions = new CVPCB_ACTIONS();
105 gal_drawPanel->SetEventDispatcher( m_toolDispatcher );
106
107 m_toolManager->RegisterTool( new COMMON_TOOLS );
108 m_toolManager->RegisterTool( new ZOOM_TOOL );
110 m_toolManager->RegisterTool( new PCB_VIEWER_TOOLS );
111
112 m_toolManager->GetTool<PCB_VIEWER_TOOLS>()->SetFootprintFrame( true );
113
114 m_toolManager->InitTools();
115
117
121
122 // Run the control tool, it is supposed to be always active
123 m_toolManager->InvokeTool( "common.InteractiveSelection" );
124
125 m_auimgr.SetManagedWindow( this );
126
128 m_auimgr.AddPane( m_tbTopMain, EDA_PANE().HToolbar().Name( wxS( "TopMainToolbar" ) )
129 .Top().Layer( 6 ) );
130 m_auimgr.AddPane( m_tbLeft, EDA_PANE().VToolbar().Name( wxS( "LeftToolbar" ) )
131 .Left().Layer( 3 ) );
132 m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( wxS( "DrawFrame" ) )
133 .Center() );
134 m_auimgr.AddPane( m_messagePanel, EDA_PANE().Messages().Name( wxS( "MsgPanel" ) )
135 .Bottom().Layer( 6 ) );
136
139
141 galOpts.m_axesEnabled = true;
142
143 // Call resolveCanvasType after loading settings:
146
147 setupUnits( config() );
148
149 // Restore last zoom. (If auto-zooming we'll adjust when we load the footprint.)
150 CVPCB_SETTINGS* cfg = dynamic_cast<CVPCB_SETTINGS*>( config() );
151
152 if( cfg )
153 GetCanvas()->GetView()->SetScale( cfg->m_FootprintViewerZoom );
154
155 updateView();
156
157 Show( true );
158
159 // Register a call to update the toolbar sizes. It can't be done immediately because
160 // it seems to require some sizes calculated that aren't yet (at least on GTK).
161 CallAfter( [this]()
162 {
163 // Ensure the controls on the toolbars all are correctly sized
165 } );
166}
167
168
170{
171 // Shutdown all running tools
172 if( m_toolManager )
173 m_toolManager->ShutdownAllTools();
174
177 GetCanvas()->GetView()->Clear();
178 // Be sure any event cannot be fired after frame deletion:
179 GetCanvas()->SetEvtHandlerEnabled( false );
180
181 delete GetScreen();
182 SetScreen( nullptr ); // Be sure there is no double deletion
183 setFPWatcher( nullptr );
184}
185
186
210
211
213{
214 // We don't allow people to change this right now, so make sure it's on
216
217 if( CVPCB_SETTINGS* cfg = dynamic_cast<CVPCB_SETTINGS*>( aCfg ) )
218 {
220 SetDisplayOptions( cfg->m_FootprintViewerDisplayOptions );
221 }
222}
223
224
226{
228
229 if( CVPCB_SETTINGS* cfg = dynamic_cast<CVPCB_SETTINGS*>( aCfg ) )
230 {
231 cfg->m_FootprintViewerDisplayOptions = GetDisplayOptions();
232 cfg->m_FootprintViewerZoom = GetCanvas()->GetView()->GetScale();
233 }
234}
235
236
238{
239 if( CVPCB_SETTINGS* cfg = GetAppSettings<CVPCB_SETTINGS>( "cvpcb" ) )
240 return &cfg->m_FootprintViewer;
241
242 wxFAIL_MSG( wxT( "DISPLAY_FOOTPRINTS_FRAME not running with CVPCB_SETTINGS" ) );
243 return &aCfg->m_Window; // non-null fail-safe
244}
245
246
251
252
254{
255 static MAGNETIC_SETTINGS fallback;
256
257 if( CVPCB_SETTINGS* cfg = GetAppSettings<CVPCB_SETTINGS>( "cvpcb" ) )
258 return &cfg->m_FootprintViewerMagneticSettings;
259
260 wxFAIL_MSG( wxT( "DISPLAY_FOOTPRINTS_FRAME not running with CVPCB_SETTINGS" ) );
261 return &fallback;
262}
263
264
269
270
271FOOTPRINT* DISPLAY_FOOTPRINTS_FRAME::GetFootprint( const wxString& aFootprintName, REPORTER& aReporter )
272{
273 FOOTPRINT* footprint = nullptr;
274 LIB_ID fpid;
275
276 if( fpid.Parse( aFootprintName ) >= 0 )
277 {
278 aReporter.Report( wxString::Format( _( "Footprint ID '%s' is not valid." ), aFootprintName ),
280 return nullptr;
281 }
282
283 wxString libNickname = From_UTF8( fpid.GetLibNickname().c_str() );
284 wxString fpName = From_UTF8( fpid.GetLibItemName().c_str() );
285
287
288 // See if the library requested is in the library table
289 if( !adapter->HasLibrary( libNickname ) )
290 {
291 aReporter.Report( wxString::Format( _( "Library '%s' is not in the footprint library table." ),
292 libNickname ),
294 return nullptr;
295 }
296
297 // See if the footprint requested is in the library
298 if( !adapter->FootprintExists( libNickname, fpName ) )
299 {
300 aReporter.Report( wxString::Format( _( "Footprint '%s' not found." ), aFootprintName ),
302 return nullptr;
303 }
304
305 try
306 {
307 footprint = adapter->LoadFootprint( libNickname, fpName, false );
308 }
309 catch( const IO_ERROR& ioe )
310 {
311 aReporter.Report( wxString::Format( _( "Error loading footprint: %s" ), ioe.What() ),
313 return nullptr;
314 }
315
316 if( footprint )
317 {
318 footprint->SetFPID( fpid );
319 footprint->SetParent( (EDA_ITEM*) GetBoard() );
320 footprint->SetPosition( VECTOR2I( 0, 0 ) );
321 return footprint;
322 }
323
324 aReporter.Report( wxString::Format( _( "Footprint '%s' not found." ), aFootprintName ),
326 return nullptr;
327}
328
329
331{
332 if( !aFootprint || !m_currentComp )
333 return;
334
336 GetCanvas()->GetView()->Clear();
337
338 for( PAD* pad : aFootprint->Pads() )
339 {
340 const COMPONENT_NET& net = m_currentComp->GetNet( pad->GetNumber() );
341
342 if( !net.GetPinFunction().IsEmpty() )
343 pad->SetPinFunction( net.GetPinFunction() );
344 }
345
347
348 GetBoard()->Add( aFootprint );
349 updateView();
350 GetCanvas()->Refresh();
351}
352
353
355{
356 CVPCB_MAINFRAME* parentframe = (CVPCB_MAINFRAME *) GetParent();
357 COMPONENT* comp = parentframe->GetSelectedComponent();
358 FOOTPRINT* footprint = nullptr;
359 const FOOTPRINT_INFO* fpInfo = nullptr;
360
361 wxString footprintName = parentframe->GetSelectedFootprint();
362
363 if( footprintName.IsEmpty() && comp )
364 footprintName = comp->GetFPID().Format().wx_str();
365
366 if( m_currentFootprint == footprintName && m_currentComp == comp )
367 return;
368
370 GetCanvas()->GetView()->Clear();
371
372 INFOBAR_REPORTER infoReporter( m_infoBar );
373 m_infoBar->Dismiss();
374
375 if( !footprintName.IsEmpty() )
376 {
377 SetTitle( wxString::Format( _( "Footprint: %s" ), footprintName ) );
378
379 footprint = GetFootprint( footprintName, infoReporter );
380
381 fpInfo = parentframe->m_FootprintsList->GetFootprintInfo( footprintName );
382 }
383
384 if( footprint )
385 {
386 if( comp )
387 {
388 for( PAD* pad : footprint->Pads() )
389 {
390 const COMPONENT_NET& net = comp->GetNet( pad->GetNumber() );
391
392 if( !net.GetPinFunction().IsEmpty() )
393 pad->SetPinFunction( net.GetPinFunction() );
394 }
395 }
396
397 GetBoard()->Add( footprint );
398 GetCanvas()->GetView()->Update( footprint );
399 m_currentFootprint = footprintName;
401 setFPWatcher( footprint );
402 }
403
404 if( fpInfo )
405 SetStatusText( wxString::Format( _( "Lib: %s" ), fpInfo->GetLibNickname() ), 0 );
406 else
407 SetStatusText( wxEmptyString, 0 );
408
409 infoReporter.Finalize();
410
411 updateView();
412
414
415 GetCanvas()->Refresh();
416 Update3DView( true, true );
417}
418
419
421{
422 PCB_DRAW_PANEL_GAL* dp = static_cast<PCB_DRAW_PANEL_GAL*>( GetCanvas() );
423 dp->UpdateColors();
424 dp->DisplayBoard( GetBoard() );
425
427
428 CVPCB_SETTINGS* cfg = dynamic_cast<CVPCB_SETTINGS*>( config() );
429 wxCHECK( cfg, /* void */ );
430
433 else
435
437}
438
439
441{
442 FOOTPRINT* footprint = GetBoard()->GetFirstFootprint();
443 std::vector<MSG_PANEL_ITEM> items;
444
445 if( footprint )
446 footprint->GetMsgPanelInfo( this, items );
447
448 SetMsgPanel( items );
449}
450
451
453{
455 return ::GetColorSettings( cfg ? cfg->m_ColorTheme : DEFAULT_THEME );
456}
457
458
463
464
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:100
@ FPHOLDER
Definition board.h:401
static TOOL_ACTION toggleGrid
Definition actions.h:194
static TOOL_ACTION centerContents
Definition actions.h:145
static TOOL_ACTION measureTool
Definition actions.h:248
static TOOL_ACTION selectionTool
Definition actions.h:247
static TOOL_ACTION zoomFitScreen
Definition actions.h:138
static TOOL_ACTION zoomTool
Definition actions.h:142
Manage TOOL_ACTION objects.
void SetConditions(const TOOL_ACTION &aAction, const ACTION_CONDITIONS &aConditions)
Set the conditions the UI elements for activating a specific tool action should use for determining t...
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
WINDOW_SETTINGS m_Window
wxString m_ColorTheme
Active color theme name.
Abstract interface for BOARD_ITEMs capable of storing other items inside.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
Definition board.cpp:1497
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
Definition board.h:704
void DeleteAllFootprints()
Remove all footprints from the deque and free the memory associated with them.
Definition board.cpp:2077
Color settings are a bit different than most of the settings objects in that there can be more than o...
Handles action that are shared between different applications.
Used to store the component pin name to net name (and pin function) associations stored in a netlist.
const wxString & GetPinFunction() const
Store all of the related component information found in a netlist.
Gather all the actions that are shared by tools.
Selection tool for the footprint viewer in CvPcb.
The CvPcb application main window.
wxString GetSelectedFootprint()
FOOTPRINT_LIST * m_FootprintsList
COMPONENT * GetSelectedComponent()
Get the selected component from the component listbox.
DISPLAY_FOOTPRINTS_FRAME(KIWAY *aKiway, wxWindow *aParent)
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void InitDisplay()
Refresh the full display for this frame.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Helper to retrieve the current color settings.
void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
WINDOW_SETTINGS * GetWindowSettings(APP_SETTINGS_BASE *aCfg) override
Return a pointer to the window settings for this frame.
void UpdateMsgPanel() override
Redraw the message panel.
SELECTION & GetCurrentSelection() override
Get the current selection from the canvas area.
void updateView()
Update the gal canvas (view, colors ...).
BOARD_ITEM_CONTAINER * GetModel() const override
MAGNETIC_SETTINGS * GetMagneticItemsSettings() override
PCB_VIEWERS_SETTINGS_BASE * GetViewerSettingsBase() const override
void ReloadFootprint(FOOTPRINT *aFootprint) override
Reload the footprint from the library.
FOOTPRINT * GetFootprint(const wxString &aFootprintName, REPORTER &aReporter)
virtual APP_SETTINGS_BASE * config() const
Return the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
virtual void setupUIConditions()
Setup the UI conditions for the various actions and their controls in this frame.
virtual void UpdateToolbarControlSizes()
Update the sizes of any controls in the toolbars of the frame.
WX_INFOBAR * m_infoBar
TOOLBAR_SETTINGS * m_toolbarSettings
wxAuiManager m_auimgr
virtual void RecreateToolbars()
ACTION_TOOLBAR * m_tbLeft
ACTION_TOOLBAR * m_tbTopMain
void configureToolbars() override
EDA_DRAW_PANEL_GAL::GAL_TYPE m_canvasType
The current canvas type.
void OnSelectGrid(wxCommandEvent &event)
Command event handler for selecting grid sizes.
void setupUnits(APP_SETTINGS_BASE *aCfg)
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
virtual void OnSelectZoom(wxCommandEvent &event)
Set the zoom factor when selected by the zoom list box in the main tool bar.
GAL_DISPLAY_OPTIONS_IMPL & GetGalDisplayOptions()
Return a reference to the gal rendering options used by GAL for rendering.
virtual void resolveCanvasType()
Determine the canvas type to load (with prompt if required) and initializes m_canvasType.
EDA_MSG_PANEL * m_messagePanel
void SetCanvas(EDA_DRAW_PANEL_GAL *aPanel)
virtual void SetScreen(BASE_SCREEN *aScreen)
EDA_DRAW_PANEL_GAL::GAL_TYPE loadCanvasTypeSetting()
Return the canvas type stored in the application settings.
void StopDrawing()
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called.
KIGFX::VIEW_CONTROLS * GetViewControls() const
Return a pointer to the #VIEW_CONTROLS instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
void SetEventDispatcher(TOOL_DISPATCHER *aEventDispatcher)
Set a dispatcher that processes events and forwards them to tools.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
virtual void SetParent(EDA_ITEM *aParent)
Definition eda_item.cpp:153
Specialization of the wxAuiPaneInfo class for KiCad panels.
SELECTION_CONDITION CurrentTool(const TOOL_ACTION &aTool)
Create a functor testing if the specified tool is the current active tool in the frame.
SELECTION_CONDITION GridVisible()
Create a functor testing if the grid is visible in a frame.
wxString GetLibNickname() const override
An interface to the global shared library manager that is schematic-specific and linked to one projec...
FOOTPRINT * LoadFootprint(const wxString &aNickname, const wxString &aName, bool aKeepUUID)
Load a FOOTPRINT having aName from the library given by aNickname.
bool FootprintExists(const wxString &aNickname, const wxString &aName)
FOOTPRINT_INFO * GetFootprintInfo(const wxString &aFootprintName)
Get info for a footprint by id.
void SetPosition(const VECTOR2I &aPos) override
void SetFPID(const LIB_ID &aFPID)
Definition footprint.h:474
std::deque< PAD * > & Pads()
Definition footprint.h:404
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
A wrapper for reporting to a WX_INFOBAR UI element.
Definition wx_infobar.h:324
void Finalize() override
Update the infobar with the reported text.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual const wxString What() const
A composite of Problem() and Where()
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:101
bool m_axesEnabled
Crosshair drawing mode.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Definition pcb_view.cpp:87
double GetScale() const
Definition view.h:281
void Clear()
Remove all items from the view.
Definition view.cpp:1234
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition kiway.h:340
bool HasLibrary(const wxString &aNickname, bool aCheckEnabled=false) const
Test for the existence of aNickname in the library tables.
A logical library item identifier and consists of various portions much like a URI.
Definition lib_id.h:45
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
Definition lib_id.cpp:65
const UTF8 & GetLibItemName() const
Definition lib_id.h:98
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
Definition lib_id.h:83
Definition pad.h:61
static TOOL_ACTION padDisplayMode
static TOOL_ACTION rehatchShapes
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION fpAutoZoom
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION showPadNumbers
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void setFPWatcher(FOOTPRINT *aFootprint)
Create or removes a watcher on the specified footprint.
const VECTOR2I GetPageSizeIU() const override
Works off of GetPageSettings() to return the size of the paper page in the internal units of this par...
PCB_BASE_FRAME(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName)
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual void ActivateGalCanvas() override
Use to start up the GAL drawing canvas.
virtual void SetBoard(BOARD *aBoard, PROGRESS_REPORTER *aReporter=nullptr)
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
PCB_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
BOARD * GetBoard() const
void SetDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions, bool aRefresh=true)
Update the current display options.
virtual void Update3DView(bool aMarkDirty, bool aRefresh, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
virtual void UpdateStatusBar() override
Update the status bar information.
void UpdateColors()
Update the color settings in the painter and GAL.
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.
Group generic conditions for PCB editor states.
SELECTION_CONDITION PadFillDisplay()
Create a functor that tests if the frame fills the pads.
SELECTION_CONDITION GraphicsFillDisplay()
Create a functor that tests if the frame fills graphics items.
SELECTION_CONDITION FootprintViewerAutoZoom()
Create a functor that tests if the footprint viewer should auto zoom on new footprints.
SELECTION_CONDITION PadNumbersDisplay()
Create a functor that tests if the pad numbers are displayed.
SELECTION_CONDITION TextFillDisplay()
Create a functor that tests if the frame fills text items.
bool m_FootprintViewerAutoZoomOnSelect
true to use automatic zoom on fp selection
double m_FootprintViewerZoom
The last zoom level used (0 for auto)
Tool useful for viewing footprints.
static FOOTPRINT_LIBRARY_ADAPTER * FootprintLibAdapter(PROJECT *aProject)
A pure virtual class used to derive REPORTER objects from.
Definition reporter.h:73
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.
Definition reporter.h:102
TOOL_MANAGER * m_toolManager
TOOL_DISPATCHER * m_toolDispatcher
ACTIONS * m_actions
@ MODEL_RELOAD
Model changes (the sheet for a schematic)
Definition tool_base.h:76
Master controller class:
const char * c_str() const
Definition utf8.h:104
@ DARKGRAY
Definition color4d.h:42
This file is part of the common library.
#define CHECK(x)
#define FOOTPRINTVIEWER_FRAME_NAME
#define _(s)
#define KICAD_DEFAULT_DRAWFRAME_STYLE
@ FRAME_CVPCB_DISPLAY
Definition frame_type.h:49
@ ID_ON_GRID_SELECT
Definition id.h:113
@ ID_ON_ZOOM_SELECT
Definition id.h:112
PROJECT & Prj()
Definition kicad.cpp:727
This file contains miscellaneous commonly used macros and functions.
Message panel definition file.
see class PGM_BASE
@ RPT_SEVERITY_ERROR
#define DEFAULT_THEME
T * GetToolbarSettings(const wxString &aFilename)
T * GetAppSettings(const char *aFilename)
wxString From_UTF8(const char *cstring)
Store the common settings that are saved and loaded for each window / frame.
CURSOR_SETTINGS cursor
KIBIS_COMPONENT * comp
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683