mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2024-11-22 00:25:01 +00:00
277b963fac
Includes zoom to selection, and pan to selection (which centres the result but doesn't change the zoom). I'm not sure this is the perfect solution to search pane settings, but it's near to the action, but not taking up too much space, doesn't need to open a modal to mess with it, and has room for more options in future. I haven't made toggling these options into full-blown TOOL_ACTIONs, but they could be if a hotkey to toggle these is desirable - it's an ACTION_MENU, so it should just slot in.. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16192
58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
///////////////////////////////////////////////////////////////////////////
|
|
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
|
|
// http://www.wxformbuilder.org/
|
|
//
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include <wx/artprov.h>
|
|
#include <wx/xrc/xmlres.h>
|
|
#include <wx/intl.h>
|
|
#include <wx/bmpbuttn.h>
|
|
#include <wx/string.h>
|
|
#include <wx/bitmap.h>
|
|
#include <wx/image.h>
|
|
#include <wx/icon.h>
|
|
#include <wx/gdicmn.h>
|
|
#include <wx/font.h>
|
|
#include <wx/colour.h>
|
|
#include <wx/settings.h>
|
|
#include <wx/button.h>
|
|
#include <wx/srchctrl.h>
|
|
#include <wx/sizer.h>
|
|
#include <wx/notebook.h>
|
|
#include <wx/panel.h>
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
/// Class SEARCH_PANE_BASE
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
class SEARCH_PANE_BASE : public wxPanel
|
|
{
|
|
private:
|
|
|
|
protected:
|
|
wxBoxSizer* m_sizerOuter;
|
|
wxBitmapButton* m_menuButton;
|
|
wxSearchCtrl* m_searchCtrl1;
|
|
wxNotebook* m_notebook;
|
|
|
|
// Virtual event handlers, override them in your derived class
|
|
virtual void OnSetFocus( wxFocusEvent& event ) { event.Skip(); }
|
|
virtual void OnSize( wxSizeEvent& event ) { event.Skip(); }
|
|
virtual void OnSearchTextEntry( wxCommandEvent& event ) { event.Skip(); }
|
|
virtual void OnNotebookPageChanged( wxNotebookEvent& event ) { event.Skip(); }
|
|
|
|
|
|
public:
|
|
|
|
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 );
|
|
|
|
~SEARCH_PANE_BASE();
|
|
|
|
};
|
|
|