KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_fusing_current_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14PANEL_FUSING_CURRENT_BASE::PANEL_FUSING_CURRENT_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : CALCULATOR_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizer7;
17 bSizer7 = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizer8;
20 bSizer8 = new wxBoxSizer( wxVERTICAL );
21
22 wxFlexGridSizer* fgSizer11;
23 fgSizer11 = new wxFlexGridSizer( 0, 4, 0, 0 );
24 fgSizer11->SetFlexibleDirection( wxBOTH );
25 fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26
27 m_dummy1 = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
28 m_dummy1->Wrap( -1 );
29 fgSizer11->Add( m_dummy1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
30
31 m_ambientText = new wxStaticText( this, wxID_ANY, _("Ambient temperature:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_ambientText->Wrap( -1 );
33 fgSizer11->Add( m_ambientText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
34
35 m_ambientValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
36 m_ambientValue->SetMinSize( wxSize( 120,-1 ) );
37
38 fgSizer11->Add( m_ambientValue, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
39
40 m_ambientUnit = new wxStaticText( this, wxID_ANY, _("deg C"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_ambientUnit->Wrap( -1 );
42 fgSizer11->Add( m_ambientUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
43
44 m_dummy2 = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
45 m_dummy2->Wrap( -1 );
46 fgSizer11->Add( m_dummy2, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
47
48 m_meltingText = new wxStaticText( this, wxID_ANY, _("Melting point:"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_meltingText->Wrap( -1 );
50 fgSizer11->Add( m_meltingText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
51
52 m_meltingValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizer11->Add( m_meltingValue, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
54
55 m_meltingUnit = new wxStaticText( this, wxID_ANY, _("deg C"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_meltingUnit->Wrap( -1 );
57 fgSizer11->Add( m_meltingUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
58
59 m_widthRadio = new wxRadioButton( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
60 fgSizer11->Add( m_widthRadio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
61
62 m_widthText = new wxStaticText( this, wxID_ANY, _("Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_widthText->Wrap( -1 );
64 fgSizer11->Add( m_widthText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
65
66 m_widthValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
67 fgSizer11->Add( m_widthValue, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
68
69 wxArrayString m_widthUnitChoices;
70 m_widthUnit = new UNIT_SELECTOR_LEN( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_widthUnitChoices, 0 );
71 m_widthUnit->SetSelection( 0 );
72 fgSizer11->Add( m_widthUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 );
73
74 m_thicknessRadio = new wxRadioButton( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
75 fgSizer11->Add( m_thicknessRadio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
76
77 m_thicknessText = new wxStaticText( this, wxID_ANY, _("Track thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_thicknessText->Wrap( -1 );
79 fgSizer11->Add( m_thicknessText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
80
81 m_thicknessValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
82 fgSizer11->Add( m_thicknessValue, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
83
84 wxArrayString m_thicknessUnitChoices;
85 m_thicknessUnit = new UNIT_SELECTOR_THICKNESS( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_thicknessUnitChoices, 0 );
86 m_thicknessUnit->SetSelection( 0 );
87 fgSizer11->Add( m_thicknessUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 );
88
89 m_currentRadio = new wxRadioButton( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
90 fgSizer11->Add( m_currentRadio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
91
92 m_currentText = new wxStaticText( this, wxID_ANY, _("Current:"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_currentText->Wrap( -1 );
94 fgSizer11->Add( m_currentText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
95
96 m_currentValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
97 fgSizer11->Add( m_currentValue, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
98
99 m_currentUnit = new wxStaticText( this, wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 );
100 m_currentUnit->Wrap( -1 );
101 fgSizer11->Add( m_currentUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
102
103 m_timeRadio = new wxRadioButton( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
104 fgSizer11->Add( m_timeRadio, 0, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
105
106 m_timeText = new wxStaticText( this, wxID_ANY, _("Time to fuse:"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_timeText->Wrap( -1 );
108 fgSizer11->Add( m_timeText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
109
110 m_timeValue = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
111 fgSizer11->Add( m_timeValue, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
112
113 m_timeUnit = new wxStaticText( this, wxID_ANY, _("s"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_timeUnit->Wrap( -1 );
115 fgSizer11->Add( m_timeUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
116
117
118 bSizer8->Add( fgSizer11, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
119
120 wxBoxSizer* bSizer3;
121 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
122
123 m_calculateButton = new wxButton( this, wxID_ANY, _("Calculate"), wxDefaultPosition, wxDefaultSize, 0 );
124 m_calculateButton->SetMinSize( wxSize( 120,-1 ) );
125
126 bSizer3->Add( m_calculateButton, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
127
128 m_comment = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
129 m_comment->Wrap( -1 );
130 bSizer3->Add( m_comment, 0, wxALIGN_CENTER|wxALL, 5 );
131
132
133 bSizer8->Add( bSizer3, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
134
135 wxStaticBoxSizer* m_helpSizer;
136 m_helpSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Help") ), wxVERTICAL );
137
138 m_htmlHelp = new HTML_WINDOW( m_helpSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
139 m_htmlHelp->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT ) );
140 m_htmlHelp->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
141
142 m_helpSizer->Add( m_htmlHelp, 1, wxEXPAND|wxALL, 5 );
143
144
145 bSizer8->Add( m_helpSizer, 1, wxALL|wxEXPAND, 5 );
146
147
148 bSizer7->Add( bSizer8, 1, wxEXPAND, 5 );
149
150
151 this->SetSizer( bSizer7 );
152 this->Layout();
153
154 // Connect Events
155 m_calculateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FUSING_CURRENT_BASE::m_onCalculateClick ), NULL, this );
156}
157
159{
160 // Disconnect Events
161 m_calculateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FUSING_CURRENT_BASE::m_onCalculateClick ), NULL, this );
162
163}
const char * name
Definition: DXF_plotter.cpp:57
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:35
PANEL_FUSING_CURRENT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(512, 574), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
UNIT_SELECTOR_THICKNESS * m_thicknessUnit
virtual void m_onCalculateClick(wxCommandEvent &event)
#define _(s)