![]() |
KiCad PCB EDA Suite
|
#include <pcb_calculator_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 | |
PCB_CALCULATOR_FRAME (KIWAY *aKiway, wxWindow *aParent) | |
~PCB_CALCULATOR_FRAME () | |
void | SetPrmValue (enum PRMS_ID aPrmId, double aValue) |
Function SetPrmValue Read/write params values and results. More... | |
void | SetResult (int aLineNumber, const wxString &aText) |
Function SetResult Puts the text into the given result line. More... | |
void | SetPrmBgColor (enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol) |
Function SetPrgmBgColor Set the background color of a parameter. More... | |
double | GetPrmValue (enum PRMS_ID aPrmId) |
Function GetPrmValue Returns a param value. More... | |
bool | IsPrmSelected (enum PRMS_ID aPrmId) |
Function IsPrmSelected. More... | |
void | OnBoardClassesUnitsSelection (wxCommandEvent &event) override |
void | BoardClassesUpdateData (double aUnitScale) |
wxWindow * | GetToolCanvas () const override |
Canvas access. More... | |
virtual bool | OpenProjectFiles (const std::vector< wxString > &aFileList, int aCtl=0) |
Open a project or set of files given by aFileList. 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... | |
virtual void | KiwayMailIn (KIWAY_EXPRESS &aEvent) |
Receive KIWAY_EXPRESS messages from other players. 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) |
virtual void | ToggleUserUnits () |
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... | |
virtual void | OnMove (wxMoveEvent &aEvent) |
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... | |
virtual void | InstallPreferences (PAGED_DIALOG *, PANEL_HOTKEYS_EDITOR *) |
Allow a frame to load its preference panels (if any) into the preferences dialog. 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... | |
virtual void | SaveProjectSettings () |
Save changes to the project settings to the project (.pro) file. 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 |
virtual wxString | GetCurrentFileName () const |
Get the full filename + path of the currently opened file in the frame. More... | |
virtual void | ReCreateMenuBar () |
Recreates the menu bar. More... | |
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 | UpdateStatusBar () |
Update the status bar information. More... | |
virtual void | ShowChangedLanguage () |
Redraw the menus and what not in current language. More... | |
void | CommonSettingsChanged (bool aEnvVarsChanged, bool aTextVarsChanged) override |
Notification event that some of the common (suite-wide) settings have changed. More... | |
virtual void | ProjectChanged () |
Notification event that the project has changed. More... | |
const wxString & | GetAboutTitle () const |
virtual bool | IsContentModified () |
Get if the contents of the frame have been modified since the last save. More... | |
wxSize | GetWindowSize () |
Get the undecorated window size that can be used for restoring the window size. More... | |
virtual void | ClearUndoORRedoList (UNDO_REDO_LIST aList, int aItemCount=-1) |
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 SELECTION & | GetCurrentSelection () |
Get the current selection from the canvas area. 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 |
virtual void | DisplayToolMsg (const wxString &msg) |
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... | |
virtual void | RefreshCanvas () |
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 | |
REGULATOR_LIST | m_RegulatorList |
Protected Member Functions | |
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... | |
virtual bool | isAutoSaveRequired () const |
Return the auto save status of the application. More... | |
virtual bool | doAutoSave () |
This should be overridden by the derived class to handle the auto save feature. More... | |
virtual bool | canCloseWindow (wxCloseEvent &aCloseEvent) |
virtual void | doCloseWindow () |
virtual void | unitsChangeRefresh () |
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... | |
virtual void | setupUIConditions () |
Setup the UI conditions for the various actions and their controls in this frame. More... | |
void | initExitKey () |
Sets the common key-pair for exiting the application (Ctrl-Q) and ties it to the wxID_EXIT event id. More... | |
Static Protected Member Functions | |
static 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 Types | |
enum | { TW_MASTER_CURRENT, TW_MASTER_EXT_WIDTH, TW_MASTER_INT_WIDTH } |
Private Member Functions | |
void | OnClosePcbCalc (wxCloseEvent &event) override |
void | OnUpdateUI (wxUpdateUIEvent &event) override |
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... | |
bool | ReadDataFile () |
bool | WriteDataFile () |
const wxString | GetDataFilename () |
void | SetDataFilename (const wxString &aFilename) |
Initialize the full filename of the selected pcb_calculator data file force the standard extension of the file (.pcbcalc) More... | |
void | initTrackWidthPanel () |
Panel-specific initializers. More... | |
void | initESeriesPanel () |
void | initColorCodePanel () |
void | initViaSizePanel () |
void | OnCalculateESeries (wxCommandEvent &event) override |
Called on calculate button and executes all E-series calculations. More... | |
void | OnESeriesSelection (wxCommandEvent &event) override |
Radio Buttons to select the E-serie for the resistor calculator. More... | |
void | writeTrackWidthConfig () |
Function writeTrackWidthConfig Write Track width parameters in config. More... | |
void | OnTWParametersChanged (wxCommandEvent &event) override |
Function OnTWParametersChanged Called when the user changes the general parameters (i.e., anything that is not one of the controlling values). More... | |
void | OnTWCalculateFromCurrent (wxCommandEvent &event) override |
Function OnTWCalculateFromCurrent Called when the user changes the desired maximum current. More... | |
void | OnTWCalculateFromExtWidth (wxCommandEvent &event) override |
Function OnTWCalculateFromExtWidth Called when the user changes the desired external trace width. More... | |
void | OnTWCalculateFromIntWidth (wxCommandEvent &event) override |
Function OnTWCalculateFromIntWidth Called when the user changes the desired internal trace width. More... | |
void | OnTWResetButtonClick (wxCommandEvent &event) override |
Function OnTWResetButtonClick Called when the user clicks the reset button. More... | |
double | TWCalculateWidth (double aCurrent, double aThickness, double aDeltaT_C, bool aUseInternalLayer) |
Function TWCalculateWidth Calculate track width required based on given current and temperature rise. More... | |
double | TWCalculateCurrent (double aWidth, double aThickness, double aDeltaT_C, bool aUseInternalLayer) |
Function TWCalculateCurrent Calculate maximum current based on given width and temperature rise. More... | |
void | TWDisplayValues (double aCurrent, double aExtWidth, double aIntWidth, double aExtThickness, double aIntThickness) |
Function TWDisplayValues Displays the results of a calculation (including resulting values such as the resistance and power loss). More... | |
void | TWUpdateModeDisplay () |
Function TWUpdateModeDisplay Updates the fields to show whether the maximum current, external trace width, or internal trace width is currently the controlling parameter. More... | |
void | writeViaSizeConfig () |
Function writeViaSizeConfig Write Via Size parameters in config. More... | |
void | OnViaCalculate (wxCommandEvent &event) override |
Function OnViaCalculate Called when the user changes any value in the via calcultor. More... | |
void | OnViaEpsilonR_Button (wxCommandEvent &event) override |
Function OnViaEpsilonR_Button. More... | |
void | OnViaRho_Button (wxCommandEvent &event) override |
Function OnViaRho_Button. More... | |
void | onUpdateViaCalcErrorText (wxUpdateUIEvent &event) override |
Update the Error message in Via calculation panel. More... | |
void | OnViaResetButtonClick (wxCommandEvent &event) override |
Function OnViaResetButtonClick Called when the user clicks the reset button; sets the parameters to their default values. More... | |
void | VSDisplayValues (double aViaResistance, double aVoltageDrop, double aPowerLoss, double aEstimatedAmpacity, double aThermalResistance, double aCapacitance, double aTimeDegradation, double aInductance, double aReactance) |
Function VSDisplayValues Displays the results of the calculation. More... | |
void | OnElectricalSpacingUnitsSelection (wxCommandEvent &event) override |
void | OnElectricalSpacingRefresh (wxCommandEvent &event) override |
void | ElectricalSpacingUpdateData (double aUnitScale) |
void | OnTranslineSelection (wxCommandEvent &event) override |
Function OnTranslineSelection Called on new transmission line selection. More... | |
void | OnTransLineResetButtonClick (wxCommandEvent &event) override |
Function OnTransLineResetButtonClick Called when the user clicks the reset button; sets the parameters to their default values. More... | |
void | OnTranslineAnalyse (wxCommandEvent &event) override |
Function OnTranslineAnalyse Run a new analyse for the current transline with current parameters and displays the electrical parameters. More... | |
void | OnTranslineSynthetize (wxCommandEvent &event) override |
Function OnTranslineSynthetize Run a new synthezis for the current transline with current parameters and displays the geometrical parameters. More... | |
void | OnTranslineEpsilonR_Button (wxCommandEvent &event) override |
Function OnTranslineEpsilonR_Button Shows a list of current relative dielectric constant(Er) and set the selected value in main dialog frame. More... | |
void | OnTranslineTanD_Button (wxCommandEvent &event) override |
Function OnTranslineTanD_Button Shows a list of current dielectric loss factor (tangent delta) and set the selected value in main dialog frame. More... | |
void | OnTranslineRho_Button (wxCommandEvent &event) override |
Function OnTranslineRho_Button Shows a list of current Specific resistance list (rho) and set the selected value in main dialog frame. More... | |
void | TranslineTypeSelection (enum TRANSLINE_TYPE_ID aType) |
Function TranslineTypeSelection Must be called after selection of a new transline. More... | |
void | TransfDlgDataToTranslineParams () |
Function TransfDlgDataToTranslineParams Read values entered in dialog frame, and transfert these values in current transline parameters, converted in normalized units. More... | |
void | OnToleranceSelection (wxCommandEvent &event) override |
void | ToleranceSelection (int aSelection) |
void | OnAttenuatorSelection (wxCommandEvent &event) override |
void | SetAttenuator (unsigned aIdx) |
void | OnCalculateAttenuator (wxCommandEvent &event) override |
void | TransfPanelDataToAttenuator () |
void | TransfAttenuatorDataToPanel () |
void | TransfAttenuatorResultsToPanel () |
void | OnRegulatorCalcButtonClick (wxCommandEvent &event) override |
void | OnRegulatorResetButtonClick (wxCommandEvent &event) override |
void | OnRegulTypeSelection (wxCommandEvent &event) override |
void | OnRegulatorSelection (wxCommandEvent &event) override |
void | OnDataFileSelection (wxCommandEvent &event) override |
void | OnAddRegulator (wxCommandEvent &event) override |
void | OnEditRegulator (wxCommandEvent &event) override |
void | OnRemoveRegulator (wxCommandEvent &event) override |
void | RegulatorPageUpdate () |
Function RegulatorPageUpdate: Update the regulator page dialog display: enable the current regulator drawings and the formula used for calculations. More... | |
void | SelectLastSelectedRegulator () |
Function SelectLastSelectedRegulator If m_lastSelectedRegulatorName is empty, just calls RegulatorPageUpdate() More... | |
void | RegulatorsSolve () |
void | Regulators_WriteConfig (PCB_CALCULATOR_SETTINGS *aCfg) |
Write regulators parameters in config. More... | |
Private Attributes | |
bool | m_RegulatorListChanged |
enum PCB_CALCULATOR_FRAME:: { ... } | m_TWMode |
bool | m_TWNested |
enum TRANSLINE_TYPE_ID | m_currTransLineType |
TRANSLINE * | m_currTransLine |
std::vector< TRANSLINE_IDENT * > | m_transline_list |
ATTENUATOR * | m_currAttenuator |
std::vector< ATTENUATOR * > | m_attenuator_list |
wxString | m_lastSelectedRegulatorName |
wxBitmap * | m_ccValueNamesBitmap |
wxBitmap * | m_ccValuesBitmap |
wxBitmap * | m_ccMultipliersBitmap |
wxBitmap * | m_ccTolerancesBitmap |
int | m_lastNotebookPage |
bool | m_macHack |
Definition at line 41 of file pcb_calculator_frame.h.
|
private |
Enumerator | |
---|---|
TW_MASTER_CURRENT | |
TW_MASTER_EXT_WIDTH | |
TW_MASTER_INT_WIDTH |
Definition at line 370 of file pcb_calculator_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.
PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME | ( | KIWAY * | aKiway, |
wxWindow * | aParent | ||
) |
Definition at line 37 of file pcb_calculator_frame.cpp.
References BoardClassesUpdateData(), C_MICROSTRIP_TYPE, COAX_TYPE, EDA_BASE_FRAME::config(), CPW_TYPE, DEFAULT_TYPE, dummy(), ElectricalSpacingUpdateData(), REGULATOR_LIST::GetRegList(), UNIT_SELECTOR_LEN::GetUnitScale(), GROUNDED_CPW_TYPE, icon_pcbcalculator_16_xpm, icon_pcbcalculator_32_xpm, icon_pcbcalculator_xpm, initColorCodePanel(), initESeriesPanel(), initTrackWidthPanel(), initViaSizePanel(), KiBitmap(), LoadSettings(), m_attenuator_list, PCB_CALCULATOR_FRAME_BASE::m_AttenuatorsSelection, PCB_CALCULATOR_FRAME_BASE::m_attR1Unit, PCB_CALCULATOR_FRAME_BASE::m_attR2Unit, PCB_CALCULATOR_FRAME_BASE::m_attR3Unit, PCB_CALCULATOR_FRAME_BASE::m_attZinUnit, PCB_CALCULATOR_FRAME_BASE::m_attZoutUnit, PCB_CALCULATOR_FRAME_BASE::m_BoardClassesUnitsSelector, PCB_CALCULATOR_FRAME_BASE::m_bpButtonAnalyze, PCB_CALCULATOR_FRAME_BASE::m_bpButtonCalcAtt, PCB_CALCULATOR_FRAME_BASE::m_bpButtonSynthetize, PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, m_currAttenuator, m_currTransLine, m_currTransLineType, PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingUnitsSelector, PCB_CALCULATOR_FRAME_BASE::m_EpsilonR_label, PCB_CALCULATOR_FRAME_BASE::m_exclude1Units, PCB_CALCULATOR_FRAME_BASE::m_exclude2Units, PCB_CALCULATOR_FRAME_BASE::m_extTrackResUnits, EDA_BASE_FRAME::m_framePos, EDA_BASE_FRAME::m_frameSize, PCB_CALCULATOR_FRAME_BASE::m_gridClassesValuesDisplay, PCB_CALCULATOR_FRAME_BASE::m_gridElectricalSpacingValues, PCB_CALCULATOR_FRAME_BASE::m_IadjUnitLabel, PCB_CALCULATOR_FRAME_BASE::m_intTrackResUnits, PCB_CALCULATOR_FRAME_BASE::m_r1Units, PCB_CALCULATOR_FRAME_BASE::m_r2Units, PCB_CALCULATOR_FRAME_BASE::m_rbToleranceSelection, m_RegulatorList, m_RegulatorListChanged, PCB_CALCULATOR_FRAME_BASE::m_reqResUnits, PCB_CALCULATOR_FRAME_BASE::m_resistivityUnits, PCB_CALCULATOR_FRAME_BASE::m_staticTextAttMsg, PCB_CALCULATOR_FRAME_BASE::m_trackTempUnits, m_transline_list, PCB_CALCULATOR_FRAME_BASE::m_TranslineSelection, m_TWMode, m_TWNested, PCB_CALCULATOR_FRAME_BASE::m_viaReactanceUnits, PCB_CALCULATOR_FRAME_BASE::m_viaResistivityUnits, PCB_CALCULATOR_FRAME_BASE::m_viaResUnits, PCB_CALCULATOR_FRAME_BASE::m_viaTempUnits, PCB_CALCULATOR_FRAME_BASE::m_viaThermalResUnits, MICROSTRIP_TYPE, NULL, ReadDataFile(), RECTWAVEGUIDE_TYPE, SelectLastSelectedRegulator(), SetAttenuator(), KIWAY_HOLDER::SetKiway(), small_down_xpm, small_up_xpm, STRIPLINE_TYPE, ToleranceSelection(), TranslineTypeSelection(), TW_MASTER_CURRENT, and TWISTEDPAIR_TYPE.
PCB_CALCULATOR_FRAME::~PCB_CALCULATOR_FRAME | ( | ) |
Definition at line 164 of file pcb_calculator_frame.cpp.
References m_attenuator_list, m_ccMultipliersBitmap, m_ccTolerancesBitmap, m_ccValueNamesBitmap, m_ccValuesBitmap, and m_transline_list.
|
inherited |
Adds the standard KiCad help menu to the menubar.
Definition at line 409 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(), GERBVIEW_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(), and PCB_EDIT_FRAME::ReCreateMenuBar().
void PCB_CALCULATOR_FRAME::BoardClassesUpdateData | ( | double | aUnitScale | ) |
Definition at line 91 of file board_classes_values.cpp.
References BRDCLASS_COUNT, clist, FMT, PCB_CALCULATOR_FRAME_BASE::m_gridClassesValuesDisplay, and NOVAL.
Referenced by OnBoardClassesUnitsSelection(), and PCB_CALCULATOR_FRAME().
|
inlineprotectedvirtualinherited |
Reimplemented in SCH_EDIT_FRAME, PCB_EDIT_FRAME, CVPCB_MAINFRAME, SYMBOL_EDIT_FRAME, PL_EDITOR_FRAME, FOOTPRINT_EDIT_FRAME, and KICAD_MANAGER_FRAME.
Definition at line 596 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::windowClosing().
|
inherited |
Definition at line 1054 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 943 of file eda_base_frame.cpp.
References _, Format(), EDA_BASE_FRAME::GetAutoSaveFilePrefix(), Pgm(), and traceAutoSave.
Referenced by SCH_EDIT_FRAME::OpenProjectFiles(), and PCB_EDIT_FRAME::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 840 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(), SCH_EDIT_FRAME::OnClearFileHistory(), GERBVIEW_FRAME::OnClearGbrFileHistory(), GERBVIEW_FRAME::OnClearJobFileHistory(), and GERBVIEW_FRAME::OnClearZipFileHistory().
|
inlinevirtualinherited |
Reimplemented in SCH_EDIT_FRAME, PL_EDITOR_FRAME, SYMBOL_EDIT_FRAME, and PCB_BASE_EDIT_FRAME.
Definition at line 520 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::ClearUndoRedoList(), EDA_BASE_FRAME::PushCommandToRedoList(), and EDA_BASE_FRAME::PushCommandToUndoList().
|
virtualinherited |
Clear the undo and redo list using ClearUndoORRedoList()
Picked items are deleted by ClearUndoORRedoList() according to their status.
Definition at line 1005 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(), 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().
|
overridevirtualinherited |
Notification event that some of the common (suite-wide) settings have changed.
Update menus, toolbars, local variables, etc.
Reimplemented from TOOLS_HOLDER.
Reimplemented in PCB_EDIT_FRAME, PCB_BASE_FRAME, FOOTPRINT_EDIT_FRAME, EDA_DRAW_FRAME, PL_EDITOR_FRAME, FOOTPRINT_VIEWER_FRAME, and KICAD_MANAGER_FRAME.
Definition at line 437 of file eda_base_frame.cpp.
References TOOLS_HOLDER::CommonSettingsChanged(), COMMON_SETTINGS::SYSTEM::file_history_size, EDA_BASE_FRAME::m_fileHistory, COMMON_SETTINGS::m_System, Pgm(), EDA_BASE_FRAME::ReCreateMenuBar(), and FILE_HISTORY::SetMaxFiles().
Referenced by KICAD_MANAGER_FRAME::CommonSettingsChanged(), EDA_3D_VIEWER::CommonSettingsChanged(), EDA_DRAW_FRAME::CommonSettingsChanged(), and KIWAY::CommonSettingsChanged().
|
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 681 of file eda_base_frame.cpp.
References Kiface(), and KIFACE_I::KifaceSettings().
Referenced by GERBVIEW_FRAME::ActivateGalCanvas(), PCB_BASE_FRAME::ActivateGalCanvas(), BM2CMP_FRAME::BM2CMP_FRAME(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), FOOTPRINT_WIZARD_FRAME::doCloseWindow(), SIM_PLOT_FRAME::doCloseWindow(), SCH_BASE_FRAME::eeconfig(), FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME(), GERBVIEW_FRAME::GERBVIEW_FRAME(), DISPLAY_FOOTPRINTS_FRAME::GetAutoZoom(), GRID_MENU::GRID_MENU(), COMMON_TOOLS::GridFast1(), COMMON_TOOLS::GridFast2(), EDA_DRAW_FRAME::IsGridVisible(), SCH_BASE_FRAME::libeditconfig(), EDA_DRAW_FRAME::OnUpdateSelectGrid(), EDA_DRAW_FRAME::OnUpdateSelectZoom(), PCB_CALCULATOR_FRAME(), DIALOG_GRID_SETTINGS::RebuildGridSizes(), EDA_DRAW_FRAME::resolveCanvasType(), DISPLAY_FOOTPRINTS_FRAME::SetAutoZoom(), PCB_BASE_EDIT_FRAME::SetBoard(), EDA_DRAW_FRAME::SetGridVisibility(), PL_EDITOR_FRAME::setupTools(), SYMBOL_VIEWER_FRAME::setupTools(), SYMBOL_EDIT_FRAME::setupTools(), CVPCB_MAINFRAME::setupTools(), GERBVIEW_FRAME::setupTools(), SCH_EDIT_FRAME::setupTools(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), DIALOG_GRID_SETTINGS::TransferDataToWindow(), ZOOM_MENU::update(), GRID_MENU::update(), EDA_DRAW_FRAME::UpdateGridSelectBox(), EDA_DRAW_FRAME::UpdateZoomSelectBox(), EDA_BASE_FRAME::windowClosing(), ZOOM_MENU::ZOOM_MENU(), and BM2CMP_FRAME::~BM2CMP_FRAME().
|
inlineoverridevirtualinherited |
Get the configuration base name.
This is usually the name of the frame set by CTOR, except for frames shown in multiple modes in which case the m_configName must be set to the base name so that a single configuration can be used.
Reimplemented from TOOLS_HOLDER.
Definition at line 338 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_configName.
Referenced by EDA_BASE_FRAME::SaveWindowSettings().
|
inherited |
Definition at line 706 of file eda_base_frame.cpp.
References TOOLS_HOLDER::GetToolCanvas(), EDA_BASE_FRAME::m_auimgr, and EDA_BASE_FRAME::m_infoBar.
|
inherited |
Definition at line 99 of file tools_holder.cpp.
References TOOLS_HOLDER::m_toolStack, and ACTIONS::selectionTool.
Referenced by TOOL_MANAGER::processEvent().
|
overrideinherited |
Our version of Destroy() which is virtual from wxWidgets.
Definition at line 150 of file kiway_player.cpp.
Referenced by DISPLAY_FOOTPRINTS_FRAME::doCloseWindow(), GERBVIEW_FRAME::doCloseWindow(), SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), PL_EDITOR_FRAME::doCloseWindow(), SYMBOL_EDIT_FRAME::doCloseWindow(), SIM_PLOT_FRAME::doCloseWindow(), SCH_EDIT_FRAME::doCloseWindow(), FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), EDA_3D_VIEWER::OnCloseWindow(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), SCH_BASE_FRAME::PickSymbolFromLibBrowser(), PCB_BASE_FRAME::SelectFootprintFromLibBrowser(), DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint(), and FOOTPRINT_WIZARD_FRAME::~FOOTPRINT_WIZARD_FRAME().
|
inherited |
Definition at line 161 of file kiway_player.cpp.
References KIWAY_PLAYER::m_modal_loop, KIWAY_PLAYER::m_modal_ret_val, and KIWAY_PLAYER::m_modal_string.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_WIZARD_FRAME::doCloseWindow(), FOOTPRINT_WIZARD_FRAME::ExportSelectedFootprint(), and SYMBOL_VIEWER_FRAME::FinishModal().
|
inlinevirtualinherited |
Reimplemented in EDA_DRAW_FRAME.
Definition at line 122 of file tools_holder.h.
Referenced by TOOLS_HOLDER::PopTool(), and TOOLS_HOLDER::PushTool().
|
protectedvirtualinherited |
This should be overridden by the derived class to handle the auto save feature.
Reimplemented in PCB_EDIT_FRAME, and SCH_EDIT_FRAME.
Definition at line 293 of file eda_base_frame.cpp.
Referenced by EDA_BASE_FRAME::onAutoSaveTimer().
|
inlineprotectedvirtualinherited |
Reimplemented in SCH_EDIT_FRAME, SIM_PLOT_FRAME, PCB_EDIT_FRAME, CVPCB_MAINFRAME, SYMBOL_EDIT_FRAME, FOOTPRINT_WIZARD_FRAME, PL_EDITOR_FRAME, FOOTPRINT_VIEWER_FRAME, SYMBOL_VIEWER_FRAME, FOOTPRINT_EDIT_FRAME, GERBVIEW_FRAME, KICAD_MANAGER_FRAME, PCB_BASE_EDIT_FRAME, and DISPLAY_FOOTPRINTS_FRAME.
Definition at line 597 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::windowClosing().
|
private |
Definition at line 116 of file electrical_spacing_values.cpp.
References CLASS_COUNT, clist, DoubleFromString(), PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingVoltage, PCB_CALCULATOR_FRAME_BASE::m_gridElectricalSpacingValues, and VALUE_COUNT.
Referenced by OnElectricalSpacingRefresh(), OnElectricalSpacingUnitsSelection(), and PCB_CALCULATOR_FRAME().
|
inherited |
|
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 572 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::CheckForAutoSaveFile(), SCH_EDIT_FRAME::doAutoSave(), PCB_EDIT_FRAME::doAutoSave(), SCH_EDIT_FRAME::doCloseWindow(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::OnExportSTEP(), SCH_EDIT_FRAME::SaveEEFile(), and PCB_EDIT_FRAME::SavePcbFile().
|
inlineinherited |
|
inlinevirtualinherited |
Get the full filename + path of the currently opened file in the frame.
If no file is open, an empty string is returned.
Reimplemented in PCB_EDIT_FRAME, SCH_EDIT_FRAME, PL_EDITOR_FRAME, and KICAD_MANAGER_FRAME.
Definition at line 419 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::SaveSettings().
|
inlinevirtualinherited |
Get the current selection from the canvas area.
Reimplemented in PCB_EDIT_FRAME, GERBVIEW_FRAME, SCH_EDIT_FRAME, SYMBOL_VIEWER_FRAME, PL_EDITOR_FRAME, DISPLAY_FOOTPRINTS_FRAME, SYMBOL_EDIT_FRAME, FOOTPRINT_VIEWER_FRAME, and FOOTPRINT_EDIT_FRAME.
Definition at line 102 of file tools_holder.h.
References TOOLS_HOLDER::m_dummySelection.
Referenced by EDA_BASE_FRAME::HandleUpdateUIEvent(), and ACTION_MANAGER::RunHotKey().
|
private |
Definition at line 394 of file pcb_calculator_frame.cpp.
References DataFileNameExt(), and PCB_CALCULATOR_FRAME_BASE::m_regulators_fileNameCtrl.
Referenced by OnClosePcbCalc(), OnDataFileSelection(), and Regulators_WriteConfig().
|
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().
|
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 800 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(), SCH_EDIT_FRAME::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(), GERBVIEW_FRAME::ReCreateMenuBar(), PL_EDITOR_FRAME::ReCreateMenuBar(), SCH_EDIT_FRAME::ReCreateMenuBar(), and PCB_EDIT_FRAME::ReCreateMenuBar().
|
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(), DRAWING_TOOL::DrawVia(), PAD_TOOL::EditPad(), ZONE_FILLER_TOOL::FillAllZones(), ROUTER_TOOL::handleLayerSwitch(), SYMBOL_EDIT_FRAME::LoadOneLibraryPartAux(), APPEARANCE_CONTROLS::onReadOnlySwatch(), EDA_DRAW_PANEL_GAL::onSize(), PCB_EDIT_FRAME::OpenProjectFiles(), SYMBOL_EDIT_FRAME::SetCurPart(), EDA_BASE_FRAME::ShowInfoBarError(), EDA_BASE_FRAME::ShowInfoBarMsg(), EDA_BASE_FRAME::ShowInfoBarWarning(), and SCH_DRAWING_TOOLS::SingleClickPlace().
|
inlineinherited |
Definition at line 557 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_undoRedoCountMax.
Referenced by EDA_DRAW_FRAME::SaveSettings().
|
inlineinherited |
Indicate that a move operation should warp the mouse pointer to the origin of the move object.
This improves snapping, but some users are allergic to mouse warping.
Definition at line 140 of file tools_holder.h.
References TOOLS_HOLDER::m_moveWarpsCursor.
Referenced by EDIT_TOOL::doMoveSelection(), ROUTER_TOOL::InlineDrag(), SYMBOL_EDITOR_MOVE_TOOL::Main(), and SCH_MOVE_TOOL::Main().
|
inlineinherited |
Definition at line 410 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_mruPath.
Referenced by AskLoadBoardFileName(), PANEL_HOTKEYS_EDITOR::dumpHotkeys(), GERBVIEW_CONTROL::ExportToPcbnew(), PCB_EDIT_FRAME::Files_io_from_id(), PANEL_HOTKEYS_EDITOR::ImportHotKeys(), KICAD_MANAGER_FRAME::ImportNonKiCadProject(), KICAD_MANAGER_CONTROL::NewProject(), KICAD_MANAGER_CONTROL::OpenProject(), SCH_EDIT_FRAME::SaveEEFile(), and KICAD_MANAGER_CONTROL::SaveProjectAs().
double PCB_CALCULATOR_FRAME::GetPrmValue | ( | enum PRMS_ID | aPrmId | ) |
Function GetPrmValue Returns a param value.
aPrmId | = param id to write |
Definition at line 139 of file params_read_write.cpp.
References TRANSLINE_IDENT::GetPrm(), TRANSLINE_IDENT::GetPrmsCount(), m_currTransLineType, TRANSLINE_PRM::m_Id, TRANSLINE_PRM::m_NormalizedValue, and m_transline_list.
Referenced by GetPropertyInDialog().
|
inlinevirtualinherited |
Reimplemented in CVPCB_MAINFRAME.
Definition at line 555 of file eda_base_frame.h.
References UNDO_REDO_CONTAINER::m_CommandsList, and EDA_BASE_FRAME::m_redoList.
Referenced by PL_EDITOR_FRAME::GetLayoutFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), EDA_BASE_FRAME::PushCommandToRedoList(), SCH_EDITOR_CONTROL::Redo(), and EDITOR_CONDITIONS::redoFunc().
|
inlineinherited |
Definition at line 128 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_settingsManager.
Referenced by GERBVIEW_FRAME::applyDisplaySettingsToGAL(), KICAD_MANAGER_FRAME::canCloseWindow(), KICAD_MANAGER_FRAME::CreateNewProject(), SCH_EDIT_FRAME::doAutoSave(), PCB_EDIT_FRAME::doAutoSave(), PCB_BASE_EDIT_FRAME::doCloseWindow(), FOOTPRINT_EDIT_FRAME::doCloseWindow(), PCB_EDIT_FRAME::Files_io_from_id(), DIALOG_SCHEMATIC_SETUP::OnAuxiliaryAction(), DIALOG_BOARD_SETUP::OnAuxiliaryAction(), SCH_EDIT_FRAME::OnImportProject(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::Save_File(), PCB_EDIT_FRAME::SavePcbCopy(), PCB_EDIT_FRAME::SavePcbFile(), SCH_EDIT_FRAME::SaveProject(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), FOOTPRINT_EDIT_FRAME::SaveSettings(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().
|
inlinevirtualinherited |
Reimplemented in PCB_BASE_FRAME.
Definition at line 130 of file eda_base_frame.h.
References RPT_SEVERITY_UNDEFINED.
Referenced by RC_TREE_MODEL::GetValue().
|
inlineoverridevirtual |
|
inlineinherited |
Return the MVC controller.
Definition at line 55 of file tools_holder.h.
References TOOLS_HOLDER::m_toolManager.
Referenced by DIALOG_GLOBAL_DELETION::acceptPcbDelete(), PROJECT_TREE_ITEM::Activate(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), BOARD_COMMIT::BOARD_COMMIT(), FOOTPRINT_VIEWER_FRAME::ClickOnFootprintList(), TOOLS_HOLDER::CommonSettingsChanged(), DIALOG_FOOTPRINT_CHECKER::deleteAllMarkers(), DIALOG_ERC::deleteAllMarkers(), DIALOG_DRC::deleteAllMarkers(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_MIGRATE_BUSES::DIALOG_MIGRATE_BUSES(), PL_DRAW_PANEL_GAL::DisplayWorksheet(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), SIM_PLOT_FRAME::doCloseWindow(), SCH_FIELD::DoHypertextMenu(), DRAWING_TOOL::DrawVia(), TRACK_WIDTH_MENU::eventHandler(), DIFF_PAIR_MENU::eventHandler(), SCH_EDIT_FRAME::ExecuteRemoteCommand(), PCB_EDIT_FRAME::ExecuteRemoteCommand(), GERBVIEW_FRAME::GERBVIEW_FRAME(), FP_TREE_SYNCHRONIZING_ADAPTER::GetContextMenuTool(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetContextMenuTool(), PL_EDITOR_FRAME::GetLayoutFromRedoList(), PL_EDITOR_FRAME::GetLayoutFromUndoList(), SCH_NAVIGATE_TOOL::HypertextCommand(), ROUTER_TOOL::InlineBreakTrack(), KICAD_MANAGER_FRAME::InstallPreferences(), PL_EDITOR_FRAME::InstallPreferences(), FOOTPRINT_EDIT_FRAME::InstallPreferences(), SYMBOL_EDIT_FRAME::InstallPreferences(), GERBVIEW_FRAME::InstallPreferences(), PCB_EDIT_FRAME::InstallPreferences(), SCH_EDIT_FRAME::InstallPreferences(), SYMBOL_EDIT_FRAME::LoadPart(), PCB_EDIT_FRAME::LoadProjectSettings(), FOOTPRINT_EDIT_FRAME::LoadSettings(), PROPERTIES_FRAME::OnAcceptPrms(), DIALOG_DRC::OnActivateDlg(), DIALOG_FOOTPRINT_CHECKER::OnCancelClick(), DIALOG_DRC::OnCancelClick(), DIALOG_INSPECTOR::onCellClicked(), DIALOG_ERC::OnCloseErcDialog(), SYMBOL_TREE_PANE::onComponentSelected(), DIALOG_DRC::OnDeleteOneClick(), DIALOG_ERC::OnERCItemSelected(), DIALOG_CONSTRAINTS_REPORTER::OnErrorLinkClicked(), DIALOG_INSPECTION_REPORTER::OnErrorLinkClicked(), KICAD_MANAGER_FRAME::OnIdle(), FOOTPRINTS_LISTBOX::OnLeftDClick(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::onNetContextMenu(), SIM_PLOT_FRAME::onProbe(), DIALOG_PLOT::onRunDRC(), DIALOG_DRC::OnRunDRCClick(), HIERARCHY_NAVIG_DLG::onSelectSheetPath(), SCH_EDIT_FRAME::onSize(), DIALOG_FIELDS_EDITOR_GLOBAL::OnTableCellClick(), SIM_PLOT_FRAME::onTune(), PANEL_SELECTION_FILTER::PANEL_SELECTION_FILTER(), DIALOG_PLOT::Plot(), TOOLS_HOLDER::PopTool(), SCH_EDIT_FRAME::PutDataInPreviousState(), PL_EDITOR_FRAME::RollbackFromUndo(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), PCB_EDIT_FRAME::SaveProjectSettings(), FOOTPRINT_EDIT_FRAME::SaveSettings(), EDA_3D_VIEWER::SaveSettings(), DIALOG_FIND::search(), CVPCB_MAINFRAME::setupEventHandlers(), APPEARANCE_CONTROLS::showNetclass(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), DIALOG_3D_VIEW_OPTIONS::TransferDataFromWindow(), DIALOG_LIB_EDIT_TEXT::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_FP_EDITOR::TransferDataFromWindow(), DIALOG_FIELDS_EDITOR_GLOBAL::TransferDataToWindow(), DIALOG_3D_VIEW_OPTIONS::TransferDataToWindow(), DIALOG_LIB_EDIT_TEXT::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow(), EDA_DRAW_FRAME::UpdateMsgPanel(), NET_GRID_TABLE::updateNetVisibility(), DIALOG_NETLIST::~DIALOG_NETLIST(), and DIALOG_UPDATE_PCB::~DIALOG_UPDATE_PCB().
|
inlineinherited |
Definition at line 49 of file kiway_holder.h.
References KIWAY_HOLDER::m_type.
Referenced by DIALOG_SHIM::DIALOG_SHIM().
|
inlinevirtualinherited |
Reimplemented in CVPCB_MAINFRAME.
Definition at line 554 of file eda_base_frame.h.
References UNDO_REDO_CONTAINER::m_CommandsList, and EDA_BASE_FRAME::m_undoList.
Referenced by PL_EDITOR_FRAME::GetLayoutFromUndoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), EDA_BASE_FRAME::PushCommandToUndoList(), PL_EDITOR_FRAME::RollbackFromUndo(), SCH_EDITOR_CONTROL::Undo(), and EDITOR_CONDITIONS::undoFunc().
|
inlineinherited |
Return the user units currently in use.
Definition at line 114 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_userUnits.
Referenced by DIALOG_CONSTRAINTS_REPORTER::AddPage(), PANEL_SETUP_TRACKS_AND_VIAS::AppendDiffPairs(), PANEL_SETUP_TRACKS_AND_VIAS::AppendTrackWidth(), PANEL_SETUP_TRACKS_AND_VIAS::AppendViaSize(), MICROWAVE_TOOL::createFootprint(), MICROWAVE_TOOL::createMicrowaveInductor(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), GERBVIEW_SELECTION_TOOL::disambiguationMenu(), EDA_DRAW_FRAME::DisplayGridMsg(), GERBER_FILE_IMAGE::DisplayImageInfo(), DIALOG_GROUP_PROPERTIES::DoAddMember(), PL_SELECTION_TOOL::doSelectionMenu(), EE_SELECTION_TOOL::doSelectionMenu(), PCB_SELECTION_TOOL::doSelectionMenu(), DRAWING_TOOL::drawArc(), DRAWING_TOOL::DrawDimension(), DRAWING_TOOL::drawSegment(), EVT_GRID_CMD_CELL_CHANGED(), PCB_EDIT_FRAME::GenFootprintsReport(), PANEL_FP_EDITOR_DEFAULTS::getGridValue(), PANEL_SETUP_TEXT_AND_GRAPHICS::getGridValue(), BOARD_INSPECTION_TOOL::getItemDescription(), LIB_CIRCLE::GetMsgPanelInfo(), LIB_RECTANGLE::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), LIB_ARC::GetMsgPanelInfo(), LIB_POLYLINE::GetMsgPanelInfo(), PCB_MARKER::GetMsgPanelInfo(), LIB_TEXT::GetMsgPanelInfo(), PL_EDITOR_LAYOUT::GetMsgPanelInfo(), LIB_BEZIER::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), DS_DRAW_ITEM_BASE::GetMsgPanelInfo(), PCB_TARGET::GetMsgPanelInfo(), ZONE::GetMsgPanelInfo(), SCH_BITMAP::GetMsgPanelInfo(), NETINFO_ITEM::GetMsgPanelInfo(), LIB_FIELD::GetMsgPanelInfo(), TRACK::GetMsgPanelInfo(), FP_TEXT::GetMsgPanelInfo(), LIB_PIN::GetMsgPanelInfo(), DIMENSION_BASE::GetMsgPanelInfo(), PCB_SHAPE::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), ALIGNED_DIMENSION::GetMsgPanelInfo(), VIA::GetMsgPanelInfo(), LEADER::GetMsgPanelInfo(), PAD::GetMsgPanelInfo(), EDA_DRAW_FRAME::GetUnitPair(), GetUserUnits(), RC_TREE_MODEL::GetValue(), BOARD_INSPECTION_TOOL::InspectClearance(), GERBVIEW_INSPECTION_TOOL::MeasureTool(), PCB_VIEWER_TOOLS::MeasureTool(), PANEL_SETUP_BOARD_STACKUP::onThicknessChange(), DIALOG_NET_INSPECTOR::onUnitsChanged(), UNIT_BINDER::onUnitsChanged(), PANEL_SETUP_BOARD_STACKUP::onUpdateThicknessValue(), PANEL_PREV_3D::PANEL_PREV_3D(), PANEL_SETUP_BOARD_STACKUP::PANEL_SETUP_BOARD_STACKUP(), POSITION_RELATIVE_TOOL::PositionRelative(), DRC_TOOL::RunTests(), GERBVIEW_INSPECTION_TOOL::ShowDCodes(), COMMON_TOOLS::ToggleUnits(), PANEL_SETUP_BOARD_STACKUP::transferDataFromUIToStackup(), PANEL_SETUP_TRACKS_AND_VIAS::TransferDataFromWindow(), PANEL_SETUP_CONSTRAINTS::TransferDataToWindow(), UNIT_BINDER::UNIT_BINDER(), PCB_BASE_EDIT_FRAME::unitsChangeRefresh(), EDITOR_CONDITIONS::unitsFunc(), VIA_SIZE_MENU::update(), TRACK_WIDTH_MENU::update(), DIFF_PAIR_MENU::update(), GERBVIEW_FRAME::updateDCodeSelectBox(), DIALOG_DIMENSION_PROPERTIES::updateDimensionFromDialog(), PNS_TUNE_STATUS_POPUP::UpdateStatus(), GERBVIEW_FRAME::UpdateStatusBar(), PL_EDITOR_FRAME::UpdateStatusBar(), SCH_BASE_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), PCB_EDIT_FRAME::UpdateViaSizeSelectBox(), DRC_TOOL::userUnits(), and PANEL_SETUP_TRACKS_AND_VIAS::Validate().
|
virtualinherited |
Return a pointer to the window settings for this frame.
By default, points to aCfg->m_Window for top-level frames.
aCfg | is this frame's config object |
Reimplemented in SIM_PLOT_FRAME, FOOTPRINT_WIZARD_FRAME, FOOTPRINT_VIEWER_FRAME, SYMBOL_VIEWER_FRAME, and DISPLAY_FOOTPRINTS_FRAME.
Definition at line 675 of file eda_base_frame.cpp.
References APP_SETTINGS_BASE::m_Window.
Referenced by EDA_BASE_FRAME::LoadSettings(), EDA_DRAW_FRAME::LoadSettings(), EDA_BASE_FRAME::SaveSettings(), and EDA_DRAW_FRAME::SaveSettings().
|
inherited |
Get the undecorated window size that can be used for restoring the window size.
This is needed for GTK, since the normal wxWidgets GetSize() call will return a window size that includes the window decorations added by the window manager.
Definition at line 1086 of file eda_base_frame.cpp.
Referenced by EDA_BASE_FRAME::OnMaximize(), and EDA_BASE_FRAME::SaveWindowSettings().
|
staticinherited |
Handle events generated when the UI is trying to figure out the current state of the UI controls related to TOOL_ACTIONS (e.g.
enabled, checked, etc.).
aEvent | is the wxUpdateUIEvent to be processed. |
aFrame | is the frame to get the selection from |
aCond | are the #UI SELECTION_CONDITIONS used |
Definition at line 341 of file eda_base_frame.cpp.
References ACTION_CONDITIONS::checkCondition, ACTION_CONDITIONS::enableCondition, TOOLS_HOLDER::GetCurrentSelection(), and ACTION_CONDITIONS::showCondition.
Referenced by EDA_BASE_FRAME::RegisterUIUpdateHandler().
|
virtualinherited |
Reimplemented in KICAD_MANAGER_FRAME.
Definition at line 694 of file eda_base_frame.cpp.
References KIFACE_I::GetHelpFileName(), and Kiface().
Referenced by COMMON_CONTROL::ShowHelp().
|
inherited |
Prompt the user for a hotkey file to read, and read it.
aActionMap | current hotkey map (over which the imported hotkeys will be applied). |
aDefaultShortname | a default short name (extension not needed) like Eeschema, KiCad... |
|
private |
Definition at line 29 of file colorcode.cpp.
References m_ccMultipliersBitmap, m_ccTolerancesBitmap, m_ccValueNamesBitmap, and m_ccValuesBitmap.
Referenced by PCB_CALCULATOR_FRAME().
|
private |
Definition at line 394 of file eserie.cpp.
References ConvertMarkdown2Html(), eseries_help, and PCB_CALCULATOR_FRAME_BASE::m_panelESeriesHelp.
Referenced by PCB_CALCULATOR_FRAME().
|
protectedinherited |
Sets the common key-pair for exiting the application (Ctrl-Q) and ties it to the wxID_EXIT event id.
This is useful in sub-applications to pass the event up to a non-owning window.
Definition at line 996 of file eda_base_frame.cpp.
|
private |
Panel-specific initializers.
Definition at line 418 of file tracks_width_versus_current.cpp.
References ConvertMarkdown2Html(), dummy(), Kiface(), PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackWidthValue, PCB_CALCULATOR_FRAME_BASE::m_htmlWinFormulas, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_IntTrackWidthValue, PCB_CALCULATOR_FRAME_BASE::m_TrackCurrentValue, PCB_CALCULATOR_FRAME_BASE::m_TrackDeltaTValue, PCB_CALCULATOR_FRAME_BASE::m_TrackLengthValue, PCB_CALCULATOR_FRAME_BASE::m_TW_CuLength_choiceUnit, PCB_CALCULATOR_FRAME_BASE::m_TW_ExtTrackWidth_choiceUnit, PCB_CALCULATOR_FRAME_BASE::m_TW_IntTrackWidth_choiceUnit, m_TWNested, PCB_CALCULATOR_FRAME_BASE::m_TWResistivity, OnTWParametersChanged(), tracks_width_versus_current_formula, and TWUpdateModeDisplay().
Referenced by PCB_CALCULATOR_FRAME().
|
private |
Definition at line 127 of file pcb_calculator/via.cpp.
References Kiface(), PCB_CALCULATOR_FRAME_BASE::m_choiceClearanceDia, PCB_CALCULATOR_FRAME_BASE::m_choiceHoleDia, PCB_CALCULATOR_FRAME_BASE::m_choiceImpedance, PCB_CALCULATOR_FRAME_BASE::m_choicePlatingThickness, PCB_CALCULATOR_FRAME_BASE::m_choiceViaLength, PCB_CALCULATOR_FRAME_BASE::m_choiceViaPadDia, PCB_CALCULATOR_FRAME_BASE::m_textCtrlAppliedCurrent, PCB_CALCULATOR_FRAME_BASE::m_textCtrlClearanceDia, PCB_CALCULATOR_FRAME_BASE::m_textCtrlHoleDia, PCB_CALCULATOR_FRAME_BASE::m_textCtrlImpedance, PCB_CALCULATOR_FRAME_BASE::m_textCtrlPlatingPermittivity, PCB_CALCULATOR_FRAME_BASE::m_textCtrlPlatingResistivity, PCB_CALCULATOR_FRAME_BASE::m_textCtrlPlatingThickness, PCB_CALCULATOR_FRAME_BASE::m_textCtrlRiseTime, PCB_CALCULATOR_FRAME_BASE::m_textCtrlTemperatureDiff, PCB_CALCULATOR_FRAME_BASE::m_textCtrlViaLength, and PCB_CALCULATOR_FRAME_BASE::m_textCtrlViaPadDia.
Referenced by PCB_CALCULATOR_FRAME().
|
inlinevirtualinherited |
Allow a frame to load its preference panels (if any) into the preferences dialog.
aParent | a paged dialog into which the preference panels should be installed. |
Reimplemented in SCH_EDIT_FRAME, PCB_EDIT_FRAME, GERBVIEW_FRAME, SYMBOL_EDIT_FRAME, FOOTPRINT_EDIT_FRAME, PL_EDITOR_FRAME, and KICAD_MANAGER_FRAME.
Definition at line 278 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::OnPreferences().
|
inlineprotectedvirtualinherited |
Return the auto save status of the application.
Override this function if your derived frame supports automatic file saving.
Reimplemented in PCB_EDIT_FRAME, and SCH_EDIT_FRAME.
Definition at line 587 of file eda_base_frame.h.
Referenced by EDA_BASE_FRAME::ProcessEvent().
|
virtualinherited |
Get if the contents of the frame have been modified since the last save.
Reimplemented in PCB_EDIT_FRAME, SCH_EDIT_FRAME, CVPCB_MAINFRAME, PL_EDITOR_FRAME, SYMBOL_EDIT_FRAME, and FOOTPRINT_EDIT_FRAME.
Definition at line 989 of file eda_base_frame.cpp.
Referenced by EDITOR_CONDITIONS::contentModifiedFunc().
|
inherited |
Definition at line 108 of file tools_holder.cpp.
References TOOL_ACTION::GetName(), TOOLS_HOLDER::m_toolStack, and ACTIONS::selectionTool.
Referenced by BOARD_INSPECTION_TOOL::HighlightNetTool(), SCH_EDIT_TOOL::Init(), BOARD_EDITOR_CONTROL::Init(), EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), and EDITOR_CONDITIONS::toolFunc().
|
inherited |
Definition at line 155 of file kiway_player.cpp.
References KIWAY_PLAYER::m_modal_loop.
Referenced by SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), and FOOTPRINT_WIZARD_FRAME::doCloseWindow().
|
inlineoverridevirtualinherited |
Return true if the frame is shown in our modal mode and false if the frame is shown as an usual frame.
In modal mode, the caller that created the frame is responsible to Destroy() this frame after closing.
Reimplemented from EDA_BASE_FRAME.
Definition at line 170 of file kiway_player.h.
References KIWAY_PLAYER::m_modal.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), SYMBOL_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::doCloseWindow(), FOOTPRINT_WIZARD_FRAME::doCloseWindow(), FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME(), KIWAY_PLAYER::ShowModal(), and SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME().
bool PCB_CALCULATOR_FRAME::IsPrmSelected | ( | enum PRMS_ID | aPrmId | ) |
Function IsPrmSelected.
Definition at line 241 of file params_read_write.cpp.
References PCB_CALCULATOR_FRAME_BASE::m_radioBtnPrm1, PCB_CALCULATOR_FRAME_BASE::m_radioBtnPrm2, PHYS_DIAM_IN_PRM, PHYS_DIAM_OUT_PRM, PHYS_S_PRM, and PHYS_WIDTH_PRM.
Referenced by IsSelectedInDialog().
|
inlineinherited |
Definition at line 192 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_ident.
Referenced by SYMBOL_EDITOR_CONTROL::AddLibrary(), PCB_CONTROL::AddLibrary(), SYMBOL_EDITOR_CONTROL::AddSymbol(), ALIGN_DISTRIBUTE_TOOL::AlignBottom(), ALIGN_DISTRIBUTE_TOOL::AlignCenterX(), ALIGN_DISTRIBUTE_TOOL::AlignCenterY(), ALIGN_DISTRIBUTE_TOOL::AlignTop(), BOARD_COMMIT::BOARD_COMMIT(), EDA_3D_VIEWER::CreateMenuBar(), SYMBOL_EDITOR_CONTROL::CutCopyDelete(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_PUSH_PAD_PROPERTIES::DIALOG_PUSH_PAD_PROPERTIES(), DIALOG_RULE_AREA_PROPERTIES::DIALOG_RULE_AREA_PROPERTIES(), KIGFX::SCH_VIEW::DisplaySheet(), ALIGN_DISTRIBUTE_TOOL::DistributeHorizontally(), ALIGN_DISTRIBUTE_TOOL::DistributeVertically(), ALIGN_DISTRIBUTE_TOOL::doAlignLeft(), ALIGN_DISTRIBUTE_TOOL::doAlignRight(), ALIGN_DISTRIBUTE_TOOL::doDistributeCentersHorizontally(), ALIGN_DISTRIBUTE_TOOL::doDistributeCentersVertically(), ALIGN_DISTRIBUTE_TOOL::doDistributeGapsHorizontally(), ALIGN_DISTRIBUTE_TOOL::doDistributeGapsVertically(), COMMON_TOOLS::doZoomFit(), SYMBOL_EDITOR_CONTROL::DuplicateSymbol(), SYMBOL_EDITOR_CONTROL::EditSymbol(), SYMBOL_EDITOR_CONTROL::ExportSymbol(), FOOTPRINT::GetMsgPanelInfo(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), CONVERT_TOOL::Init(), SYMBOL_EDITOR_CONTROL::Init(), DIALOG_EDIT_ONE_FIELD::init(), PCB_SELECTION_TOOL::Init(), DIALOG_PAD_PROPERTIES::initValues(), CONVERT_TOOL::LinesToPoly(), PCB_SELECTION_TOOL::Main(), APPEARANCE_CONTROLS::OnColorSwatchChanged(), SYMBOL_EDITOR_CONTROL::OnDeMorgan(), APPEARANCE_CONTROLS::onObjectVisibilityChanged(), PCB_CONTROL::Paste(), SYMBOL_EDITOR_CONTROL::PinLibrary(), POSITION_RELATIVE_TOOL::RelativeItemSelectionMove(), SYMBOL_EDITOR_CONTROL::Revert(), SYMBOL_EDITOR_CONTROL::Save(), APPEARANCE_CONTROLS::setVisibleObjects(), SYMBOL_EDITOR_CONTROL::ShowComponentTree(), EE_INSPECTION_TOOL::ShowDatasheet(), EE_INSPECTION_TOOL::ShowERCDialog(), SYMBOL_EDITOR_CONTROL::UnpinLibrary(), and DIALOG_PAGES_SETTINGS::UpdatePageLayoutExample().
|
inherited |
Checks if aFileName can be written.
The function performs a number of tests on aFileName to verify that it can be saved. If aFileName defines a path with no file name, them the path is tested for user write permission. If aFileName defines a file name that does not exist in the path, the path is tested for user write permission. If aFileName defines a file that already exits, the file name is tested for user write permissions.
aFileName | The full path and/or file name of the file to test. |
Definition at line 899 of file eda_base_frame.cpp.
References _.
Referenced by SCH_EDIT_FRAME::doAutoSave(), SCH_EDIT_FRAME::SaveEEFile(), PCB_EDIT_FRAME::SavePcbCopy(), PCB_EDIT_FRAME::SavePcbFile(), and SCH_EDIT_FRAME::SaveProjectSettings().
|
inlineinherited |
Return a reference to the KIWAY that this object has an opportunity to participate in.
A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.
Definition at line 56 of file kiway_holder.h.
References KIWAY_HOLDER::m_kiway.
Referenced by PROJECT_TREE_ITEM::Activate(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PCB_BASE_EDIT_FRAME::AddLibrary(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), SYMBOL_EDIT_FRAME::canCloseWindow(), SCH_EDIT_FRAME::canCloseWindow(), KICAD_MANAGER_FRAME::CloseProject(), COMMON_CONTROL::ConfigurePaths(), DIALOG_CHOOSE_FOOTPRINT::ConstructRightPanel(), DIALOG_CHOOSE_SYMBOL::ConstructRightPanel(), PCB_BASE_FRAME::CreateAndShow3D_Frame(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SHIM::DIALOG_SHIM(), CVPCB_MAINFRAME::DisplayStatus(), FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), BOARD_EDITOR_CONTROL::EditFpInFpEditor(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), BACK_ANNOTATE::FetchNetlistFromPCB(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), KICAD_MANAGER_FRAME::ImportNonKiCadProject(), KICAD_MANAGER_FRAME::language_change(), KIWAY_PLAYER::language_change(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), CVPCB_MAINFRAME::LoadFootprintFiles(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), PL_EDITOR_FRAME::OnExit(), SCH_EDIT_FRAME::OnExit(), FOOTPRINT_EDIT_FRAME::OnExitKiCad(), FOOTPRINT_VIEWER_FRAME::OnExitKiCad(), SYMBOL_EDIT_FRAME::OnExitKiCad(), SAVE_AS_TRAVERSER::OnFile(), DIALOG_CHOOSE_SYMBOL::OnInitDialog(), SCH_EDIT_FRAME::OnOpenCvpcb(), SCH_EDIT_FRAME::OnOpenPcbnew(), EDA_BASE_FRAME::OnPreferences(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadFootprintFromBoard(), SCH_EDIT_FRAME::OnUpdatePCB(), FOOTPRINT_EDIT_FRAME::OnUpdateSaveFootprintToBoard(), PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS(), SCH_BASE_FRAME::PickSymbolFromLibBrowser(), KIWAY_HOLDER::Prj(), SCH_EDIT_TOOL::Properties(), BACK_ANNOTATE::PushNewLinksToPCB(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), SCH_EDITOR_CONTROL::rescueProject(), EE_INSPECTION_TOOL::RunSimulation(), SYMBOL_EDIT_FRAME::Save(), CVPCB_MAINFRAME::SaveFootprintAssociation(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), LIB_TREE_MODEL_ADAPTER::SavePinnedItems(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlistToCvpcb(), SCH_EDIT_FRAME::SetCrossProbeConnection(), SYMBOL_EDIT_FRAME::SetCurPart(), CVPCB_CONTROL::ShowFootprintViewer(), COMMON_CONTROL::ShowLibraryTable(), COMMON_CONTROL::ShowPlayer(), KICAD_MANAGER_CONTROL::ShowPlayer(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), BOARD_EDITOR_CONTROL::UpdateSchematicFromPCB(), and DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint().
|
protectedinherited |
event handler, routes to derivative specific virtual KiwayMailIn()
Definition at line 176 of file kiway_player.cpp.
References KIWAY_PLAYER::KiwayMailIn().
|
virtualinherited |
Receive KIWAY_EXPRESS messages from other players.
Override it in derived classes.
Reimplemented in SYMBOL_EDIT_FRAME, FOOTPRINT_EDIT_FRAME, PCB_EDIT_FRAME, SCH_EDIT_FRAME, and CVPCB_MAINFRAME.
Definition at line 70 of file kiway_player.cpp.
Referenced by KIWAY_PLAYER::kiway_express(), and KIWAY::ProcessEvent().
|
protectedinherited |
An event handler called on a language menu selection.
Definition at line 183 of file kiway_player.cpp.
References KIWAY_HOLDER::Kiway(), and KIWAY::SetLanguage().
|
overrideprivatevirtual |
Load common frame parameters from a configuration file.
Don't forget to call the base method or your frames won't remember their positions and sizes.
Reimplemented from EDA_BASE_FRAME.
Definition at line 281 of file pcb_calculator_frame.cpp.
References PCB_CALCULATOR_SETTINGS::REGULATORS::data_file, PCB_CALCULATOR_SETTINGS::REGULATORS::last_param, EDA_BASE_FRAME::LoadSettings(), m_attenuator_list, PCB_CALCULATOR_SETTINGS::m_Attenuators, PCB_CALCULATOR_FRAME_BASE::m_AttenuatorsSelection, PCB_CALCULATOR_FRAME_BASE::m_BoardClassesUnitsSelector, PCB_CALCULATOR_SETTINGS::m_BoardClassUnits, PCB_CALCULATOR_FRAME_BASE::m_choiceRegType, PCB_CALCULATOR_SETTINGS::m_ColorCodeTolerance, m_currTransLineType, PCB_CALCULATOR_SETTINGS::m_Electrical, PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingUnitsSelector, PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingVoltage, PCB_CALCULATOR_SETTINGS::m_LastPage, m_lastSelectedRegulatorName, PCB_CALCULATOR_FRAME_BASE::m_Notebook, PCB_CALCULATOR_FRAME_BASE::m_rbRegulR1, PCB_CALCULATOR_FRAME_BASE::m_rbRegulR2, PCB_CALCULATOR_FRAME_BASE::m_rbRegulVout, PCB_CALCULATOR_FRAME_BASE::m_rbToleranceSelection, PCB_CALCULATOR_SETTINGS::m_Regulators, PCB_CALCULATOR_FRAME_BASE::m_RegulR1Value, PCB_CALCULATOR_FRAME_BASE::m_RegulR2Value, PCB_CALCULATOR_FRAME_BASE::m_RegulVoutValue, PCB_CALCULATOR_FRAME_BASE::m_RegulVrefValue, PCB_CALCULATOR_SETTINGS::m_TransLine, m_transline_list, NULL, PCB_CALCULATOR_SETTINGS::REGULATORS::r1, PCB_CALCULATOR_SETTINGS::REGULATORS::r2, PCB_CALCULATOR_SETTINGS::REGULATORS::selected_regulator, SetDataFilename(), PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_units, PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_voltage, PCB_CALCULATOR_SETTINGS::ATTENUATORS::type, PCB_CALCULATOR_SETTINGS::REGULATORS::type, PCB_CALCULATOR_SETTINGS::TRANSMISSION_LINE::type, PCB_CALCULATOR_SETTINGS::REGULATORS::vout, and PCB_CALCULATOR_SETTINGS::REGULATORS::vref.
Referenced by PCB_CALCULATOR_FRAME().
|
inherited |
Load window settings from the given settings object.
Normally called by LoadSettings() unless the window in question is a child window that* stores its settings somewhere other than APP_SETTINGS_BASE::m_Window.
Definition at line 575 of file eda_base_frame.cpp.
References TOOLS_HOLDER::CommonSettingsChanged(), EDA_BASE_FRAME::LoadWindowState(), EDA_BASE_FRAME::m_autoSaveInterval, EDA_BASE_FRAME::m_hasAutoSave, EDA_BASE_FRAME::m_mruPath, EDA_BASE_FRAME::m_perspective, WINDOW_SETTINGS::mru_path, WINDOW_SETTINGS::perspective, Pgm(), and WINDOW_SETTINGS::state.
Referenced by EDA_BASE_FRAME::LoadSettings().
|
inherited |
Definition at line 458 of file eda_base_frame.cpp.
References PROJECT_LOCAL_SETTINGS::GetFileState(), PROJECT::GetLocalSettings(), Pgm(), KIWAY_HOLDER::Prj(), and PROJECT_FILE_STATE::window.
Referenced by KICAD_MANAGER_FRAME::LoadProject(), PCB_EDIT_FRAME::LoadProjectSettings(), EDA_BASE_FRAME::LoadWindowSettings(), and SCH_EDIT_FRAME::OpenProjectFiles().
|
virtualinherited |
Load frame state info from a configuration file.
Definition at line 472 of file eda_base_frame.cpp.
References PCAD2KICAD::Center, defaultSize(), WINDOW_STATE::display, EDA_BASE_FRAME::m_framePos, EDA_BASE_FRAME::m_frameSize, EDA_BASE_FRAME::m_ident, EDA_BASE_FRAME::m_maximizeByDefault, EDA_BASE_FRAME::m_normalFramePos, EDA_BASE_FRAME::m_normalFrameSize, WINDOW_STATE::maximized, minSize(), WINDOW_STATE::pos_x, WINDOW_STATE::pos_y, SCREEN_BORDER_REGION, WINDOW_STATE::size_x, WINDOW_STATE::size_y, and traceDisplayLocation.
|
inlineinherited |
Definition at line 559 of file eda_base_frame.h.
References EDA_BASE_FRAME::m_isNonUserClose.
Referenced by KIWAY::PlayerClose().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 167 of file regulators_funct.cpp.
References _, REGULATOR_LIST::Add(), DIALOG_REGULATOR_FORM::BuildRegulatorFromData(), REGULATOR_LIST::GetReg(), REGULATOR_LIST::GetRegList(), DIALOG_REGULATOR_FORM::IsOK(), PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, m_lastSelectedRegulatorName, REGULATOR_DATA::m_Name, m_RegulatorList, m_RegulatorListChanged, NULL, and SelectLastSelectedRegulator().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 37 of file attenuators.cpp.
References Refresh(), and SetAttenuator().
|
protectedinherited |
Handle the auto save timer event.
Definition at line 286 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::doAutoSave(), EDA_BASE_FRAME::m_autoSaveInterval, and EDA_BASE_FRAME::m_autoSaveTimer.
Referenced by EDA_BASE_FRAME::EDA_BASE_FRAME().
|
overridevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 86 of file board_classes_values.cpp.
References BoardClassesUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PCB_CALCULATOR_FRAME_BASE::m_BoardClassesUnitsSelector.
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 58 of file attenuators.cpp.
References ATTENUATOR::Calculate(), m_currAttenuator, TransfAttenuatorResultsToPanel(), and TransfPanelDataToAttenuator().
|
overrideprivatevirtual |
Called on calculate button and executes all E-series calculations.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 289 of file eserie.cpp.
References _, eserie::Calculate(), DoubleFromString(), eserie::Exclude(), eserie::get_rslt(), PCB_CALCULATOR_FRAME_BASE::m_ESeries_Sol2R, PCB_CALCULATOR_FRAME_BASE::m_ESeries_Sol3R, PCB_CALCULATOR_FRAME_BASE::m_ESeries_Sol4R, PCB_CALCULATOR_FRAME_BASE::m_ESeriesError2R, PCB_CALCULATOR_FRAME_BASE::m_ESeriesError3R, PCB_CALCULATOR_FRAME_BASE::m_ESeriesError4R, PCB_CALCULATOR_FRAME_BASE::m_ResExclude1, PCB_CALCULATOR_FRAME_BASE::m_ResExclude2, PCB_CALCULATOR_FRAME_BASE::m_ResRequired, eserie::NewCalc(), S2R, S3R, S4R, and eserie::SetRequiredValue().
|
virtualinherited |
Capture the key event before it is sent to the GUI.
The basic frame does not capture this event. Editor frames should override this event function to capture and filter these keys when they are used as hotkeys, and skip it if the key is not used as hotkey (otherwise the key events will be not sent to menus).
Reimplemented in FOOTPRINT_VIEWER_FRAME.
Definition at line 299 of file eda_base_frame.cpp.
References dump(), and kicadTraceKeyEvent.
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 248 of file pcb_calculator_frame.cpp.
References _, GetDataFilename(), m_RegulatorListChanged, and WriteDataFile().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 121 of file regulators_funct.cpp.
References _, DataFileNameExt, REGULATOR_LIST::GetCount(), GetDataFilename(), REGULATOR_LIST::GetRegList(), PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, PCB_CALCULATOR_FRAME_BASE::m_panelRegulators, m_RegulatorList, m_RegulatorListChanged, ReadDataFile(), SelectLastSelectedRegulator(), and SetDataFilename().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 199 of file regulators_funct.cpp.
References DIALOG_REGULATOR_FORM::BuildRegulatorFromData(), DIALOG_REGULATOR_FORM::CopyRegulatorDataToDialog(), REGULATOR_LIST::GetReg(), PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, m_RegulatorList, m_RegulatorListChanged, name, NULL, REGULATOR_LIST::Replace(), and SelectLastSelectedRegulator().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 110 of file electrical_spacing_values.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingUnitsSelector.
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 105 of file electrical_spacing_values.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PCB_CALCULATOR_FRAME_BASE::m_ElectricalSpacingUnitsSelector.
|
overrideprivatevirtual |
Radio Buttons to select the E-serie for the resistor calculator.
event | contains the radio button state |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 382 of file eserie.cpp.
References E1, E12, E3, E6, PCB_CALCULATOR_FRAME_BASE::m_e1, PCB_CALCULATOR_FRAME_BASE::m_e12, PCB_CALCULATOR_FRAME_BASE::m_e3, and eserie::SetSeries().
|
inherited |
Definition at line 858 of file eda_base_frame.cpp.
References ShowAboutDialog().
|
inherited |
Definition at line 1064 of file eda_base_frame.cpp.
References EDA_BASE_FRAME::GetWindowSize(), EDA_BASE_FRAME::m_normalFramePos, EDA_BASE_FRAME::m_normalFrameSize, and traceDisplayLocation.
|
inherited |
The TOOL_DISPATCHER needs these to work around some issues in wxWidgets where the menu events aren't captured by the menus themselves.
Definition at line 308 of file eda_base_frame.cpp.
References TOOL_DISPATCHER::DispatchWxEvent(), and TOOLS_HOLDER::m_toolDispatcher.
|
inlinevirtualinherited |
Reimplemented in EDA_DRAW_FRAME.
Definition at line 181 of file eda_base_frame.h.
|
inherited |
Definition at line 865 of file eda_base_frame.cpp.
References _, KIWAY::CommonSettingsChanged(), PAGED_DIALOG::GetTreebook(), EDA_BASE_FRAME::InstallPreferences(), KICAD_MANAGER_FRAME_NAME, KIWAY_HOLDER::Kiway(), KIWAY_PLAYER_COUNT, and KIWAY::Player().
Referenced by APPEARANCE_CONTROLS::onReadOnlySwatch().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 39 of file regulators_funct.cpp.
References RegulatorsSolve().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 45 of file regulators_funct.cpp.
References PCB_CALCULATOR_FRAME_BASE::m_choiceRegType, PCB_CALCULATOR_FRAME_BASE::m_rbRegulR1, PCB_CALCULATOR_FRAME_BASE::m_rbRegulR2, PCB_CALCULATOR_FRAME_BASE::m_rbRegulVout, PCB_CALCULATOR_FRAME_BASE::m_RegulR1Value, PCB_CALCULATOR_FRAME_BASE::m_RegulR2Value, PCB_CALCULATOR_FRAME_BASE::m_RegulVoutValue, PCB_CALCULATOR_FRAME_BASE::m_RegulVrefValue, and RegulatorPageUpdate().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 96 of file regulators_funct.cpp.
References REGULATOR_LIST::GetReg(), PCB_CALCULATOR_FRAME_BASE::m_choiceRegType, PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, REGULATOR_DATA::m_Iadj, m_lastSelectedRegulatorName, REGULATOR_DATA::m_Name, m_RegulatorList, PCB_CALCULATOR_FRAME_BASE::m_RegulIadjValue, PCB_CALCULATOR_FRAME_BASE::m_RegulVrefValue, REGULATOR_DATA::m_Type, REGULATOR_DATA::m_Vref, name, and RegulatorPageUpdate().
Referenced by SelectLastSelectedRegulator().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 90 of file regulators_funct.cpp.
References RegulatorPageUpdate().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 221 of file regulators_funct.cpp.
References _, REGULATOR_LIST::GetRegList(), PCB_CALCULATOR_FRAME_BASE::m_choiceRegulatorSelector, m_lastSelectedRegulatorName, m_RegulatorList, m_RegulatorListChanged, name, REGULATOR_LIST::Remove(), and SelectLastSelectedRegulator().
|
overrideprivatevirtual |
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 38 of file colorcode.cpp.
References ToleranceSelection().
|
overrideprivatevirtual |
Function OnTranslineAnalyse Run a new analyse for the current transline with current parameters and displays the electrical parameters.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 366 of file pcb_calculator_frame.cpp.
References TRANSLINE::analyze(), m_currTransLine, and TransfDlgDataToTranslineParams().
|
overrideprivatevirtual |
Function OnTranslineEpsilonR_Button Shows a list of current relative dielectric constant(Er) and set the selected value in main dialog frame.
Function OnEpsilonR_Button Shows a list of current relative dielectric constant(Er) and set the selected value in main dialog frame.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 117 of file transline_dlg_funct.cpp.
References _, findMatch(), PCB_CALCULATOR_FRAME_BASE::m_Value_EpsilonR, and StandardRelativeDielectricConstantList().
|
overrideprivatevirtual |
Function OnTransLineResetButtonClick Called when the user clicks the reset button; sets the parameters to their default values.
Function OnTransLineResetButtonClick Called when the user clicks the reset button.
This sets the parameters to their default values.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 463 of file transline_dlg_funct.cpp.
References DEFAULT_TYPE, PCB_CALCULATOR_FRAME_BASE::m_panelTransline, PCB_CALCULATOR_FRAME_BASE::m_TranslineSelection, and TranslineTypeSelection().
|
overrideprivatevirtual |
Function OnTranslineRho_Button Shows a list of current Specific resistance list (rho) and set the selected value in main dialog frame.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 163 of file transline_dlg_funct.cpp.
References _, findMatch(), PCB_CALCULATOR_FRAME_BASE::m_Value_Rho, NULL, and StandardResistivityList().
|
overrideprivatevirtual |
Function OnTranslineSelection Called on new transmission line selection.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 445 of file transline_dlg_funct.cpp.
References PCB_CALCULATOR_FRAME_BASE::m_panelTransline, and TranslineTypeSelection().
|
overrideprivatevirtual |
Function OnTranslineSynthetize Run a new synthezis for the current transline with current parameters and displays the geometrical parameters.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 381 of file pcb_calculator_frame.cpp.
References m_currTransLine, TRANSLINE::synthesize(), and TransfDlgDataToTranslineParams().
|
overrideprivatevirtual |
Function OnTranslineTanD_Button Shows a list of current dielectric loss factor (tangent delta) and set the selected value in main dialog frame.
Function OnTanD_Button Shows a list of current dielectric loss factor (tangent delta) and set the selected value in main dialog frame.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 140 of file transline_dlg_funct.cpp.
References _, findMatch(), PCB_CALCULATOR_FRAME_BASE::m_Value_TanD, NULL, and StandardLossTangentList().
|
overrideprivatevirtual |
Function OnTWCalculateFromCurrent Called when the user changes the desired maximum current.
This sets the current as the controlling value and performs the calculations.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 83 of file tracks_width_versus_current.cpp.
References DoubleFromString(), UNIT_SELECTOR_THICKNESS::GetUnitScale(), PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_TrackCurrentValue, PCB_CALCULATOR_FRAME_BASE::m_TrackDeltaTValue, m_TWMode, m_TWNested, TW_MASTER_CURRENT, TWCalculateWidth(), TWDisplayValues(), and TWUpdateModeDisplay().
Referenced by OnTWParametersChanged().
|
overrideprivatevirtual |
Function OnTWCalculateFromExtWidth Called when the user changes the desired external trace width.
This sets the external width as the controlling value and performs the calculations.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 123 of file tracks_width_versus_current.cpp.
References DoubleFromString(), UNIT_SELECTOR_LEN::GetUnitScale(), UNIT_SELECTOR_THICKNESS::GetUnitScale(), PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackWidthValue, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_TrackDeltaTValue, PCB_CALCULATOR_FRAME_BASE::m_TW_ExtTrackWidth_choiceUnit, m_TWMode, m_TWNested, TW_MASTER_EXT_WIDTH, TWCalculateCurrent(), TWCalculateWidth(), TWDisplayValues(), and TWUpdateModeDisplay().
Referenced by OnTWParametersChanged().
|
overrideprivatevirtual |
Function OnTWCalculateFromIntWidth Called when the user changes the desired internal trace width.
This sets the internal width as the controlling value and performs the calculations.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 167 of file tracks_width_versus_current.cpp.
References DoubleFromString(), UNIT_SELECTOR_LEN::GetUnitScale(), UNIT_SELECTOR_THICKNESS::GetUnitScale(), PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_ExtTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessUnit, PCB_CALCULATOR_FRAME_BASE::m_IntTrackThicknessValue, PCB_CALCULATOR_FRAME_BASE::m_IntTrackWidthValue, PCB_CALCULATOR_FRAME_BASE::m_TrackDeltaTValue, PCB_CALCULATOR_FRAME_BASE::m_TW_IntTrackWidth_choiceUnit, m_TWMode, m_TWNested, TW_MASTER_INT_WIDTH, TWCalculateCurrent(), TWCalculateWidth(), TWDisplayValues(), and TWUpdateModeDisplay().
Referenced by OnTWParametersChanged().
|
overrideprivatevirtual |
Function OnTWParametersChanged Called when the user changes the general parameters (i.e., anything that is not one of the controlling values).
This update the calculations.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 66 of file tracks_width_versus_current.cpp.
References m_TWMode, OnTWCalculateFromCurrent(), OnTWCalculateFromExtWidth(), OnTWCalculateFromIntWidth(), TW_MASTER_CURRENT, TW_MASTER_EXT_WIDTH, and TW_MASTER_INT_WIDTH.
Referenced by initTrackWidthPanel().
|
overrideprivatevirtual |
Function OnTWResetButtonClick Called when the user clicks the reset button.
This sets the parameters to their default values.
Reimplemented from PCB_CALCULATOR_FRAME_BASE.
Definition at line 212 of file tracks_width_versus_current.cpp.