![]() |
KiCad PCB EDA Suite
|
PCB_EDIT_FRAME is 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 | FETCH_NETLIST_MODE { NO_ANNOTATION, QUIET_ANNOTATION, ANNOTATION_DIALOG } |
Function FetchNetlistFromSchematic. More... | |
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) |
Function loadFootprints loads the footprints for each 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 | ExecuteRemoteCommand (const char *cmdline) override |
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(). More... | |
void | KiwayMailIn (KIWAY_EXPRESS &aEvent) override |
Receive KIWAY_EXPRESS messages from other players. More... | |
void | ToPlotter (int aID) |
Function ToPlotter Open a dialog frame to create plot and drill files relative to the current board. More... | |
void | ExportSVG (wxCommandEvent &event) |
Function SVG_Print Shows 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 |
Function GetGridColor() , virtual. More... | |
void | SetGridColor (COLOR4D aColor) override |
Function SetGridColor() , virtual. More... | |
void | Process_Config (wxCommandEvent &event) |
void | SaveProjectSettings () override |
Function SaveProjectSettings saves 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 | ReCreateLayerBox (bool aForceResizeToolbar=true) |
Re create the layer Box by clearing the old list, and building le new one, from the new layers names and cole layers. More... | |
void | OnModify () override |
Function OnModify must be called after a board change to set the modified flag. More... | |
void | SetActiveLayer (PCB_LAYER_ID aLayer) override |
Function SetActiveLayer will change the currently active layer to aLayer and also update the APPEARANCE_CONTROLS. More... | |
APPEARANCE_CONTROLS * | GetAppearancePanel () |
void | OnUpdateLayerAlpha (wxUpdateUIEvent &aEvent) override |
Update the UI to reflect changes to the current layer's transparency. More... | |
void | OnDisplayOptionsChanged () override |
bool | IsElementVisible (GAL_LAYER_ID aElement) const |
Function IsElementVisible tests whether a given element category is visible. More... | |
void | SetElementVisibility (GAL_LAYER_ID aElement, bool aNewState) |
Function SetElementVisibility changes the visibility of an element category. More... | |
void | ActivateGalCanvas () override |
More... | |
void | ShowBoardSetupDialog (const wxString &aInitialPage=wxEmptyString) |
Function ShowBoardSetupDialog. More... | |
void | PrepareLayerIndicator (bool aForceRebuild=false) |
void | ToggleLayersManager () |
int | DoGenFootprintsPositionFile (const wxString &aFullFileName, bool aUnitsMM, bool aForceSmdItems, bool aTopSide, bool aBottomSide, bool aFormatCSV=false) |
Function DoGenFootprintsPositionFile Creates an ascii footprint position file. More... | |
void | GenFootprintsReport (wxCommandEvent &event) |
Function GenFootprintsReport Calls DoGenFootprintsReport to create a footprint reprot file See DoGenFootprintsReport for file format. More... | |
bool | DoGenFootprintsReport (const wxString &aFullFilename, bool aUnitsMM) |
Function DoGenFootprintsReport Creates 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) |
Function Files_io. More... | |
bool | Files_io_from_id (int aId) |
Function Files_io_from_id Read and write board files. More... | |
bool | OpenProjectFiles (const std::vector< wxString > &aFileSet, int aCtl=0) override |
Function OpenProjectFiles (was LoadOnePcbFile) loads a KiCad board (.kicad_pcb) from aFileName. More... | |
bool | SavePcbFile (const wxString &aFileName, bool addToHistory=true, bool aChangeProject=true) |
Function SavePcbFile writes the board data structures to a aFileName Creates backup when requested and update flags (modified and saved flgs) More... | |
bool | SavePcbCopy (const wxString &aFileName, bool aCreateProject=false) |
Function SavePcbCopy writes the board data structures to a aFileName but unlike SavePcbFile, does not make anything else (no backup, borad fliename change, no flag changes ...) Used under a project mgr to save under a new name the current board. More... | |
bool | Clear_Pcb (bool aQuery, bool aFinal=false) |
Function Clear_Pcb delete all and reinitialize the current board. More... | |
void | SetBoard (BOARD *aBoard) override |
More... | |
BOARD_ITEM_CONTAINER * | GetModel () const override |
More... | |
void | SetPageSettings (const PAGE_INFO &aPageSettings) override |
More... | |
void | RecreateCmpFileFromBoard (wxCommandEvent &aEvent) |
Function RecreateBOMFileFromBoard Recreates a .cmp file from the current loaded board this is the same as created by CvPcb. More... | |
void | ExportFootprintsToLibrary (bool aStoreInNewLib, const wxString &aLibName=wxEmptyString, wxString *aLibPath=NULL) |
Function ExportFootprintsToLibrary Save footprints in a library: More... | |
void | RecreateBOMFileFromBoard (wxCommandEvent &aEvent) |
Function RecreateBOMFileFromBoard Creates a BOM file from the current loaded board. More... | |
void | ExportToGenCAD (wxCommandEvent &event) |
Function ExportToGenCAD creates a file in GenCAD 1.4 format from the current board. More... | |
void | OnExportVRML (wxCommandEvent &event) |
Function OnExportVRML will export the current BOARD to a VRML file. More... | |
bool | ExportVRML_File (const wxString &aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, bool aUsePlainPCB, const wxString &a3D_Subdir, double aXRef, double aYRef) |
Function ExportVRML_File Creates the file(s) exporting current BOARD to a VRML file. More... | |
void | OnExportIDF3 (wxCommandEvent &event) |
Function OnExportIDF3 will export the current BOARD to a IDFv3 board and lib files. More... | |
void | OnExportHyperlynx (wxCommandEvent &event) |
Function OnExportHyperlynx will export the current BOARD to a Hyperlynx HYP file. More... | |
bool | Export_IDF3 (BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef) |
Function Export_IDF3 Creates an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file. More... | |
void | OnExportSTEP (wxCommandEvent &event) |
Function OnExportSTEP Exports the current BOARD to a STEP assembly. More... | |
bool | ExportSpecctraFile (const wxString &aFullFilename) |
Function ExportSpecctraFile will export the current BOARD to a specctra dsn file. More... | |
bool | ImportSpecctraSession (const wxString &aFullFilename) |
Function ImportSpecctraSession will 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) |
Function Exchange_Module Replaces OldModule by NewModule, using OldModule settings: position, orientation, pad netnames ...) OldModule is deleted or put in undo list. More... | |
void | OnEditItemRequest (BOARD_ITEM *aItem) override |
Function OnEditItemRequest 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) |
Function SetTrackSegmentWidth Modify one track segment width or one via diameter (using DRC control). More... | |
void | Edit_Zone_Params (ZONE *zone_container) |
Function Edit_Zone_Params 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, FETCH_NETLIST_MODE aMode) |
bool | ReannotateSchematic (std::string &aNetlist) |
Sends a command to Eeschema to re-annotate the schematic. More... | |
bool | TestStandalone (void) |
Test if standalone mode. More... | |
void | DoUpdatePCBFromNetlist (NETLIST &aNetlist, bool aUseTimestamps) |
Function DoUpdatePCBFromNetlist An automated version of UpdatePCBFromNetlist which skips the UI dialog. More... | |
bool | ReadNetlistFromFile (const wxString &aFilename, NETLIST &aNetlist, REPORTER &aReporter) |
Reads 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) |
Function SendMessageToEESCHEMA sends a message to the schematic editor so that it may move its cursor to a part with the same reference as the objectToSync. More... | |
void | SendCrossProbeNetName (const wxString &aNetName) |
Sends a net name to eeschema for highlighting. More... | |
void | ShowChangedLanguage () override |
Redraw the menus and what not in current language. More... | |
void | UpdateTitle () |
Function UpdateTitle sets the main window title bar text. More... | |
void | InstallPreferences (PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override |
Allows 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 | 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... | |
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) |
Function AddLibrary Add an existing library to either the global or project library table. More... | |
void | SaveCopyInUndoList (EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, const wxPoint &aTransformPoint=wxPoint(0, 0)) override |
Function SaveCopyInUndoList Creates a new entry in undo list of commands. More... | |
void | SaveCopyInUndoList (const PICKED_ITEMS_LIST &aItemsList, UNDO_REDO aTypeCommand, const wxPoint &aTransformPoint=wxPoint(0, 0)) override |
Function SaveCopyInUndoList Creates a new entry in undo list of commands. More... | |
void | RestoreCopyFromRedoList (wxCommandEvent &aEvent) |
Function RestoreCopyFromRedoList Redo the last edit: More... | |
void | RestoreCopyFromUndoList (wxCommandEvent &aEvent) |
Function RestoreCopyFromUndoList Undo the last edit: More... | |
void | RollbackFromUndo () |
Performs an undo of the last edit WITHOUT logging a corresponding redo. More... | |
void | PutDataInPreviousState (PICKED_ITEMS_LIST *aList, bool aRedoCommand, bool aRebuildRatsnet=true) |
Function PutDataInPreviousState Used in undo or redo command. More... | |
bool | UndoRedoBlocked () const |
Function UndoRedoBlocked Checks if the undo and redo operations are currently blocked. More... | |
void | UndoRedoBlock (bool aBlock=true) |
Function UndoRedoBlock Enables/disable undo and redo operations. More... | |
void | SetGridVisibility (bool aVisible) override |
Function SetGridVisibility() More... | |
void | SetObjectVisible (GAL_LAYER_ID aLayer, bool aVisible=true) |
int | GetRotationAngle () const |
Function GetRotationAngle() Returns the angle used for rotate operations. More... | |
void | SetRotationAngle (int aRotationAngle) |
Function SetRotationAngle() Sets the angle used for rotate operations. More... | |
void | ShowTextPropertiesDialog (BOARD_ITEM *aText) |
Routine for main window class to launch text properties dialog. More... | |
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 |
Function ClearUndoORRedoList free the undo or redo list from List element Wrappers are deleted. More... | |
wxString | GetDesignRulesPath () |
Returns the absolute path to the design rules file for the currently-loaded board. More... | |
EDA_3D_VIEWER * | Get3DViewerFrame () |
virtual void | Update3DView (bool aReloadRequest, 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) |
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) 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 | SelectLayer (PCB_LAYER_ID aDefaultLayer, LSET aNotAllowedLayersMask=LSET(), wxPoint aDlgPosition=wxDefaultPosition) |
Show the dialog box for 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... | |
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) |
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 | HardRedraw () |
Rebuild the GAL and redraws the screen. More... | |
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 | PrintWorkSheet (const RENDER_SETTINGS *aSettings, BASE_SCREEN *aScreen, double aMils2Iu, const wxString &aFilename, const wxString &aSheetLayer=wxEmptyString) |
Prints the page layout with the frame and the basic inscriptions. 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) |
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 |
switches currently used canvas (Cairo / OpenGL). More... | |
void | onBoardLoaded () |
Updates the state of the GUI after a new board is loaded or created. More... | |
bool | doAutoSave () override |
Function doAutoSave performs auto save when the board has been modified and not saved within the auto save interval. More... | |
bool | isAutoSaveRequired () const override |
Function isautoSaveRequired returns 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) |
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 | initExitKey () |
Sets the common key-pair for exiting the application (Ctrl-Q) and ties it to the wxID_EXIT event id. More... | |
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... | |
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 | GetBackupSuffix () |
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... | |
Friends | |
struct | PCB::IFACE |
class | APPEARANCE_CONTROLS |
PCB_EDIT_FRAME is the main frame for Pcbnew.
See also class PCB_BASE_FRAME(): Basic class for Pcbnew and GerbView.
Definition at line 74 of file pcb_edit_frame.h.
Function FetchNetlistFromSchematic.
aNetlist | a NETLIST owned by the caller. This function fills it in. |
Enumerator | |
---|---|
NO_ANNOTATION | |
QUIET_ANNOTATION | |
ANNOTATION_DIALOG |
Definition at line 788 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 519 of file eda_base_frame.h.
|
protected |
|
virtual |
Definition at line 367 of file pcb_edit_frame.cpp.
References DIALOG_DRC_WINDOW_NAME, GetBoard(), and BOARD::RemoveListener().
|
overridevirtual |
Reimplemented from PCB_BASE_EDIT_FRAME.
Definition at line 870 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 157 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 |
Function AddLibrary 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 464 of file footprint_libraries_utils.cpp.
References _, DisplayError(), FRAME_FOOTPRINT_EDITOR, FRAME_FOOTPRINT_VIEWER, FP_LIB_TABLE::GetGlobalTableFileName(), GFootprintTable, IO_MGR::GuessPluginTypeFromLibPath(), LIB_TABLE::InsertRow(), PROJECT::IsNullProject(), KiCadFootprintLibPathExtension, KiCadFootprintLibPathWildcard(), KIWAY_HOLDER::Kiway(), EDA_DRAW_FRAME::LibraryFileBrowser(), NormalizePath(), PROJECT::PcbFootprintLibs(), Pgm(), KIWAY::Player(), KIWAY_HOLDER::Prj(), LIB_TABLE::Save(), SelectSingleOption(), 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 388 of file eda_base_frame.cpp.
References _, about_xpm, 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(), SYMBOL_VIEWER_FRAME::ReCreateMenuBar(), SYMBOL_EDIT_FRAME::ReCreateMenuBar(), FOOTPRINT_EDIT_FRAME::ReCreateMenuBar(), FOOTPRINT_VIEWER_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), CVPCB_MAINFRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), GERBVIEW_FRAME::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 437 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(), PICKER_TOOL::Init(), PL_EDIT_TOOL::Init(), PCB_VIEWER_TOOLS::Init(), PL_DRAWING_TOOLS::Init(), PL_SELECTION_TOOL::Init(), EE_SELECTION_TOOL::Init(), and PCB_SELECTION_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 597 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 778 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 1025 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 923 of file eda_base_frame.cpp.
References _, Format(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), Pgm(), and traceAutoSave.
Referenced by SCH_EDIT_FRAME::OpenProjectFiles(), and OpenProjectFiles().
bool PCB_EDIT_FRAME::Clear_Pcb | ( | bool | aQuery, |
bool | aFinal = false |
||
) |
Function Clear_Pcb 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 |
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 820 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 605 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(), NETLIST_DIALOG::TransferDataFromWindow(), EE_INSPECTION_TOOL::UpdateMessagePanel(), FOOTPRINT_WIZARD_FRAME::UpdateMsgPanel(), SYMBOL_VIEWER_FRAME::updatePreviewSymbol(), and GERBVIEW_FRAME::UpdateTitleAndInfo().
|
overridevirtualinherited |
Function ClearUndoORRedoList free the undo or redo list from List element Wrappers are deleted.
datas 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)
whichList | = the UNDO_REDO_CONTAINER to clear |
aItemCount | = the count of items to remove. < 0 for all items items are removed from the beginning of the list. So this function can be called to remove old commands |
Reimplemented from EDA_BASE_FRAME.
Definition at line 604 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 976 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 1636 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_GLOBAL_DELETION::acceptPcbDelete(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), 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 KICAD_MANAGER_FRAME, and FOOTPRINT_EDIT_FRAME.
Definition at line 661 of file eda_base_frame.cpp.
References Kiface(), and KIFACE_I::KifaceSettings().
Referenced by PCB_BASE_FRAME::ActivateGalCanvas(), GERBVIEW_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(), 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(), GERBVIEW_FRAME::setupTools(), SYMBOL_EDIT_FRAME::setupTools(), CVPCB_MAINFRAME::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 416 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 686 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 1018 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 inital path and filename shown in the file chooser dialog |
Definition at line 371 of file footprint_libraries_utils.cpp.
References _, PCB_BASE_EDIT_FRAME::AddLibrary(), DisplayError(), KIDIALOG::DoNotShowCheckbox(), Format(), PROJECT::GetProjectPath(), IO_MGR::KICAD_SEXP, KiCadFootprintLibPathExtension, KiCadFootprintLibPathWildcard(), EDA_DRAW_FRAME::LibraryFileBrowser(), IO_MGR::PluginFind(), KIWAY_HOLDER::Prj(), EDA_BASE_FRAME::ShowInfoBarError(), KIDIALOG::ShowModal(), and IO_ERROR::What().
Referenced by ExportFootprintsToLibrary().
|
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(), SYMBOL_VIEWER_FRAME::doCloseWindow(), PL_EDITOR_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), SYMBOL_EDIT_FRAME::doCloseWindow(), GERBVIEW_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(), FOOTPRINT_SELECT_WIDGET::ShowPicker(), 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 510 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 466 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 483 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 |
Function doAutoSave performs auto save when the board has been modified and not saved within the auto save interval.
Reimplemented from EDA_BASE_FRAME.
Definition at line 1028 of file pcbnew/files.cpp.
References PROJECT::AbsolutePath(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), PCB_BASE_FRAME::GetBoard(), 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 813 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 |
||
) |
Function DoGenFootprintsPositionFile Creates 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; defautl = false |
Definition at line 465 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 | ||
) |
Function DoGenFootprintsReport Creates 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 533 of file gen_footprints_placefile.cpp.
References PLACE_FILE_EXPORTER::GenReportData(), PCB_BASE_FRAME::GetBoard(), and NULL.
Referenced by GenFootprintsReport().
void PCB_EDIT_FRAME::DoUpdatePCBFromNetlist | ( | NETLIST & | aNetlist, |
bool | aUseTimestamps | ||
) |
Function DoUpdatePCBFromNetlist An automated version of UpdatePCBFromNetlist which skips the UI dialog.
aNetlist | |
aUseTimestamps |
Definition at line 1412 of file pcb_edit_frame.cpp.
References GetBoard(), BOARD_NETLIST_UPDATER::SetDeleteSinglePadNets(), BOARD_NETLIST_UPDATER::SetDeleteUnusedComponents(), BOARD_NETLIST_UPDATER::SetLookupByTimestamp(), BOARD_NETLIST_UPDATER::SetReplaceFootprints(), BOARD_NETLIST_UPDATER::SetWarnPadNoNetInNetlist(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
void PCB_EDIT_FRAME::Edit_Zone_Params | ( | ZONE * | zone_container | ) |
Function Edit_Zone_Params Edit params (layer, clearance, ...) for a zone outline.
Definition at line 39 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(), BOARD_COMMIT::Revert(), SaveCopyOfZones(), BOARD_CONNECTED_ITEM::SetNetCode(), 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 229 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 |
||
) |
Function Exchange_Module Replaces OldModule by NewModule, using OldModule settings: position, orientation, pad netnames ...) OldModule 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 479 of file dialog_exchange_footprints.cpp.
References COMMIT::Add(), FOOTPRINT::Add(), PCB_GROUP::AddItem(), FOOTPRINT::CalculateBoundingBox(), 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(), FOOTPRINT::IsLocked(), PCBNEW_SETTINGS::m_FlipLeftRight, PCB_BASE_FRAME::m_settings, EDA_ITEM::m_Uuid, FOOTPRINT::Models(), FOOTPRINT::Pads(), PCB_BASE_FRAME::PlaceFootprint(), processTextItem(), FOOTPRINT::Reference(), COMMIT::Remove(), PCB_GROUP::RemoveItem(), FOOTPRINT::SetAttributes(), BOARD_CONNECTED_ITEM::SetLocalRatsnestVisible(), FOOTPRINT::SetLocked(), FOOTPRINT::SetOrientation(), EDA_ITEM::SetParent(), FOOTPRINT::SetPath(), FOOTPRINT::SetPosition(), FOOTPRINT::SetProperties(), 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 | = 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(), BOARD_CONNECTED_ITEM::GetNetCode(), 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, 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(), 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 | ||
) |
Function Export_IDF3 Creates 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 587 of file pcbnew/exporters/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 |
||
) |
Function ExportFootprintsToLibrary Save footprints in a library:
aStoreInNewLib | true : save footprints in a existing lib. Existing footprints will be kept or updated. This lib should be in fp lib table, and is type is .pretty false: save footprints in a new lib. It 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 607 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(), importFile(), and Process_Special_Functions().
bool PCB_EDIT_FRAME::ExportSpecctraFile | ( | const wxString & | aFullFilename | ) |
Function ExportSpecctraFile will export the current BOARD to a specctra dsn file.
See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the specification.
Definition at line 82 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 | ) |
Function SVG_Print Shows the Export to SVG file dialog.
Definition at line 1190 of file pcb_edit_frame.cpp.
References GetBoard(), and InvokeExportSVG().
void PCB_EDIT_FRAME::ExportToGenCAD | ( | wxCommandEvent & | event | ) |
Function ExportToGenCAD creates a file in GenCAD 1.4 format from the current board.
Definition at line 223 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, 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, | ||
bool | aUsePlainPCB, | ||
const wxString & | a3D_Subdir, | ||
double | aXRef, | ||
double | aYRef | ||
) |
Function ExportVRML_File Creates 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. |
aUsePlainPCB | set to true to export a board with no copper or silkskreen; this is useful for generating a VRML file which can be converted to a STEP model. |
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 1615 of file export_vrml.cpp.
References _, BOARD_SCALE, cache, CLOSE_STREAM, compute_layer_Zs(), export_vrml_board(), export_vrml_drawings(), export_vrml_footprint(), export_vrml_tracks(), export_vrml_zones(), BOARD::Footprints(), FROM_UTF8(), PCB_BASE_FRAME::GetBoard(), PROJECT::GetProjectPath(), MODEL_VRML::m_plainPCB, model_vrml, NULL, OPEN_OSTREAM, PRECISION, KIWAY_HOLDER::Prj(), PROJ_DIR, BOARD_COMMIT::Revert(), MODEL_VRML::SetOffset(), MODEL_VRML::SetScale(), SUBDIR_3D, TO_UTF8, USE_DEFS, USE_INLINES, USE_RELPATH, WORLD_SCALE, and write_layers().
Referenced by ExportVRML(), and OnExportVRML().
bool PCB_EDIT_FRAME::FetchNetlistFromSchematic | ( | NETLIST & | aNetlist, |
FETCH_NETLIST_MODE | aMode | ||
) |
Definition at line 1376 of file pcb_edit_frame.cpp.
References _, DisplayError(), 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 | ) |
Function Files_io.
event | is the command event handler. do nothing else than call Files_io_from_id with the wxCommandEvent id |
Definition at line 284 of file pcbnew/files.cpp.
References Files_io_from_id().
bool PCB_EDIT_FRAME::Files_io_from_id | ( | int | aId | ) |
Function Files_io_from_id Read and write board files.
aId | is an event ID ciming from file command events: ID_LOAD_FILE ID_MENU_RECOVER_BOARD_AUTOSAVE ID_NEW_BOARD ID_SAVE_BOARD ID_COPY_BOARD_AS ID_SAVE_BOARD_AS Files_io_from_id prepare parameters and calls the specialized function |
Definition at line 291 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(), 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 179 of file pcb_edit_frame.h.
References pythonConsoleNameId().
Referenced by setupUIConditions().
|
inherited |
|
inherited |
Definition at line 184 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_FOOTPRINT_CHECKER::OnSelectItem(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnSelectItem(), DIALOG_CLEANUP_GRAPHICS::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 785 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 | ) |
Function GenFootprintsReport Calls DoGenFootprintsReport to create a footprint reprot file See DoGenFootprintsReport for file format.
Definition at line 500 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 488 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_aboutTitle.
Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and COMMON_CONTROL::ReportBug().
|
inlinevirtualinherited |
Definition at line 356 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()