![]() |
KiCad PCB EDA Suite
|
Schematic editor (Eeschema) main window. More...
#include <sch_edit_frame.h>
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 | |
SCH_EDIT_FRAME (KIWAY *aKiway, wxWindow *aParent) | |
~SCH_EDIT_FRAME () override | |
SCH_SCREEN * | GetScreen () const override |
Return a pointer to a BASE_SCREEN or one of its derivatives. More... | |
SELECTION & | GetCurrentSelection () override |
Get the current selection from the canvas area. More... | |
SCHEMATIC & | Schematic () const |
bool | GetShowAllPins () const override |
Allow edit frame to show/hide hidden pins. More... | |
void | SaveProjectSettings () override |
Save changes to the project settings to the project (.pro) file. More... | |
bool | LoadProjectSettings () |
Loads the KiCad project file (*.pro) settings specific to Eeschema. More... | |
void | ShowSchematicSetupDialog (const wxString &aInitialPage=wxEmptyString) |
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... | |
void | CreateScreens () |
void | ReCreateHToolbar () override |
void | ReCreateVToolbar () override |
void | ReCreateOptToolbar () override |
void | ReCreateMenuBar () override |
Recreates the menu bar. More... | |
void | setupUIConditions () override |
Setup the UI conditions for the various actions and their controls in this frame. More... | |
bool | IsContentModified () override |
Get if the current schematic has been modified but not saved. More... | |
void | OnModify () override |
Must be called after a schematic change in order to set the "modify" flag of the current screen and update the date in frame reference. More... | |
void | RecordERCExclusions () |
Scan existing markers and record data from any that are Excluded. More... | |
void | ResolveERCExclusions () |
Update markers to match recorded exclusions. More... | |
wxString | GetScreenDesc () const override |
Return a human-readable description of the current screen. More... | |
void | ExecuteRemoteCommand (const char *cmdline) override |
Execute a remote command sent by Pcbnew via a socket connection. More... | |
void | KiwayMailIn (KIWAY_EXPRESS &aEvent) override |
Receive KIWAY_EXPRESS messages from other players. More... | |
void | AddItemToScreenAndUndoList (SCH_SCREEN *aScreen, SCH_ITEM *aItem, bool aUndoAppend) |
Add an item to the schematic and adds the changes to the undo/redo container. More... | |
void | ShowFindReplaceDialog (bool aReplace) |
Run the Find or Find & Replace dialog. More... | |
void | UpdateHierarchyNavigator (bool aForceUpdate=false) |
Run the Hierarchy Navigator dialog. More... | |
HIERARCHY_NAVIG_DLG * | FindHierarchyNavigator () |
void | ShowFindReplaceStatus (const wxString &aMsg, int aStatusTime) |
void | ClearFindReplaceStatus () |
wxFindReplaceData * | GetFindReplaceData () |
Get the find criteria (as set by the dialog). More... | |
void | OnFindDialogClose () |
Notification that the Find dialog has closed. More... | |
bool | BreakSegment (SCH_LINE *aSegment, const wxPoint &aPoint, SCH_LINE **aNewSegment=NULL, SCH_SCREEN *aScreen=nullptr) |
Breaks a single segment into two at the specified point. More... | |
bool | BreakSegments (const wxPoint &aPoint, SCH_SCREEN *aScreen=nullptr) |
Checks every wire and bus for a intersection at aPoint and break into two segments at aPoint if an intersection is found. More... | |
bool | BreakSegmentsOnJunctions (SCH_SCREEN *aScreen=nullptr) |
Tests all junctions and bus entries in the schematic for intersections with wires and buses and breaks any intersections into multiple segments. More... | |
void | TestDanglingEnds () |
Test all of the connectable objects in the schematic for unused connection points. More... | |
void | SendMessageToPCBNEW (EDA_ITEM *aObjectToSync, SCH_COMPONENT *aPart) |
Send a message to Pcbnew via a socket connection. More... | |
void | SendCrossProbeNetName (const wxString &aNetName) |
Sends a net name to pcbnew for highlighting. More... | |
void | SetCrossProbeConnection (const SCH_CONNECTION *aConnection) |
Sends a connection (net or bus) to pcbnew for highlighting. More... | |
void | SendCrossProbeClearHighlight () |
Tells PcbNew to clear the existing highlighted net, if one exists. More... | |
const SCH_CONNECTION * | GetHighlightedConnection () const |
void | SetHighlightedConnection (const SCH_CONNECTION *aConnection) |
bool | ReadyToNetlist (bool aSilent=false, bool aSilentAnnotate=false) |
Checks if we are ready to write a netlist file for the current schematic. More... | |
bool | WriteNetListFile (int aFormat, const wxString &aFullFileName, unsigned aNetlistOptions, REPORTER *aReporter=NULL) |
Create a netlist file. More... | |
void | DeleteAnnotation (bool aCurrentSheetOnly, bool *appendUndo) |
Clear the current component annotation. More... | |
void | AnnotateComponents (bool aAnnotateSchematic, ANNOTATE_ORDER_T aSortOption, ANNOTATE_OPTION_T aAlgoOption, int aStartNumber, bool aResetAnnotation, bool aRepairTimestamps, bool aLockUnits, REPORTER &aReporter) |
Annotate the components in the schematic that are not currently annotated. More... | |
int | CheckAnnotate (REPORTER &aReporter, bool aOneSheetOnly) |
Check for annotation errors. More... | |
int | ModalAnnotate (const wxString &aMessage) |
Run a modal version of the Annotate dialog for a specific purpose. More... | |
SCH_SHEET_PATH & | GetCurrentSheet () const |
void | SetCurrentSheet (const SCH_SHEET_PATH &aSheet) |
void | HardRedraw () override |
Rebuild the GAL and redraw the screen. More... | |
void | DisplayCurrentSheet () |
Draw the current sheet on the display. More... | |
void | DrawCurrentSheetToClipboard () |
Use the wxWidgets print code to draw an image of the current sheet onto the clipboard. More... | |
void | OnPageSettingsChange () override |
Called when modifying the page settings. More... | |
wxString | GetUniqueFilenameForCurrentSheet () |
void | SetSheetNumberAndCount () |
Set the m_ScreenNumber and m_NumberOfScreens members for screens. More... | |
wxPageSetupDialogData & | GetPageSetupData () |
void | NewProject () |
void | LoadProject () |
void | Save_File (bool doSaveAs=false) |
bool | SaveProject () |
bool | OpenProjectFiles (const std::vector< wxString > &aFileSet, int aCtl=0) override |
Open a project or set of files given by aFileList. More... | |
wxString | GetCurrentFileName () const override |
Get the full filename + path of the currently opened file in the frame. More... | |
bool | AppendSchematic () |
Import a KiCad schematic into the current sheet. More... | |
bool | SaveEEFile (SCH_SHEET *aSheet, bool aSaveUnderNewName=false) |
Save aSheet to a schematic file. More... | |
bool | AskToSaveChanges () |
Checks if any of the screens has unsaved changes and asks the user whether to save or drop them. More... | |
SCH_JUNCTION * | AddJunction (SCH_SCREEN *aScreen, const wxPoint &aPos, bool aAppendToUndo, bool aFinal=true) |
bool | SchematicCleanUp (SCH_SCREEN *aScreen=nullptr) |
Performs routine schematic cleaning including breaking wire and buses and deleting identical objects superimposed on top of each other. More... | |
bool | TrimWire (const wxPoint &aStart, const wxPoint &aEnd) |
If any single wire passes through both points, remove the portion between the two points, potentially splitting the wire into two. More... | |
std::vector< wxPoint > | GetSchematicConnections () |
Collects a unique list of all possible connection points in the schematic. More... | |
void | OnOpenPcbnew (wxCommandEvent &event) |
void | OnOpenCvpcb (wxCommandEvent &event) |
void | OnUpdatePCB (wxCommandEvent &event) |
void | OnAnnotate (wxCommandEvent &event) |
bool | CheckSheetForRecursion (SCH_SHEET *aSheet, SCH_SHEET_PATH *aHierarchy) |
Verify that aSheet will not cause a recursion error in aHierarchy. More... | |
bool | AllowCaseSensitiveFileNameClashes (const wxString &aSchematicFileName) |
Check aSchematicFileName for a potential file name case sensitivity clashes. More... | |
bool | EditSheetProperties (SCH_SHEET *aSheet, SCH_SHEET_PATH *aHierarchy, bool *aClearAnnotationNewItems) |
Edit an existing sheet or add a new sheet to the schematic. More... | |
void | InitSheet (SCH_SHEET *aSheet, const wxString &aNewFilename) |
bool | LoadSheetFromFile (SCH_SHEET *aSheet, SCH_SHEET_PATH *aHierarchy, const wxString &aFileName) |
Load a the KiCad schematic file aFileName into the sheet aSheet. More... | |
void | DeleteJunction (SCH_ITEM *aItem, bool aAppend=false) |
Removes a given junction and heals any wire segments under the junction. More... | |
void | ConvertPart (SCH_COMPONENT *aComponent) |
void | SelectUnit (SCH_COMPONENT *aComponent, int aUnit) |
void | SaveCopyInUndoList (SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend, const wxPoint &aTransformPoint=wxPoint(0, 0)) |
Create a copy of the current schematic item, and put it in the undo list. More... | |
void | SaveCopyInUndoList (const PICKED_ITEMS_LIST &aItemsList, UNDO_REDO aTypeCommand, bool aAppend, const wxPoint &aTransformPoint=wxPoint(0, 0)) |
Create a new entry in undo list of commands. More... | |
void | PutDataInPreviousState (PICKED_ITEMS_LIST *aList, bool aRedoCommand) |
Restore an undo or redo command to put data pointed by aList in the previous state. More... | |
void | ClearUndoORRedoList (UNDO_REDO_LIST whichList, int aItemCount=-1) override |
Free the undo or redo list from aList element. More... | |
void | SaveCopyForRepeatItem (SCH_ITEM *aItem) |
Clone aItem and owns that clone in this container. More... | |
SCH_ITEM * | GetRepeatItem () const |
Return the item which is to be repeated with the insert key. More... | |
EDA_ITEM * | GetItem (const KIID &aId) override |
Fetch an item by KIID. More... | |
void | RollbackSchematicFromUndo () |
Performs an undo of the last edit WITHOUT logging a corresponding redo. More... | |
bool | CreateArchiveLibraryCacheFile (bool aUseCurrentSheetFilename=false) |
Create a symbol library file with the name of the root document plus the '-cache' suffix,. More... | |
bool | CreateArchiveLibrary (const wxString &aFileName) |
Create a library aFileName that contains all components used in the current schematic. More... | |
virtual void | PrintPage (const RENDER_SETTINGS *aSettings) override |
Plot or print the current sheet to the clipboard. More... | |
void | SetNetListerCommand (const wxString &aCommand) |
void | DefaultExecFlags () |
Reset the execution flags to defaults for external netlist and bom generators. More... | |
void | SetExecFlags (const int aFlags) |
Set (adds) specified flags for next execution of external generator of the netlist or bom. More... | |
void | ClearExecFlags (const int aFlags) |
Clear (removes) specified flags that not needed for next execution of external generator of the netlist or bom. More... | |
wxString | GetNetListerCommand () const |
void | RecalculateConnections (SCH_CLEANUP_FLAGS aCleanupFlags) |
Generates the connection data for the entire schematic hierarchy. More... | |
void | InstallPreferences (PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override |
Allows Eeschema to install its preferences panels into the preferences dialog. More... | |
void | CommonSettingsChanged (bool aEnvVarsChanged, bool aTextVarsChanged) override |
Called after the preferences dialog is run. More... | |
void | UpdateNetHighlightStatus () |
void | ShowChangedLanguage () override |
Redraw the menus and what not in current language. More... | |
void | SetScreen (BASE_SCREEN *aScreen) override |
const BOX2I | GetDocumentExtents (bool aIncludeAllVisible=true) const override |
Returns bbox of document with option to not include some items. More... | |
void | FixupJunctions () |
void | FocusOnItem (SCH_ITEM *aItem) |
void | UpdateSymbolFromEditor (const LIB_PART &aSymbol) |
Update the LIB_PART of the currently selected symbol. More... | |
void | RecomputeIntersheetRefs () |
Update the schematic's page reference map for all global labels, and refresh the labels so that they are redrawn with up-to-date references. More... | |
void | ShowAllIntersheetRefs (bool aShow) |
void | createCanvas () |
SCH_DRAW_PANEL * | GetCanvas () const override |
Return a pointer to GAL-based canvas of given EDA draw frame. More... | |
EESCHEMA_SETTINGS * | eeconfig () const |
SYMBOL_EDITOR_SETTINGS * | libeditconfig () const |
KIGFX::SCH_RENDER_SETTINGS * | GetRenderSettings () |
SCHEMATIC_SETTINGS & | GetDefaults () |
COLOR4D | GetDrawBgColor () const override |
void | SetPageSettings (const PAGE_INFO &aPageSettings) override |
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 TITLE_BLOCK & | GetTitleBlock () const override |
void | SetTitleBlock (const TITLE_BLOCK &aTitleBlock) override |
void | UpdateStatusBar () override |
Update the status bar information. More... | |
PICKED_SYMBOL | PickSymbolFromLibTree (const SCHLIB_FILTER *aFilter, std::vector< PICKED_SYMBOL > &aHistoryList, bool aUseLibBrowser, int aUnit, int aConvert, bool aShowFootprints, const LIB_ID *aHighlight=nullptr, bool aAllowFields=true) |
Function PickSymbolFromLibTree Calls the library viewer to select component to import into schematic. More... | |
LIB_PART * | GetLibPart (const LIB_ID &aLibId, bool aUseCacheLib=false, bool aShowErrorMsg=false) |
Load symbol from symbol library table. More... | |
LIB_PART * | GetFlattenedLibPart (const LIB_ID &aLibId, bool aShowErrorMsg=false) |
PICKED_SYMBOL | PickSymbolFromLibBrowser (wxTopLevelWindow *aParent, const SCHLIB_FILTER *aFilter, const LIB_ID &aPreselectedLibId, int aUnit, int aConvert) |
Function PickSymbolFromLibBrowser Calls the library viewer to select component to import into schematic. More... | |
virtual void | RedrawScreen (const wxPoint &aCenterPoint, bool aWarpPointer) |
virtual void | CenterScreen (const wxPoint &aCenterPoint, bool aWarpPointer) |
void | AddToScreen (EDA_ITEM *aItem, SCH_SCREEN *aScreen) |
Add an item to the screen (and view) aScreen is the screen the item is located on, if not the current screen. More... | |
void | RemoveFromScreen (EDA_ITEM *aItem, SCH_SCREEN *aScreen) |
Remove an item from the screen (and view) aScreen is the screen the item is located on, if not the current screen. More... | |
void | UpdateItem (EDA_ITEM *aItem, bool isAddOrDelete=false) |
Mark an item for refresh. More... | |
void | RefreshSelection () |
Mark selected items for refresh. More... | |
void | SyncView () |
Mark all items for refresh. More... | |
COLOR4D | GetLayerColor (SCH_LAYER_ID aLayer) |
Helper to retrieve a layer color from the global color settings. More... | |
COLOR_SETTINGS * | GetColorSettings () const override |
Returns a pointer to the active color theme settings. 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... | |
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 ORIGIN_TRANSFORMS & | GetOriginTransforms () |
Return a reference to the default ORIGIN_TRANSFORMS object. More... | |
virtual void | SetDrawBgColor (COLOR4D aColor) |
bool | ShowPageLimits () const |
void | SetShowPageLimits (bool aShow) |
bool | LibraryFileBrowser (bool doOpen, wxFileName &aFilename, const wxString &wildcard, const wxString &ext, bool isDirectory=false) |
void | EraseMsgBox () |
virtual void | ReCreateAuxiliaryToolbar () |
bool | IsGridVisible () const |
virtual void | SetGridVisibility (bool aVisible) |
virtual COLOR4D | GetGridColor () |
virtual void | SetGridColor (COLOR4D aColor) |
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 | 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 |
void | DisplayUnitsMsg () |
Display current unit pane in the status bar. More... | |
virtual void | DisplayGridMsg () |
Display current grid size 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 | ActivateGalCanvas () |
Use to start up the GAL drawing canvas. More... | |
virtual void | SwitchCanvas (EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType) |
Changes the current rendering backend. 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 |
virtual SEVERITY | GetSeverity (int aErrorCode) 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... | |
virtual void | ProjectChanged () |
Notification event that the project has changed. 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... | |
Protected Member Functions | |
bool | doAutoSave () override |
Save the schematic files that have been modified and not yet saved. More... | |
bool | isAutoSaveRequired () const override |
Returns true if the schematic has been modified. More... | |
void | sendNetlistToCvpcb () |
Send the kicad netlist over to CVPCB. More... | |
void | onSize (wxSizeEvent &aEvent) |
bool | saveSymbolLibTables (bool aGlobal, bool aProject) |
Saves Symbol Library Tables to disk. 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... | |
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 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... | |
Private Member Functions | |
void | setupTools () |
void | OnExit (wxCommandEvent &event) |
void | OnLoadFile (wxCommandEvent &event) |
void | OnAppendProject (wxCommandEvent &event) |
void | OnImportProject (wxCommandEvent &event) |
void | OnClearFileHistory (wxCommandEvent &aEvent) |
bool | canCloseWindow (wxCloseEvent &aCloseEvent) override |
void | doCloseWindow () override |
void | UpdateTitle () |
Set the main window title bar text. More... | |
bool | checkForNoFullyDefinedLibIds (SCH_SHEET *aSheet) |
Verify that the symbol library links aSheet and all of it's child sheets have been remapped to the symbol library table. More... | |
bool | importFile (const wxString &aFileName, int aFileType) |
Load the given filename but sets the path to the current project path. More... | |
void | mapExistingAnnotation (std::map< wxString, wxString > &aMap) |
Fills a map of uuid -> reference from the currently loaded schematic. More... | |
Private Attributes | |
SCHEMATIC * | m_schematic |
The currently loaded schematic. More... | |
const SCH_CONNECTION * | m_highlightedConn |
The highlighted net or bus, or nullptr. More... | |
wxPageSetupDialogData | m_pageSetupData |
SCH_ITEM * | m_item_to_repeat |
Last item to insert by the repeat command. More... | |
wxString | m_netListerCommand |
Command line to call a custom net list generator. More... | |
int | m_exec_flags |
Flags of the wxExecute() function to call a custom net list generator. More... | |
DIALOG_SCH_FIND * | m_findReplaceDialog |
Friends | |
class | SCH_EDITOR_CONTROL |
Schematic editor (Eeschema) main window.
Definition at line 117 of file sch_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.
SCH_EDIT_FRAME::SCH_EDIT_FRAME | ( | KIWAY * | aKiway, |
wxWindow * | aParent | ||
) |
Definition at line 208 of file sch_edit_frame.cpp.
References _, PCAD2KICAD::Center, KIGFX::eeconfig(), icon_eeschema_16_xpm, icon_eeschema_32_xpm, icon_eeschema_xpm, KiBitmap(), PCAD2KICAD::Left, onSize(), PCAD2KICAD::Right, KIPLATFORM::APP::SetShutdownBlockReason(), and ACTIONS::zoomFitScreen.
|
override |
Definition at line 307 of file sch_edit_frame.cpp.
References EDA_BASE_FRAME::GetSettingsManager(), Kiface(), m_item_to_repeat, m_schematic, TOOLS_HOLDER::m_toolManager, NULL, KIWAY_HOLDER::Prj(), SetScreen(), TOOL_MANAGER::ShutdownAllTools(), and SETTINGS_MANAGER::UnloadProject().
|
virtualinherited |
Use to start up the GAL drawing canvas.
Reimplemented in GERBVIEW_FRAME, PCB_EDIT_FRAME, PCB_BASE_FRAME, FOOTPRINT_EDIT_FRAME, and PCB_BASE_EDIT_FRAME.
Definition at line 652 of file eda_draw_frame.cpp.
References EDA_DRAW_FRAME::GetCanvas(), and EDA_DRAW_PANEL_GAL::StartDrawing().
Referenced by PCB_BASE_FRAME::ActivateGalCanvas(), GERBVIEW_FRAME::ActivateGalCanvas(), SCH_BASE_FRAME::createCanvas(), SCH_DRAW_PANEL::OnShow(), and EDA_DRAW_FRAME::SwitchCanvas().
void SCH_EDIT_FRAME::AddItemToScreenAndUndoList | ( | SCH_SCREEN * | aScreen, |
SCH_ITEM * | aItem, | ||
bool | aUndoAppend | ||
) |
Add an item to the schematic and adds the changes to the undo/redo container.
aUndoAppend | True if the action should be appended to the current undo record. |
Definition at line 1134 of file sch_edit_frame.cpp.
References AddJunction(), SCH_SHEET::AddPin(), SCH_BASE_FRAME::AddToScreen(), CHANGED, SCH_SCREEN::CheckIfOnDrawList(), EDA_ITEM::ClearEditFlags(), EDA_ITEM::ClearFlags(), SCH_ITEM::ConnectedItems(), SCH_BASE_FRAME::GetCanvas(), SCH_ITEM::GetConnectionPoints(), GetCurrentSheet(), EDA_ITEM::GetParent(), inheritNetclass(), IS_NEW, SCH_ITEM::IsConnectable(), SCH_SCREEN::IsJunctionNeeded(), EDA_ITEM::IsMoving(), EDA_ITEM::IsNew(), LOCAL_CLEANUP, NEWITEM, NULL, RecalculateConnections(), EDA_DRAW_PANEL_GAL::Refresh(), SaveCopyForRepeatItem(), SaveCopyInUndoList(), SCH_COMPONENT_T, SCH_FIELD_T, SCH_SHEET_PIN_T, SCH_SHEET_T, BASE_SCREEN::SetModify(), TestDanglingEnds(), TrimWire(), EDA_ITEM::Type(), and SCH_BASE_FRAME::UpdateItem().
Referenced by SCH_DRAWING_TOOLS::DrawSheet(), SCH_EDITOR_CONTROL::Paste(), SCH_DRAWING_TOOLS::PlaceComponent(), SCH_DRAWING_TOOLS::PlaceImage(), BACK_ANNOTATE::processNetNameChange(), SCH_DRAWING_TOOLS::SingleClickPlace(), and SCH_DRAWING_TOOLS::TwoClickPlace().
SCH_JUNCTION * SCH_EDIT_FRAME::AddJunction | ( | SCH_SCREEN * | aScreen, |
const wxPoint & | aPos, | ||
bool | aAppendToUndo, | ||
bool | aFinal = true |
||
) |
Definition at line 444 of file bus-wire-junction.cpp.
References SCH_BASE_FRAME::AddToScreen(), BreakSegments(), KIGFX::VIEW::ClearPreview(), SCH_BASE_FRAME::GetCanvas(), SCH_DRAW_PANEL::GetView(), TOOLS_HOLDER::m_toolManager, NEWITEM, OnModify(), TOOL_MANAGER::PostEvent(), SaveCopyInUndoList(), EVENTS::SelectedItemsModified, and TestDanglingEnds().
Referenced by AddItemToScreenAndUndoList(), SCH_LINE_WIRE_BUS_TOOL::AddJunctionsIfNeeded(), SCH_EDIT_TOOL::BreakWire(), SCH_LINE_WIRE_BUS_TOOL::finishSegments(), FixupJunctions(), and SCH_MOVE_TOOL::Main().
|
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(), ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), and PCB_EDIT_FRAME::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 |
Add an item to the screen (and view) aScreen is the screen the item is located on, if not the current screen.
Definition at line 362 of file sch_base_frame.cpp.
References KIGFX::VIEW::Add(), SCH_BASE_FRAME::GetCanvas(), SCH_BASE_FRAME::GetScreen(), SCH_DRAW_PANEL::GetView(), and SCH_BASE_FRAME::UpdateItem().
Referenced by AddItemToScreenAndUndoList(), AddJunction(), BreakSegment(), SCH_EDIT_TOOL::ChangeTextType(), DeleteJunction(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), SCH_LINE_WIRE_BUS_TOOL::doUnfoldBus(), SCH_EDIT_TOOL::Duplicate(), SCH_LINE_WIRE_BUS_TOOL::finishSegments(), SCH_MOVE_TOOL::getConnectedDragItems(), PutDataInPreviousState(), SCH_EDIT_TOOL::RepeatDrawItem(), SchematicCleanUp(), and ShowAllIntersheetRefs().
bool SCH_EDIT_FRAME::AllowCaseSensitiveFileNameClashes | ( | const wxString & | aSchematicFileName | ) |
Check aSchematicFileName for a potential file name case sensitivity clashes.
On platforms where file names are case sensitive, it is possible to schematic sheet file names that would cause issues on platforms where file name are case insensitive. File names foo.sch and Foo.sch are unique files on Linux and MacOS but on Windows this would result in a broken schematic.
aSchematicFileName | is the absolute path and file name of the file to test. |
Definition at line 549 of file sheet.cpp.
References _, SCH_SCREENS::CanCauseCaseSensitivityIssue(), SCH_BASE_FRAME::eeconfig(), EESCHEMA_SETTINGS::m_Appearance, Schematic(), and EESCHEMA_SETTINGS::APPEARANCE::show_sheet_filename_case_sensitivity_dialog.
Referenced by DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged().
void SCH_EDIT_FRAME::AnnotateComponents | ( | bool | aAnnotateSchematic, |
ANNOTATE_ORDER_T | aSortOption, | ||
ANNOTATE_OPTION_T | aAlgoOption, | ||
int | aStartNumber, | ||
bool | aResetAnnotation, | ||
bool | aRepairTimestamps, | ||
bool | aLockUnits, | ||
REPORTER & | aReporter | ||
) |
Annotate the components in the schematic that are not currently annotated.
aAnnotateSchematic | Annotate the entire schematic if true. Otherwise annotate the current sheet only. |
aSortOption | Define the annotation order. See ANNOTATE_ORDER_T. |
aAlgoOption | Define the annotation style. See ANNOTATE_OPTION_T. |
aStartNumber | The start number for non-sheet-based annotation styles. |
aResetAnnotation | Clear any previous annotation if true. Otherwise, keep the existing component annotation. |
aRepairTimestamps | Test for and repair any duplicate time stamps if true. Otherwise, keep the existing time stamps. This option could change previous annotation because time stamps are used to handle annotation in complex hierarchies. |
aLockUnits | When both aLockUnits and aResetAnnotation are true, all unit associations should be kept when reannotating. That is, if two components were R8A and R8B, they may become R3A and R3B, but not R3A and R3C or R3C and R4D. When aResetAnnotation is true but aLockUnits is false, the usual behavior of annotating each part individually is performed. When aResetAnnotation is false, this option has no effect. |
aReporter | A sink for error messages. Use NULL_REPORTER if you don't need errors. |
When the sheet number is used in annotation, each sheet annotation starts from sheet number * 100. In other words the first sheet uses 100 to 199, the second sheet uses 200 to 299, and so on.
Definition at line 98 of file eeschema/annotate.cpp.
References _, SCH_REFERENCE::Annotate(), SCH_REFERENCE_LIST::Annotate(), KIID_PATH::AsString(), CHANGED, CheckAnnotate(), DeleteAnnotation(), SCH_BASE_FRAME::GetCanvas(), SCH_REFERENCE_LIST::GetCount(), GetCurrentSheet(), SCH_SHEET_PATH::GetMultiUnitComponents(), SCH_SHEET_LIST::GetMultiUnitSymbols(), SCH_COMPONENT::GetRef(), SCH_REFERENCE::GetSheetPath(), SCHEMATIC::GetSheets(), SCH_REFERENCE::GetSymbol(), SCH_SHEET_PATH::GetSymbols(), SCH_SHEET_LIST::GetSymbols(), SCH_COMPONENT::GetUnit(), SCH_COMPONENT::GetUnitCount(), SCH_COMPONENT::GetUnitSelection(), SCH_COMPONENT::GetValue(), INCREMENTAL_BY_REF, SCH_SHEET_PATH::LastScreen(), EDA_ITEM::m_Uuid, mapExistingAnnotation(), OnModify(), SCH_SHEET_PATH::Path(), EDA_DRAW_PANEL_GAL::Refresh(), SCH_SCREENS::ReplaceDuplicateTimeStamps(), REPORTER::Report(), REPORTER::ReportTail(), RPT_SEVERITY_ACTION, RPT_SEVERITY_WARNING, SaveCopyInUndoList(), Schematic(), SetSheetNumberAndCount(), SHEET_NUMBER_X_100, SHEET_NUMBER_X_1000, SORT_BY_X_POSITION, SORT_BY_Y_POSITION, SCH_REFERENCE_LIST::SortByXCoordinate(), SCH_REFERENCE_LIST::SortByYCoordinate(), SCH_REFERENCE_LIST::SplitReferences(), LIB_PART::SubReference(), SCH_BASE_FRAME::SyncView(), SCH_SHEET_PATH::UpdateAllScreenReferences(), and UpdateNetHighlightStatus().
Referenced by KiwayMailIn(), DIALOG_ANNOTATE::OnApplyClick(), and ReadyToNetlist().
|
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().
bool SCH_EDIT_FRAME::AppendSchematic | ( | ) |
Import a KiCad schematic into the current sheet.
Definition at line 577 of file eeschema/files-io.cpp.
References _, GetCurrentSheet(), GetScreen(), HardRedraw(), KiCadSchematicFileWildcard(), LoadSheetFromFile(), TOOLS_HOLDER::m_toolManager, OnModify(), KIWAY_HOLDER::Prj(), TOOL_MANAGER::RunAction(), SetSheetNumberAndCount(), SCH_BASE_FRAME::SyncView(), and ACTIONS::zoomFitScreen.
Referenced by OnAppendProject().
bool SCH_EDIT_FRAME::AskToSaveChanges | ( | ) |
Checks if any of the screens has unsaved changes and asks the user whether to save or drop them.
Definition at line 1020 of file eeschema/files-io.cpp.
References _, SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), HandleUnsavedChanges(), SaveProject(), and Schematic().
Referenced by OnImportProject(), and OpenProjectFiles().
bool SCH_EDIT_FRAME::BreakSegment | ( | SCH_LINE * | aSegment, |
const wxPoint & | aPoint, | ||
SCH_LINE ** | aNewSegment = NULL , |
||
SCH_SCREEN * | aScreen = nullptr |
||
) |
Breaks a single segment into two at the specified point.
NOTE: always appends to the existing undo state.
aSegment | Line segment to break |
aPoint | Point at which to break the segment |
aNewSegment | Pointer to the newly created segment (if given and created) |
aScreen | is the screen to examine, or nullptr to examine the current screen |
Definition at line 285 of file bus-wire-junction.cpp.
References SCH_BASE_FRAME::AddToScreen(), CHANGED, SCH_LINE::GetEndPoint(), GetScreen(), SCH_LINE::GetStartPoint(), SCH_LINE::IsEndPoint(), IsPointOnSegment(), NEWITEM, SaveCopyInUndoList(), SCH_LINE::SetEndPoint(), SCH_LINE::SetStartPoint(), and SCH_BASE_FRAME::UpdateItem().
Referenced by BreakSegments(), and TrimWire().
bool SCH_EDIT_FRAME::BreakSegments | ( | const wxPoint & | aPoint, |
SCH_SCREEN * | aScreen = nullptr |
||
) |
Checks every wire and bus for a intersection at aPoint and break into two segments at aPoint if an intersection is found.
NOTE: always appends to the existing undo state.
aPoint | Test this point for an intersection. |
aScreen | is the screen to examine, or nullptr to examine the current screen |
Definition at line 315 of file bus-wire-junction.cpp.
References BreakSegment(), EOT, GetScreen(), SCH_SCREEN::Items(), NULL, EE_RTREE::Overlapping(), SCH_LINE_LOCATE_BUS_T, SCH_LINE_LOCATE_WIRE_T, and SCH_LINE_T.
Referenced by AddJunction(), BreakSegmentsOnJunctions(), and SCH_EDIT_TOOL::BreakWire().
bool SCH_EDIT_FRAME::BreakSegmentsOnJunctions | ( | SCH_SCREEN * | aScreen = nullptr | ) |
Tests all junctions and bus entries in the schematic for intersections with wires and buses and breaks any intersections into multiple segments.
NOTE: always appends to the existing undo state.
aScreen | is the screen to examine, or nullptr to examine the current screen |
Definition at line 339 of file bus-wire-junction.cpp.
References BreakSegments(), SCH_BUS_ENTRY_BASE::GetEnd(), SCH_BUS_ENTRY_BASE::GetPosition(), GetScreen(), SCH_SCREEN::Items(), EE_RTREE::OfType(), SCH_BUS_WIRE_ENTRY_T, and SCH_JUNCTION_T.
Referenced by SchematicCleanUp().
|
overrideprivatevirtual |
Reimplemented from EDA_BASE_FRAME.
Definition at line 586 of file sch_edit_frame.cpp.
References _, ACTIONS::cancelInteractive, Format(), FRAME_SCH_SYMBOL_EDITOR, FRAME_SCH_VIEWER, FRAME_SCH_VIEWER_MODAL, FRAME_SIMULATOR, SCH_SCREEN::GetFileName(), SCHEMATIC::GetSheets(), HandleUnsavedChanges(), SCH_SHEET_LIST::IsModified(), KIFACE_I::IsSingle(), SCHEMATIC::IsValid(), Kiface(), KIWAY_HOLDER::Kiway(), TOOLS_HOLDER::m_toolManager, KIWAY::Player(), SCHEMATIC::RootScreen(), TOOL_MANAGER::RunAction(), SaveProject(), Schematic(), and KIPLATFORM::APP::SupportsShutdownBlockReason().
|
virtualinherited |
Definition at line 253 of file sch_base_frame.cpp.
References SCH_BASE_FRAME::GetCanvas(), SCH_DRAW_PANEL::GetView(), EDA_DRAW_PANEL_GAL::GetViewControls(), EDA_DRAW_PANEL_GAL::Refresh(), KIGFX::VIEW::SetCenter(), and KIGFX::VIEW_CONTROLS::WarpCursor().
Referenced by SCH_EDITOR_CONTROL::FindComponentAndItem().
|
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().
int SCH_EDIT_FRAME::CheckAnnotate | ( | REPORTER & | aReporter, |
bool | aOneSheetOnly | ||
) |
Check for annotation errors.
The following list of items are checked:
aReporter | A sink for error messages. Use NULL_REPORTER if you don't need errors. |
aOneSheetOnly | Check the current sheet only if true. Otherwise check the entire schematic. |
Definition at line 262 of file eeschema/annotate.cpp.
References SCH_REFERENCE_LIST::CheckAnnotation(), SCH_REFERENCE_LIST::GetCount(), GetCurrentSheet(), SCHEMATIC::GetSheets(), SCH_SHEET_PATH::GetSymbols(), SCH_SHEET_LIST::GetSymbols(), and Schematic().
Referenced by AnnotateComponents(), DIALOG_ERC::DIALOG_ERC(), DIALOG_ERC::OnRunERCClick(), ReadyToNetlist(), and DIALOG_ERC::testErc().
|
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 OpenProjectFiles(), and PCB_EDIT_FRAME::OpenProjectFiles().
|
private |
Verify that the symbol library links aSheet and all of it's child sheets have been remapped to the symbol library table.
aSheet | is the SCH_SHEET object to test. |
Definition at line 72 of file sheet.cpp.
References _, DisplayInfoMessage(), SCH_SCREEN::GetFileName(), SCH_SHEET::GetScreen(), and SCH_SCREENS::HasNoFullyDefinedLibIds().
Referenced by LoadSheetFromFile().
bool SCH_EDIT_FRAME::CheckSheetForRecursion | ( | SCH_SHEET * | aSheet, |
SCH_SHEET_PATH * | aHierarchy | ||
) |
Verify that aSheet will not cause a recursion error in aHierarchy.
aSheet | is the SCH_SHEET object to test. |
aHierarchy | is the SCH_SHEET_PATH where aSheet is going to reside. |
Definition at line 44 of file sheet.cpp.
References _, DisplayError(), SCH_SCREEN::GetFileName(), SCHEMATIC::GetSheets(), SCH_SHEET_PATH::LastScreen(), Schematic(), and SCH_SHEET_LIST::TestForRecursion().
Referenced by LoadSheetFromFile(), and DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged().
|
inline |
Clear (removes) specified flags that not needed for next execution of external generator of the netlist or bom.
aFlags | = wxEXEC_* flags, see wxExecute docs. |
Definition at line 890 of file sch_edit_frame.h.
References m_exec_flags.
|
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(), PCB_EDIT_FRAME::OnClearFileHistory(), OnClearFileHistory(), GERBVIEW_FRAME::OnClearGbrFileHistory(), GERBVIEW_FRAME::OnClearJobFileHistory(), and GERBVIEW_FRAME::OnClearZipFileHistory().
void SCH_EDIT_FRAME::ClearFindReplaceStatus | ( | ) |
Definition at line 889 of file sch_edit_frame.cpp.
References WX_INFOBAR::Dismiss(), and EDA_BASE_FRAME::m_infoBar.
Referenced by SCH_EDITOR_CONTROL::FindNext().
|
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().
|
overridevirtual |
Free the undo or redo list from aList element.
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 380 of file schematic_undo_redo.cpp.
References PICKED_ITEMS_LIST::ClearListAndDeleteItems(), UNDO_REDO_CONTAINER::m_CommandsList, EDA_BASE_FRAME::m_redoList, EDA_BASE_FRAME::m_undoList, and EDA_BASE_FRAME::UNDO_LIST.
Referenced by DIALOG_SYMBOL_REMAP::OnRemapSymbols(), and SaveCopyInUndoList().
|
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(), PCB_EDIT_FRAME::Clear_Pcb(), SYMBOL_EDIT_FRAME::emptyScreen(), importFile(), FOOTPRINT_EDITOR_CONTROL::ImportFootprint(), SYMBOL_EDIT_FRAME::LoadSymbolFromCurrentLib(), PL_EDITOR_FRAME::OnNewPageLayout(), 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 SCH_BASE_FRAME.
Definition at line 1372 of file sch_edit_frame.cpp.
References SCH_BASE_FRAME::CommonSettingsChanged(), SCHEMATIC_SETTINGS::m_IntersheetRefsShow, EDA_DRAW_FRAME::RecreateToolbars(), Schematic(), SCHEMATIC::Settings(), and ShowAllIntersheetRefs().
|
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(), 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().
void SCH_EDIT_FRAME::ConvertPart | ( | SCH_COMPONENT * | aComponent | ) |
Definition at line 237 of file getpart.cpp.
References _, EE_ACTIONS::addItemToSel, EDA_ITEM::ClearFlags(), DisplayError(), SCH_COMPONENT::GetConvert(), EDA_ITEM::GetFlags(), SCH_COMPONENT::GetPartRef(), EDA_ITEM::IsSelected(), TOOLS_HOLDER::m_toolManager, OnModify(), TOOL_MANAGER::RunAction(), SCH_COMPONENT::SetConvert(), EDA_ITEM::SetFlags(), TestDanglingEnds(), and SCH_BASE_FRAME::UpdateItem().
Referenced by SCH_EDIT_TOOL::ConvertDeMorgan().
bool SCH_EDIT_FRAME::CreateArchiveLibrary | ( | const wxString & | aFileName | ) |
Create a library aFileName that contains all components used in the current schematic.
aFileName | The full path and file name of the archive library. |
Definition at line 65 of file libarch.cpp.
References _, DisplayErrorMessage(), LIB_PART::Flatten(), SCH_SCREENS::GetFirst(), SCH_BASE_FRAME::GetLibPart(), SCH_SCREENS::GetNext(), LT_EESCHEMA, SCH_COMPONENT_T, Schematic(), and IO_ERROR::What().
Referenced by CreateArchiveLibraryCacheFile().
bool SCH_EDIT_FRAME::CreateArchiveLibraryCacheFile | ( | bool | aUseCurrentSheetFilename = false | ) |
Create a symbol library file with the name of the root document plus the '-cache' suffix,.
This file will contain all components used in the current schematic.
aUseCurrentSheetFilename | = false to use the root sheet filename (default) or true to use the currently opened sheet. |
Definition at line 42 of file libarch.cpp.
References CreateArchiveLibrary(), SCH_SCREEN::GetFileName(), GetScreen(), LegacySymbolLibFileExtension, SCHEMATIC::RootScreen(), and Schematic().
Referenced by Save_File().
|
inherited |
Definition at line 284 of file sch_base_frame.cpp.
References EDA_DRAW_FRAME::ActivateGalCanvas(), EDA_DRAW_PANEL_GAL::GAL_FALLBACK, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, EDA_DRAW_FRAME::GetGalDisplayOptions(), EDA_DRAW_FRAME::loadCanvasTypeSetting(), EDA_DRAW_FRAME::m_canvasType, EDA_BASE_FRAME::m_frameSize, and EDA_DRAW_FRAME::SetCanvas().
Referenced by SCH_BASE_FRAME::SCH_BASE_FRAME().
|
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.
void SCH_EDIT_FRAME::CreateScreens | ( | ) |
Definition at line 534 of file sch_edit_frame.cpp.
References GetScreen(), SCH_BASE_FRAME::m_defaults, m_schematic, NULL, KIWAY_HOLDER::Prj(), SCHEMATIC::Reset(), SCHEMATIC::Root(), SCHEMATIC::RootScreen(), Schematic(), SCH_SCREEN::SetFileName(), SCHEMATIC::SetProject(), SCHEMATIC::SetRoot(), SCH_SHEET::SetScreen(), SetScreen(), and SCHEMATIC::Settings().
Referenced by importFile(), 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().
|
inline |
Reset the execution flags to defaults for external netlist and bom generators.
Definition at line 875 of file sch_edit_frame.h.
References m_exec_flags.
Referenced by WriteNetListFile().
void SCH_EDIT_FRAME::DeleteAnnotation | ( | bool | aCurrentSheetOnly, |
bool * | appendUndo | ||
) |
Clear the current component annotation.
aCurrentSheetOnly | Clear only the annotation for the current sheet if true. Otherwise clear the entire schematic annotation. |
Definition at line 61 of file eeschema/annotate.cpp.
References CHANGED, SCH_COMPONENT::ClearAnnotation(), SCH_BASE_FRAME::GetCanvas(), GetCurrentSheet(), GetScreen(), SCH_SCREEN::Items(), EE_RTREE::OfType(), OnModify(), EDA_DRAW_PANEL_GAL::Refresh(), SaveCopyInUndoList(), SCH_COMPONENT_T, Schematic(), SCH_BASE_FRAME::SyncView(), SCH_SHEET_PATH::UpdateAllScreenReferences(), and UpdateNetHighlightStatus().
Referenced by AnnotateComponents(), and DIALOG_ANNOTATE::OnClearAnnotationClick().
void SCH_EDIT_FRAME::DeleteJunction | ( | SCH_ITEM * | aItem, |
bool | aAppend = false |
||
) |
Removes a given junction and heals any wire segments under the junction.
aItem | The junction to delete |
aAppend | True if we are updating an ongoing commit |
Note that std::list or similar is required here as we may insert values in the loop below. This will invalidate iterators in a std::vector or std::deque
Definition at line 366 of file bus-wire-junction.cpp.
References EE_SELECTION_TOOL::AddItemToSel(), SCH_BASE_FRAME::AddToScreen(), DELETED, EOT, alg::for_all_pairs(), EDA_ITEM::GetEditFlags(), EDA_ITEM::GetPosition(), GetScreen(), TOOL_MANAGER::GetTool(), SCH_LINE::IsEndPoint(), SCH_LINE::IsType(), SCH_SCREEN::Items(), TOOLS_HOLDER::m_toolManager, SCH_LINE::MergeOverlap(), NEWITEM, EE_RTREE::Overlapping(), PICKED_ITEMS_LIST::PushItem(), SCH_BASE_FRAME::RemoveFromScreen(), EE_SELECTION_TOOL::RemoveItemFromSel(), SaveCopyInUndoList(), SCH_LINE_LOCATE_BUS_T, SCH_LINE_LOCATE_WIRE_T, SCH_LINE_T, and STRUCT_DELETED.
Referenced by SCH_EDIT_TOOL::DoDelete().
|
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(), 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().
void SCH_EDIT_FRAME::DisplayCurrentSheet | ( | ) |
Draw the current sheet on the display.
Definition at line 289 of file hierarch.cpp.
References ACTIONS::cancelInteractive, EE_ACTIONS::clearSelection, dummy(), SCH_BASE_FRAME::GetCanvas(), GetCurrentSheet(), GetScreen(), TOOL_MANAGER::GetTool(), SCH_DRAW_PANEL::GetView(), HardRedraw(), SCH_SHEET_PATH::LastScreen(), BASE_SCREEN::m_Initialized, TOOLS_HOLDER::m_toolManager, SCH_BASE_FRAME::RedrawScreen(), TOOL_MANAGER::RunAction(), KIGFX::SCH_VIEW::SetScale(), SetScreen(), SetSheetNumberAndCount(), SCH_SHEET_PATH::UpdateAllScreenReferences(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), UpdateTitle(), and ACTIONS::zoomFitScreen.
Referenced by SCH_NAVIGATE_TOOL::EnterSheet(), SCH_EDITOR_CONTROL::EnterSheet(), SCH_EDITOR_CONTROL::FindComponentAndItem(), SCH_NAVIGATE_TOOL::HypertextCommand(), SCH_NAVIGATE_TOOL::LeaveSheet(), SCH_EDITOR_CONTROL::LeaveSheet(), DIALOG_ERC::OnERCItemSelected(), OnPageSettingsChange(), and HIERARCHY_NAVIG_DLG::onSelectSheetPath().
|
virtualinherited |
Display current grid size in the status bar.
Reimplemented in GERBVIEW_FRAME, PCB_BASE_FRAME, and PL_EDITOR_FRAME.
Definition at line 472 of file eda_draw_frame.cpp.
References EDA_DRAW_FRAME::GetCanvas(), EDA_BASE_FRAME::GetUserUnits(), and MessageTextFromValue().
Referenced by SCH_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 |
Save the schematic files that have been modified and not yet saved.
Reimplemented from EDA_BASE_FRAME.
Definition at line 849 of file eeschema/files-io.cpp.
References COMMON_SETTINGS::AUTO_BACKUP::backup_on_autosave, EDA_BASE_FRAME::GetAutoSaveFilePrefix(), SETTINGS_MANAGER::GetCommonSettings(), SCH_SCREENS::GetCount(), SCH_SCREEN::GetFileName(), SCH_SHEET::GetFileName(), NULL_REPORTER::GetInstance(), SCH_SCREENS::GetScreen(), EDA_BASE_FRAME::GetSettingsManager(), SCH_SCREENS::GetSheet(), BASE_SCREEN::IsSave(), KIFACE_I::IsSingle(), EDA_BASE_FRAME::IsWritable(), Kiface(), EDA_BASE_FRAME::m_autoSaveState, COMMON_SETTINGS::m_Backup, KIWAY_HOLDER::Prj(), SCHEMATIC::Root(), SaveEEFile(), Schematic(), SCH_SCREEN::SetFileName(), BASE_SCREEN::SetModify(), and SETTINGS_MANAGER::TriggerBackupIfNeeded().
|
overrideprivatevirtual |
Reimplemented from EDA_BASE_FRAME.
Definition at line 646 of file sch_edit_frame.cpp.
References PROJECT::AbsolutePath(), SCH_SHEET_PATH::clear(), SCH_SCREEN::Clear(), SCH_SHEET_LIST::ClearModifyStatus(), KIWAY_PLAYER::Destroy(), FindHierarchyNavigator(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), GetCurrentSheet(), DIALOG_SCH_FIND::GetFindEntries(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), DIALOG_SCH_FIND::GetReplaceEntries(), EDA_BASE_FRAME::GetSettingsManager(), SCHEMATIC::GetSheets(), m_findReplaceDialog, EDA_DRAW_FRAME::m_findStringHistoryList, EDA_DRAW_FRAME::m_replaceStringHistoryList, TOOLS_HOLDER::m_toolManager, NULL, KIWAY_HOLDER::Prj(), RecordERCExclusions(), SCHEMATIC::Reset(), SCHEMATIC::RootScreen(), SETTINGS_MANAGER::SaveProject(), Schematic(), SetScreen(), TOOL_MANAGER::ShutdownAllTools(), and EDA_BASE_FRAME::UpdateFileHistory().
void SCH_EDIT_FRAME::DrawCurrentSheetToClipboard | ( | ) |
Use the wxWidgets print code to draw an image of the current sheet onto the clipboard.
Definition at line 481 of file sheet.cpp.
References SCH_BASE_FRAME::GetPageSizeIU(), SCH_BASE_FRAME::GetRenderSettings(), GetScreen(), GRForceBlackPen(), GRResetPenAndBrush(), IU_PER_MILS, BASE_SCREEN::m_DrawOrg, BASE_SCREEN::m_StartVisu, PrintPage(), scale, and KIGFX::RENDER_SETTINGS::SetPrintDC().
Referenced by SCH_EDITOR_CONTROL::DrawSheetOnClipboard().
bool SCH_EDIT_FRAME::EditSheetProperties | ( | SCH_SHEET * | aSheet, |
SCH_SHEET_PATH * | aHierarchy, | ||
bool * | aClearAnnotationNewItems | ||
) |
Edit an existing sheet or add a new sheet to the schematic.
When aSheet is a new sheet:
When aSheet is an existing sheet:
Note: the screen is not refresh. The caller is responsible to do that
aSheet | is the sheet to edit |
aHierarchy | is the current hierarchy containing aSheet |
aClearAnnotationNewItems | is a reference to a bool to know if the items managed by this sheet need to have their annotation cleared i.e. when an existing item list is used. it can happens when the edited sheet used an existying file, or becomes a new instance of a already existing sheet. |
Definition at line 465 of file sheet.cpp.
References NULL.
Referenced by SCH_DRAWING_TOOLS::DrawSheet(), and SCH_EDIT_TOOL::Properties().
|
inherited |
Definition at line 117 of file sch_base_frame.cpp.
References EDA_BASE_FRAME::config().
Referenced by SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), AllowCaseSensitiveFileNameClashes(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), SCH_DRAWING_TOOLS::DrawSheet(), SCH_EDIT_TOOL::editFieldText(), ExecuteRemoteCommand(), SCH_EDITOR_CONTROL::FindComponentAndItem(), GetShowAllPins(), EE_SELECTION_TOOL::GuessSelectionCandidates(), LoadSettings(), EE_SELECTION_TOOL::Main(), SCH_EDIT_TOOL::Mirror(), DIALOG_PRINT_USING_PRINTER::OnMonochromeChecked(), OpenProjectFiles(), SCH_DRAWING_TOOLS::PlaceComponent(), SCH_PRINTOUT::PrintPage(), SCH_EDIT_TOOL::Properties(), SCH_EDIT_TOOL::Rotate(), DIALOG_PRINT_USING_PRINTER::SavePrintOptions(), SaveSettings(), SelectUnit(), setupUIConditions(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), SCH_EDITOR_CONTROL::ToggleForceHV(), SCH_EDITOR_CONTROL::ToggleHiddenFields(), SCH_EDITOR_CONTROL::ToggleHiddenPins(), PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_EESCHEMA_EDITING_OPTIONS::TransferDataFromWindow(), PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow(), PANEL_EESCHEMA_EDITING_OPTIONS::TransferDataToWindow(), and DIALOG_PRINT_USING_PRINTER::TransferDataToWindow().
|
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().
|
overridevirtual |
Execute a remote command sent by Pcbnew via a socket connection.
When user selects a footprint or pin in Pcbnew, Eeschema shows that same component or pin and moves cursor on the item. The socket port used is KICAD_SCH_PORT_SERVICE_NUMBER which defaults to 4243.
Valid commands are:
$PART:
"reference"
Put cursor on component. $PART:
"reference"
$REF:
"ref"
Put cursor on component reference. $PART:
"reference"
$VAL:
"value"
Put cursor on component value. $PART:
"reference"
$PAD:
"pin name"
Put cursor on the component pin. $NET:
"netname"
Highlight a specified net $CLEAR:
"HIGHLIGHTED"
Clear components highlight They are a keyword followed by a quoted string.
cmdline | = received command from Pcbnew |
Reimplemented from EDA_DRAW_FRAME.
Definition at line 288 of file eeschema/cross-probing.cpp.
References _, CROSS_PROBING_SETTINGS::auto_highlight, SCH_BASE_FRAME::eeconfig(), SCH_EDITOR_CONTROL::FindComponentAndItem(), FROM_UTF8(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), HIGHLIGHT_COMPONENT, HIGHLIGHT_PIN, APP_SETTINGS_BASE::m_CrossProbing, m_highlightedConn, TOOLS_HOLDER::m_toolManager, NULL, TOOL_MANAGER::RunAction(), Schematic(), UnescapeString(), and EE_ACTIONS::updateNetHighlighting.
Referenced by KiwayMailIn().
HIERARCHY_NAVIG_DLG * SCH_EDIT_FRAME::FindHierarchyNavigator | ( | ) |
Definition at line 838 of file sch_edit_frame.cpp.
References HIERARCHY_NAVIG_DLG_WNAME.
Referenced by doCloseWindow(), and UpdateHierarchyNavigator().
|
inherited |
void SCH_EDIT_FRAME::FixupJunctions | ( | ) |
Definition at line 1481 of file sch_edit_frame.cpp.
References AddJunction(), GetCurrentSheet(), SCHEMATIC::GetSheets(), SCH_SCREEN::IsJunctionNeeded(), SCH_SCREEN::Items(), SCH_SHEET_PATH::LastScreen(), EE_RTREE::OfType(), OnModify(), SCH_COMPONENT_T, Schematic(), SetCurrentSheet(), SetScreen(), and SCH_SHEET_PATH::UpdateAllScreenReferences().
Referenced by OpenProjectFiles().
void SCH_EDIT_FRAME::FocusOnItem | ( | SCH_ITEM * | aItem | ) |
Definition at line 1544 of file sch_edit_frame.cpp.
References EDA_ITEM::ClearBrightened(), dummy(), EDA_DRAW_FRAME::FocusOnLocation(), EDA_ITEM::GetFocusPosition(), SCH_SHEET_LIST::GetItem(), SCHEMATIC::GetSheets(), EDA_ITEM::m_Uuid, niluuid, Schematic(), EDA_ITEM::SetBrightened(), and SCH_BASE_FRAME::UpdateItem().
Referenced by HardRedraw(), DIALOG_ERC::OnCancelClick(), DIALOG_ERC::OnCloseErcDialog(), DIALOG_ERC::OnERCItemSelected(), and SetCurrentSheet().
|
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(), FocusOnItem(), and DIALOG_FIND::search().
|
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().
|
inlinestaticprotectedinherited |
Definition at line 580 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::CheckForAutoSaveFile(), doAutoSave(), PCB_EDIT_FRAME::doAutoSave(), doCloseWindow(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::OnExportSTEP(), SaveEEFile(), and PCB_EDIT_FRAME::SavePcbFile().
|
inlineinherited |
|
inlinestaticprotectedinherited |
Definition at line 572 of file eda_base_frame.h.
|
overridevirtualinherited |
Return a pointer to GAL-based canvas of given EDA draw frame.
Reimplemented from EDA_DRAW_FRAME.
Definition at line 271 of file sch_base_frame.cpp.
References EDA_DRAW_FRAME::GetCanvas().
Referenced by AddItemToScreenAndUndoList(), AddJunction(), SCH_BASE_FRAME::AddToScreen(), AnnotateComponents(), SCH_EDITOR_CONTROL::AssignFootprints(), SCH_EDIT_TOOL::BreakWire(), SCH_BASE_FRAME::CenterScreen(), SYMBOL_VIEWER_FRAME::ClickOnCmpList(), SCH_BASE_FRAME::CommonSettingsChanged(), SYMBOL_EDIT_FRAME::CommonSettingsChanged(), DIALOG_CHOOSE_SYMBOL::ConstructRightPanel(), DeleteAnnotation(), DisplayCurrentSheet(), SYMBOL_VIEWER_FRAME::doCloseWindow(), SCH_EDIT_TOOL::DoDelete(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), EE_SELECTION_TOOL::doSelectionMenu(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), SCH_DRAWING_TOOLS::DrawSheet(), SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties(), SYMBOL_EDITOR_EDIT_TOOL::editGraphicProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), SCH_EDITOR_CONTROL::EnterSheet(), DIALOG_ERC::ExcludeMarker(), SCH_EDITOR_CONTROL::FindComponentAndItem(), SCH_EDITOR_CONTROL::FindNext(), GetDocumentExtents(), SCH_BASE_FRAME::GetRenderSettings(), SCH_BASE_FRAME::HardRedraw(), HardRedraw(), SCH_EDITOR_CONTROL::ImportFPAssignments(), KiwayMailIn(), SCH_EDITOR_CONTROL::LeaveSheet(), EE_POINT_EDITOR::Main(), SYMBOL_EDITOR_MOVE_TOOL::Main(), SCH_MOVE_TOOL::Main(), EE_SELECTION_TOOL::Main(), DIALOG_MIGRATE_BUSES::onAcceptClicked(), DIALOG_ANNOTATE::OnApplyClick(), DIALOG_ERC::OnEraseDrcMarkersClick(), DIALOG_ERC::OnERCItemRClick(), EE_SELECTION_TOOL::OnIdle(), DIALOG_MIGRATE_BUSES::onItemSelected(), OnModify(), OnPageSettingsChange(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), HIERARCHY_NAVIG_DLG::onSelectSheetPath(), DIALOG_UPDATE_FROM_PCB::OnUpdateClick(), SYMBOL_TREE_PANE::onUpdateUI(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), SCH_DRAWING_TOOLS::PlaceComponent(), SCH_DRAWING_TOOLS::PlaceImage(), SCH_EDIT_TOOL::Properties(), PutDataInPreviousState(), ReannotateFromPCBNew(), SYMBOL_EDIT_FRAME::RebuildView(), RecalculateConnections(), RecomputeIntersheetRefs(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), SCH_EDITOR_CONTROL::Redo(), DIALOG_ERC::redrawDrawPanel(), SCH_BASE_FRAME::RedrawScreen(), SCH_BASE_FRAME::RefreshSelection(), SCH_EDITOR_CONTROL::RemapSymbols(), SCH_BASE_FRAME::RemoveFromScreen(), SCH_EDITOR_CONTROL::RescueLegacyProject(), SCH_EDITOR_CONTROL::rescueProject(), SCH_EDITOR_CONTROL::RescueSymbolLibTableProject(), RollbackSchematicFromUndo(), EE_SELECTION_TOOL::selectMultiple(), SYMBOL_EDIT_FRAME::SetCurPart(), SetCurrentSheet(), EE_POINT_EDITOR::setEditedPoint(), SetScreen(), SYMBOL_VIEWER_FRAME::SetSelectedLibrary(), SYMBOL_VIEWER_FRAME::setupTools(), SYMBOL_EDIT_FRAME::setupTools(), setupTools(), SYMBOL_EDITOR_CONTROL::ShowElectricalTypes(), ShowSchematicSetupDialog(), SCH_DRAWING_TOOLS::SingleClickPlace(), SYMBOL_EDIT_FRAME::SwitchCanvas(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), SCH_BASE_FRAME::SyncView(), TestDanglingEnds(), DIALOG_ERC::testErc(), SCH_EDITOR_CONTROL::ToggleHiddenFields(), SCH_EDITOR_CONTROL::ToggleHiddenPins(), DIALOG_JUNCTION_PROPS::TransferDataFromWindow(), PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow(), DIALOG_EDIT_LINE_STYLE::TransferDataFromWindow(), PANEL_SETUP_FORMATTING::TransferDataFromWindow(), PANEL_SYM_COLOR_SETTINGS::TransferDataFromWindow(), PANEL_SYM_EDITING_OPTIONS::TransferDataFromWindow(), DIALOG_SHEET_PIN_PROPERTIES::TransferDataFromWindow(), PANEL_EESCHEMA_COLOR_SETTINGS::TransferDataFromWindow(), DIALOG_LABEL_EDITOR::TransferDataFromWindow(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), SCH_DRAWING_TOOLS::TwoClickPlace(), SCH_EDITOR_CONTROL::Undo(), SCH_EDITOR_CONTROL::UpdateFind(), SCH_BASE_FRAME::UpdateItem(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), SYMBOL_VIEWER_FRAME::updatePreviewSymbol(), SCH_BASE_FRAME::UpdateStatusBar(), UpdateSymbolFromEditor(), and SYMBOL_VIEWER_FRAME::~SYMBOL_VIEWER_FRAME().
|
overridevirtualinherited |
Returns a pointer to the active color theme settings.
Reimplemented from EDA_DRAW_FRAME.
Reimplemented in SYMBOL_EDIT_FRAME.
Definition at line 420 of file sch_base_frame.cpp.
References SETTINGS_MANAGER::GetAppSettings(), SETTINGS_MANAGER::GetColorSettings(), EDA_DRAW_FRAME::m_colorSettings, APP_SETTINGS_BASE::m_ColorTheme, and Pgm().
Referenced by SCH_BASE_FRAME::GetDrawBgColor(), SCH_BASE_FRAME::GetLayerColor(), SCH_PRINTOUT::PrintPage(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), PANEL_EESCHEMA_EDITING_OPTIONS::TransferDataToWindow(), and DIALOG_SHEET_PROPERTIES::TransferDataToWindow().
|
overridevirtual |
Get the full filename + path of the currently opened file in the frame.
If no file is open, an empty string is returned.
Reimplemented from EDA_BASE_FRAME.
Definition at line 1572 of file sch_edit_frame.cpp.
References SCHEMATIC::GetFileName(), and Schematic().
Referenced by OpenProjectFiles().
|
overridevirtual |
Get the current selection from the canvas area.
Reimplemented from TOOLS_HOLDER.
Definition at line 1578 of file sch_edit_frame.cpp.
References TOOL_MANAGER::GetTool(), and TOOLS_HOLDER::m_toolManager.
SCH_SHEET_PATH & SCH_EDIT_FRAME::GetCurrentSheet | ( | ) | const |
Definition at line 557 of file sch_edit_frame.cpp.
References SCHEMATIC::CurrentSheet(), and m_schematic.
Referenced by AddItemToScreenAndUndoList(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), AnnotateComponents(), AppendSchematic(), CheckAnnotate(), DIALOG_PLOT_SCHEMATIC::CreateDXFFile(), DIALOG_PLOT_SCHEMATIC::createHPGLFile(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), DIALOG_PLOT_SCHEMATIC::createPSFile(), DIALOG_PLOT_SCHEMATIC::createSVGFile(), DeleteAnnotation(), DisplayCurrentSheet(), doCloseWindow(), SCH_EDITOR_CONTROL::doCopy(), SCH_DRAWING_TOOLS::DrawSheet(), SCH_EDIT_TOOL::Duplicate(), SCH_EDIT_TOOL::editFieldText(), SCH_EDIT_TOOL::EditPageNumber(), SCH_EDITOR_CONTROL::EditWithLibEdit(), SCH_NAVIGATE_TOOL::EnterSheet(), SCH_EDITOR_CONTROL::EnterSheet(), SCH_EDITOR_CONTROL::FindComponentAndItem(), SCH_EDITOR_CONTROL::FindNext(), FixupJunctions(), SCH_PIN::GetMsgPanelInfo(), SCH_COMPONENT::GetMsgPanelInfo(), GetScreen(), GetScreenDesc(), GetUniqueFilenameForCurrentSheet(), HardRedraw(), SCH_EDITOR_CONTROL::HasMatch(), HIERARCHY_NAVIG_DLG::HIERARCHY_NAVIG_DLG(), SCH_NAVIGATE_TOOL::HypertextCommand(), importFile(), SCH_DRAWING_TOOLS::Init(), EE_SELECTION_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), SCH_NAVIGATE_TOOL::LeaveSheet(), SCH_EDITOR_CONTROL::LeaveSheet(), DIALOG_ERC::OnERCItemSelected(), DIALOG_MIGRATE_BUSES::onItemSelected(), SCH_PRINTOUT::OnPrintPage(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged(), DIALOG_UPDATE_FROM_PCB::OnUpdateClick(), DIALOG_SHEET_PROPERTIES::OnUpdateUI(), OpenProjectFiles(), SCH_EDITOR_CONTROL::Paste(), SCH_DRAWING_TOOLS::PlaceComponent(), DIALOG_CHANGE_SYMBOLS::processMatchingSymbols(), SCH_EDIT_TOOL::Properties(), ReannotateFromPCBNew(), SCH_EDITOR_CONTROL::ReplaceAndFindNext(), SCH_EDITOR_CONTROL::RescueLegacyProject(), SCH_EDITOR_CONTROL::RescueSymbolLibTableProject(), DIALOG_PLOT_SCHEMATIC::restoreEnvironment(), SaveEEFile(), SelectUnit(), SetCurrentSheet(), SetSheetNumberAndCount(), setupUIConditions(), DIALOG_FIELDS_EDITOR_GLOBAL::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataToWindow(), SCH_EDITOR_CONTROL::UpdateFind(), HIERARCHY_NAVIG_DLG::UpdateHierarchyTree(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), and UpdateTitle().
|
inlineinherited |
|
overridevirtual |
Returns bbox of document with option to not include some items.
Used most commonly by "Zoom to Fit" and "Zoom to Objects". In Eeschema for "Zoom to Fit", it's passed "true" to include worksheet border. It's passed false by "Zoom To Objects" to ignore worksheet border. In Pcbnew, false makes it ignore any items outside the PCB edge such as fabrication notes.
aIncludeAllVisible | True to include everything visible in bbox calculations, false to ignore some visible items (program dependent). |
Reimplemented from EDA_DRAW_FRAME.
Definition at line 1440 of file sch_edit_frame.cpp.
References SCH_COMPONENT::GetBoundingBox(), SCH_BASE_FRAME::GetCanvas(), SCH_SCREEN::GetPageSettings(), GetScreen(), SCH_DRAW_PANEL::GetView(), KIGFX::SCH_VIEW::GetWorksheet(), EDA_RECT::Merge(), and SCH_COMPONENT_T.
|
inlineinherited |
Indicate that hotkeys should perform an immediate action even if another tool is currently active.
If false, the first hotkey should select the relevant tool.
Definition at line 128 of file tools_holder.h.
References TOOLS_HOLDER::m_immediateActions.
|
inlineinherited |
Indicates whether a drag should draw a selection rectangle or drag selected (or unselected) objects.
Definition at line 134 of file tools_holder.h.
References TOOLS_HOLDER::m_dragAction.
Referenced by PL_SELECTION_TOOL::Main(), EE_SELECTION_TOOL::Main(), and PCB_SELECTION_TOOL::Main().
|
overridevirtualinherited |
Reimplemented from EDA_DRAW_FRAME.
Definition at line 435 of file sch_base_frame.cpp.
References COLOR_SETTINGS::GetColor(), SCH_BASE_FRAME::GetColorSettings(), and LAYER_SCHEMATIC_BACKGROUND.
Referenced by SCH_PRINTOUT::PrintPage().
|
inherited |
Fetches the file name from the file history list.
This removes the selected file, if this file does not exist. The menu is also updated, if #FILE_HISTORY::UseMenu was called at initialization time.
cmdId | The command ID associated with the aFileHistory object. |
type | Please document me! |
aFileHistory | The FILE_HISTORY in use. If null, the main application file history is used |
Definition at line 780 of file eda_base_frame.cpp.
References _, Format(), EDA_BASE_FRAME::m_fileHistory, and EDA_BASE_FRAME::ReCreateMenuBar().
Referenced by GERBVIEW_FRAME::OnDrlFileHistory(), KICAD_MANAGER_FRAME::OnFileHistory(), PL_EDITOR_FRAME::OnFileHistory(), PCB_EDIT_FRAME::OnFileHistory(), GERBVIEW_FRAME::OnGbrFileHistory(), GERBVIEW_FRAME::OnJobFileHistory(), OnLoadFile(), and GERBVIEW_FRAME::OnZipFileHistory().
|
inlineinherited |
Get the frame's main file history.
Definition at line 403 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_fileHistory.
Referenced by KICAD_MANAGER_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), ReCreateMenuBar(), GERBVIEW_FRAME::ReCreateMenuBar(), and PCB_EDIT_FRAME::ReCreateMenuBar().
|
inlineinherited |
Definition at line 94 of file eda_draw_frame.h.
References EDA_DRAW_FRAME::m_findStringHistoryList.
Referenced by DIALOG_FIND::DIALOG_FIND(), and DIALOG_FIND::search().
wxFindReplaceData * SCH_EDIT_FRAME::GetFindReplaceData | ( | ) |
Get the find criteria (as set by the dialog).
Definition at line 826 of file sch_edit_frame.cpp.
References EDA_DRAW_FRAME::m_findReplaceData, and m_findReplaceDialog.
Referenced by SCH_EDITOR_CONTROL::FindNext(), SCH_EDITOR_CONTROL::HasMatch(), SCH_EDITOR_CONTROL::ReplaceAll(), SCH_EDITOR_CONTROL::ReplaceAndFindNext(), and SCH_EDITOR_CONTROL::UpdateFind().
|
inherited |
|
inlineinherited |
Return a reference to the gal rendering options used by GAL for rendering.
Definition at line 413 of file eda_draw_frame.h.
References EDA_DRAW_FRAME::m_galDisplayOptions.
Referenced by SCH_BASE_FRAME::createCanvas(), EDITOR_CONDITIONS::cursorFunc(), FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), SYMBOL_VIEWER_FRAME::LoadSettings(), FOOTPRINT_VIEWER_FRAME::LoadSettings(), PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), PANEL_EESCHEMA_DISPLAY_OPTIONS::PANEL_EESCHEMA_DISPLAY_OPTIONS(), PANEL_GAL_DISPLAY_OPTIONS::PANEL_GAL_DISPLAY_OPTIONS(), PANEL_GERBVIEW_DISPLAY_OPTIONS::PANEL_GERBVIEW_DISPLAY_OPTIONS(), DIALOG_PAD_PROPERTIES::prepareCanvas(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), COMMON_TOOLS::ToggleCursor(), and COMMON_TOOLS::ToggleCursorStyle().
|
inlinevirtualinherited |
Reimplemented in PCB_EDIT_FRAME, FOOTPRINT_EDIT_FRAME, GERBVIEW_FRAME, DISPLAY_FOOTPRINTS_FRAME, and FOOTPRINT_VIEWER_FRAME.
Definition at line 206 of file eda_draw_frame.h.
References EDA_DRAW_FRAME::m_gridColor.
Referenced by PCB_CONTROL::Reset().
|
inlineoverridevirtualinherited |
Return the absolute coordinates of the origin of the snap grid.
This is treated as a relative offset and snapping will occur at multiples of the grid size relative to this point.
Implements EDA_DRAW_FRAME.
Definition at line 137 of file sch_base_frame.h.
|
inline |
Definition at line 357 of file sch_edit_frame.h.
References m_highlightedConn.
Referenced by SCH_EDITOR_CONTROL::AssignNetclass(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), and UpdateNetHighlightStatus().
|
inlineinherited |
Definition at line 215 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_infoBar.
Referenced by FOOTPRINT_EDIT_FRAME::AddFootprintToBoard(), AUTOPLACE_TOOL::autoplace(), PAD_TOOL::EditPad(), ZONE_FILLER_TOOL::FillAllZones(), ROUTER_TOOL::handleLayerSwitch(), SYMBOL_EDIT_FRAME::LoadOneLibraryPartAux(), APPEARANCE_CONTROLS::onReadOnlySwatch(), EDA_DRAW_PANEL_GAL::onSize(), SYMBOL_EDIT_FRAME::SetCurPart(), EDA_BASE_FRAME::ShowInfoBarError(), EDA_BASE_FRAME::ShowInfoBarMsg(), and EDA_BASE_FRAME::ShowInfoBarWarning().
Fetch an item by KIID.
Frame-type-specific implementation.
Reimplemented from EDA_DRAW_FRAME.
Definition at line 479 of file sch_edit_frame.cpp.
References SCH_SHEET_LIST::GetItem(), SCHEMATIC::GetSheets(), and Schematic().
|
inherited |
Helper to retrieve a layer color from the global color settings.
Definition at line 402 of file sch_base_frame.cpp.
References COLOR_SETTINGS::GetColor(), and SCH_BASE_FRAME::GetColorSettings().