KiCad PCB EDA Suite
panel_eserie.cpp
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) 2011 jean-pierre.charras
5  * Copyright (C) 1992-2021 Kicad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 /* see
22  * http://www.desmith.net/NMdS/Electronics/TraceWidth.html
23  * http://www.ultracad.com/articles/pcbtemp.pdf
24  * for more info
25  */
26 
29 #include <string_utils.h>
30 
31 #include <i18n_utility.h> // For _HKI definition
32 wxString eseries_help =
33 #include "eserie_help.h"
34 
35 
36 PANEL_E_SERIE::PANEL_E_SERIE( wxWindow* parent, wxWindowID id,
37  const wxPoint& pos, const wxSize& size,
38  long style, const wxString& name ) :
39  PANEL_E_SERIE_BASE( parent, id, pos, size, style, name )
40 {
41  m_reqResUnits->SetLabel( wxT( "kΩ" ) );
42  m_exclude1Units->SetLabel( wxT( "kΩ" ) );
43  m_exclude2Units->SetLabel( wxT( "kΩ" ) );
44 
45  // show markdown formula explanation in lower help panel
46  wxString msg;
47  ConvertMarkdown2Html( wxGetTranslation( eseries_help ), msg );
48  m_panelESeriesHelp->SetPage( msg );
49 
50  // Needed on wxWidgets 3.0 to ensure sizers are correctly set
51  GetSizer()->SetSizeHints( this );
52 }
53 
54 
56 {
57 }
58 
59 
61 {
62  // Update the HTML window with the help text
64 }
65 
66 
68 {
69 }
70 
71 
73 {
74 }
Class PANEL_E_SERIE_BASE.
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...
void ConvertMarkdown2Html(const wxString &aMarkdownInput, wxString &aHtmlOutput)
Some functions to handle hotkeys in KiCad.
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
void ThemeChanged()
Definition: html_window.cpp:63
const char * name
Definition: DXF_plotter.cpp:56
PANEL_E_SERIE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
HTML_WINDOW * m_panelESeriesHelp