12PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
CALCULATOR_PANEL( parent, id, pos, size, style,
name )
16 m_scrolledWindow1 =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
18 wxBoxSizer* bSizerGrid;
19 bSizerGrid =
new wxBoxSizer( wxVERTICAL );
26 m_table->EnableGridLines(
true );
27 m_table->EnableDragGridSize(
false );
31 m_table->EnableDragColMove(
false );
32 m_table->EnableDragColSize(
true );
33 m_table->SetColLabelValue( 0,
_(
"Copper (Cu)") );
34 m_table->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
37 m_table->EnableDragRowSize(
true );
38 m_table->SetRowLabelValue( 0,
_(
"Copper (Cu)") );
39 m_table->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
44 m_table->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
45 bSizerGrid->Add(
m_table, 0, 0, 5 );
53 m_helpText =
new HTML_WINDOW(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
58 wxBoxSizer* bSizerBottom;
59 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
61 wxBoxSizer* bSizerVoltage;
62 bSizerVoltage =
new wxBoxSizer( wxHORIZONTAL );
64 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Threshold voltage:"), wxDefaultPosition, wxDefaultSize, 0 );
66 bSizerVoltage->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxTOP, 5 );
68 m_corFilterCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
71 bSizerVoltage->Add(
m_corFilterCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
73 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"mV"), wxDefaultPosition, wxDefaultSize, 0 );
75 bSizerVoltage->Add(
m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
78 bSizerBottom->Add( bSizerVoltage, 0, 0, 5 );
80 m_staticline =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
81 m_staticline->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL,
false, wxEmptyString ) );
83 bSizerBottom->Add(
m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
85 wxBoxSizer* bSizerOpts;
86 bSizerOpts =
new wxBoxSizer( wxHORIZONTAL );
88 m_stOpts =
new wxStaticText(
this, wxID_ANY,
_(
"Material names:"), wxDefaultPosition, wxDefaultSize, 0 );
90 bSizerOpts->Add(
m_stOpts, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
92 m_radioBtnSymbol =
new wxRadioButton(
this, wxID_ANY,
_(
"Chemical symbols"), wxDefaultPosition, wxDefaultSize, 0 );
95 m_radioBtnName =
new wxRadioButton(
this, wxID_ANY,
_(
"Names"), wxDefaultPosition, wxDefaultSize, 0 );
96 bSizerOpts->Add(
m_radioBtnName, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
99 bSizerBottom->Add( bSizerOpts, 0, wxALIGN_CENTER_VERTICAL, 5 );
102 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
Add dark theme support to wxHtmlWindow.
wxStaticText * m_staticText3
~PANEL_GALVANIC_CORROSION_BASE()
PANEL_GALVANIC_CORROSION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(509, 245), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxTextCtrl * m_corFilterCtrl
wxRadioButton * m_radioBtnName
wxScrolledWindow * m_scrolledWindow1
virtual void OnCorFilterChange(wxCommandEvent &event)
wxStaticLine * m_staticline
wxRadioButton * m_radioBtnSymbol
wxStaticText * m_staticText2
virtual void OnNomenclatureChange(wxCommandEvent &event)