KiCad PCB EDA Suite
dialog_footprint_wizard_list_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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->SetColLabelValue( 0, wxEmptyString );
42 m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Name") );
43 m_footprintGeneratorsGrid->SetColLabelValue( 2, _("Description") );
44 m_footprintGeneratorsGrid->SetColLabelSize( 20 );
45 m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
46
47 // Rows
48 m_footprintGeneratorsGrid->AutoSizeRows();
49 m_footprintGeneratorsGrid->EnableDragRowSize( true );
50 m_footprintGeneratorsGrid->SetRowLabelSize( 0 );
51 m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
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_staticTextSearchPaths = new wxStaticText( m_panelInfo, wxID_ANY, _("Search paths:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_staticTextSearchPaths->Wrap( -1 );
72 m_bsizerPanelInfo->Add( m_staticTextSearchPaths, 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_staticTextNotLoaded = new wxStaticText( m_panelInfo, wxID_ANY, _("Not loadable python scripts:"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_staticTextNotLoaded->Wrap( -1 );
79 m_bsizerPanelInfo->Add( m_staticTextNotLoaded, 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 m_buttonUpdateModules = new wxButton( this, wxID_ANY, _("Update Python Modules"), wxDefaultPosition, wxDefaultSize, 0 );
99 bSizerLower->Add( m_buttonUpdateModules, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
100
101
102 bSizerLower->Add( 0, 0, 1, wxRIGHT|wxLEFT, 5 );
103
104 m_sdbSizer = new wxStdDialogButtonSizer();
105 m_sdbSizerOK = new wxButton( this, wxID_OK );
106 m_sdbSizer->AddButton( m_sdbSizerOK );
107 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
108 m_sdbSizer->AddButton( m_sdbSizerCancel );
109 m_sdbSizer->Realize();
110
111 bSizerLower->Add( m_sdbSizer, 0, wxALL, 5 );
112
113
114 bSizerMain->Add( bSizerLower, 0, wxEXPAND|wxLEFT, 10 );
115
116
117 this->SetSizer( bSizerMain );
118 this->Layout();
119 bSizerMain->Fit( this );
120
121 this->Centre( wxBOTH );
122
123 // Connect Events
124 m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
125 m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
126 m_buttonShowTrace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
127 m_buttonUpdateModules->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
128}
129
131{
132 // Disconnect Events
133 m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
134 m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
135 m_buttonShowTrace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
136 m_buttonUpdateModules->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
137
138}
139
140DIALOG_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 )
141{
142 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
143
144 wxBoxSizer* bSizerMain;
145 bSizerMain = new wxBoxSizer( wxVERTICAL );
146
147 m_Message = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
148 m_Message->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
149 m_Message->SetMinSize( wxSize( 550,300 ) );
150
151 bSizerMain->Add( m_Message, 1, wxALL|wxEXPAND, 5 );
152
153 m_sdbSizer = new wxStdDialogButtonSizer();
154 m_sdbSizerOK = new wxButton( this, wxID_OK );
155 m_sdbSizer->AddButton( m_sdbSizerOK );
156 m_sdbSizer->Realize();
157
158 bSizerMain->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
159
160
161 this->SetSizer( bSizerMain );
162 this->Layout();
163 bSizerMain->Fit( this );
164
165 this->Centre( wxBOTH );
166}
167
169{
170}
DIALOG_FOOTPRINT_WIZARD_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Generators"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onShowTrace(wxCommandEvent &event)
virtual void OnCellFpGeneratorClick(wxGridEvent &event)
virtual void onUpdatePythonModulesClick(wxCommandEvent &event)
virtual void OnCellFpGeneratorDoubleClick(wxGridEvent &event)
DIALOG_FOOTPRINT_WIZARD_LOG(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Traceback of Python Script Errors"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)