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 )
17 bSizer7 =
new wxBoxSizer( wxVERTICAL );
20 bSizer8 =
new wxBoxSizer( wxVERTICAL );
22 wxFlexGridSizer* fgSizer11;
23 fgSizer11 =
new wxFlexGridSizer( 0, 4, 0, 0 );
24 fgSizer11->SetFlexibleDirection( wxBOTH );
25 fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 m_dummy1 =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 fgSizer11->Add(
m_dummy1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
31 m_ambientText =
new wxStaticText(
this, wxID_ANY,
_(
"Ambient temperature:"), wxDefaultPosition, wxDefaultSize, 0 );
33 fgSizer11->Add(
m_ambientText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
35 m_ambientValue =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizer11->Add(
m_ambientValue, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
40 m_ambientUnit =
new wxStaticText(
this, wxID_ANY,
_(
"deg C"), wxDefaultPosition, wxDefaultSize, 0 );
42 fgSizer11->Add(
m_ambientUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
44 m_dummy2 =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizer11->Add(
m_dummy2, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
48 m_meltingText =
new wxStaticText(
this, wxID_ANY,
_(
"Melting point:"), wxDefaultPosition, wxDefaultSize, 0 );
50 fgSizer11->Add(
m_meltingText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
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 );
55 m_meltingUnit =
new wxStaticText(
this, wxID_ANY,
_(
"deg C"), wxDefaultPosition, wxDefaultSize, 0 );
57 fgSizer11->Add(
m_meltingUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
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 );
62 m_widthText =
new wxStaticText(
this, wxID_ANY,
_(
"Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
64 fgSizer11->Add(
m_widthText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
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 );
69 wxArrayString m_widthUnitChoices;
72 fgSizer11->Add(
m_widthUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 );
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 );
77 m_thicknessText =
new wxStaticText(
this, wxID_ANY,
_(
"Track thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
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 );
84 wxArrayString m_thicknessUnitChoices;
87 fgSizer11->Add(
m_thicknessUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 );
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 );
92 m_currentText =
new wxStaticText(
this, wxID_ANY,
_(
"Current:"), wxDefaultPosition, wxDefaultSize, 0 );
94 fgSizer11->Add(
m_currentText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
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 );
99 m_currentUnit =
new wxStaticText(
this, wxID_ANY,
_(
"A"), wxDefaultPosition, wxDefaultSize, 0 );
101 fgSizer11->Add(
m_currentUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
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 );
106 m_timeText =
new wxStaticText(
this, wxID_ANY,
_(
"Time to fuse:"), wxDefaultPosition, wxDefaultSize, 0 );
108 fgSizer11->Add(
m_timeText, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
110 m_timeValue =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
111 fgSizer11->Add(
m_timeValue, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
113 m_timeUnit =
new wxStaticText(
this, wxID_ANY,
_(
"s"), wxDefaultPosition, wxDefaultSize, 0 );
115 fgSizer11->Add(
m_timeUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
118 bSizer8->Add( fgSizer11, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
121 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
123 m_calculateButton =
new wxButton(
this, wxID_ANY,
_(
"Calculate"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_comment =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
130 bSizer3->Add(
m_comment, 0, wxALIGN_CENTER|wxALL, 5 );
133 bSizer8->Add( bSizer3, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
135 wxStaticBoxSizer* m_helpSizer;
136 m_helpSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Help") ), wxVERTICAL );
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 ) );
142 m_helpSizer->Add(
m_htmlHelp, 1, wxEXPAND|wxALL, 5 );
145 bSizer8->Add( m_helpSizer, 1, wxALL|wxEXPAND, 5 );
148 bSizer7->Add( bSizer8, 1, wxEXPAND, 5 );
151 this->SetSizer( bSizer7 );
Add dark theme support to wxHtmlWindow.
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)
wxTextCtrl * m_meltingValue
wxStaticText * m_timeUnit
wxStaticText * m_currentUnit
wxRadioButton * m_thicknessRadio
wxTextCtrl * m_currentValue
wxStaticText * m_ambientText
wxStaticText * m_timeText
wxRadioButton * m_widthRadio
UNIT_SELECTOR_THICKNESS * m_thicknessUnit
~PANEL_FUSING_CURRENT_BASE()
wxRadioButton * m_timeRadio
wxTextCtrl * m_widthValue
wxStaticText * m_meltingUnit
wxStaticText * m_currentText
wxStaticText * m_ambientUnit
wxButton * m_calculateButton
wxTextCtrl * m_ambientValue
virtual void m_onCalculateClick(wxCommandEvent &event)
wxStaticText * m_thicknessText
wxRadioButton * m_currentRadio
wxTextCtrl * m_thicknessValue
wxStaticText * m_widthText
wxStaticText * m_meltingText
UNIT_SELECTOR_LEN * m_widthUnit