KiCad PCB EDA Suite
dialog_sch_sheet_props_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 BEGIN_EVENT_TABLE( DIALOG_SCH_SHEET_PROPS_BASE, DIALOG_SHIM )
13  EVT_BUTTON( ID_BUTTON_BROWSE_SHEET, DIALOG_SCH_SHEET_PROPS_BASE::_wxFB_OnBrowseClicked )
14 END_EVENT_TABLE()
15 
16 DIALOG_SCH_SHEET_PROPS_BASE::DIALOG_SCH_SHEET_PROPS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
17 {
18  this->SetSizeHints( wxSize( 500,150 ), wxDefaultSize );
19 
20  wxBoxSizer* mainSizer;
21  mainSizer = new wxBoxSizer( wxVERTICAL );
22 
23  wxBoxSizer* bupperSizer;
24  bupperSizer = new wxBoxSizer( wxVERTICAL );
25 
26  wxFlexGridSizer* fgSizer1;
27  fgSizer1 = new wxFlexGridSizer( 0, 7, 0, 0 );
28  fgSizer1->AddGrowableCol( 1 );
29  fgSizer1->SetFlexibleDirection( wxBOTH );
30  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 
32  m_filenameLabel = new wxStaticText( this, wxID_ANY, _("&File name:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_filenameLabel->Wrap( -1 );
34  fgSizer1->Add( m_filenameLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
35 
36  m_textFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
37  m_textFileName->SetMinSize( wxSize( 240,-1 ) );
38 
39  fgSizer1->Add( m_textFileName, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 5 );
40 
41  m_browseButton = new wxBitmapButton( this, ID_BUTTON_BROWSE_SHEET, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
42  m_browseButton->SetMinSize( wxSize( 30,28 ) );
43 
44  fgSizer1->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 2 );
45 
46 
47  fgSizer1->Add( 0, 0, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT, 10 );
48 
49  m_filenameSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_filenameSizeLabel->Wrap( -1 );
51  fgSizer1->Add( m_filenameSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
52 
53  m_filenameSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54  fgSizer1->Add( m_filenameSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
55 
56  m_filenameSizeUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_filenameSizeUnits->Wrap( -1 );
58  fgSizer1->Add( m_filenameSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
59 
60  m_sheetnameLabel = new wxStaticText( this, wxID_ANY, _("&Sheet name:"), wxDefaultPosition, wxDefaultSize, 0 );
61  m_sheetnameLabel->Wrap( -1 );
62  fgSizer1->Add( m_sheetnameLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
63 
64  m_textSheetName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
65  fgSizer1->Add( m_textSheetName, 5, wxEXPAND|wxTOP|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5 );
66 
67 
68  fgSizer1->Add( 0, 0, 0, wxALIGN_CENTER_VERTICAL|wxALL, 10 );
69 
70 
71  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
72 
73  m_sheetnameSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
74  m_sheetnameSizeLabel->Wrap( -1 );
75  fgSizer1->Add( m_sheetnameSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
76 
77  m_sheetnameSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78  fgSizer1->Add( m_sheetnameSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
79 
80  m_sheetnameSizeUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
81  m_sheetnameSizeUnits->Wrap( -1 );
82  fgSizer1->Add( m_sheetnameSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
83 
84 
85  fgSizer1->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
86 
87 
88  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
89 
90 
91  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
92 
93 
94  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
95 
96 
97  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
98 
99 
100  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
101 
102 
103  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
104 
105  m_staticTextTimeStamp = new wxStaticText( this, wxID_ANY, _("Unique timestamp:"), wxDefaultPosition, wxDefaultSize, 0 );
106  m_staticTextTimeStamp->Wrap( -1 );
107  fgSizer1->Add( m_staticTextTimeStamp, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
108 
109  m_textCtrlTimeStamp = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
110  fgSizer1->Add( m_textCtrlTimeStamp, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
111 
112 
113  bupperSizer->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
114 
115 
116  mainSizer->Add( bupperSizer, 0, wxEXPAND|wxTOP, 5 );
117 
118  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
119  mainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
120 
121  m_sdbSizer1 = new wxStdDialogButtonSizer();
122  m_sdbSizer1OK = new wxButton( this, wxID_OK );
123  m_sdbSizer1->AddButton( m_sdbSizer1OK );
124  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
125  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
126  m_sdbSizer1->Realize();
127 
128  mainSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
129 
130 
131  this->SetSizer( mainSizer );
132  this->Layout();
133  mainSizer->Fit( this );
134 
135  this->Centre( wxBOTH );
136 }
137 
139 {
140 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
void _wxFB_OnBrowseClicked(wxCommandEvent &event)
Class DIALOG_SCH_SHEET_PROPS_BASE.
#define _(s)
Definition: 3d_actions.cpp:31