KiCad PCB EDA Suite
dialog_symbol_remap_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_SYMBOL_REMAP_BASE::DIALOG_SYMBOL_REMAP_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bSizer1;
19 bSizer1 = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bSizer2;
22 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
23
24 m_htmlCtrl = new HTML_WINDOW( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
25 bSizer2->Add( m_htmlCtrl, 4, wxALL|wxEXPAND, 5 );
26
27 wxBoxSizer* bSizer3;
28 bSizer3 = new wxBoxSizer( wxVERTICAL );
29
30 m_buttonRemap = new wxButton( this, wxID_ANY, _("Remap Symbols"), wxDefaultPosition, wxDefaultSize, 0 );
31 bSizer3->Add( m_buttonRemap, 0, wxALL|wxEXPAND, 5 );
32
33 m_buttonClose = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
34 bSizer3->Add( m_buttonClose, 0, wxALL|wxEXPAND, 5 );
35
36
37 bSizer2->Add( bSizer3, 1, wxEXPAND, 5 );
38
39
40 bSizer1->Add( bSizer2, 3, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
41
42 wxBoxSizer* bSizer4;
43 bSizer4 = new wxBoxSizer( wxVERTICAL );
44
45 m_messagePanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
46 m_messagePanel->SetMinSize( wxSize( -1,200 ) );
47
48 bSizer4->Add( m_messagePanel, 1, wxEXPAND | wxALL, 5 );
49
50
51 bSizer1->Add( bSizer4, 5, wxEXPAND, 5 );
52
53
54 this->SetSizer( bSizer1 );
55 this->Layout();
56 bSizer1->Fit( this );
57
58 this->Centre( wxBOTH );
59
60 // Connect Events
61 m_buttonRemap->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_REMAP_BASE::OnRemapSymbols ), NULL, this );
62 m_buttonRemap->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_REMAP_BASE::OnUpdateUIRemapButton ), NULL, this );
63}
64
66{
67 // Disconnect Events
68 m_buttonRemap->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_REMAP_BASE::OnRemapSymbols ), NULL, this );
69 m_buttonRemap->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_SYMBOL_REMAP_BASE::OnUpdateUIRemapButton ), NULL, this );
70
71}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
DIALOG_SYMBOL_REMAP_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Remap Symbols"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnRemapSymbols(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_messagePanel
virtual void OnUpdateUIRemapButton(wxUpdateUIEvent &event)
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:34
A widget for browsing a rich text error/status report.
#define _(s)