73#include <wx/filedlg.h>
109 wxDefaultPosition, wxDefaultSize,
111 m_show_layer_manager_tools( true )
113 m_showBorderAndTitleBlock =
false;
114 m_aboutTitle =
_HKI(
"KiCad Footprint Editor" );
115 m_selLayerBox =
nullptr;
116 m_editorSettings =
nullptr;
120 wxIconBundle icon_bundle;
123 icon_bundle.AddIcon( icon );
125 icon_bundle.AddIcon( icon );
127 icon_bundle.AddIcon( icon );
129 SetIcons( icon_bundle );
132 m_canvasType = loadCanvasTypeSetting();
135 GetGalDisplayOptions(), m_canvasType );
136 SetCanvas( drawPanel );
137 SetBoard(
new BOARD() );
152 restoreLastFootprint();
159 GetGalDisplayOptions().m_axesEnabled =
true;
175 ReCreateOptToolbar();
183 LoadSettings( GetSettings() );
196 m_auimgr.SetManagedWindow(
this );
200 unsigned int auiFlags = wxAUI_MGR_DEFAULT;
201#if !defined( _WIN32 )
204 auiFlags |= wxAUI_MGR_LIVE_RESIZE;
206 m_auimgr.SetFlags( auiFlags );
209 m_auimgr.AddPane( m_mainToolBar,
EDA_PANE().HToolbar().Name(
"MainToolbar" )
212 m_auimgr.AddPane( m_messagePanel,
EDA_PANE().Messages().Name(
"MsgPanel" )
213 .Bottom().Layer( 6 ) );
216 m_auimgr.AddPane( m_treePane,
EDA_PANE().Palette().Name(
"Footprints" )
218 .Caption(
_(
"Libraries" ) )
219 .MinSize( 250, -1 ).BestSize( 250, -1 ) );
220 m_auimgr.AddPane( m_optionsToolBar,
EDA_PANE().VToolbar().Name(
"OptToolbar" )
221 .
Left().Layer( 2 ) );
223 m_auimgr.AddPane( m_drawToolBar,
EDA_PANE().VToolbar().Name(
"ToolsToolbar" )
225 m_auimgr.AddPane( m_appearancePanel,
EDA_PANE().Name(
"LayersManager" )
227 .Caption(
_(
"Appearance" ) ).PaneBorder(
false )
228 .MinSize( 180, -1 ).BestSize( 180, -1 ) );
229 m_auimgr.AddPane( m_selectionFilterPanel,
EDA_PANE().Palette().Name(
"SelectionFilter" )
230 .
Right().Layer( 3 ).Position( 2 )
231 .Caption(
_(
"Selection Filter" ) ).PaneBorder(
false )
232 .MinSize( 160, -1 ).BestSize( m_selectionFilterPanel->GetBestSize() ) );
235 m_auimgr.AddPane( GetCanvas(),
EDA_PANE().Canvas().Name(
"DrawFrame" )
238 m_auimgr.GetPane(
"LayersManager" ).Show( m_show_layer_manager_tools );
239 m_auimgr.GetPane(
"SelectionFilter" ).Show( m_show_layer_manager_tools );
242 m_auimgr.GetPane(
"SelectionFilter" ).dock_proportion = 0;
246 DragAcceptFiles(
true );
250 FinishAUIInitialization();
254 wxAuiPaneInfo& treePane = m_auimgr.GetPane(
"Footprints" );
255 wxAuiPaneInfo& layersManager = m_auimgr.GetPane(
"LayersManager" );
273 layersManager.Fixed();
280 treePane.Resizable();
285 treePane.MinSize( 250, -1 );
286 layersManager.MinSize( 250, -1 );
294 setupUnits( GetSettings() );
316 UpdateToolbarControlSizes();
317 m_treePane->FocusSearchFieldIfExists();
345 std::vector<MSG_PANEL_ITEM> msgItems;
407 wxAuiPaneInfo& layersManager =
m_auimgr.GetPane(
"LayersManager" );
408 wxAuiPaneInfo& selectionFilter =
m_auimgr.GetPane(
"SelectionFilter" );
458 if(
id.GetLibNickname().
empty() )
478 if(
GetBoard()->GetFirstFootprint() )
510 if( libNickname.Length() && footprintName.Length() )
514 id.SetLibItemName( footprintName );
539 msg.Printf(
_(
"Editing %s from board. Saving will update the board only." ),
569 wxFAIL_MSG( wxT(
"Plotting not supported in Footprint Editor" ) );
577 wxFAIL_MSG( wxT(
"Plotting not supported in Footprint Editor" ) );
649 return Pgm().GetSettingsManager().GetColorSettings( currentTheme );
657 wxCHECK( cfg,
nullptr );
668 bool hasGraphicalItem = footprint->
Pads().size() || footprint->
Zones().size();
670 if( !hasGraphicalItem )
677 hasGraphicalItem =
true;
682 if( hasGraphicalItem )
688 BOX2I newFootprintBB( { 0, 0 }, { 0, 0 } );
690 return newFootprintBB;
703 wxString msg =
_(
"Save changes to '%s' before closing?" );
732 aEvent.GetId() == wxEVT_QUERY_END_SESSION )
743 wxString msg =
_(
"Save changes to '%s' before closing?" );
772 m_auimgr.GetPane( wxT(
"LayersManager" ) ).Show(
false );
773 m_auimgr.GetPane( wxT(
"SelectionFilter" ) ).Show(
false );
779 if( mgr->
IsProjectOpen() && wxFileName::IsDirWritable(
Prj().GetProjectPath() ) )
813 bool canInsert = frame && editorFootprint && editorFootprint->
GetLink() ==
niluuid;
816 if( frame && editorFootprint && editorFootprint->
GetLink() !=
niluuid )
824 if( editorFootprint->
GetLink() == candidate->m_Uuid )
832 aEvent.Enable( canInsert );
845 bool tree_shown = tree_pane_info.IsShown();
846 tree_pane_info.Caption(
_(
"Libraries" ) );
849 bool lm_shown = lm_pane_info.IsShown();
850 lm_pane_info.Caption(
_(
"Appearance" ) );
852 sf_pane_info.Caption(
_(
"Selection Filter" ) );
860 lm_pane_info.Show( lm_shown );
861 tree_pane_info.Show( tree_shown );
874 if( !GetTitle().StartsWith( wxT(
"*" ) ) )
884 bool writable =
true;
914 title += wxS(
" " ) +
_(
"[Read Only]" );
923 title += wxS(
" " ) +
_(
"[Unsaved]" );
927 title =
_(
"[no footprint loaded]" );
930 title += wxT(
" \u2014 " ) +
_(
"Footprint Editor" );
961 progressReporter.Show(
false );
985 progressReporter.Show(
false );
1000 if( adapter->FindItem( target ) )
1002 if( targetSelected )
1078 pcbTool->SetIsFootprintEditor(
true );
1100#define ENABLE( x ) ACTION_CONDITIONS().Enable( x )
1101#define CHECK( x ) ACTION_CONDITIONS().Check( x )
1103 auto haveFootprintCond =
1109 auto footprintTargettedCond =
1150 auto constrainedDrawingModeCond =
1156 auto highContrastCond =
1162 auto boardFlippedCond =
1168 auto footprintTreeCond =
1174 auto layerManagerCond =
1177 return m_auimgr.GetPane(
"LayersManager" ).IsShown();
1198 auto isArcKeepCenterMode = [
this](
const SELECTION& )
1203 auto isArcKeepEndpointMode = [
this](
const SELECTION& )
1213#define CURRENT_EDIT_TOOL( action ) mgr->SetConditions( action, \
1214 ACTION_CONDITIONS().Enable( haveFootprintCond ).Check( cond.CurrentTool( action ) ) )
1236#undef CURRENT_EDIT_TOOL
1271 if( aEnvVarsChanged )
1289 wxFileName fn(
id.GetLibItemName() );
1290 fn.SetExt( wxT(
"png" ) );
1292 wxString projectPath = wxPathOnly(
Prj().GetProjectFullName() );
1294 wxFileDialog dlg(
this,
_(
"Footprint Image File Name" ), projectPath,
1295 fn.GetFullName(),
PngFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
1297 if( dlg.ShowModal() == wxID_CANCEL || dlg.GetPath().IsEmpty() )
@ KEEP_ENDPOINTS_OR_START_DIRECTION
@ KEEP_CENTER_ADJUST_ANGLE_RADIUS
constexpr EDA_IU_SCALE pcbIUScale
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
bool SaveCanvasImageToFile(EDA_DRAW_FRAME *aFrame, const wxString &aFileName, BITMAP_TYPE aBitmapType)
Save the current view as an image file.
@ NORMAL
Inactive layers are shown normally (no high-contrast mode)
static TOOL_ACTION toggleGrid
static TOOL_ACTION millimetersUnits
static TOOL_ACTION revert
static TOOL_ACTION saveAs
static TOOL_ACTION pasteSpecial
static TOOL_ACTION milsUnits
static TOOL_ACTION toggleBoundingBoxes
static TOOL_ACTION duplicate
static TOOL_ACTION inchesUnits
static TOOL_ACTION highContrastMode
static TOOL_ACTION toggleCursorStyle
static TOOL_ACTION measureTool
static TOOL_ACTION doDelete
static TOOL_ACTION selectionTool
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION deleteTool
static TOOL_ACTION zoomTool
static TOOL_ACTION gridSetOrigin
static TOOL_ACTION ddAddLibrary
static TOOL_ACTION selectAll
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...
std::vector< LAYER_PRESET > GetUserLayerPresets() const
Update the current layer presets from those saved in the project file.
int GetTabIndex() const
Set the current notebook tab.
void UpdateDisplayOptions()
Return a list of the layer presets created by the user.
wxString GetActiveLayerPreset() const
void OnLanguageChanged()
Update the panel contents from the application and board models.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
wxString m_ColorTheme
Active color theme name.
bool IsContentModified() const
void SetContentModified(bool aModified=true)
Container for design settings for a BOARD object.
std::shared_ptr< NET_SETTINGS > m_NetSettings
int m_SolderMaskExpansion
Abstract interface for BOARD_ITEMs capable of storing other items inside.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
void SetBoardUse(BOARD_USE aUse)
Set what the board is going to be used for.
void SetEnabledLayers(LSET aLayerMask)
A proxy function that calls the correspondent function in m_BoardSettings.
bool SetLayerName(PCB_LAYER_ID aLayer, const wxString &aLayerName)
Changes the name of the layer given by aLayer.
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
FOOTPRINTS & Footprints()
void SetVisibleAlls()
Change the bit-mask of visible element categories and layers.
void SetVisibleLayers(LSET aLayerMask)
A proxy function that calls the correspondent function in m_BoardSettings changes the bit-mask of vis...
void SetCopperLayerCount(int aCount)
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
BOX2< Vec > & Inflate(coord_type dx, coord_type dy)
Inflates the rectangle horizontally by dx and vertically by dy.
Color settings are a bit different than most of the settings objects in that there can be more than o...
Handle actions that are shared between different applications.
virtual void setupUIConditions()
Setup the UI conditions for the various actions and their controls in this frame.
SETTINGS_MANAGER * GetSettingsManager() const
WX_INFOBAR * GetInfoBar()
void OnSelectGrid(wxCommandEvent &event)
Command event handler for selecting grid sizes.
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
KIGFX::GAL_DISPLAY_OPTIONS & GetGalDisplayOptions()
Return a reference to the gal rendering options used by GAL for rendering.
virtual void SwitchCanvas(EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType)
Changes the current rendering backend.
virtual void OnSize(wxSizeEvent &event) override
Recalculate the size of toolbars and display panel when the frame size changes.
virtual void OnSelectZoom(wxCommandEvent &event)
Set the zoom factor when selected by the zoom list box in the main tool bar.
virtual void UpdateMsgPanel()
Redraw the message panel.
void OnGridSettings(wxCommandEvent &event)
void StopDrawing()
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called.
void ForceRefresh()
Force a redraw.
KIGFX::GAL * GetGAL() const
Return a pointer to the GAL instance used in the panel.
void SetEventDispatcher(TOOL_DISPATCHER *aEventDispatcher)
Set a dispatcher that processes events and forwards them to tools.
Specialization of the wxAuiPaneInfo class for KiCad panels.
SELECTION_CONDITION NoActiveTool()
Create a functor testing if there are no tools active in the frame.
SELECTION_CONDITION BoundingBoxes()
SELECTION_CONDITION RedoAvailable()
Create a functor that tests if there are any items in the redo queue.
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 UndoAvailable()
Create a functor that tests if there are any items in the undo queue.
SELECTION_CONDITION Units(EDA_UNITS aUnit)
Create a functor that tests if the frame has the specified units.
SELECTION_CONDITION GridVisible()
Create a functor testing if the grid is visible in a frame.
SELECTION_CONDITION ContentModified()
Create a functor that tests if the content of the frame is modified.
SELECTION_CONDITION FullscreenCursor()
Create a functor testing if the cursor is full screen in a frame.
bool IsFootprintLibWritable(const wxString &aNickname)
Return true if the library given by aNickname is writable.
void AddLibraries(EDA_BASE_FRAME *aParent)
static wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > Create(FOOTPRINT_EDIT_FRAME *aFrame, FP_LIB_TABLE *aLibs)
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
void ReadWindowSettings(WINDOW_SETTINGS &aCfg)
Read GAL config options from application-level config.
bool m_axesEnabled
Fullscreen crosshair or small cross.
void SetAxesEnabled(bool aAxesEnabled)
Enable drawing the axes.
void UpdateAllLayersColor()
Apply the new coloring scheme to all layers.
bool IsMirroredX() const
Return true if view is flipped across the X axis.
void MarkTargetDirty(int aTarget)
Set or clear target 'dirty' flag.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
A logical library item identifier and consists of various portions much like a URI.
int SetLibItemName(const UTF8 &aLibItemName)
Override the library item name portion of the LIB_ID to aLibItemName.
bool IsValid() const
Check if this LID_ID is valid.
int SetLibNickname(const UTF8 &aNickname)
Override the logical library name portion of the LIB_ID to aNickname.
const UTF8 & GetLibItemName() const
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
Model class in the component selector Model-View-Adapter (mediated MVC) architecture.
void RefreshLibTree()
Refreshes the tree (mainly to update highlighting and asterisking)
LIB_TREE_NODE * GetCurrentTreeNode() const
void CenterLibId(const LIB_ID &aLibId)
Ensure that an item is visible (preferably centered).
void SelectLibId(const LIB_ID &aLibId)
Select an item in the tree widget.
void Unselect()
Unselect currently selected item in wxDataViewCtrl.
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
For multi-unit symbols, if the user selects the symbol itself rather than picking an individual unit,...
void Regenerate(bool aKeepState)
Regenerate the tree.
Describe the page size and margins of a paper page on which to eventually print or plot.
void SetCheckboxesFromFilter(SELECTION_FILTER_OPTIONS &aOptions)
Gather all the actions that are shared by tools.
static TOOL_ACTION toggleHV45Mode
static TOOL_ACTION drawRuleArea
static TOOL_ACTION placeText
static TOOL_ACTION pointEditorArcKeepCenter
static TOOL_ACTION drawOrthogonalDimension
static TOOL_ACTION drawRectangle
static TOOL_ACTION setAnchor
static TOOL_ACTION padDisplayMode
static TOOL_ACTION showLayersManager
static TOOL_ACTION drawCircle
static TOOL_ACTION mirrorH
Mirroring of selected items.
static TOOL_ACTION placeImage
static TOOL_ACTION exportFootprint
static TOOL_ACTION showFootprintTree
static TOOL_ACTION drawTextBox
static TOOL_ACTION drawPolygon
static TOOL_ACTION placePad
Activation of the drawing tool (placing a PAD)
static TOOL_ACTION drawRadialDimension
static TOOL_ACTION editTextAndGraphics
static TOOL_ACTION drawLeader
static TOOL_ACTION ddImportFootprint
static TOOL_ACTION ungroup
static TOOL_ACTION placeImportedGraphics
static TOOL_ACTION drawArc
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION pluginsReload
Scripting Actions.
static TOOL_ACTION pointEditorArcKeepEndpoint
static TOOL_ACTION drawCenterDimension
static TOOL_ACTION footprintProperties
static TOOL_ACTION flipBoard
static TOOL_ACTION textOutlines
Display texts as lines.
static TOOL_ACTION checkFootprint
static TOOL_ACTION mirrorV
static TOOL_ACTION repairFootprint
static TOOL_ACTION drawLine
static TOOL_ACTION cleanupGraphics
static TOOL_ACTION rotateCw
Rotation of selected objects.
static TOOL_ACTION rotateCcw
static TOOL_ACTION drawAlignedDimension
Common, abstract interface for edit frames.
APPEARANCE_CONTROLS * m_appearancePanel
PANEL_SELECTION_FILTER * m_selectionFilterPanel
void ActivateGalCanvas() override
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
virtual const PCB_PLOT_PARAMS & GetPlotSettings() const
Return the PCB_PLOT_PARAMS for the BOARD owned by this frame.
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 OnModify() override
Must be called after a change in order to set the "modify" flag and update other data structures and ...
FOOTPRINT * loadFootprint(const LIB_ID &aFootprintId)
Attempts to load aFootprintId from the footprint library table.
bool canCloseWindow(wxCloseEvent &aCloseEvent) override
BOX2I GetBoardBoundingBox(bool aBoardEdgesOnly=false) const
Calculate the bounding box containing all board items (or board edge segments).
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
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.
virtual void ShowChangedLanguage() override
Redraw the menus and what not in current language.
virtual void AddFootprintToBoard(FOOTPRINT *aFootprint)
Add the given footprint to the board.
PCB_DISPLAY_OPTIONS m_displayOptions
FOOTPRINT_EDITOR_SETTINGS * GetFootprintEditorSettings() const
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification event that some of the common (suite-wide) settings have changed.
virtual void Update3DView(bool aMarkDirty, bool aRefresh, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
Handle actions that are shared between different frames in PcbNew.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.
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 HasItems()
Create a functor that tests if there are items in the board.
SELECTION_CONDITION GraphicsFillDisplay()
Create a functor that tests if the frame fills graphics items.
SELECTION_CONDITION TextFillDisplay()
Create a functor that tests if the frame fills text items.
The main frame for Pcbnew.
Parameters and options when plotting/printing a board.
Tool that displays edit points allowing to modify items by dragging the points.
@ PCB_FOOTPRINT_EDITOR_FP_NAME
@ PCB_FOOTPRINT_EDITOR_LIB_NICKNAME
virtual FP_LIB_TABLE * PcbFootprintLibs(KIWAY &aKiway)
Return the table of footprint libraries.
virtual void SetRString(RSTRING_T aStringId, const wxString &aString)
Store a "retained string", which is any session and project specific string identified in enum RSTRIN...
virtual const wxString & GetRString(RSTRING_T aStringId)
Return a "retained string", which is any session and project specific string identified in enum RSTRI...
static SELECTION_CONDITION HasType(KICAD_T aType)
Create a functor that tests if among the selected items there is at least one of a given type.
static SELECTION_CONDITION MoreThan(int aNumber)
Create a functor that tests if the number of selected items is greater than the value given as parame...
static bool Idle(const SELECTION &aSelection)
Test if there no items selected or being edited.
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
bool IsProjectOpen() const
Helper for checking if we have a project open TODO: This should be deprecated along with Prj() once w...
void FlushAndRelease(JSON_SETTINGS *aSettings, bool aSave=true)
If the given settings object is registered, save it to disk and unregister it.
const char * c_str() const
void RemoveAllButtons()
Remove all the buttons that have been added by the user.
void ShowMessageFor(const wxString &aMessage, int aTime, int aFlags=wxICON_INFORMATION, MESSAGE_TYPE aType=WX_INFOBAR::MESSAGE_TYPE::GENERIC)
Show the infobar with the provided message and icon for a specific period of time.
void Dismiss() override
Dismisses the infobar and updates the containing layout and AUI manager (if one is provided).
void AddCloseButton(const wxString &aTooltip=_("Hide this message."))
Add the default close button to the infobar on the right side.
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
Multi-thread safe progress reporter dialog, intended for use of tasks that parallel reporting back of...
bool HandleUnsavedChanges(wxWindow *aParent, const wxString &aMessage, const std::function< bool()> &aSaveFunction)
Display a dialog with Save, Cancel and Discard Changes buttons.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
static bool empty(const wxTextEntryBase *aCtrl)
static constexpr EDA_ANGLE & ANGLE_90
#define KICAD_DEFAULT_DRAWFRAME_STYLE
#define FOOTPRINT_EDIT_FRAME_NAME
GERBVIEW_FRAME::OnZipFileHistory GERBVIEW_FRAME::OnSelectDisplayMode EVT_CHOICE(ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE, GERBVIEW_FRAME::OnSelectHighlightChoice) EVT_UPDATE_UI(ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER
const std::string KiCadFootprintLibPathExtension
const std::string KiCadFootprintFileExtension
wxString PngFileWildcard()
This file contains miscellaneous commonly used macros and functions.
static wxString FROM_UTF8(const char *cstring)
Convert a UTF8 encoded C string to a wxString for all wxWidgets build modes.
@ TARGET_NONCACHED
Auxiliary rendering target (noncached)
bool IsValid(const std::string &aString, SIM_VALUE::TYPE aValueType=SIM_VALUE::TYPE_FLOAT, NOTATION aNotation=NOTATION::SI)
@ ID_ADD_FOOTPRINT_TO_BOARD
@ ID_LOAD_FOOTPRINT_FROM_BOARD
@ ID_TOOLBARH_PCB_SELECT_LAYER
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
constexpr int mmToIU(double mm) const
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
@ PCB_FP_TEXT_T
class FP_TEXT, text in a footprint
Definition of file extensions used in Kicad.
void SetAuiPaneSize(wxAuiManager &aManager, wxAuiPaneInfo &aPane, int aWidth, int aHeight)
Sets the size of an AUI pane, working around http://trac.wxwidgets.org/ticket/13180.