KiCad PCB EDA Suite
dialog_footprint_wizard_list_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_FOOTPRINT_WIZARD_LIST_BASE::DIALOG_FOOTPRINT_WIZARD_LIST_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* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20  m_panelGenerators = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
21  m_panelGenerators->SetMinSize( wxSize( 550,300 ) );
22 
23  wxBoxSizer* bSizerpanelGen;
24  bSizerpanelGen = new wxBoxSizer( wxVERTICAL );
25 
26  m_footprintGeneratorsGrid = new wxGrid( m_panelGenerators, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
27 
28  // Grid
29  m_footprintGeneratorsGrid->CreateGrid( 0, 3 );
30  m_footprintGeneratorsGrid->EnableEditing( false );
31  m_footprintGeneratorsGrid->EnableGridLines( true );
32  m_footprintGeneratorsGrid->EnableDragGridSize( false );
33  m_footprintGeneratorsGrid->SetMargins( 0, 0 );
34 
35  // Columns
36  m_footprintGeneratorsGrid->SetColSize( 0, 40 );
37  m_footprintGeneratorsGrid->SetColSize( 1, 160 );
38  m_footprintGeneratorsGrid->SetColSize( 2, 325 );
39  m_footprintGeneratorsGrid->EnableDragColMove( false );
40  m_footprintGeneratorsGrid->EnableDragColSize( true );
41  m_footprintGeneratorsGrid->SetColLabelSize( 20 );
42  m_footprintGeneratorsGrid->SetColLabelValue( 0, wxEmptyString );
43  m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Name") );
44  m_footprintGeneratorsGrid->SetColLabelValue( 2, _("Description") );
45  m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE );
46 
47  // Rows
48  m_footprintGeneratorsGrid->AutoSizeRows();
49  m_footprintGeneratorsGrid->EnableDragRowSize( true );
50  m_footprintGeneratorsGrid->SetRowLabelSize( 1 );
51  m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
52 
53  // Label Appearance
54 
55  // Cell Defaults
56  m_footprintGeneratorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
57  m_footprintGeneratorsGrid->SetMinSize( wxSize( 485,120 ) );
58 
59  bSizerpanelGen->Add( m_footprintGeneratorsGrid, 1, wxALL|wxEXPAND, 5 );
60 
61 
62  m_panelGenerators->SetSizer( bSizerpanelGen );
63  m_panelGenerators->Layout();
64  bSizerpanelGen->Fit( m_panelGenerators );
65  m_notebook->AddPage( m_panelGenerators, _("Available footprint generators"), true );
66  m_panelInfo = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
67  wxBoxSizer* m_bsizerPanelInfo;
68  m_bsizerPanelInfo = new wxBoxSizer( wxVERTICAL );
69 
70  m_staticText1 = new wxStaticText( m_panelInfo, wxID_ANY, _("Search paths:"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_staticText1->Wrap( -1 );
72  m_bsizerPanelInfo->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
73 
74  m_tcSearchPaths = new wxTextCtrl( m_panelInfo, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
75  m_bsizerPanelInfo->Add( m_tcSearchPaths, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
76 
77  m_staticText11 = new wxStaticText( m_panelInfo, wxID_ANY, _("Not loadable python scripts:"), wxDefaultPosition, wxDefaultSize, 0 );
78  m_staticText11->Wrap( -1 );
79  m_bsizerPanelInfo->Add( m_staticText11, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
80 
81  m_tcNotLoaded = new wxTextCtrl( m_panelInfo, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
82  m_bsizerPanelInfo->Add( m_tcNotLoaded, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
83 
84  m_buttonShowTrace = new wxButton( m_panelInfo, wxID_ANY, _("Show Trace"), wxDefaultPosition, wxDefaultSize, 0 );
85  m_bsizerPanelInfo->Add( m_buttonShowTrace, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
86 
87 
88  m_panelInfo->SetSizer( m_bsizerPanelInfo );
89  m_panelInfo->Layout();
90  m_bsizerPanelInfo->Fit( m_panelInfo );
91  m_notebook->AddPage( m_panelInfo, _("Messages"), false );
92 
93  bSizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
94 
95  wxBoxSizer* bSizerLower;
96  bSizerLower = new wxBoxSizer( wxHORIZONTAL );
97 
98 
99  bSizerLower->Add( 0, 0, 1, wxEXPAND, 5 );
100 
101  m_buttonUpdateModules = new wxButton( this, wxID_ANY, _("Update Python Modules"), wxDefaultPosition, wxDefaultSize, 0 );
102  bSizerLower->Add( m_buttonUpdateModules, 0, wxALL, 5 );
103 
104 
105  bSizerLower->Add( 0, 0, 0, wxRIGHT|wxLEFT, 5 );
106 
107  m_sdbSizer = new wxStdDialogButtonSizer();
108  m_sdbSizerOK = new wxButton( this, wxID_OK );
109  m_sdbSizer->AddButton( m_sdbSizerOK );
110  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
111  m_sdbSizer->AddButton( m_sdbSizerCancel );
112  m_sdbSizer->Realize();
113 
114  bSizerLower->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
115 
116 
117  bSizerMain->Add( bSizerLower, 0, wxEXPAND, 5 );
118 
119 
120  this->SetSizer( bSizerMain );
121  this->Layout();
122 
123  this->Centre( wxBOTH );
124 
125  // Connect Events
126  m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
127  m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
128  m_buttonShowTrace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
129  m_buttonUpdateModules->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
130 }
131 
133 {
134  // Disconnect Events
135  m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
136  m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
137  m_buttonShowTrace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
138  m_buttonUpdateModules->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
139 
140 }
141 
142 DIALOG_FOOTPRINT_WIZARD_LOG::DIALOG_FOOTPRINT_WIZARD_LOG( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
143 {
144  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
145 
146  wxBoxSizer* bSizerMain;
147  bSizerMain = new wxBoxSizer( wxVERTICAL );
148 
149  m_Message = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
150  m_Message->SetMinSize( wxSize( 550,300 ) );
151 
152  bSizerMain->Add( m_Message, 1, wxALL|wxEXPAND, 5 );
153 
154  m_sdbSizer = new wxStdDialogButtonSizer();
155  m_sdbSizerOK = new wxButton( this, wxID_OK );
156  m_sdbSizer->AddButton( m_sdbSizerOK );
157  m_sdbSizer->Realize();
158 
159  bSizerMain->Add( m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
160 
161 
162  this->SetSizer( bSizerMain );
163  this->Layout();
164 
165  this->Centre( wxBOTH );
166 }
167 
169 {
170 }
virtual void OnCellFpGeneratorDoubleClick(wxGridEvent &event)
virtual void onUpdatePythonModulesClick(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_FOOTPRINT_WIZARD_LOG(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Traceback of errors in not loadable python scripts"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(646, 361), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnCellFpGeneratorClick(wxGridEvent &event)
virtual void onShowTrace(wxCommandEvent &event)
DIALOG_FOOTPRINT_WIZARD_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Generators"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(572, 467), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)