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 this->SetMinSize( wxSize( 360,100 ) );
15
16 m_sizerOuter = new wxBoxSizer( wxVERTICAL );
17
18 m_searchCtrl1 = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
19 #ifndef __WXMAC__
20 m_searchCtrl1->ShowSearchButton( true );
21 #endif
22 m_searchCtrl1->ShowCancelButton( false );
23 m_sizerOuter->Add( m_searchCtrl1, 0, wxEXPAND|wxTOP, 5 );
24
25 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
26
27 m_sizerOuter->Add( m_notebook, 1, wxEXPAND|wxTOP, 5 );
28
29
30 this->SetSizer( m_sizerOuter );
31 this->Layout();
32
33 // Connect Events
34 this->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
35 this->Connect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
36 m_searchCtrl1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
37 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
38 m_notebook->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
39}
40
42{
43 // Disconnect Events
44 this->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
45 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
46 m_searchCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
47 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
48 m_notebook->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
49
50}
const char * name
Definition: DXF_plotter.cpp:57
virtual void OnNotebookPageChanged(wxNotebookEvent &event)
wxNotebook * m_notebook
wxSearchCtrl * m_searchCtrl1
virtual void OnSearchTextEntry(wxCommandEvent &event)
virtual void OnSize(wxSizeEvent &event)
SEARCH_PANE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(360, 250), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxBoxSizer * m_sizerOuter
virtual void OnSetFocus(wxFocusEvent &event)