KiCad PCB EDA Suite
dialog_scripting_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jun 17 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_SCRIPTING_BASE::DIALOG_SCRIPTING_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  m_txScript = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTE_MULTILINE );
20  m_txScript->SetMaxLength( 0 );
21  m_txScript->SetMinSize( wxSize( 480,500 ) );
22 
23  bSizerMain->Add( m_txScript, 1, wxALL|wxEXPAND, 5 );
24 
25  m_btRun = new wxButton( this, wxID_ANY, wxT("&Run"), wxDefaultPosition, wxDefaultSize, 0 );
26  bSizerMain->Add( m_btRun, 0, wxALL, 5 );
27 
28 
29  this->SetSizer( bSizerMain );
30  this->Layout();
31 
32  this->Centre( wxBOTH );
33 
34  // Connect Events
35  m_btRun->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCRIPTING_BASE::OnRunButtonClick ), NULL, this );
36 }
37 
39 {
40  // Disconnect Events
41  m_btRun->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SCRIPTING_BASE::OnRunButtonClick ), NULL, this );
42 
43 }
virtual void OnRunButtonClick(wxCommandEvent &event)
DIALOG_SCRIPTING_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Scripting Test Window"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 468), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL)