![]() |
KiCad PCB EDA Suite
|
The main frame for Pcbnew. More...
#include <pcb_edit_frame.h>
Classes | |
struct | LAYER_TOOLBAR_ICON_VALUES |
Store the previous layer toolbar icon state information. More... | |
Public Types | |
enum | UNDO_REDO_LIST { UNDO_LIST, REDO_LIST } |
Remove the aItemCount of old commands from aList and delete commands, pickers and picked items if needed. More... | |
enum | HOLDER_TYPE { DIALOG, FRAME, PANEL } |
Public Member Functions | |
virtual | ~PCB_EDIT_FRAME () |
void | LoadFootprints (NETLIST &aNetlist, REPORTER &aReporter) |
Load the footprints for each SCH_COMPONENT in aNetlist from the list of libraries. More... | |
void | OnQuit (wxCommandEvent &event) |
bool | IsContentModified () override |
Get if the current board has been modified but not saved. More... | |
void | PythonPluginsReload () |
Reload the Python plugins if they are newer than the already loaded, and load new plugins if any. More... | |
void | PythonPluginsShowFolder () |
Open the plugins folder in the default system file browser. More... | |
void | PythonSyncEnvironmentVariables () |
Synchronize the environment variables from KiCad's environment into the Python interpreter. More... | |
void | PythonSyncProjectName () |
Synchronize the project name from KiCad's environment into the Python interpreter. More... | |
void | UpdateUserInterface () |
Update the layer manager and other widgets from the board setup (layer and items visibility, colors ...) More... | |
void | HardRedraw () override |
Rebuild the GAL and redraws the screen. More... | |
void | ExecuteRemoteCommand (const char *cmdline) override |
Execute a remote command send by Eeschema via a socket, port KICAD_PCB_PORT_SERVICE_NUMBER (currently 4242). More... | |
void | KiwayMailIn (KIWAY_EXPRESS &aEvent) override |
Receive KIWAY_EXPRESS messages from other players. More... | |
void | ToPlotter (int aID) |
Open a dialog frame to create plot and drill files relative to the current board. More... | |
void | ExportSVG (wxCommandEvent &event) |
Show the Export to SVG file dialog. More... | |
void | OnUpdateLayerSelectBox (wxUpdateUIEvent &aEvent) |
bool | LayerManagerShown () |
void | OnUpdateSelectViaSize (wxUpdateUIEvent &aEvent) |
void | OnUpdateSelectTrackWidth (wxUpdateUIEvent &aEvent) |
void | OnUpdateSelectAutoWidth (wxUpdateUIEvent &aEvent) |
void | RunEeschema () |
void | UpdateTrackWidthSelectBox (wxChoice *aTrackWidthSelectBox, bool aEdit=true) |
void | UpdateViaSizeSelectBox (wxChoice *aViaSizeSelectBox, bool aEdit=true) |
COLOR4D | GetGridColor () override |
void | SetGridColor (COLOR4D aColor) override |
void | Process_Config (wxCommandEvent &event) |
void | SaveProjectSettings () override |
Save changes to the project settings to the project (.pro) file. More... | |
bool | LoadProjectSettings () |
Load the current project's file configuration settings which are pertinent to this PCB_EDIT_FRAME instance. More... | |
void | LoadSettings (APP_SETTINGS_BASE *aCfg) override |
Load common frame parameters from a configuration file. More... | |
void | SaveSettings (APP_SETTINGS_BASE *aCfg) override |
Save common frame parameters to a configuration data file. More... | |
wxString | GetLastPath (LAST_PATH_TYPE aType) |
Get the last path for a particular type. More... | |
void | SetLastPath (LAST_PATH_TYPE aType, const wxString &aLastPath) |
Set the path of the last file successfully read. More... | |
void | RecordDRCExclusions () |
Scan existing markers and record data from any that are Excluded. More... | |
void | ResolveDRCExclusions () |
Update markers to match recorded exclusions. More... | |
void | Process_Special_Functions (wxCommandEvent &event) |
void | Tracks_and_Vias_Size_Event (wxCommandEvent &event) |
void | ReCreateHToolbar () override |
void | ReCreateAuxiliaryToolbar () override |
void | ReCreateVToolbar () override |
void | ReCreateOptToolbar () override |
void | ReCreateMenuBar () override |
Recreates the menu bar. More... | |
void | UpdateToolbarControlSizes () override |
Update the sizes of any controls in the toolbars of the frame. More... | |
void | ReCreateLayerBox (bool aForceResizeToolbar=true) |
Recreate the layer box by clearing the old list and building a new one from the new layer names and colors. More... | |
void | OnModify () override |
Must be called after a board change to set the modified flag. More... | |
void | SetActiveLayer (PCB_LAYER_ID aLayer) override |
Change the currently active layer to aLayer and also update the APPEARANCE_CONTROLS. More... | |
void | OnDisplayOptionsChanged () override |
bool | IsElementVisible (GAL_LAYER_ID aElement) const |
Test whether a given element category is visible. More... | |
void | SetElementVisibility (GAL_LAYER_ID aElement, bool aNewState) |
Change the visibility of an element category. More... | |
void | ActivateGalCanvas () override |
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD. More... | |
void | ShowBoardSetupDialog (const wxString &aInitialPage=wxEmptyString) |
void | PrepareLayerIndicator (bool aForceRebuild=false) |
void | ToggleLayersManager () |
int | DoGenFootprintsPositionFile (const wxString &aFullFileName, bool aUnitsMM, bool aForceSmdItems, bool aTopSide, bool aBottomSide, bool aFormatCSV=false) |
Create an ASCII footprint position file. More... | |
void | GenFootprintsReport (wxCommandEvent &event) |
Call DoGenFootprintsReport to create a footprint report file. More... | |
bool | DoGenFootprintsReport (const wxString &aFullFilename, bool aUnitsMM) |
Create an ASCII footprint report file giving some infos on footprints and board outlines. More... | |
void | GenD356File (wxCommandEvent &event) |
void | OnFileHistory (wxCommandEvent &event) |
void | OnClearFileHistory (wxCommandEvent &aEvent) |
void | Files_io (wxCommandEvent &event) |
Call Files_io_from_id with the wxCommandEvent id. More... | |
bool | Files_io_from_id (int aId) |
Read and write board files according to aId. More... | |
bool | OpenProjectFiles (const std::vector< wxString > &aFileSet, int aCtl=0) override |
Load a KiCad board (.kicad_pcb) from aFileName. More... | |
bool | SavePcbFile (const wxString &aFileName, bool addToHistory=true, bool aChangeProject=true) |
Write the board data structures to a aFileName. More... | |
bool | SavePcbCopy (const wxString &aFileName, bool aCreateProject=false) |
Write the board data structures to aFileName. More... | |
bool | Clear_Pcb (bool aQuery, bool aFinal=false) |
Delete all and reinitialize the current board. More... | |
void | SetBoard (BOARD *aBoard) override |
BOARD_ITEM_CONTAINER * | GetModel () const override |
void | SetPageSettings (const PAGE_INFO &aPageSettings) override |
void | RecreateCmpFileFromBoard (wxCommandEvent &aEvent) |
Recreates a .cmp file from the current loaded board. More... | |
void | ExportFootprintsToLibrary (bool aStoreInNewLib, const wxString &aLibName=wxEmptyString, wxString *aLibPath=NULL) |
Save footprints in a library: More... | |
void | RecreateBOMFileFromBoard (wxCommandEvent &aEvent) |
Create a BOM file from the current loaded board. More... | |
void | ExportToGenCAD (wxCommandEvent &event) |
Create a file in GenCAD 1.4 format from the current board. More... | |
void | OnExportVRML (wxCommandEvent &event) |
Export the current BOARD to a VRML file. More... | |
bool | ExportVRML_File (const wxString &aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, const wxString &a3D_Subdir, double aXRef, double aYRef) |
Create the file(s) exporting current BOARD to a VRML file. More... | |
void | OnExportIDF3 (wxCommandEvent &event) |
Export the current BOARD to a IDFv3 board and lib files. More... | |
void | OnExportHyperlynx (wxCommandEvent &event) |
Export the current BOARD to a Hyperlynx HYP file. More... | |
bool | Export_IDF3 (BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef) |
Create an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file. More... | |
void | OnExportSTEP (wxCommandEvent &event) |
Export the current BOARD to a STEP assembly. More... | |
bool | ExportSpecctraFile (const wxString &aFullFilename) |
Export the current BOARD to a specctra dsn file. More... | |
bool | ImportSpecctraSession (const wxString &aFullFilename) |
Import a specctra *.ses file and use it to relocate MODULEs and to replace all vias and tracks in an existing and loaded BOARD. More... | |
void | ShowFootprintPropertiesDialog (FOOTPRINT *aFootprint) |
int | ShowExchangeFootprintsDialog (FOOTPRINT *aFootprint, bool aUpdateMode, bool aSelectedMode) |
void | ExchangeFootprint (FOOTPRINT *aExisting, FOOTPRINT *aNew, BOARD_COMMIT &aCommit, bool deleteExtraTexts=true, bool resetTextLayers=true, bool resetTextEffects=true, bool resetFabricationAttrs=true, bool reset3DModels=true) |
Replace aExisting footprint by aNew footprint using the Existing footprint settings (position, orientation, pad netnames ...). More... | |
void | OnEditItemRequest (BOARD_ITEM *aItem) override |
Install the corresponding dialog editor for the given item. More... | |
void | SwitchLayer (wxDC *DC, PCB_LAYER_ID layer) override |
void | SetTrackSegmentWidth (TRACK *aTrackItem, PICKED_ITEMS_LIST *aItemsListPicker, bool aUseNetclassValue) |
Modify one track segment width or one via diameter (using DRC control). More... | |
void | Edit_Zone_Params (ZONE *zone_container) |
Edit params (layer, clearance, ...) for a zone outline. More... | |
void | ShowTargetOptionsDialog (PCB_TARGET *aTarget) |
void | ShowDimensionPropertiesDialog (DIMENSION_BASE *aDimension) |
void | InstallNetlistFrame () |
bool | FetchNetlistFromSchematic (NETLIST &aNetlist, const wxString &aAnnotateMessage) |
bool | ReannotateSchematic (std::string &aNetlist) |
Send a command to Eeschema to re-annotate the schematic. More... | |
bool | TestStandalone (void) |
Test if standalone mode. More... | |
bool | ReadNetlistFromFile (const wxString &aFilename, NETLIST &aNetlist, REPORTER &aReporter) |
Read a netlist from a file into a NETLIST object. More... | |
void | OnNetlistChanged (BOARD_NETLIST_UPDATER &aUpdater, bool *aRunDragCommand) |
Called after netlist is updated. More... | |
void | SendMessageToEESCHEMA (BOARD_ITEM *objectToSync) |
Send a message to the schematic editor so that it may move its cursor to a symbol with the same reference as the objectToSync. More... | |
void | SendCrossProbeNetName (const wxString &aNetName) |
Send a net name to Eeschema for highlighting. More... | |
void | ShowChangedLanguage () override |
Redraw the menus and what not in current language. More... | |
void | UpdateTitle () |
Set the main window title bar text. More... | |
void | InstallPreferences (PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override |
Allow Pcbnew to install its preferences panel into the preferences dialog. More... | |
void | CommonSettingsChanged (bool aEnvVarsChanged, bool aTextVarsChanged) override |
Called after the preferences dialog is run. More... | |
void | ThemeChanged () override |
Called when light/dark theme is changed. More... | |
void | ProjectChanged () override |
Notification event that the project has changed. More... | |
wxString | GetCurrentFileName () const override |
Get the full filename + path of the currently opened file in the frame. More... | |
SELECTION & | GetCurrentSelection () override |
Get the current selection from the canvas area. More... | |
TOOL_ACTION * | GetExportNetlistAction () |
bool | TryBefore (wxEvent &aEvent) override |
wxString | CreateNewLibrary (const wxString &aLibName=wxEmptyString, const wxString &aProposedName=wxEmptyString) |
If a library name is given, creates a new footprint library in the project folder with the given name. More... | |
bool | AddLibrary (const wxString &aLibName=wxEmptyString, FP_LIB_TABLE *aTable=nullptr) |
Add an existing library to either the global or project library table. More... | |
void | SaveCopyInUndoList (EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand) override |
Create a new entry in undo list of commands. More... | |
void | SaveCopyInUndoList (const PICKED_ITEMS_LIST &aItemsList, UNDO_REDO aCommandType) override |
Create a new entry in undo list of commands. More... | |
void | RestoreCopyFromRedoList (wxCommandEvent &aEvent) |
Redo the last edit: More... | |
void | RestoreCopyFromUndoList (wxCommandEvent &aEvent) |
Undo the last edit: More... | |
void | RollbackFromUndo () |
Perform an undo of the last edit without logging a corresponding redo. More... | |
void | PutDataInPreviousState (PICKED_ITEMS_LIST *aList) |
Used in undo or redo command. More... | |
bool | UndoRedoBlocked () const |
Check if the undo and redo operations are currently blocked. More... | |
void | UndoRedoBlock (bool aBlock=true) |
Enable/disable undo and redo operations. More... | |
void | SetGridVisibility (bool aVisible) override |
Override this function in the PCB_BASE_EDIT_FRAME to refill the layer widget. More... | |
void | SetObjectVisible (GAL_LAYER_ID aLayer, bool aVisible=true) |
int | GetRotationAngle () const |
Return the angle used for rotate operations. More... | |
void | SetRotationAngle (int aRotationAngle) |
Set the angle used for rotate operations. More... | |
void | ShowTextPropertiesDialog (BOARD_ITEM *aText) |
void | ShowGraphicItemPropertiesDialog (BOARD_ITEM *aItem) |
COLOR_SETTINGS * | GetColorSettings () const override |
Helper to retrieve the current color settings. More... | |
void | ClearUndoORRedoList (UNDO_REDO_LIST whichList, int aItemCount=-1) override |
Free the undo or redo list from List element. More... | |
wxString | GetDesignRulesPath () |
Return the absolute path to the design rules file for the currently-loaded board. More... | |
APPEARANCE_CONTROLS * | GetAppearancePanel () |
virtual void | OnLayerAlphaChanged () |
Notify the frame that the layer Alpha is being changed. More... | |
EDA_3D_VIEWER * | Get3DViewerFrame () |
virtual void | Update3DView (bool aMarkDirty, bool aRefresh, const wxString *aTitle=nullptr) |
Update the 3D view, if the viewer is opened by this frame. More... | |
FOOTPRINT * | LoadFootprint (const LIB_ID &aFootprintId) |
Attempt to load aFootprintId from the footprint library table. More... | |
EDA_RECT | GetBoardBoundingBox (bool aBoardEdgesOnly=false) const |
Calculate the bounding box containing all board items (or board edge segments). More... | |
const BOX2I | GetDocumentExtents (bool aIncludeAllVisible=true) const override |
Returns bbox of document with option to not include some items. More... | |
const PAGE_INFO & | GetPageSettings () const override |
const wxSize | GetPageSizeIU () const override |
Works off of GetPageSettings() to return the size of the paper page in the internal units of this particular view. More... | |
const wxPoint & | GetGridOrigin () const override |
Return the absolute coordinates of the origin of the snap grid. More... | |
void | SetGridOrigin (const wxPoint &aPoint) override |
const wxPoint & | GetAuxOrigin () const |
const wxPoint | GetUserOrigin () const |
ORIGIN_TRANSFORMS & | GetOriginTransforms () override |
Return a reference to the default ORIGIN_TRANSFORMS object. More... | |
const TITLE_BLOCK & | GetTitleBlock () const override |
void | SetTitleBlock (const TITLE_BLOCK &aTitleBlock) override |
virtual BOARD_DESIGN_SETTINGS & | GetDesignSettings () const |
Returns the BOARD_DESIGN_SETTINGS for the open project. More... | |
PCBNEW_SETTINGS & | Settings () |
void | SetDrawBgColor (COLOR4D aColor) override |
const PCB_DISPLAY_OPTIONS & | GetDisplayOptions () const |
Display options control the way tracks, vias, outlines and other things are shown (for instance solid or sketch mode). More... | |
void | SetDisplayOptions (const PCB_DISPLAY_OPTIONS &aOptions, bool aRefresh=true) |
Updates the current display options from the given options struct. More... | |
const ZONE_SETTINGS & | GetZoneSettings () const |
void | SetZoneSettings (const ZONE_SETTINGS &aSettings) |
virtual const PCB_PLOT_PARAMS & | GetPlotSettings () const |
Return the PCB_PLOT_PARAMS for the BOARD owned by this frame. More... | |
virtual void | SetPlotSettings (const PCB_PLOT_PARAMS &aSettings) |
BOARD * | GetBoard () const |
EDA_ITEM * | GetItem (const KIID &aId) const override |
Fetch an item by KIID. More... | |
void | FocusOnItem (BOARD_ITEM *aItem) |
virtual void | UpdateStatusBar () override |
Update the status bar information. More... | |
PCB_SCREEN * | GetScreen () const override |
Return a pointer to a BASE_SCREEN or one of its derivatives. More... | |
EDA_3D_VIEWER * | CreateAndShow3D_Frame () |
Shows the 3D view frame. More... | |
GENERAL_COLLECTORS_GUIDE | GetCollectorsGuide () |
wxString | SelectLibrary (const wxString &aNicknameExisting) |
Put up a dialog and allows the user to pick a library, for unspecified use. More... | |
FOOTPRINT * | GetFootprintFromBoardByReference () |
FOOTPRINT * | CreateNewFootprint (const wxString &aFootprintName) |
Creates a new footprint, at position 0,0. More... | |
void | PlaceFootprint (FOOTPRINT *aFootprint, bool aRecreateRatsnest=true) |
Places aFootprint at the current cursor position and updates footprint coordinates with the new position. More... | |
void | ShowPadPropertiesDialog (PAD *aPad) |
FOOTPRINT * | SelectFootprintFromLibTree (LIB_ID aPreselect=LIB_ID()) |
Open a dialog to select a footprint. More... | |
virtual void | AddFootprintToBoard (FOOTPRINT *aFootprint) |
Add the given footprint to the board. More... | |
wxString | SelectFootprintFromLibBrowser () |
Launch the footprint viewer to select the name of a footprint to load. More... | |
void | Compile_Ratsnest (bool aDisplayStatus) |
Create the entire board ratsnest. More... | |
PCB_LAYER_ID | SelectOneLayer (PCB_LAYER_ID aDefaultLayer, LSET aNotAllowedLayersMask=LSET(), wxPoint aDlgPosition=wxDefaultPosition) |
Show the dialog box for a layer selection. More... | |
virtual PCB_LAYER_ID | GetActiveLayer () const |
SEVERITY | GetSeverity (int aErrorCode) const override |
PCBNEW_SETTINGS * | GetPcbNewSettings () const |
FOOTPRINT_EDITOR_SETTINGS * | GetFootprintEditorSettings () const |
virtual MAGNETIC_SETTINGS * | GetMagneticItemsSettings () |
void | DisplayGridMsg () override |
Display the current grid pane on the status bar. More... | |
PCB_DRAW_PANEL_GAL * | GetCanvas () const override |
Return a pointer to GAL-based canvas of given EDA draw frame. More... | |
virtual void | SetAutoZoom (bool aAutoZoom) |
Does nothing. More... | |
virtual bool | GetAutoZoom () |
Always returns false. More... | |
bool | LockFile (const wxString &aFileName) |
Mark a schematic file as being in use. More... | |
void | ReleaseFile () |
Release the current file marked in use. More... | |
wxFindReplaceData & | GetFindReplaceData () |
wxArrayString & | GetFindHistoryList () |
bool | GetShowPolarCoords () const |
For those frames that support polar coordinates. More... | |
void | SetShowPolarCoords (bool aShow) |
void | ToggleUserUnits () override |
void | GetUnitPair (EDA_UNITS &aPrimaryUnit, EDA_UNITS &aSecondaryUnits) |
Get the pair or units in current use. More... | |
wxPoint | GetNearestGridPosition (const wxPoint &aPosition) const |
Return the nearest aGridSize location to aPosition. More... | |
wxPoint | GetNearestHalfGridPosition (const wxPoint &aPosition) const |
Return the nearest aGridSize / 2 location to aPosition. More... | |
virtual COLOR4D | GetDrawBgColor () const |
bool | ShowPageLimits () const |
void | SetShowPageLimits (bool aShow) |
bool | LibraryFileBrowser (bool doOpen, wxFileName &aFilename, const wxString &wildcard, const wxString &ext, bool isDirectory=false, bool aIsGlobal=false, const wxString &aGlobalPath=wxEmptyString) |
virtual wxString | GetScreenDesc () const |
void | EraseMsgBox () |
bool | IsGridVisible () const |
void | OnSelectGrid (wxCommandEvent &event) |
Command event handler for selecting grid sizes. More... | |
void | OnGridSettings (wxCommandEvent &event) |
void | UpdateGridSelectBox () |
Rebuild the grid combobox to respond to any changes in the GUI (units, user grid changes, etc.). More... | |
void | OnUpdateSelectGrid (wxUpdateUIEvent &aEvent) |
Update the checked item in the grid combobox. More... | |
void | UpdateZoomSelectBox () |
Rebuild the grid combobox to respond to any changes in the GUI (units, user grid changes, etc.) More... | |
void | OnUpdateSelectZoom (wxUpdateUIEvent &aEvent) |
Update the checked item in the zoom combobox. More... | |
const wxString | GetZoomLevelIndicator () const |
Return a human readable value for display in dialogs. More... | |
virtual void | OnSelectZoom (wxCommandEvent &event) |
Set the zoom factor when selected by the zoom list box in the main tool bar. More... | |
virtual void | OnSize (wxSizeEvent &event) |
Recalculate the size of toolbars and display panel when the frame size changes. More... | |
void | OnMove (wxMoveEvent &aEvent) override |
virtual void | Zoom_Automatique (bool aWarpPointer) |
Redraw the screen with best zoom level and the best centering that shows all the page or the board. More... | |
void | FocusOnLocation (const wxPoint &aPos) |
Useful to focus on a particular location, in find functions. More... | |
void | AddStandardSubMenus (TOOL_MENU &aMenu) |
Construct a "basic" menu for a tool, containing only items that apply to all tools (e.g. More... | |
void | PrintDrawingSheet (const RENDER_SETTINGS *aSettings, BASE_SCREEN *aScreen, double aMils2Iu, const wxString &aFilename, const wxString &aSheetLayer=wxEmptyString) |
Prints the drawing-sheet (frame and title block). More... | |
void | DisplayToolMsg (const wxString &msg) override |
virtual void | OnPageSettingsChange () |
Called when modifying the page settings. More... | |
void | DisplayUnitsMsg () |
Display current unit pane in the status bar. More... | |
void | CreateServer (int service, bool local=true) |
void | OnSockRequest (wxSocketEvent &evt) |
void | OnSockRequestServer (wxSocketEvent &evt) |
void | AppendMsgPanel (const wxString &aTextUpper, const wxString &aTextLower, int aPadding=6) |
Append a message to the message panel. More... | |
virtual void | ClearMsgPanel () |
Clear all messages from the message panel. More... | |
void | SetMsgPanel (const std::vector< MSG_PANEL_ITEM > &aList) |
Clear the message panel and populates it with the contents of aList. More... | |
void | SetMsgPanel (EDA_ITEM *aItem) |
void | SetMsgPanel (const wxString &aTextUpper, const wxString &aTextLower, int aPadding=6) |
Helper function that erases the msg panel and then appends a single message. More... | |
virtual void | UpdateMsgPanel () |
Redraw the message panel. More... | |
virtual void | PrintPage (const RENDER_SETTINGS *aSettings) |
Print the page pointed by current screen, set by the calling print function. More... | |
void | SetCanvas (EDA_DRAW_PANEL_GAL *aPanel) |
wxWindow * | GetToolCanvas () const override |
Canvas access. More... | |
KIGFX::GAL_DISPLAY_OPTIONS & | GetGalDisplayOptions () |
Return a reference to the gal rendering options used by GAL for rendering. More... | |
void | RefreshCanvas () override |
void | RecreateToolbars () |
Rebuild all toolbars, and update the checked state of check tools. More... | |
virtual void | ParseArgs (wxCmdLineParser &aParser) |
Handle command-line arguments in a frame-specific way. More... | |
virtual bool | ShowModal (wxString *aResult=nullptr, wxWindow *aResultantFocusWindow=nullptr) |
Show this wxFrame as if it were a modal dialog, with all other instantiated wxFrames disabled until this KIWAY_PLAYER derivative calls DismissModal(). More... | |
bool | Destroy () override |
Our version of Destroy() which is virtual from wxWidgets. More... | |
bool | IsModal () const override |
Return true if the frame is shown in our modal mode and false if the frame is shown as an usual frame. More... | |
void | SetModal (bool aIsModal) |
bool | IsDismissed () |
void | DismissModal (bool aRetVal, const wxString &aResult=wxEmptyString) |
EDA_UNITS | GetUserUnits () const |
Return the user units currently in use. More... | |
void | SetUserUnits (EDA_UNITS aUnits) |
void | ChangeUserUnits (EDA_UNITS aUnits) |
SETTINGS_MANAGER * | GetSettingsManager () const |
bool | ProcessEvent (wxEvent &aEvent) override |
Override the default process event handler to implement the auto save feature. More... | |
virtual void | OnCharHook (wxKeyEvent &event) |
Capture the key event before it is sent to the GUI. More... | |
void | OnMenuEvent (wxMenuEvent &event) |
The TOOL_DISPATCHER needs these to work around some issues in wxWidgets where the menu events aren't captured by the menus themselves. More... | |
virtual void | RegisterUIUpdateHandler (int aID, const ACTION_CONDITIONS &aConditions) override |
Register a UI update handler for the control with ID aID . More... | |
virtual void | RegisterUIUpdateHandler (const TOOL_ACTION &aAction, const ACTION_CONDITIONS &aConditions) |
Register an action's update conditions with the UI layer to allow the UI to appropriately display the state of its controls. More... | |
virtual void | UnregisterUIUpdateHandler (int aID) override |
Unregister a UI handler for a given ID that was registered using RegisterUIUpdateHandler . More... | |
virtual void | UnregisterUIUpdateHandler (const TOOL_ACTION &aAction) |
Unregister a UI handler for an action that was registered using RegisterUIUpdateHandler . More... | |
void | OnMaximize (wxMaximizeEvent &aEvent) |
void | SetAutoSaveInterval (int aInterval) |
int | GetAutoSaveInterval () const |
bool | IsType (FRAME_T aType) const |
virtual const SEARCH_STACK & | sys_search () |
Return a SEARCH_STACK pertaining to entire program. More... | |
virtual wxString | help_name () |
void | OnKicadAbout (wxCommandEvent &event) |
void | OnPreferences (wxCommandEvent &event) |
void | PrintMsg (const wxString &text) |
void | CreateInfoBar () |
void | FinishAUIInitialization () |
WX_INFOBAR * | GetInfoBar () |
void | ShowInfoBarError (const wxString &aErrorMsg, bool aShowCloseButton=false) |
Show the WX_INFOBAR displayed on the top of the canvas with a message and an error icon on the left of the infobar, and an optional closebox to the right. More... | |
void | ShowInfoBarError (const wxString &aErrorMsg, bool aShowCloseButton, std::function< void(void)> aCallback) |
Show the WX_INFOBAR displayed on the top of the canvas with a message and an error icon on the left of the infobar, and an optional closebox to the right. More... | |
void | ShowInfoBarWarning (const wxString &aWarningMsg, bool aShowCloseButton=false) |
Show the WX_INFOBAR displayed on the top of the canvas with a message and a warning icon on the left of the infobar. More... | |
void | ShowInfoBarMsg (const wxString &aMsg, bool aShowCloseButton=false) |
Show the WX_INFOBAR displayed on the top of the canvas with a message and an info icon on the left of the infobar. More... | |
virtual APP_SETTINGS_BASE * | config () const |
Returns the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME. More... | |
void | LoadWindowState (const wxString &aFileName) |
virtual void | LoadWindowState (const WINDOW_STATE &aState) |
Load frame state info from a configuration file. More... | |
void | LoadWindowSettings (const WINDOW_SETTINGS *aCfg) |
Load window settings from the given settings object. More... | |
void | SaveWindowSettings (WINDOW_SETTINGS *aCfg) |
Save window settings to the given settings object. More... | |
virtual WINDOW_SETTINGS * | GetWindowSettings (APP_SETTINGS_BASE *aCfg) |
Return a pointer to the window settings for this frame. More... | |
wxString | ConfigBaseName () override |
Get the configuration base name. More... | |
void | ImportHotkeyConfigFromFile (std::map< std::string, TOOL_ACTION * > aActionMap, const wxString &aDefaultShortname) |
Prompt the user for a hotkey file to read, and read it. More... | |
wxString | GetFileFromHistory (int cmdId, const wxString &type, FILE_HISTORY *aFileHistory=nullptr) |
Fetches the file name from the file history list. More... | |
void | ClearFileHistory (FILE_HISTORY *aFileHistory=nullptr) |
Removes all files from the file history. More... | |
void | UpdateFileHistory (const wxString &FullFileName, FILE_HISTORY *aFileHistory=nullptr) |
Update the list of recently opened files. More... | |
FILE_HISTORY & | GetFileHistory () |
Get the frame's main file history. More... | |
void | SetMruPath (const wxString &aPath) |
wxString | GetMruPath () const |
void | AddStandardHelpMenu (wxMenuBar *aMenuBar) |
Adds the standard KiCad help menu to the menubar. More... | |
bool | IsWritable (const wxFileName &aFileName) |
Checks if aFileName can be written. More... | |
void | CheckForAutoSaveFile (const wxFileName &aFileName) |
Check if an auto save file exists for aFileName and takes the appropriate action depending on the user input. More... | |
const wxString & | GetAboutTitle () const |
wxSize | GetWindowSize () |
Get the undecorated window size that can be used for restoring the window size. More... | |
virtual void | ClearUndoRedoList () |
Clear the undo and redo list using ClearUndoORRedoList() More... | |
virtual void | PushCommandToUndoList (PICKED_ITEMS_LIST *aItem) |
Add a command to undo in the undo list. More... | |
virtual void | PushCommandToRedoList (PICKED_ITEMS_LIST *aItem) |
Add a command to redo in the redo list. More... | |
virtual PICKED_ITEMS_LIST * | PopCommandFromUndoList () |
Return the last command to undo and remove it from list, nothing is deleted. More... | |
virtual PICKED_ITEMS_LIST * | PopCommandFromRedoList () |
Return the last command to undo and remove it from list, nothing is deleted. More... | |
virtual int | GetUndoCommandCount () const |
virtual int | GetRedoCommandCount () const |
int | GetMaxUndoItems () const |
bool | NonUserClose (bool aForce) |
virtual void | HandleSystemColorChange () |
Update the UI in response to a change in the system colors. More... | |
TOOL_MANAGER * | GetToolManager () const |
Return the MVC controller. More... | |
virtual void | PushTool (const std::string &actionName) |
NB: the definition of "tool" is different at the user level. More... | |
virtual void | PopTool (const std::string &actionName) |
bool | ToolStackIsEmpty () |
std::string | CurrentToolName () const |
bool | IsCurrentTool (const TOOL_ACTION &aAction) const |
bool | GetDoImmediateActions () const |
Indicate that hotkeys should perform an immediate action even if another tool is currently active. More... | |
MOUSE_DRAG_ACTION | GetDragAction () const |
Indicates whether a drag should draw a selection rectangle or drag selected (or unselected) objects. More... | |
bool | GetMoveWarpsCursor () const |
Indicate that a move operation should warp the mouse pointer to the origin of the move object. More... | |
HOLDER_TYPE | GetType () const |
KIWAY & | Kiway () const |
Return a reference to the KIWAY that this object has an opportunity to participate in. More... | |
PROJECT & | Prj () const |
Return a reference to the PROJECT associated with this KIWAY. More... | |
void | SetKiway (wxWindow *aDest, KIWAY *aKiway) |
It is only used for debugging, since "this" is not a wxWindow*. More... | |
Static Public Member Functions | |
static void | HandleUpdateUIEvent (wxUpdateUIEvent &aEvent, EDA_BASE_FRAME *aFrame, ACTION_CONDITIONS aCond) |
Handle events generated when the UI is trying to figure out the current state of the UI controls related to TOOL_ACTIONS (e.g. More... | |
Public Attributes | |
PCB_LAYER_BOX_SELECTOR * | m_SelLayerBox |
wxChoice * | m_SelTrackWidthBox |
wxChoice * | m_SelViaSizeBox |
bool | m_show_layer_manager_tools |
bool | m_ZoneFillsDirty |
Protected Member Functions | |
void | setupTools () |
void | setupUIConditions () override |
Setup the UI conditions for the various actions and their controls in this frame. More... | |
void | SwitchCanvas (EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType) override |
Switch currently used canvas (Cairo / OpenGL). More... | |
void | onBoardLoaded () |
Update the state of the GUI after a new board is loaded or created. More... | |
bool | doAutoSave () override |
Perform auto save when the board has been modified and not saved within the auto save interval. More... | |
bool | isAutoSaveRequired () const override |
Return true if the board has been modified. More... | |
bool | importFile (const wxString &aFileName, int aFileType) |
Load the given filename but sets the path to the current project path. More... | |
bool | canCloseWindow (wxCloseEvent &aCloseEvent) override |
void | doCloseWindow () override |
PCB_EDIT_FRAME (KIWAY *aKiway, wxWindow *aParent) | |
void | onSize (wxSizeEvent &aEvent) |
int | inferLegacyEdgeClearance (BOARD *aBoard) |
FP_LIB_TABLE * | selectLibTable (bool aOptional=false) |
Prompts a user to select global or project library tables. More... | |
void | handleActivateEvent (wxActivateEvent &aEvent) override |
Handle a window activation event. More... | |
void | unitsChangeRefresh () override |
Called when when the units setting has changed to allow for any derived classes to handle refreshing and controls that have units based measurements in them. More... | |
FOOTPRINT * | loadFootprint (const LIB_ID &aFootprintId) |
Attempts to load aFootprintId from the footprint library table. More... | |
virtual void | SetScreen (BASE_SCREEN *aScreen) |
void | setupUnits (APP_SETTINGS_BASE *aCfg) |
void | resolveCanvasType () |
Determines the Canvas type to load (with prompt if required) and initializes m_canvasType. More... | |
EDA_DRAW_PANEL_GAL::GAL_TYPE | loadCanvasTypeSetting () |
Returns the canvas type stored in the application settings. More... | |
bool | saveCanvasTypeSetting (EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType) |
Stores the canvas type in the application settings. More... | |
void | onActivate (wxActivateEvent &aEvent) |
void | kiway_express (KIWAY_EXPRESS &aEvent) |
event handler, routes to derivative specific virtual KiwayMailIn() More... | |
void | language_change (wxCommandEvent &event) |
An event handler called on a language menu selection. More... | |
void | onAutoSaveTimer (wxTimerEvent &aEvent) |
Handle the auto save timer event. More... | |
void | onSystemColorChange (wxSysColourChangedEvent &aEvent) |
void | initExitKey () |
Sets the common key-pair for exiting the application (Ctrl-Q) and ties it to the wxID_EXIT event id. More... | |
Static Protected Member Functions | |
static const wxChar * | pythonConsoleNameId () |
Has meaning only if KICAD_SCRIPTING_WXPYTHON option is not defined. More... | |
static wxWindow * | findPythonConsole () |
static wxString | GetAutoSaveFilePrefix () |
Static Protected Attributes | |
static constexpr int | KICAD_AUI_TB_STYLE = wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_PLAIN_BACKGROUND |
< Default style flags used for wxAUI toolbars. More... | |
Private Attributes | |
TOOL_ACTION * | m_exportNetlistAction |
The export board netlist tool action object. More... | |
Friends | |
struct | PCB::IFACE |
class | APPEARANCE_CONTROLS |
The main frame for Pcbnew.
See also class PCB_BASE_FRAME(): Basic class for Pcbnew and GerbView.
Definition at line 72 of file pcb_edit_frame.h.
|
inherited |
Enumerator | |
---|---|
DIALOG | |
FRAME | |
PANEL |
Definition at line 42 of file kiway_holder.h.
|
inherited |
Remove the aItemCount of old commands from aList and delete commands, pickers and picked items if needed.
Because picked items must be deleted only if they are not in use, this is a virtual pure function that must be created for SCH_SCREEN and PCB_SCREEN. Commands are deleted from the older to the last.
aList | = the UNDO_REDO_CONTAINER of commands. |
aItemCount | number of old commands to delete. -1 to remove all old commands this will empty the list of commands. |
Enumerator | |
---|---|
UNDO_LIST | |
REDO_LIST |
Definition at line 524 of file eda_base_frame.h.
|
virtual |
Definition at line 386 of file pcb_edit_frame.cpp.
References DIALOG_DRC_WINDOW_NAME, GetBoard(), and BOARD::RemoveListener().
|
protected |
|
overridevirtual |
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD.
aBoard | is the BOARD to put into the frame. |
Reimplemented from PCB_BASE_EDIT_FRAME.
Definition at line 896 of file pcb_edit_frame.cpp.
References PCB_BASE_EDIT_FRAME::ActivateGalCanvas().
Referenced by Refresh().
|
virtualinherited |
Add the given footprint to the board.
aDC | is the current Device Context, to draw the new footprint (can be NULL ). |
Reimplemented in FOOTPRINT_EDIT_FRAME.
Definition at line 158 of file pcb_base_frame.cpp.
References BOARD::Add(), APPEND, FOOTPRINT::Flip(), PCB_BASE_FRAME::GetBoard(), FOOTPRINT::GetPosition(), IS_NEW, FOOTPRINT::IsFlipped(), PCBNEW_SETTINGS::m_FlipLeftRight, PCB_BASE_FRAME::m_settings, EDA_ITEM::SetFlags(), FOOTPRINT::SetOrientation(), and FOOTPRINT::SetPosition().
Referenced by FOOTPRINT_EDIT_FRAME::AddFootprintToBoard().
|
inherited |
Add an existing library to either the global or project library table.
aFileName | the library to add; a file open dialog will be displayed if empty. |
Definition at line 522 of file footprint_libraries_utils.cpp.
References DisplayError(), editor, FRAME_FOOTPRINT_EDITOR, FRAME_FOOTPRINT_VIEWER, PATHS::GetDefaultUserFootprintsPath(), FP_LIB_TABLE::GetGlobalTableFileName(), GFootprintTable, IO_MGR::GuessPluginTypeFromLibPath(), LIB_TABLE::InsertRow(), KiCadFootprintLibPathExtension, KiCadFootprintLibPathWildcard(), KIWAY_HOLDER::Kiway(), EDA_DRAW_FRAME::LibraryFileBrowser(), NormalizePath(), PROJECT::PcbFootprintLibs(), Pgm(), KIWAY::Player(), KIWAY_HOLDER::Prj(), LIB_TABLE::Save(), PCB_BASE_EDIT_FRAME::selectLibTable(), IO_MGR::ShowType(), and IO_ERROR::What().
Referenced by PCB_BASE_EDIT_FRAME::CreateNewLibrary().
|
inherited |
Adds the standard KiCad help menu to the menubar.
Definition at line 417 of file eda_base_frame.cpp.
References _, about, ACTIONS::donate, ACTIONS::getInvolved, ACTIONS::gettingStarted, TOOL_MANAGER::GetTool(), ACTIONS::help, ACTIONS::listHotKeys, TOOLS_HOLDER::m_toolManager, and ACTIONS::reportBug.
Referenced by EDA_3D_VIEWER::CreateMenuBar(), KICAD_MANAGER_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), SYMBOL_VIEWER_FRAME::ReCreateMenuBar(), SYMBOL_EDIT_FRAME::ReCreateMenuBar(), FOOTPRINT_EDIT_FRAME::ReCreateMenuBar(), FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), CVPCB_MAINFRAME::ReCreateMenuBar(), and ReCreateMenuBar().
|
inherited |
Construct a "basic" menu for a tool, containing only items that apply to all tools (e.g.
zoom and grid).
Definition at line 443 of file eda_draw_frame.cpp.
References CONDITIONAL_MENU::AddSeparator(), TOOL_MENU::AddSubMenu(), TOOL_MENU::GetMenu(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::m_toolManager, and SELECTION_CONDITIONS::ShowAlways().
Referenced by ROUTER_TOOL::Init(), PL_EDIT_TOOL::Init(), PL_DRAWING_TOOLS::Init(), PCB_VIEWER_TOOLS::Init(), PL_SELECTION_TOOL::Init(), EE_SELECTION_TOOL::Init(), PCB_SELECTION_TOOL::Init(), and PICKER_TOOL::Init().
|
inherited |
Append a message to the message panel.
This helper method checks to make sure the message panel exists in the frame and appends a message to it using the message panel AppendMessage() method.
aTextUpper | The message upper text. |
aTextLower | The message lower text. |
aPadding | Number of spaces to pad between messages. |
Definition at line 594 of file eda_draw_frame.cpp.
References EDA_MSG_PANEL::AppendMessage(), and EDA_DRAW_FRAME::m_messagePanel.
Referenced by GERBER_FILE_IMAGE::DisplayImageInfo(), SYMBOL_EDIT_FRAME::DisplaySymbolDatasheet(), and SYMBOL_VIEWER_FRAME::updatePreviewSymbol().
|
overrideprotectedvirtual |
Reimplemented from EDA_BASE_FRAME.
Definition at line 804 of file pcb_edit_frame.cpp.
References _, DIALOG_DRC_WINDOW_NAME, Format(), GetBoard(), BOARD::GetFileName(), HandleUnsavedChanges(), ID_SAVE_BOARD, and KIPLATFORM::APP::SupportsShutdownBlockReason().
|
inherited |
Definition at line 1084 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::SetUserUnits(), and EDA_BASE_FRAME::unitsChangeRefresh().
Referenced by COMMON_TOOLS::SwitchUnits(), and COMMON_TOOLS::ToggleUnits().
|
inherited |
Check if an auto save file exists for aFileName and takes the appropriate action depending on the user input.
If an auto save file exists for aFileName, the user is prompted if they wish to replace file aFileName with the auto saved file. If the user chooses to replace the file, the backup file of aFileName is removed, aFileName is renamed to the backup file name, and the auto save file is renamed to aFileName. If user chooses to keep the existing version of aFileName, the auto save file is removed.
aFileName | A wxFileName object containing the file name to check. |
Definition at line 972 of file eda_base_frame.cpp.
References _, Format(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), Pgm(), and traceAutoSave.
Referenced by OpenProjectFiles(), and SCH_EDIT_FRAME::OpenProjectFiles().
bool PCB_EDIT_FRAME::Clear_Pcb | ( | bool | aQuery, |
bool | aFinal = false |
||
) |
Delete all and reinitialize the current board.
aQuery | true to prompt user for confirmation, false to initialize silently. |
aFinal | if true, we are clearing the board to exit, so don't run more events.Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD. |
aBoard | is the BOARD to put into the frame. |
Definition at line 42 of file initpcb.cpp.
References _, EDA_BASE_FRAME::ClearUndoRedoList(), BASE_SCREEN::ClrModify(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetPageSizeIU(), PCB_BASE_FRAME::GetScreen(), BASE_SCREEN::InitDataPoints(), IsOK(), PCB_BASE_EDIT_FRAME::m_appearancePanel, NULL, APPEARANCE_CONTROLS::OnBoardChanged(), ReCreateAuxiliaryToolbar(), ReCreateLayerBox(), EDA_DRAW_FRAME::ReleaseFile(), BOARD::ResetNetHighLight(), SetBoard(), BOARD::SetCopperLayerCount(), BOARD::SetEnabledLayers(), BOARD::SetFileName(), BOARD::SetVisibleLayers(), UpdateTitle(), and EDA_DRAW_FRAME::Zoom_Automatique().
Referenced by Files_io_from_id(), and OpenProjectFiles().
|
inherited |
Removes all files from the file history.
aFileHistory | The FILE_HISTORY in use. If null, the main application file history is used |
Definition at line 869 of file eda_base_frame.cpp.
References FILE_HISTORY::ClearFileHistory(), EDA_BASE_FRAME::m_fileHistory, and EDA_BASE_FRAME::ReCreateMenuBar().
Referenced by GERBVIEW_FRAME::OnClearDrlFileHistory(), KICAD_MANAGER_FRAME::OnClearFileHistory(), PL_EDITOR_FRAME::OnClearFileHistory(), OnClearFileHistory(), SCH_EDIT_FRAME::OnClearFileHistory(), GERBVIEW_FRAME::OnClearGbrFileHistory(), GERBVIEW_FRAME::OnClearJobFileHistory(), and GERBVIEW_FRAME::OnClearZipFileHistory().
|
virtualinherited |
Clear all messages from the message panel.
Reimplemented in SYMBOL_EDIT_FRAME.
Definition at line 602 of file eda_draw_frame.cpp.
References EDA_MSG_PANEL::EraseMsgBox(), and EDA_DRAW_FRAME::m_messagePanel.
Referenced by GERBVIEW_CONTROL::ClearAllLayers(), GERBVIEW_CONTROL::ClearLayer(), GERBER_FILE_IMAGE::DisplayImageInfo(), SYMBOL_EDIT_FRAME::DisplaySymbolDatasheet(), DIALOG_GENDRILL::GenDrillAndMapFiles(), GERBVIEW_FRAME::LoadGerberJobFile(), DIALOG_BOM::OnRunGenerator(), GERBVIEW_CONTROL::ReloadAllLayers(), NETLIST_DIALOG::TransferDataFromWindow(), EE_INSPECTION_TOOL::UpdateMessagePanel(), FOOTPRINT_WIZARD_FRAME::UpdateMsgPanel(), SYMBOL_VIEWER_FRAME::updatePreviewSymbol(), and GERBVIEW_FRAME::UpdateTitleAndInfo().
|
overridevirtualinherited |
Free the undo or redo list from List element.
Wrappers are deleted. Data pointed by wrappers are deleted if not in use in schematic i.e. when they are copy of a schematic item or they are no more in use (DELETED). Items are removed from the beginning of the list so this function can be called to remove old commands.
whichList | the UNDO_REDO_CONTAINER to clear. |
aItemCount | the count of items to remove. < 0 for all items. |
Reimplemented from EDA_BASE_FRAME.
Definition at line 552 of file undo_redo.cpp.
References PICKED_ITEMS_LIST::ClearListAndDeleteItems(), and UNDO_REDO_CONTAINER::m_CommandsList.
|
virtualinherited |
Clear the undo and redo list using ClearUndoORRedoList()
Picked items are deleted by ClearUndoORRedoList() according to their status.
Definition at line 1035 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::ClearUndoORRedoList(), EDA_BASE_FRAME::REDO_LIST, and EDA_BASE_FRAME::UNDO_LIST.
Referenced by FOOTPRINT_EDIT_FRAME::Clear_Pcb(), Clear_Pcb(), SYMBOL_EDIT_FRAME::emptyScreen(), SCH_EDIT_FRAME::importFile(), FOOTPRINT_EDITOR_CONTROL::ImportFootprint(), SYMBOL_EDIT_FRAME::LoadSymbolFromCurrentLib(), PL_EDITOR_FRAME::OnNewPageLayout(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDITOR_CONTROL::rescueProject(), FOOTPRINT_EDIT_FRAME::RevertFootprint(), and EDA_BASE_FRAME::~EDA_BASE_FRAME().
|
overridevirtual |
Called after the preferences dialog is run.
Reimplemented from PCB_BASE_FRAME.
Definition at line 1667 of file pcb_edit_frame.cpp.
References _, PCB_BASE_FRAME::CommonSettingsChanged(), and DRC_TOOL::GetDRCEngine().
|
inherited |
Create the entire board ratsnest.
Function Compile_Ratsnest Create the entire board ratsnest.
This must be called after a board change (changes for pads, footprints or a read netlist ).
aDC | is the current device context (can be NULL). |
aDisplayStatus | if true, display the computation results. |
Must be called after a board change (changes for pads, footprints or a read netlist ).
aDC | = the current device context (can be NULL) |
aDisplayStatus | : if true, display the computation results |
Definition at line 41 of file ratsnest.cpp.
References PCB_BASE_FRAME::GetBoard(), BOARD::GetConnectivity(), PCB_BASE_FRAME::m_pcb, and EDA_DRAW_FRAME::SetMsgPanel().
Referenced by DIALOG_CLEANUP_GRAPHICS::doCleanup(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), DIALOG_GLOBAL_DELETION::doGlobalDeletions(), ExportToGenCAD(), DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked(), OpenProjectFiles(), PCB_CONTROL::Paste(), and PANEL_SETUP_LAYERS::TransferDataFromWindow().
|
virtualinherited |
Returns the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
Reimplemented in SYMBOL_EDIT_FRAME, KICAD_MANAGER_FRAME, and FOOTPRINT_EDIT_FRAME.
Definition at line 710 of file eda_base_frame.cpp.
References Kiface(), and KIFACE_I::KifaceSettings().
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), BM2CMP_FRAME::BM2CMP_FRAME(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), FOOTPRINT_WIZARD_FRAME::doCloseWindow(), SIM_PLOT_FRAME::doCloseWindow(), SCH_BASE_FRAME::eeconfig(), FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), DISPLAY_FOOTPRINTS_FRAME::GetAutoZoom(), GRID_MENU::GRID_MENU(), COMMON_TOOLS::GridFast1(), COMMON_TOOLS::GridFast2(), EDA_DRAW_FRAME::IsGridVisible(), SCH_BASE_FRAME::libeditconfig(), EDA_DRAW_FRAME::OnUpdateSelectGrid(), EDA_DRAW_FRAME::OnUpdateSelectZoom(), PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME(), DIALOG_GRID_SETTINGS::RebuildGridSizes(), EDA_DRAW_FRAME::resolveCanvasType(), DISPLAY_FOOTPRINTS_FRAME::SetAutoZoom(), PCB_BASE_EDIT_FRAME::SetBoard(), EDA_DRAW_FRAME::SetGridVisibility(), PL_EDITOR_FRAME::setupTools(), SYMBOL_VIEWER_FRAME::setupTools(), CVPCB_MAINFRAME::setupTools(), GERBVIEW_FRAME::setupTools(), SCH_EDIT_FRAME::setupTools(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), DIALOG_GRID_SETTINGS::TransferDataToWindow(), ZOOM_MENU::update(), GRID_MENU::update(), EDA_DRAW_FRAME::UpdateGridSelectBox(), EDA_DRAW_FRAME::UpdateZoomSelectBox(), EDA_BASE_FRAME::windowClosing(), ZOOM_MENU::ZOOM_MENU(), and BM2CMP_FRAME::~BM2CMP_FRAME().
|
inlineoverridevirtualinherited |
Get the configuration base name.
This is usually the name of the frame set by CTOR, except for frames shown in multiple modes in which case the m_configName must be set to the base name so that a single configuration can be used.
Reimplemented from TOOLS_HOLDER.
Definition at line 338 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_configName.
Referenced by EDA_BASE_FRAME::SaveWindowSettings().
|
inherited |
Shows the 3D view frame.
If it does not exist, it is created. If it exists, it is brought to the foreground.
Definition at line 417 of file pcb_base_frame.cpp.
References _, PCB_BASE_FRAME::Get3DViewerFrame(), and KIWAY_HOLDER::Kiway().
Referenced by PCB_VIEWER_TOOLS::Show3DViewer().
|
inherited |
Definition at line 735 of file eda_base_frame.cpp.
References TOOLS_HOLDER::GetToolCanvas(), EDA_BASE_FRAME::m_auimgr, and EDA_BASE_FRAME::m_infoBar.
|
inherited |
Creates a new footprint, at position 0,0.
The new footprint contains only 2 texts: a reference and a value: Reference = REF** Value = "VAL**" or Footprint name in lib
aFootprintName | is the name of the new footprint in library. |
Definition at line 1083 of file footprint_libraries_utils.cpp.
References _, DisplayInfoMessage(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetDesignSettings(), BOARD_ITEM::GetLayer(), FOOTPRINT::GetReference(), BOARD_DESIGN_SETTINGS::GetTextItalic(), BOARD_DESIGN_SETTINGS::GetTextSize(), BOARD_DESIGN_SETTINGS::GetTextThickness(), BOARD_DESIGN_SETTINGS::GetTextUpright(), FOOTPRINT::GetValue(), FOOTPRINT::GraphicalItems(), BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, PCB_FP_TEXT_T, FOOTPRINT::Reference(), FOOTPRINT::RunOnChildren(), FOOTPRINT::SetFPID(), EDA_TEXT::SetItalic(), FP_TEXT::SetKeepUpright(), FOOTPRINT::SetLastEditTime(), BOARD_ITEM::SetLayer(), EDA_DRAW_FRAME::SetMsgPanel(), FP_TEXT::SetPosition(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetTextThickness(), WX_TEXT_ENTRY_DIALOG::SetTextValidator(), FOOTPRINT::SetValue(), EDA_TEXT::SetVisible(), EDA_ITEM::Type(), and FOOTPRINT::Value().
Referenced by MICROWAVE_TOOL::createBaseFootprint(), MICROWAVE_TOOL::createMicrowaveInductor(), and FOOTPRINT_EDITOR_CONTROL::NewFootprint().
|
inherited |
If a library name is given, creates a new footprint library in the project folder with the given name.
If no library name is given it prompts user for a library path, then creates a new footprint library at that location. If library exists, user is warned about that, and is given a chance to abort the new creation, and in that case existing library is first deleted.
aProposedName | is the initial path and filename shown in the file chooser dialog. |
Definition at line 376 of file footprint_libraries_utils.cpp.
References _, PCB_BASE_EDIT_FRAME::AddLibrary(), DisplayError(), KIDIALOG::DoNotShowCheckbox(), Format(), PATHS::GetDefaultUserFootprintsPath(), PROJECT::GetProjectPath(), GFootprintTable, IO_MGR::KICAD_SEXP, KiCadFootprintLibPathExtension, KiCadFootprintLibPathWildcard(), EDA_DRAW_FRAME::LibraryFileBrowser(), IO_MGR::PluginFind(), KIWAY_HOLDER::Prj(), PCB_BASE_EDIT_FRAME::selectLibTable(), EDA_BASE_FRAME::ShowInfoBarError(), KIDIALOG::ShowModal(), and IO_ERROR::What().
Referenced by ExportFootprintsToLibrary(), and OpenProjectFiles().
|
inherited |
Definition at line 48 of file eda_dde.cpp.
References HOSTNAME(), ID_EDA_SOCKET_EVENT_SERV, and EDA_DRAW_FRAME::m_socketServer.
Referenced by SCH::IFACE::CreateWindow().
|
inherited |
Definition at line 99 of file tools_holder.cpp.
References TOOLS_HOLDER::m_toolStack, and ACTIONS::selectionTool.
Referenced by TOOL_MANAGER::processEvent().
|
overrideinherited |
Our version of Destroy() which is virtual from wxWidgets.
Definition at line 150 of file kiway_player.cpp.
Referenced by DISPLAY_FOOTPRINTS_FRAME::doCloseWindow(), GERBVIEW_FRAME::doCloseWindow(), SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), PL_EDITOR_FRAME::doCloseWindow(), SYMBOL_EDIT_FRAME::doCloseWindow(), SIM_PLOT_FRAME::doCloseWindow(), SCH_EDIT_FRAME::doCloseWindow(), FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), EDA_3D_VIEWER::OnCloseWindow(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), SCH_BASE_FRAME::PickSymbolFromLibBrowser(), PCB_BASE_FRAME::SelectFootprintFromLibBrowser(), DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint(), and FOOTPRINT_WIZARD_FRAME::~FOOTPRINT_WIZARD_FRAME().
|
inherited |
Definition at line 161 of file kiway_player.cpp.
References KIWAY_PLAYER::m_modal_loop, KIWAY_PLAYER::m_modal_ret_val, and KIWAY_PLAYER::m_modal_string.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_WIZARD_FRAME::doCloseWindow(), FOOTPRINT_WIZARD_FRAME::ExportSelectedFootprint(), and SYMBOL_VIEWER_FRAME::FinishModal().
|
overridevirtualinherited |
Display the current grid pane on the status bar.
Reimplemented from EDA_DRAW_FRAME.
Definition at line 511 of file pcb_base_frame.cpp.
References PCB_BASE_FRAME::GetCanvas(), EDA_BASE_FRAME::m_userUnits, and MessageTextFromValue().
Referenced by PCB_BASE_FRAME::UpdateStatusBar().
|
overridevirtualinherited |
Reimplemented from TOOLS_HOLDER.
Definition at line 463 of file eda_draw_frame.cpp.
Referenced by EDIT_TOOL::Duplicate(), and PCB_CONTROL::Paste().
|
inherited |
Display current unit pane in the status bar.
Definition at line 480 of file eda_draw_frame.cpp.
References _, INCHES, EDA_BASE_FRAME::m_userUnits, MILLIMETRES, and MILS.
Referenced by EDA_DRAW_FRAME::UpdateGridSelectBox(), SCH_BASE_FRAME::UpdateStatusBar(), and EDA_DRAW_FRAME::UpdateStatusBar().
|
overrideprotectedvirtual |
Perform auto save when the board has been modified and not saved within the auto save interval.
Reimplemented from EDA_BASE_FRAME.
Definition at line 1119 of file pcbnew/files.cpp.
References PROJECT::AbsolutePath(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), PCB_BASE_FRAME::GetBoard(), PATHS::GetDefaultUserProjectsPath(), NULL_REPORTER::GetInstance(), PCB_BASE_FRAME::GetScreen(), EDA_BASE_FRAME::GetSettingsManager(), KiCadPcbFileExtension, Kiface(), EDA_BASE_FRAME::m_autoSaveState, KIWAY_HOLDER::Prj(), SavePcbFile(), BOARD::SetFileName(), BASE_SCREEN::SetModify(), traceAutoSave, SETTINGS_MANAGER::TriggerBackupIfNeeded(), and UpdateTitle().
Referenced by OnExportSTEP().
|
overrideprotectedvirtual |
Reimplemented from PCB_BASE_EDIT_FRAME.
Definition at line 839 of file pcb_edit_frame.cpp.
References _, BOARD::ClearProject(), PCB_BASE_EDIT_FRAME::doCloseWindow(), Format(), GetBoard(), BOARD::GetFileName(), Pgm(), and traceAutoSave.
int PCB_EDIT_FRAME::DoGenFootprintsPositionFile | ( | const wxString & | aFullFileName, |
bool | aUnitsMM, | ||
bool | aForceSmdItems, | ||
bool | aTopSide, | ||
bool | aBottomSide, | ||
bool | aFormatCSV = false |
||
) |
Create an ASCII footprint position file.
aFullFileName | the full file name of the file to create. |
aUnitsMM | false to use inches, true to use mm in coordinates. |
aForceSmdItems | true to force all footprints with smd pads in list, false to put only footprints with option "INSERT" in list |
aTopSide | true to list footprints on front (top) side. |
aBottomSide | true to list footprints on back (bottom) side, if aTopSide and aTopSide are true, list footprints on both sides. |
aFormatCSV | true to use a comma separated file (CSV) format; default = false |
Definition at line 467 of file gen_footprints_placefile.cpp.
References PLACE_FILE_EXPORTER::GenPositionData(), PCB_BASE_FRAME::GetBoard(), PLACE_FILE_EXPORTER::GetFootprintCount(), and NULL.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles().
bool PCB_EDIT_FRAME::DoGenFootprintsReport | ( | const wxString & | aFullFilename, |
bool | aUnitsMM | ||
) |
Create an ASCII footprint report file giving some infos on footprints and board outlines.
aFullFilename | the full file name of the file to create |
aUnitsMM | false to use inches, true to use mm in coordinates |
Definition at line 535 of file gen_footprints_placefile.cpp.
References PLACE_FILE_EXPORTER::GenReportData(), PCB_BASE_FRAME::GetBoard(), and NULL.
Referenced by GenFootprintsReport().
void PCB_EDIT_FRAME::Edit_Zone_Params | ( | ZONE * | zone_container | ) |
Edit params (layer, clearance, ...) for a zone outline.
Definition at line 40 of file edit_zone_helpers.cpp.
References _, PICKED_ITEMS_LIST::ClearItemsList(), PICKED_ITEMS_LIST::ClearListAndDeleteItems(), dummy(), ZONE_SETTINGS::ExportSetting(), ZONE_FILLER::Fill(), BOARD::FindNet(), Format(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetCanvas(), BOARD::GetConnectivity(), PICKED_ITEMS_LIST::GetCount(), ZONE::GetIsRuleArea(), ZONE::GetLayer(), NETINFO_ITEM::GetNetCode(), PICKED_ITEMS_LIST::GetPickedItem(), PCB_DRAW_PANEL_GAL::GetView(), PCB_BASE_FRAME::GetZoneSettings(), ZONE_FILLER::InstallNewProgressReporter(), InvokeCopperZonesEditor(), InvokeNonCopperZonesEditor(), InvokeRuleAreaEditor(), IsCopperLayer(), ZONE::IsFilled(), ZONE_SETTINGS::m_NetcodeSelection, BOARD::OnAreaPolygonModified(), OnModify(), BOARD_COMMIT::Push(), SaveCopyOfZones(), BOARD_CONNECTED_ITEM::SetNetCode(), PCB_BASE_FRAME::Settings(), PCB_BASE_FRAME::SetZoneSettings(), BOARD_COMMIT::Stage(), UNDEFINED_LAYER, KIGFX::PCB_VIEW::Update(), UpdateCopyOfZonesList(), and ZONE_EXPORT_VALUES.
Referenced by OnEditItemRequest().
|
inherited |
Definition at line 232 of file eda_draw_frame.cpp.
References EDA_MSG_PANEL::EraseMsgBox(), and EDA_DRAW_FRAME::m_messagePanel.
Referenced by GERBVIEW_CONTROL::UpdateMessagePanel().
void PCB_EDIT_FRAME::ExchangeFootprint | ( | FOOTPRINT * | aExisting, |
FOOTPRINT * | aNew, | ||
BOARD_COMMIT & | aCommit, | ||
bool | deleteExtraTexts = true , |
||
bool | resetTextLayers = true , |
||
bool | resetTextEffects = true , |
||
bool | resetFabricationAttrs = true , |
||
bool | reset3DModels = true |
||
) |
Replace aExisting footprint by aNew footprint using the Existing footprint settings (position, orientation, pad netnames ...).
The aExisting footprint is deleted or put in undo list.
aExisting | footprint to replace. |
aNew | footprint to put. |
aCommit | commit that should store the changes. |
Definition at line 483 of file dialog_exchange_footprints.cpp.
References COMMIT::Add(), FOOTPRINT::Add(), PCB_GROUP::AddItem(), EDA_ITEM::ClearFlags(), FOOTPRINT::FindPadByName(), FOOTPRINT::Flip(), FOOTPRINT::GetAttributes(), PCB_BASE_FRAME::GetBoard(), FOOTPRINT::GetFPID(), BOARD_ITEM::GetLayer(), LIB_ID::GetLibItemName(), BOARD_CONNECTED_ITEM::GetLocalRatsnestVisible(), getMatchingTextItem(), BOARD_CONNECTED_ITEM::GetNetCode(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentGroup(), FOOTPRINT::GetPath(), PAD::GetPinFunction(), FOOTPRINT::GetPosition(), FOOTPRINT::GetProperties(), FOOTPRINT::GetValue(), FOOTPRINT::GraphicalItems(), PAD::IsLocked(), FOOTPRINT::IsLocked(), PCBNEW_SETTINGS::m_FlipLeftRight, PCB_BASE_FRAME::m_settings, EDA_ITEM::m_Uuid, FOOTPRINT::Models(), pad, FOOTPRINT::Pads(), PCB_BASE_FRAME::PlaceFootprint(), processTextItem(), FOOTPRINT::Reference(), COMMIT::Remove(), PCB_GROUP::RemoveItem(), FOOTPRINT::SetAttributes(), FOOTPRINT::SetLocked(), FOOTPRINT::SetOrientation(), EDA_ITEM::SetParent(), FOOTPRINT::SetPath(), FOOTPRINT::SetPosition(), FOOTPRINT::SetProperties(), NETINFO_LIST::UNCONNECTED, and FOOTPRINT::Value().
Referenced by DIALOG_EXCHANGE_FOOTPRINTS::processFootprint(), BOARD_NETLIST_UPDATER::replaceComponent(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
|
overridevirtual |
Execute a remote command send by Eeschema via a socket, port KICAD_PCB_PORT_SERVICE_NUMBER (currently 4242).
This is a virtual function called by EDA_DRAW_FRAME::OnSockRequest().
cmdline | is the received command from socket. |
Reimplemented from EDA_DRAW_FRAME.
Definition at line 62 of file pcbnew/cross-probing.cpp.
References _, CROSS_PROBING_SETTINGS::auto_highlight, CROSS_PROBING_SETTINGS::center_on_items, BOX2< Vec >::Centre(), DEFAULT_TEXT_SIZE, BOARD::FindFootprintByReference(), BOARD::FindNet(), FOOTPRINT::FindPadByName(), BOARD::Footprints(), FROM_UTF8(), PCB_BASE_FRAME::GetBoard(), FOOTPRINT::GetBoundingBox(), PCB_BASE_FRAME::GetCanvas(), BOX2< Vec >::GetHeight(), BOARD::GetHighLightNetCodes(), NETINFO_ITEM::GetMsgPanelInfo(), NETINFO_ITEM::GetNetCode(), KIGFX::VIEW::GetPainter(), PCB_BASE_FRAME::GetPcbNewSettings(), KIGFX::VIEW::GetScale(), KIGFX::PAINTER::GetSettings(), TOOLS_HOLDER::GetToolManager(), TOOL_MANAGER::GetView(), BOX2< Vec >::GetWidth(), PCB_ACTIONS::highlightItem, BOARD::HighLightON(), BOX2< Vec >::Inflate(), KIGFX::RENDER_SETTINGS::IsHighlightEnabled(), BOARD::IsHighLightNetON(), APP_SETTINGS_BASE::m_CrossProbing, TOOLS_HOLDER::m_toolManager, BOX2< Vec >::Merge(), Millimeter2iu(), next(), NULL, pad, EDA_DRAW_PANEL_GAL::Refresh(), BOARD::ResetNetHighLight(), TOOL_MANAGER::RunAction(), PCB_ACTIONS::selectOnSheetFromEeschema, KIGFX::VIEW::SetCenter(), KIGFX::RENDER_SETTINGS::SetHighlight(), BOARD::SetHighLightNet(), EDA_DRAW_FRAME::SetMsgPanel(), KIGFX::VIEW::SetScale(), text, KIGFX::VIEW::ToWorld(), BOARD::Tracks(), KIGFX::VIEW::UpdateAllLayersColor(), VECTOR2< T >::x, BOARD::Zones(), and CROSS_PROBING_SETTINGS::zoom_to_fit.
Referenced by KiwayMailIn().
bool PCB_EDIT_FRAME::Export_IDF3 | ( | BOARD * | aPcb, |
const wxString & | aFullFileName, | ||
bool | aUseThou, | ||
double | aXRef, | ||
double | aYRef | ||
) |
Create an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file.
Function Export_IDF3 generates IDFv3 compliant board (*.emn) and library (*.emp) files representing the user's PCB design.
aPcb | a pointer to the board to be exported to IDF. |
aFullFileName | the full filename of the export file. |
aUseThou | set to true if the desired IDF unit is thou (mil). |
aXRef | the board Reference Point in mm, X value. |
aYRef | the board Reference Point in mm, Y value. |
Definition at line 586 of file export_idf.cpp.
References _, BOARD::Footprints(), FROM_UTF8(), BOARD_DESIGN_SETTINGS::GetBoardThickness(), GetBuildVersion(), BOARD::GetDesignSettings(), BOARD::GetFileName(), idf_export_footprint(), idf_export_outline(), KIWAY_HOLDER::Prj(), resolver, scale, TO_UTF8, UNIT_MM, and IO_ERROR::What().
Referenced by OnExportIDF3().
void PCB_EDIT_FRAME::ExportFootprintsToLibrary | ( | bool | aStoreInNewLib, |
const wxString & | aLibName = wxEmptyString , |
||
wxString * | aLibPath = NULL |
||
) |
Save footprints in a library:
aStoreInNewLib | true to save footprints in a existing library. Existing footprints will be kept or updated. This library should be in fp lib table, and is type is .pretty. False to save footprints in a new library. If it is an existing lib, previous footprints will be removed. |
aLibName | optional library name to create, stops dialog call. Must be called with aStoreInNewLib as true. |
Definition at line 654 of file footprint_libraries_utils.cpp.
References _, PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DisplayError(), DisplayInfoMessage(), FP_LIB_TABLE::FootprintSave(), PCB_BASE_FRAME::GetBoard(), PROJECT::GetRString(), IO_MGR::KICAD_SEXP, PROJECT::PCB_LIB_NICKNAME, PROJECT::PcbFootprintLibs(), IO_MGR::PluginFind(), KIWAY_HOLDER::Prj(), PCB_BASE_FRAME::SelectLibrary(), PROJECT::SetRString(), and IO_ERROR::What().
Referenced by ExportFootprintsToLibrary(), and Process_Special_Functions().
bool PCB_EDIT_FRAME::ExportSpecctraFile | ( | const wxString & | aFullFilename | ) |
Export the current BOARD to a specctra dsn file.
See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the specification.
Definition at line 83 of file specctra_export.cpp.
References _, BASE_SCREEN::ClrModify(), DisplayErrorMessage(), DSN::SPECCTRA_DB::ExportPCB(), DSN::SPECCTRA_DB::FlipFOOTPRINTs(), DSN::SPECCTRA_DB::FromBOARD(), GetBoard(), BASE_SCREEN::IsModify(), DSN::SPECCTRA_DB::MakePCB(), DSN::SPECCTRA_DB::RevertFOOTPRINTs(), DSN::SPECCTRA_DB::SetPCB(), BOARD::SynchronizeNetsAndNetClasses(), and IO_ERROR::What().
Referenced by ExportSpecctraDSN().
void PCB_EDIT_FRAME::ExportSVG | ( | wxCommandEvent & | event | ) |
Show the Export to SVG file dialog.
Definition at line 1221 of file pcb_edit_frame.cpp.
References GetBoard(), and InvokeExportSVG().
void PCB_EDIT_FRAME::ExportToGenCAD | ( | wxCommandEvent & | event | ) |
Create a file in GenCAD 1.4 format from the current board.
Definition at line 226 of file export_gencad.cpp.
References _, B_Cu, PCB_BASE_FRAME::Compile_Ratsnest(), componentShapes, BOARD::ComputeBoundingBox(), CreateArtworksSection(), CreateBoardSection(), CreateComponentsSection(), CreateDevicesSection(), CreateHeaderInfoData(), CreatePadsShapesSection(), CreateRoutesSection(), CreateShapesSection(), CreateSignalsSection(), CreateTracksInfoData(), DisplayError(), FLIP_BOTTOM_PADS, flipBottomPads, BOARD::Footprints(), Format(), GencadOffsetX, GencadOffsetY, PCB_BASE_FRAME::GetBoard(), BOARD::GetDesignSettings(), DIALOG_GENCAD_EXPORT_OPTIONS::GetFileName(), BOARD::GetFileName(), GetLastPath(), DIALOG_GENCAD_EXPORT_OPTIONS::GetOption(), INDIVIDUAL_SHAPES, individualShapes, LAST_PATH_GENCAD, BOARD_DESIGN_SETTINGS::m_AuxOrigin, PCBNEW_SETTINGS::m_FlipLeftRight, PCB_BASE_FRAME::m_pcb, path, SetLastPath(), PCB_BASE_FRAME::Settings(), shapeNames, STORE_ORIGIN_COORDS, storeOriginCoords, UNIQUE_PIN_NAMES, uniquePins, and USE_AUX_ORIGIN.
bool PCB_EDIT_FRAME::ExportVRML_File | ( | const wxString & | aFullFileName, |
double | aMMtoWRMLunit, | ||
bool | aExport3DFiles, | ||
bool | aUseRelativePaths, | ||
const wxString & | a3D_Subdir, | ||
double | aXRef, | ||
double | aYRef | ||
) |
Create the file(s) exporting current BOARD to a VRML file.
aFullFileName | the full filename of the file to create |
aMMtoWRMLunit | the VRML scaling factor: 1.0 to export in mm. 0.001 for meters |
aExport3DFiles | true to copy 3D shapes in the subir a3D_Subdir |
aUseRelativePaths | set to true to use relative paths instead of absolute paths in the board VRML file URLs. |
a3D_Subdir | sub directory where 3D shapes files are copied. This is only used when aExport3DFiles == true. |
aXRef | X value of PCB (0,0) reference point. |
aYRef | Y value of PCB (0,0) reference point. |
Definition at line 936 of file export_vrml.cpp.
References _, EXPORTER_PCB_VRML::ComputeLayer3D_Zpos(), EXPORTER_PCB_VRML::ExportFp3DModelsAsLinkedFile(), EXPORTER_PCB_VRML::ExportStandardLayers(), EXPORTER_PCB_VRML::ExportVrmlBoard(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), EXPORTER_PCB_VRML::ExportVrmlSolderMask(), EXPORTER_PCB_VRML::ExportVrmlViaHoles(), BOARD::Footprints(), FROM_UTF8(), PCB_BASE_FRAME::GetBoard(), EXPORTER_PCB_VRML::m_BoardToVrmlScale, EXPORTER_PCB_VRML::m_Cache3Dmodels, EXPORTER_PCB_VRML::m_Pcb, EXPORTER_PCB_VRML::m_Subdir3DFpModels, EXPORTER_PCB_VRML::m_UseInlineModelsInBrdfile, EXPORTER_PCB_VRML::m_UseRelPathIn3DModelFilename, model_vrml, NULL, KIWAY_HOLDER::Prj(), EXPORTER_PCB_VRML::SetOffset(), EXPORTER_PCB_VRML::SetScale(), TO_UTF8, and EXPORTER_PCB_VRML::writeLayers().
Referenced by ExportVRML(), and OnExportVRML().
bool PCB_EDIT_FRAME::FetchNetlistFromSchematic | ( | NETLIST & | aNetlist, |
const wxString & | aAnnotateMessage | ||
) |
aNetlist | a NETLIST owned by the caller. This function fills it in. |
aAnnotateMessage | a message to be shown if annotation must be performed. If empty, annotation will be skipped. |
Definition at line 1406 of file pcb_edit_frame.cpp.
References _, DisplayErrorMessage(), KIWAY::ExpressMail(), FRAME_SCH, Kiway, KICAD_NETLIST_READER::LoadNetlist(), and MAIL_SCH_GET_NETLIST.
Referenced by KiwayMailIn(), DRC_TOOL::RunTests(), and BOARD_EDITOR_CONTROL::UpdatePCBFromSchematic().
void PCB_EDIT_FRAME::Files_io | ( | wxCommandEvent & | event | ) |
Call Files_io_from_id with the wxCommandEvent id.
event | is the command event handler. |
Definition at line 299 of file pcbnew/files.cpp.
References Files_io_from_id().
bool PCB_EDIT_FRAME::Files_io_from_id | ( | int | aId | ) |
Read and write board files according to aId.
Valid event IDs are:
aId | is an event ID coming from file command events: |
Definition at line 306 of file pcbnew/files.cpp.
References _, PROJECT::AbsolutePath(), AskLoadBoardFileName(), AskSaveBoardFileName(), Clear_Pcb(), BOARD::ClearProject(), BASE_SCREEN::ClrModify(), DisplayInfoMessage(), Format(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), PCB_BASE_FRAME::GetBoard(), PATHS::GetDefaultUserProjectsPath(), BOARD::GetFileName(), EDA_BASE_FRAME::GetMruPath(), PROJECT::GetProjectFullName(), PCB_BASE_FRAME::GetScreen(), EDA_BASE_FRAME::GetSettingsManager(), HandleUnsavedChanges(), ID_COPY_BOARD_AS, ID_IMPORT_NON_KICAD_BOARD, ID_LOAD_FILE, ID_MENU_RECOVER_BOARD_AUTOSAVE, ID_NEW_BOARD, ID_SAVE_BOARD, ID_SAVE_BOARD_AS, IsContentModified(), BOARD::IsEmpty(), IsOK(), KI_FALLTHROUGH, KiCadPcbFileExtension, LoadProjectSettings(), onBoardLoaded(), OnModify(), OpenProjectFiles(), KIWAY_HOLDER::Prj(), SETTINGS_MANAGER::Prj(), SavePcbCopy(), SavePcbFile(), SETTINGS_MANAGER::SaveProject(), SaveProjectSettings(), BOARD::SetFileName(), SETTINGS_MANAGER::UnloadProject(), and UpdateTitle().
Referenced by Files_io(), BOARD_EDITOR_CONTROL::New(), BOARD_EDITOR_CONTROL::Open(), BOARD_EDITOR_CONTROL::Save(), BOARD_EDITOR_CONTROL::SaveAs(), and BOARD_EDITOR_CONTROL::SaveCopyAs().
|
inlinestaticprotected |
Definition at line 782 of file pcb_edit_frame.h.
References pythonConsoleNameId().
Referenced by setupUIConditions().
|
inherited |
|
inherited |
Definition at line 185 of file pcb_base_frame.cpp.
References EDA_ITEM::ClearBrightened(), EDA_DRAW_FRAME::FocusOnLocation(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetCanvas(), EDA_ITEM::GetFocusPosition(), DELETED_BOARD_ITEM::GetInstance(), BOARD::GetItem(), PCB_DRAW_PANEL_GAL::GetView(), EDA_ITEM::m_Uuid, niluuid, PCB_FOOTPRINT_T, PCB_GROUP_T, EDA_DRAW_PANEL_GAL::Refresh(), EDA_ITEM::SetBrightened(), EDA_ITEM::Type(), and KIGFX::PCB_VIEW::Update().
Referenced by PCB_SELECTION_TOOL::Main(), DIALOG_FOOTPRINT_CHECKER::OnCancelClick(), DIALOG_DRC::OnCancelClick(), DIALOG_DRC::OnDRCItemSelected(), DIALOG_GROUP_PROPERTIES::OnMemberSelected(), DIALOG_GROUP_PROPERTIES::OnRemoveMember(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnSelectItem(), DIALOG_CLEANUP_GRAPHICS::OnSelectItem(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), DIALOG_DRC::~DIALOG_DRC(), and DIALOG_GROUP_PROPERTIES::~DIALOG_GROUP_PROPERTIES().
|
inherited |
Useful to focus on a particular location, in find functions.
Move the graphic cursor (crosshair cursor) at a given coordinate and reframes the drawing if the requested point is out of view or if center on location is requested.
aPos | is the point to go to. |
Definition at line 796 of file eda_draw_frame.cpp.
References BOX2< Vec >::Contains(), findDialog(), EDA_DRAW_FRAME::GetCanvas(), EDA_DRAW_PANEL_GAL::GetView(), EDA_DRAW_PANEL_GAL::GetViewControls(), KIGFX::VIEW::GetViewport(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), KIGFX::VIEW::SetCenter(), and KIGFX::VIEW_CONTROLS::SetCrossHairCursorPosition().
Referenced by PCB_SELECTION_TOOL::findCallback(), SCH_EDITOR_CONTROL::FindNext(), PCB_BASE_FRAME::FocusOnItem(), SCH_EDIT_FRAME::FocusOnItem(), and DIALOG_FIND::search().
void PCB_EDIT_FRAME::GenD356File | ( | wxCommandEvent & | event | ) |
Definition at line 362 of file export_d356.cpp.
References _, PCB_BASE_FRAME::GetBoard(), BOARD::GetFileName(), IpcD356FileExtension, IpcD356FileWildcard(), KIWAY_HOLDER::Prj(), and IPC356D_WRITER::Write().
Referenced by BOARD_EDITOR_CONTROL::GenerateFabFiles().
void PCB_EDIT_FRAME::GenFootprintsReport | ( | wxCommandEvent & | event | ) |
Call DoGenFootprintsReport to create a footprint report file.
Definition at line 502 of file gen_footprints_placefile.cpp.
References _, DisplayError(), DoGenFootprintsReport(), PCB_BASE_FRAME::GetBoard(), BOARD::GetFileName(), EDA_BASE_FRAME::GetUserUnits(), and MILLIMETRES.
Referenced by BOARD_EDITOR_CONTROL::GenerateFabFiles().
|
inherited |
Definition at line 85 of file pcb_base_frame.cpp.
References QUALIFIED_VIEWER3D_FRAMENAME.
Referenced by PCB_BASE_FRAME::CommonSettingsChanged(), PCB_BASE_FRAME::CreateAndShow3D_Frame(), OpenProjectFiles(), PCB_BASE_FRAME::Update3DView(), and FOOTPRINT_WIZARD_FRAME::~FOOTPRINT_WIZARD_FRAME().
|
inlineinherited |
Definition at line 493 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_aboutTitle.
Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), PGM_SINGLE_TOP::OnPgmInit(), and COMMON_CONTROL::ReportBug().
|
inlinevirtualinherited |
Definition at line 359 of file pcb_base_frame.h.
References PCB_BASE_FRAME::GetScreen(), and PCB_SCREEN::m_Active_Layer.
Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), APPEARANCE_CONTROLS::doApplyLayerPreset(), DRAWING_TOOL::drawArc(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawSegment(), DRAWING_TOOL::DrawVia(), DRAWING_TOOL::DrawZone(), PCB_BASE_FRAME::GetCollectorsGuide(), BOARD_INSPECTION_TOOL::InspectClearance(), PCB_CONTROL::LayerAlphaDec(), PCB_CONTROL::LayerAlphaInc(), PCB_CONTROL::LayerNext(), PCB_CONTROL::LayerPrev(), PCB_CONTROL::LayerToggle(), ROUTER_TOOL::MainLoop(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DIALOG_FOOTPRINT_PROPERTIES::OnAddField(), APPEARANCE_CONTROLS::OnLayerAlphaChanged(), APPEARANCE_CONTROLS::OnLayerChanged(), APPEARANCE_CONTROLS::OnLayerContextMenu(), PCB_DRAW_PANEL_GAL::OnShow(), FOOTPRINT_EDIT_FRAME::OnUpdateLayerSelectBox(), OnUpdateLayerSelectBox(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), DRAWING_TOOL::PlaceText(), SaveProjectSettings(), PCB_BASE_FRAME::SetDisplayOptions(), PCB_BASE_FRAME::SwitchLayer(), SwitchLayer(), and ROUTER_TOOL::switchLayerOnViaPlacement().
|
inlineinherited |
Definition at line 204 of file pcb_base_edit_frame.h.
References PCB_BASE_EDIT_FRAME::m_appearancePanel.
Referenced by BOARD_INSPECTION_TOOL::doHideNet(), DRAWING_TOOL::drawArc(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawSegment(), DRAWING_TOOL::DrawZone(), DIALOG_DRC::OnDRCItemSelected(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), and DRAWING_TOOL::PlaceText().
|
inlinestaticprotectedinherited |
Definition at line 582 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::CheckForAutoSaveFile(), doAutoSave(), SCH_EDIT_FRAME::doAutoSave(), SCH_EDIT_FRAME::doCloseWindow(), Files_io_from_id(), OnExportSTEP(), SCH_EDIT_FRAME::SaveEEFile(), and SavePcbFile().
|
inlineinherited |