KiCad PCB EDA Suite
Loading...
Searching...
No Matches
search_pane_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
8#include "search_pane_base.h"
9
11
12SEARCH_PANE_BASE::SEARCH_PANE_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 m_sizerOuter = new wxBoxSizer( wxVERTICAL );
15
16 wxBoxSizer* bSizer2;
17 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
18
19 m_menuButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
20 bSizer2->Add( m_menuButton, 0, wxALL, 5 );
21
22 m_searchCtrl1 = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
23 #ifndef __WXMAC__
24 m_searchCtrl1->ShowSearchButton( true );
25 #endif
26 m_searchCtrl1->ShowCancelButton( false );
27 bSizer2->Add( m_searchCtrl1, 1, wxALL, 5 );
28
29
30 m_sizerOuter->Add( bSizer2, 0, wxEXPAND, 5 );
31
32 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
33
34 m_sizerOuter->Add( m_notebook, 1, wxEXPAND|wxBOTTOM, 4 );
35
36
37 this->SetSizer( m_sizerOuter );
38 this->Layout();
39
40 // Connect Events
41 this->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
42 this->Connect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
43 m_searchCtrl1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
44 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
45 m_notebook->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
46}
47
49{
50 // Disconnect Events
51 this->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
52 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
53 m_searchCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
54 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
55 m_notebook->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
56
57}
const char * name
Definition: DXF_plotter.cpp:57
virtual void OnNotebookPageChanged(wxNotebookEvent &event)
SEARCH_PANE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(284, 110), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxNotebook * m_notebook
wxSearchCtrl * m_searchCtrl1
virtual void OnSearchTextEntry(wxCommandEvent &event)
virtual void OnSize(wxSizeEvent &event)
wxBoxSizer * m_sizerOuter
virtual void OnSetFocus(wxFocusEvent &event)
wxBitmapButton * m_menuButton