KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_sim_format_value_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_SIM_FORMAT_VALUE_BASE::DIALOG_SIM_FORMAT_VALUE_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* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 wxFlexGridSizer* fgSizer;
20 fgSizer = new wxFlexGridSizer( 3, 2, 8, 0 );
21 fgSizer->AddGrowableCol( 1 );
22 fgSizer->SetFlexibleDirection( wxBOTH );
23 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24
25 m_precisionLabel = new wxStaticText( this, wxID_ANY, _("Significant digits:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_precisionLabel->Wrap( -1 );
27 fgSizer->Add( m_precisionLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
28
29 m_precisionCtrl = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 9, 3 );
30 fgSizer->Add( m_precisionCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
31
32 m_rangeLabel = new wxStaticText( this, wxID_ANY, _("Range:"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_rangeLabel->Wrap( -1 );
34 fgSizer->Add( m_rangeLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
35
36 wxString m_rangeCtrlChoices[] = { _("Auto"), _("f"), _("p"), _("n"), _("u"), _("m"), wxEmptyString, _("K"), _("M"), _("G"), _("T"), _("P") };
37 int m_rangeCtrlNChoices = sizeof( m_rangeCtrlChoices ) / sizeof( wxString );
38 m_rangeCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_rangeCtrlNChoices, m_rangeCtrlChoices, 0 );
39 m_rangeCtrl->SetSelection( 0 );
40 fgSizer->Add( m_rangeCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
41
42
43 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
44
45
46 bMainSizer->Add( fgSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
47
48 wxBoxSizer* bBottomSizer;
49 bBottomSizer = new wxBoxSizer( wxHORIZONTAL );
50
51
52 bBottomSizer->Add( 50, 0, 1, wxEXPAND, 5 );
53
54 m_sdbSizer1 = new wxStdDialogButtonSizer();
55 m_sdbSizer1OK = new wxButton( this, wxID_OK );
56 m_sdbSizer1->AddButton( m_sdbSizer1OK );
57 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
58 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
59 m_sdbSizer1->Realize();
60
61 bBottomSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
62
63
64 bMainSizer->Add( bBottomSizer, 0, wxEXPAND, 5 );
65
66
67 this->SetSizer( bMainSizer );
68 this->Layout();
69 bMainSizer->Fit( this );
70
71 this->Centre( wxBOTH );
72}
73
75{
76}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
DIALOG_SIM_FORMAT_VALUE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Format %s"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
#define _(s)