KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_galvanic_corrosion_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 bSizerMain = new wxBoxSizer( wxVERTICAL );
15
16 m_scrolledWindow1 = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
17 m_scrolledWindow1->SetScrollRate( 5, 5 );
18 wxBoxSizer* bSizerGrid;
19 bSizerGrid = new wxBoxSizer( wxVERTICAL );
20
21 m_table = new wxGrid( m_scrolledWindow1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
22
23 // Grid
24 m_table->CreateGrid( 1, 1 );
25 m_table->EnableEditing( true );
26 m_table->EnableGridLines( true );
27 m_table->EnableDragGridSize( false );
28 m_table->SetMargins( 0, 0 );
29
30 // Columns
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 );
35
36 // Rows
37 m_table->EnableDragRowSize( true );
38 m_table->SetRowLabelValue( 0, _("Copper (Cu)") );
39 m_table->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
40
41 // Label Appearance
42
43 // Cell Defaults
44 m_table->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
45 bSizerGrid->Add( m_table, 0, 0, 5 );
46
47
48 m_scrolledWindow1->SetSizer( bSizerGrid );
49 m_scrolledWindow1->Layout();
50 bSizerGrid->Fit( m_scrolledWindow1 );
51 bSizerMain->Add( m_scrolledWindow1, 1, wxEXPAND|wxALL, 5 );
52
53 m_helpText = new HTML_WINDOW( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
54 m_helpText->SetMinSize( wxSize( 400,110 ) );
55
56 bSizerMain->Add( m_helpText, 0, wxALL|wxEXPAND, 5 );
57
58 wxBoxSizer* bSizerBottom;
59 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
60
61 wxBoxSizer* bSizerVoltage;
62 bSizerVoltage = new wxBoxSizer( wxHORIZONTAL );
63
64 m_staticText2 = new wxStaticText( this, wxID_ANY, _("Threshold voltage:"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_staticText2->Wrap( -1 );
66 bSizerVoltage->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxTOP, 5 );
67
68 m_corFilterCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
69 m_corFilterCtrl->SetMinSize( wxSize( 100,-1 ) );
70
71 bSizerVoltage->Add( m_corFilterCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
72
73 m_staticText3 = new wxStaticText( this, wxID_ANY, _("mV"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_staticText3->Wrap( -1 );
75 bSizerVoltage->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
76
77
78 bSizerBottom->Add( bSizerVoltage, 0, 0, 5 );
79
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 ) );
82
83 bSizerBottom->Add( m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
84
85 wxBoxSizer* bSizerOpts;
86 bSizerOpts = new wxBoxSizer( wxHORIZONTAL );
87
88 m_stOpts = new wxStaticText( this, wxID_ANY, _("Material names:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_stOpts->Wrap( -1 );
90 bSizerOpts->Add( m_stOpts, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
91
92 m_radioBtnSymbol = new wxRadioButton( this, wxID_ANY, _("Chemical symbols"), wxDefaultPosition, wxDefaultSize, 0 );
93 bSizerOpts->Add( m_radioBtnSymbol, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
94
95 m_radioBtnName = new wxRadioButton( this, wxID_ANY, _("Names"), wxDefaultPosition, wxDefaultSize, 0 );
96 bSizerOpts->Add( m_radioBtnName, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
97
98
99 bSizerBottom->Add( bSizerOpts, 0, wxALIGN_CENTER_VERTICAL, 5 );
100
101
102 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
103
104
105 this->SetSizer( bSizerMain );
106 this->Layout();
107
108 // Connect Events
109 m_corFilterCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnCorFilterChange ), NULL, this );
110 m_radioBtnSymbol->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnNomenclatureChange ), NULL, this );
111 m_radioBtnName->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnNomenclatureChange ), NULL, this );
112}
113
115{
116 // Disconnect Events
117 m_corFilterCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnCorFilterChange ), NULL, this );
118 m_radioBtnSymbol->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnNomenclatureChange ), NULL, this );
119 m_radioBtnName->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_GALVANIC_CORROSION_BASE::OnNomenclatureChange ), NULL, this );
120
121}
const char * name
Definition: DXF_plotter.cpp:57
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:35
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)
virtual void OnCorFilterChange(wxCommandEvent &event)
virtual void OnNomenclatureChange(wxCommandEvent &event)
#define _(s)