KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_r_calculator.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-2022 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_R_CALCULATOR_H
21#define PANEL_R_CALCULATOR_H
22
23#include <eseries.h>
26
28
29
31{
32public:
33 PANEL_R_CALCULATOR( wxWindow* parent, wxWindowID id = wxID_ANY,
34 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
35 long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
37
38 // Methods from CALCULATOR_PANEL that must be overridden
39 void LoadSettings( PCB_CALCULATOR_SETTINGS* aCfg ) override;
40 void SaveSettings( PCB_CALCULATOR_SETTINGS* aCfg ) override;
41 void ThemeChanged() override;
42
46 void OnCalculateESeries( wxCommandEvent& event ) override;
47
53 void OnESeriesSelection( wxCommandEvent& event ) override;
54
55private:
57};
58
59#endif
const char * name
Definition: DXF_plotter.cpp:57
Class PANEL_R_CALCULATOR_BASE.
void OnCalculateESeries(wxCommandEvent &event) override
Called on calculate button and executes all E-series calculations.
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
RES_EQUIV_CALC m_eSeries
void OnESeriesSelection(wxCommandEvent &event) override
Radio Buttons to select the E-series for the resistor calculator.
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
Performs calculations on E-series values primarily to find target values as combinations (serial,...