KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_regulator_form_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
12DIALOG_REGULATOR_FORM_BASE::DIALOG_REGULATOR_FORM_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 bSizerMain->SetMinSize( wxSize( 300,-1 ) );
20 wxFlexGridSizer* fgSizerPrms;
21 fgSizerPrms = new wxFlexGridSizer( 4, 3, 0, 0 );
22 fgSizerPrms->AddGrowableCol( 1 );
23 fgSizerPrms->AddGrowableRow( 0 );
24 fgSizerPrms->SetFlexibleDirection( wxHORIZONTAL );
25 fgSizerPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26
27 m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticTextName->Wrap( -1 );
29 fgSizerPrms->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
30
31 m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 fgSizerPrms->Add( m_textCtrlName, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
33
34
35 fgSizerPrms->Add( 0, 0, 1, wxEXPAND, 5 );
36
37 m_staticTextVref = new wxStaticText( this, wxID_ANY, _("Vref (min/typ/max):"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_staticTextVref->Wrap( -1 );
39 fgSizerPrms->Add( m_staticTextVref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
40
41 wxBoxSizer* bSizer2;
42 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
43
44 m_vrefMinVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
45 bSizer2->Add( m_vrefMinVal, 0, wxALL, 5 );
46
47 m_vrefTypVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
48 bSizer2->Add( m_vrefTypVal, 0, wxALL, 5 );
49
50 m_vrefMaxVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51 bSizer2->Add( m_vrefMaxVal, 0, wxALL, 5 );
52
53
54 fgSizerPrms->Add( bSizer2, 1, wxEXPAND, 5 );
55
56 m_staticTextVrefUnit = new wxStaticText( this, wxID_ANY, _("Volt"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_staticTextVrefUnit->Wrap( -1 );
58 fgSizerPrms->Add( m_staticTextVrefUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
59
60 m_staticTextType = new wxStaticText( this, wxID_ANY, _("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticTextType->Wrap( -1 );
62 fgSizerPrms->Add( m_staticTextType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
63
64 wxString m_choiceRegTypeChoices[] = { _("Standard Type"), _("3 Terminal Type") };
65 int m_choiceRegTypeNChoices = sizeof( m_choiceRegTypeChoices ) / sizeof( wxString );
66 m_choiceRegType = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRegTypeNChoices, m_choiceRegTypeChoices, 0 );
67 m_choiceRegType->SetSelection( 0 );
68 fgSizerPrms->Add( m_choiceRegType, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
69
70
71 fgSizerPrms->Add( 0, 0, 1, wxEXPAND, 5 );
72
73 m_RegulIadjTitle = new wxStaticText( this, wxID_ANY, _("Iadj (typ/max):"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_RegulIadjTitle->Wrap( -1 );
75 fgSizerPrms->Add( m_RegulIadjTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
76
77 wxBoxSizer* bSizer3;
78 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
79
80
81 bSizer3->Add( 0, 0, 1, 0, 5 );
82
83 m_iadjTypVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
84 bSizer3->Add( m_iadjTypVal, 0, wxALL, 5 );
85
86 m_iadjMaxVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
87 bSizer3->Add( m_iadjMaxVal, 0, wxALL, 5 );
88
89
90 fgSizerPrms->Add( bSizer3, 1, wxEXPAND, 5 );
91
92 m_labelUnitIadj = new wxStaticText( this, wxID_ANY, _("uA"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_labelUnitIadj->Wrap( -1 );
94 fgSizerPrms->Add( m_labelUnitIadj, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
95
96
97 bSizerMain->Add( fgSizerPrms, 0, wxEXPAND, 5 );
98
99
100 bSizerMain->Add( 0, 0, 1, wxEXPAND, 5 );
101
102 m_sdbSizer = new wxStdDialogButtonSizer();
103 m_sdbSizerOK = new wxButton( this, wxID_OK );
104 m_sdbSizer->AddButton( m_sdbSizerOK );
105 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
106 m_sdbSizer->AddButton( m_sdbSizerCancel );
107 m_sdbSizer->Realize();
108
109 bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
110
111
112 this->SetSizer( bSizerMain );
113 this->Layout();
114 bSizerMain->Fit( this );
115
116 this->Centre( wxBOTH );
117
118 // Connect Events
119 m_choiceRegType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_REGULATOR_FORM_BASE::OnRegTypeSelection ), NULL, this );
120}
121
123{
124 // Disconnect Events
125 m_choiceRegType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_REGULATOR_FORM_BASE::OnRegTypeSelection ), NULL, this );
126
127}
virtual void OnRegTypeSelection(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_REGULATOR_FORM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Regulator Parameters"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)