KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_via_size.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KICAD, a free EDA CAD application.
3 *
4 * Copyright (C) 1992-2023 Kicad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef PANEL_VIA_SIZE_H
21#define PANEL_VIA_SIZE_H
22
23#include "panel_via_size_base.h"
24
26
27
29{
30public:
31 PANEL_VIA_SIZE( wxWindow* parent, wxWindowID id = wxID_ANY,
32 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
33 long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
35
36 // Methods from CALCULATOR_PANEL that must be overridden
37 void LoadSettings( PCB_CALCULATOR_SETTINGS* aCfg ) override;
38 void SaveSettings( PCB_CALCULATOR_SETTINGS* aCfg ) override;
39 void ThemeChanged() override;
40
44 void OnViaCalculate( wxCommandEvent& event ) override;
45
49 void OnViaEpsilonR_Button( wxCommandEvent& event ) override;
50
54 void OnViaRho_Button( wxCommandEvent& event ) override;
55
59 void onUpdateViaCalcErrorText( wxUpdateUIEvent& event ) override;
60
64 void OnViaResetButtonClick( wxCommandEvent& event ) override;
65
69 void VSDisplayValues( double aViaResistance, double aVoltageDrop, double aPowerLoss,
70 double aEstimatedAmpacity, double aThermalResistance,
71 double aCapacitance, double aTimeDegradation, double aInductance,
72 double aReactance );
73
74private:
75};
76
77#endif
const char * name
Definition: DXF_plotter.cpp:57
Class PANEL_VIA_SIZE_BASE.
void OnViaResetButtonClick(wxCommandEvent &event) override
Called when the user clicks the reset button; sets the parameters to their default values.
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
void VSDisplayValues(double aViaResistance, double aVoltageDrop, double aPowerLoss, double aEstimatedAmpacity, double aThermalResistance, double aCapacitance, double aTimeDegradation, double aInductance, double aReactance)
Display the results of the calculation.
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
void OnViaRho_Button(wxCommandEvent &event) override
Shows a list of current Specific resistance list (rho) and select a value.
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
void OnViaEpsilonR_Button(wxCommandEvent &event) override
Shows a list of current relative dielectric constant(Er) and select a value.
void onUpdateViaCalcErrorText(wxUpdateUIEvent &event) override
Update the Error message in via calculation panel.
void OnViaCalculate(wxCommandEvent &event) override
Called when the user changes any value in the via calculator.