KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_generators_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_GENERATORS_BASE::DIALOG_GENERATORS_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* m_MainSizer;
17 m_MainSizer = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizer13;
20 bSizer13 = new wxBoxSizer( wxVERTICAL );
21
22 m_Notebook = new wxNotebook( this, ID_NOTEBOOK1, wxDefaultPosition, wxDefaultSize, 0 );
23 m_Notebook->SetMinSize( wxSize( 640,-1 ) );
24
25 m_panelPage1 = new wxPanel( m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
26 wxBoxSizer* bSizerPage1;
27 bSizerPage1 = new wxBoxSizer( wxVERTICAL );
28
29 bSizerPage1->SetMinSize( wxSize( -1,320 ) );
30 m_dataview1 = new wxDataViewCtrl( m_panelPage1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
31 m_dataview1->SetToolTip( _("Click on items to highlight them on the board.") );
32
33 bSizerPage1->Add( m_dataview1, 1, wxEXPAND|wxALL, 5 );
34
35
36 bSizerPage1->Add( 0, 8, 0, wxEXPAND, 5 );
37
38
39 m_panelPage1->SetSizer( bSizerPage1 );
40 m_panelPage1->Layout();
41 bSizerPage1->Fit( m_panelPage1 );
42 m_Notebook->AddPage( m_panelPage1, _("Generators A (%s)"), false );
43
44 bSizer13->Add( m_Notebook, 1, wxEXPAND, 10 );
45
46
47 m_MainSizer->Add( bSizer13, 1, wxEXPAND, 5 );
48
49 m_sizerButtons = new wxBoxSizer( wxHORIZONTAL );
50
51 m_rebuildSelected = new wxButton( this, wxID_ANY, _("Rebuild selected"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_sizerButtons->Add( m_rebuildSelected, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
53
54 m_rebuildThisType = new wxButton( this, wxID_ANY, _("Rebuild this type"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_rebuildThisType->Hide();
56
57 m_sizerButtons->Add( m_rebuildThisType, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
58
59
60 m_sizerButtons->Add( 0, 8, 1, wxEXPAND, 5 );
61
62 m_rebuildAll = new wxButton( this, wxID_ANY, _("Rebuild All"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_sizerButtons->Add( m_rebuildAll, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
64
65 m_sdbSizer = new wxStdDialogButtonSizer();
66 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
67 m_sdbSizer->AddButton( m_sdbSizerCancel );
68 m_sdbSizer->Realize();
69
70 m_sizerButtons->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
71
72
73 m_MainSizer->Add( m_sizerButtons, 0, wxEXPAND|wxLEFT, 5 );
74
75
76 this->SetSizer( m_MainSizer );
77 this->Layout();
78 m_MainSizer->Fit( this );
79
80 // Connect Events
81 this->Connect( wxEVT_ACTIVATE, wxActivateEventHandler( DIALOG_GENERATORS_BASE::OnActivateDlg ) );
82 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GENERATORS_BASE::OnClose ) );
83 m_Notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_GENERATORS_BASE::OnChangingNotebookPage ), NULL, this );
84 m_rebuildSelected->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildSelectedClick ), NULL, this );
85 m_rebuildThisType->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildTypeClick ), NULL, this );
86 m_rebuildAll->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildAllClick ), NULL, this );
87 m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnCancelClick ), NULL, this );
88}
89
91{
92 // Disconnect Events
93 this->Disconnect( wxEVT_ACTIVATE, wxActivateEventHandler( DIALOG_GENERATORS_BASE::OnActivateDlg ) );
94 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GENERATORS_BASE::OnClose ) );
95 m_Notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_GENERATORS_BASE::OnChangingNotebookPage ), NULL, this );
96 m_rebuildSelected->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildSelectedClick ), NULL, this );
97 m_rebuildThisType->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildTypeClick ), NULL, this );
98 m_rebuildAll->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnRebuildAllClick ), NULL, this );
99 m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENERATORS_BASE::OnCancelClick ), NULL, this );
100
101}
DIALOG_GENERATORS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Generator Objects"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnActivateDlg(wxActivateEvent &event)
virtual void OnRebuildAllClick(wxCommandEvent &event)
virtual void OnRebuildTypeClick(wxCommandEvent &event)
virtual void OnClose(wxCloseEvent &event)
virtual void OnChangingNotebookPage(wxNotebookEvent &event)
virtual void OnRebuildSelectedClick(wxCommandEvent &event)
virtual void OnCancelClick(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define ID_NOTEBOOK1
#define _(s)