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
9
10#include "search_pane_base.h"
11
13
14SEARCH_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 )
15{
16 m_sizerOuter = new wxBoxSizer( wxVERTICAL );
17
18 wxBoxSizer* bSizer2;
19 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
20
21 m_searchCtrl1 = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
22 #ifndef __WXMAC__
23 m_searchCtrl1->ShowSearchButton( true );
24 #endif
25 m_searchCtrl1->ShowCancelButton( false );
26 bSizer2->Add( m_searchCtrl1, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 3 );
27
28 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
29 bSizer2->Add( m_staticline1, 0, wxEXPAND|wxALL, 5 );
30
31 m_menuButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
32 bSizer2->Add( m_menuButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
33
34
35 m_sizerOuter->Add( bSizer2, 0, wxEXPAND, 5 );
36
37 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
38
39 m_sizerOuter->Add( m_notebook, 1, wxEXPAND|wxBOTTOM, 4 );
40
41
42 this->SetSizer( m_sizerOuter );
43 this->Layout();
44
45 // Connect Events
46 this->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
47 this->Connect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
48 m_searchCtrl1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
49 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
50 m_notebook->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
51}
52
54{
55 // Disconnect Events
56 this->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ) );
57 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( SEARCH_PANE_BASE::OnSize ) );
58 m_searchCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SEARCH_PANE_BASE::OnSearchTextEntry ), NULL, this );
59 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( SEARCH_PANE_BASE::OnNotebookPageChanged ), NULL, this );
60 m_notebook->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( SEARCH_PANE_BASE::OnSetFocus ), NULL, this );
61
62}
const char * name
Definition: DXF_plotter.cpp:59
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)
wxStaticLine * m_staticline1
wxNotebook * m_notebook
wxSearchCtrl * m_searchCtrl1
virtual void OnSearchTextEntry(wxCommandEvent &event)
virtual void OnSize(wxSizeEvent &event)
wxBoxSizer * m_sizerOuter
virtual void OnSetFocus(wxFocusEvent &event)
STD_BITMAP_BUTTON * m_menuButton
A bitmap button widget that behaves like a standard dialog button except with an icon.