KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_footprint_wizard_list_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
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_footprintGeneratorsGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20
21 // Grid
22 m_footprintGeneratorsGrid->CreateGrid( 0, 2 );
23 m_footprintGeneratorsGrid->EnableEditing( false );
24 m_footprintGeneratorsGrid->EnableGridLines( true );
25 m_footprintGeneratorsGrid->EnableDragGridSize( false );
26 m_footprintGeneratorsGrid->SetMargins( 0, 0 );
27
28 // Columns
29 m_footprintGeneratorsGrid->SetColSize( 0, 160 );
30 m_footprintGeneratorsGrid->SetColSize( 1, 325 );
31 m_footprintGeneratorsGrid->EnableDragColMove( false );
32 m_footprintGeneratorsGrid->EnableDragColSize( true );
33 m_footprintGeneratorsGrid->SetColLabelValue( 0, _("Name") );
34 m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Description") );
35 m_footprintGeneratorsGrid->SetColLabelSize( 20 );
36 m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
37
38 // Rows
39 m_footprintGeneratorsGrid->AutoSizeRows();
40 m_footprintGeneratorsGrid->EnableDragRowSize( true );
41 m_footprintGeneratorsGrid->SetRowLabelSize( 0 );
42 m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
43
44 // Label Appearance
45
46 // Cell Defaults
47 m_footprintGeneratorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
48 m_footprintGeneratorsGrid->SetMinSize( wxSize( 485,120 ) );
49
50 bSizerMain->Add( m_footprintGeneratorsGrid, 1, wxALL|wxEXPAND, 5 );
51
52 wxBoxSizer* bSizerLower;
53 bSizerLower = new wxBoxSizer( wxHORIZONTAL );
54
55
56 bSizerLower->Add( 0, 0, 1, wxRIGHT|wxLEFT, 5 );
57
58 m_sdbSizer = new wxStdDialogButtonSizer();
59 m_sdbSizerOK = new wxButton( this, wxID_OK );
60 m_sdbSizer->AddButton( m_sdbSizerOK );
61 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
62 m_sdbSizer->AddButton( m_sdbSizerCancel );
63 m_sdbSizer->Realize();
64
65 bSizerLower->Add( m_sdbSizer, 0, wxALL, 5 );
66
67
68 bSizerMain->Add( bSizerLower, 0, wxEXPAND|wxLEFT, 10 );
69
70
71 this->SetSizer( bSizerMain );
72 this->Layout();
73 bSizerMain->Fit( this );
74
75 this->Centre( wxBOTH );
76
77 // Connect Events
78 m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
79 m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
80}
81
83{
84 // Disconnect Events
85 m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
86 m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
87
88}
89
90DIALOG_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 )
91{
92 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
93
94 wxBoxSizer* bSizerMain;
95 bSizerMain = new wxBoxSizer( wxVERTICAL );
96
97 m_Message = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
98 m_Message->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
99 m_Message->SetMinSize( wxSize( 550,300 ) );
100
101 bSizerMain->Add( m_Message, 1, wxALL|wxEXPAND, 5 );
102
103 m_sdbSizer = new wxStdDialogButtonSizer();
104 m_sdbSizerOK = new wxButton( this, wxID_OK );
105 m_sdbSizer->AddButton( m_sdbSizerOK );
106 m_sdbSizer->Realize();
107
108 bSizerMain->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
109
110
111 this->SetSizer( bSizerMain );
112 this->Layout();
113 bSizerMain->Fit( this );
114
115 this->Centre( wxBOTH );
116}
117
virtual void OnCellFpGeneratorClick(wxGridEvent &event)
DIALOG_FOOTPRINT_WIZARD_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Wizards"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)