KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SEARCH_PANE_LISTVIEW Class Reference

#include <search_pane_tab.h>

Inheritance diagram for SEARCH_PANE_LISTVIEW:

Public Member Functions

 SEARCH_PANE_LISTVIEW (const std::shared_ptr< SEARCH_HANDLER > &aHandler, wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual ~SEARCH_PANE_LISTVIEW ()
 
void RefreshColumnNames ()
 
std::vector< long > Sort ()
 

Protected Member Functions

wxString OnGetItemText (long item, long column) const override
 
void OnItemSelected (wxListEvent &aEvent)
 
void OnItemActivated (wxListEvent &aEvent)
 
void OnItemDeselected (wxListEvent &aEvent)
 
void OnColClicked (wxListEvent &aEvent)
 
void OnUpdateUI (wxUpdateUIEvent &aEvent)
 
void OnChar (wxKeyEvent &aEvent)
 
void GetSelectRowsList (std::vector< long > &aSelectedList)
 

Private Attributes

std::shared_ptr< SEARCH_HANDLERm_handler
 
int m_sortCol
 
bool m_sortAscending
 
bool m_selectionDirty
 

Detailed Description

Definition at line 32 of file search_pane_tab.h.

Constructor & Destructor Documentation

◆ SEARCH_PANE_LISTVIEW()

SEARCH_PANE_LISTVIEW::SEARCH_PANE_LISTVIEW ( const std::shared_ptr< SEARCH_HANDLER > & aHandler,
wxWindow * parent,
wxWindowID winid = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize )

◆ ~SEARCH_PANE_LISTVIEW()

SEARCH_PANE_LISTVIEW::~SEARCH_PANE_LISTVIEW ( )
virtual

Member Function Documentation

◆ GetSelectRowsList()

void SEARCH_PANE_LISTVIEW::GetSelectRowsList ( std::vector< long > & aSelectedList)
protected

Definition at line 62 of file search_pane_tab.cpp.

Referenced by OnUpdateUI(), and Sort().

◆ OnChar()

void SEARCH_PANE_LISTVIEW::OnChar ( wxKeyEvent & aEvent)
protected

Definition at line 151 of file search_pane_tab.cpp.

References next().

Referenced by SEARCH_PANE_LISTVIEW(), and ~SEARCH_PANE_LISTVIEW().

◆ OnColClicked()

void SEARCH_PANE_LISTVIEW::OnColClicked ( wxListEvent & aEvent)
protected

◆ OnGetItemText()

wxString SEARCH_PANE_LISTVIEW::OnGetItemText ( long item,
long column ) const
overrideprotected

Definition at line 290 of file search_pane_tab.cpp.

References m_handler.

◆ OnItemActivated()

void SEARCH_PANE_LISTVIEW::OnItemActivated ( wxListEvent & aEvent)
protected

Definition at line 81 of file search_pane_tab.cpp.

References m_handler, and m_selectionDirty.

Referenced by SEARCH_PANE_LISTVIEW(), and ~SEARCH_PANE_LISTVIEW().

◆ OnItemDeselected()

void SEARCH_PANE_LISTVIEW::OnItemDeselected ( wxListEvent & aEvent)
protected

Definition at line 103 of file search_pane_tab.cpp.

References m_selectionDirty.

Referenced by SEARCH_PANE_LISTVIEW(), and ~SEARCH_PANE_LISTVIEW().

◆ OnItemSelected()

void SEARCH_PANE_LISTVIEW::OnItemSelected ( wxListEvent & aEvent)
protected

Definition at line 96 of file search_pane_tab.cpp.

References m_selectionDirty.

Referenced by SEARCH_PANE_LISTVIEW(), and ~SEARCH_PANE_LISTVIEW().

◆ OnUpdateUI()

void SEARCH_PANE_LISTVIEW::OnUpdateUI ( wxUpdateUIEvent & aEvent)
protected

Definition at line 110 of file search_pane_tab.cpp.

References GetSelectRowsList(), m_handler, and m_selectionDirty.

Referenced by SEARCH_PANE_LISTVIEW(), and ~SEARCH_PANE_LISTVIEW().

◆ RefreshColumnNames()

void SEARCH_PANE_LISTVIEW::RefreshColumnNames ( )

Definition at line 272 of file search_pane_tab.cpp.

References m_handler.

Referenced by SEARCH_PANE_LISTVIEW().

◆ Sort()

std::vector< long > SEARCH_PANE_LISTVIEW::Sort ( )

Definition at line 261 of file search_pane_tab.cpp.

References GetSelectRowsList(), m_handler, m_sortAscending, and m_sortCol.

Referenced by OnColClicked().

Member Data Documentation

◆ m_handler

std::shared_ptr<SEARCH_HANDLER> SEARCH_PANE_LISTVIEW::m_handler
private

◆ m_selectionDirty

bool SEARCH_PANE_LISTVIEW::m_selectionDirty
private

◆ m_sortAscending

bool SEARCH_PANE_LISTVIEW::m_sortAscending
private

Definition at line 59 of file search_pane_tab.h.

Referenced by OnColClicked(), SEARCH_PANE_LISTVIEW(), and Sort().

◆ m_sortCol

int SEARCH_PANE_LISTVIEW::m_sortCol
private

Definition at line 58 of file search_pane_tab.h.

Referenced by OnColClicked(), SEARCH_PANE_LISTVIEW(), and Sort().


The documentation for this class was generated from the following files: