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 )
 
   14    this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
 
   16    wxBoxSizer* bSizerMain;
 
   17    bSizerMain = 
new wxBoxSizer( wxVERTICAL );
 
   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 );
 
   27    m_staticTextName = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   31    m_textCtrlName = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   32    fgSizerPrms->Add( 
m_textCtrlName, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
 
   35    fgSizerPrms->Add( 0, 0, 1, wxEXPAND, 5 );
 
   37    m_staticTextVref = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Vref (min/typ/max):"), wxDefaultPosition, wxDefaultSize, 0 );
 
   42    bSizer2 = 
new wxBoxSizer( wxHORIZONTAL );
 
   44    m_vrefMinVal = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   47    m_vrefTypVal = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   50    m_vrefMaxVal = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   54    fgSizerPrms->Add( bSizer2, 1, wxEXPAND, 5 );
 
   56    m_staticTextVrefUnit = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Volt"), wxDefaultPosition, wxDefaultSize, 0 );
 
   60    m_staticTextType = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Type:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   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 );
 
   68    fgSizerPrms->Add( 
m_choiceRegType, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
 
   71    fgSizerPrms->Add( 0, 0, 1, wxEXPAND, 5 );
 
   73    m_RegulIadjTitle = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Iadj (typ/max):"), wxDefaultPosition, wxDefaultSize, 0 );
 
   78    bSizer3 = 
new wxBoxSizer( wxHORIZONTAL );
 
   81    bSizer3->Add( 0, 0, 1, 0, 5 );
 
   83    m_iadjTypVal = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   86    m_iadjMaxVal = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
   90    fgSizerPrms->Add( bSizer3, 1, wxEXPAND, 5 );
 
   92    m_labelUnitIadj = 
new wxStaticText( 
this, wxID_ANY, 
_(
"uA"), wxDefaultPosition, wxDefaultSize, 0 );
 
   94    fgSizerPrms->Add( 
m_labelUnitIadj, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
 
   97    bSizerMain->Add( fgSizerPrms, 0, wxEXPAND, 5 );
 
  100    bSizerMain->Add( 0, 0, 1, wxEXPAND, 5 );
 
  109    bSizerMain->Add( 
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
 
  112    this->SetSizer( bSizerMain );
 
  114    bSizerMain->Fit( 
this );
 
  116    this->Centre( wxBOTH );