KiCad PCB EDA Suite
dialog_freeroute_exchange_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_FREEROUTE_BASE::DIALOG_FREEROUTE_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( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizer;
20  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bLeftSizer;
23  bLeftSizer = new wxBoxSizer( wxVERTICAL );
24 
25  m_staticTextMsg = new wxStaticText( this, wxID_ANY, _("Export/Import to/from FreeRoute:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticTextMsg->Wrap( -1 );
27  m_staticTextMsg->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
28 
29  bLeftSizer->Add( m_staticTextMsg, 0, wxALL, 5 );
30 
31  wxBoxSizer* bLeftSubSizerSizer;
32  bLeftSubSizerSizer = new wxBoxSizer( wxHORIZONTAL );
33 
34 
35  bLeftSubSizerSizer->Add( 20, 20, 0, 0, 5 );
36 
37  wxBoxSizer* bLeftButtonsSizer;
38  bLeftButtonsSizer = new wxBoxSizer( wxVERTICAL );
39 
40  m_ExportDSN = new wxButton( this, wxID_ANY, _("Export a Specctra Design (*.dsn) File"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_ExportDSN->SetToolTip( _("Export a Specctra DSN file (to FreeRouter)") );
42 
43  bLeftButtonsSizer->Add( m_ExportDSN, 0, wxALL|wxEXPAND, 5 );
44 
45  m_buttonLaunchFreeroute = new wxButton( this, wxID_ANY, _("Export a Specctra Design and Launch FreeRoute"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_buttonLaunchFreeroute->SetToolTip( _("FreeRouter can be run only if freeroute.jar is found in Kicad binaries folder") );
47 
48  bLeftButtonsSizer->Add( m_buttonLaunchFreeroute, 0, wxALL|wxEXPAND, 5 );
49 
50  m_buttonImport = new wxButton( this, wxID_ANY, _("Back Import the Specctra Session (*.ses) File"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_buttonImport->SetToolTip( _("Merge a session file created by FreeRouter with the current board.") );
52 
53  bLeftButtonsSizer->Add( m_buttonImport, 0, wxALL|wxEXPAND, 5 );
54 
55 
56  bLeftSubSizerSizer->Add( bLeftButtonsSizer, 1, wxEXPAND, 5 );
57 
58 
59  bLeftSizer->Add( bLeftSubSizerSizer, 1, wxALL|wxEXPAND, 5 );
60 
61 
62  bUpperSizer->Add( bLeftSizer, 1, wxALL|wxEXPAND, 5 );
63 
64 
65  bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
66 
67  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
68  bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxALL, 5 );
69 
70  m_sdbSizer = new wxStdDialogButtonSizer();
71  m_sdbSizerOK = new wxButton( this, wxID_OK );
72  m_sdbSizer->AddButton( m_sdbSizerOK );
73  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
74  m_sdbSizer->AddButton( m_sdbSizerCancel );
75  m_sdbSizerHelp = new wxButton( this, wxID_HELP );
76  m_sdbSizer->AddButton( m_sdbSizerHelp );
77  m_sdbSizer->Realize();
78 
79  bMainSizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
80 
81 
82  this->SetSizer( bMainSizer );
83  this->Layout();
84  bMainSizer->Fit( this );
85 
86  // Connect Events
87  m_ExportDSN->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnExportButtonClick ), NULL, this );
88  m_buttonLaunchFreeroute->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnLaunchButtonClick ), NULL, this );
89  m_buttonImport->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnImportButtonClick ), NULL, this );
90  m_sdbSizerHelp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnHelpButtonClick ), NULL, this );
91 }
92 
94 {
95  // Disconnect Events
96  m_ExportDSN->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnExportButtonClick ), NULL, this );
97  m_buttonLaunchFreeroute->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnLaunchButtonClick ), NULL, this );
98  m_buttonImport->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnImportButtonClick ), NULL, this );
99  m_sdbSizerHelp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FREEROUTE_BASE::OnHelpButtonClick ), NULL, this );
100 
101 }
DIALOG_FREEROUTE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void OnExportButtonClick(wxCommandEvent &event)
virtual void OnHelpButtonClick(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnImportButtonClick(wxCommandEvent &event)
virtual void OnLaunchButtonClick(wxCommandEvent &event)