26#ifndef DIALOG_FIND_BASE_H
27#define DIALOG_FIND_BASE_H
45 void Preload(
const wxString& aFindString );
79 bool Show(
bool show =
true )
override;
82 void OnClose( wxCloseEvent& event )
override;
90 void search(
bool direction );
94 std::deque<BOARD_ITEM*>::iterator
m_it;
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void SetCallback(std::function< void(BOARD_ITEM *)> aCallback)
Function to be called on each found event.
void onTextEnter(wxCommandEvent &event) override
bool Show(bool show=true) override
The Show method is overridden to make the search combobox focused by default.
std::deque< BOARD_ITEM * >::iterator m_it
void Preload(const wxString &aFindString)
void onFindNextClick(wxCommandEvent &event) override
void search(bool direction)
void onSearchAgainClick(wxCommandEvent &event) override
BOARD_ITEM * GetItem() const
Return the currently found item or nullptr in the case of no items found.
void onFindPreviousClick(wxCommandEvent &event) override
void OnClose(wxCloseEvent &event) override
std::function< void(BOARD_ITEM *)> m_highlightCallback
void OnCloseButtonClick(wxCommandEvent &aEvent) override
void FindNext(bool reverse)
Finds the next item.
std::deque< BOARD_ITEM * > m_hitList
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.