MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / FileViewerWindowGen

Method FileViewerWindowGen

src/gui/layout.cpp:204–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204FileViewerWindowGen::FileViewerWindowGen( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
205{
206 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
207
208 wxFlexGridSizer* fgSizer8;
209 fgSizer8 = new wxFlexGridSizer( 0, 1, 0, 0 );
210 fgSizer8->AddGrowableCol( 0 );
211 fgSizer8->AddGrowableRow( 0 );
212 fgSizer8->SetFlexibleDirection( wxBOTH );
213 fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
214
215 m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
216 m_panel8 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
217 wxGridSizer* gSizer101;
218 gSizer101 = new wxGridSizer( 1, 1, 0, 0 );
219
220 textControl = new wxTextCtrl( m_panel8, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
221 textControl->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
222
223 gSizer101->Add( textControl, 0, wxALL|wxEXPAND, 5 );
224
225
226 m_panel8->SetSizer( gSizer101 );
227 m_panel8->Layout();
228 gSizer101->Fit( m_panel8 );
229 m_notebook1->AddPage( m_panel8, wxT("Text"), false );
230 m_panel7 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
231 wxGridSizer* gSizer10;
232 gSizer10 = new wxGridSizer( 1, 1, 0, 0 );
233
234 hexControl = new wxTextCtrl( m_panel7, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
235 hexControl->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
236
237 gSizer10->Add( hexControl, 0, wxALL|wxEXPAND, 5 );
238
239
240 m_panel7->SetSizer( gSizer10 );
241 m_panel7->Layout();
242 gSizer10->Fit( m_panel7 );
243 m_notebook1->AddPage( m_panel7, wxT("Hex"), false );
244
245 fgSizer8->Add( m_notebook1, 1, wxEXPAND | wxALL, 5 );
246
247 m_sdbSizer2 = new wxStdDialogButtonSizer();
248 m_sdbSizer2OK = new wxButton( this, wxID_OK );
249 m_sdbSizer2->AddButton( m_sdbSizer2OK );
250 m_sdbSizer2->Realize();
251
252 fgSizer8->Add( m_sdbSizer2, 1, wxALL|wxEXPAND, 5 );
253
254
255 this->SetSizer( fgSizer8 );
256 this->Layout();
257
258 this->Centre( wxBOTH );
259
260 // Connect Events
261 m_sdbSizer2OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FileViewerWindowGen::OnClose ), NULL, this );

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected