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 3.10.1-0-g8feb16b)
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 m_searchCtrl1 = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
17 #ifndef __WXMAC__
18 m_searchCtrl1->ShowSearchButton( true );
19 #endif
20 m_searchCtrl1->ShowCancelButton( false );
21 m_sizerOuter->Add( m_searchCtrl1, 0, wxEXPAND, 5 );
22
23 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
24
25 m_sizerOuter->Add( m_notebook, 1, wxEXPAND|wxBOTTOM, 4 );
26
27
28 this->SetSizer( m_sizerOuter );
29 this->Layout();
30 m_sizerOuter->Fit( this );
31
32 // Connect Events
33 this->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
34 this->Connect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
35 m_searchCtrl1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
36 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
37 m_notebook->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
38}
39
41{
42 // Disconnect Events
43 this->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
44 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
45 m_searchCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
46 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
47 m_notebook->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
48
49}
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(-1,-1), 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)