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 (SEARCH_HANDLER *handler, 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

SEARCH_HANDLERm_handler
 
int m_sortCol
 
bool m_sortAscending
 
bool m_selectionDirty
 

Detailed Description

Definition at line 31 of file search_pane_tab.h.

Constructor & Destructor Documentation

◆ SEARCH_PANE_LISTVIEW()

SEARCH_PANE_LISTVIEW::SEARCH_PANE_LISTVIEW ( SEARCH_HANDLER handler,
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 63 of file search_pane_tab.cpp.

Referenced by OnUpdateUI(), and Sort().

◆ OnChar()

void SEARCH_PANE_LISTVIEW::OnChar ( wxKeyEvent &  aEvent)
protected

Definition at line 152 of file search_pane_tab.cpp.

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 220 of file search_pane_tab.cpp.

References SEARCH_HANDLER::GetResultCell(), and m_handler.

◆ OnItemActivated()

void SEARCH_PANE_LISTVIEW::OnItemActivated ( wxListEvent &  aEvent)
protected

◆ OnItemDeselected()

void SEARCH_PANE_LISTVIEW::OnItemDeselected ( wxListEvent &  aEvent)
protected

Definition at line 104 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 97 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

◆ RefreshColumnNames()

void SEARCH_PANE_LISTVIEW::RefreshColumnNames ( )

◆ Sort()

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

Member Data Documentation

◆ m_handler

SEARCH_HANDLER* SEARCH_PANE_LISTVIEW::m_handler
private

◆ m_selectionDirty

bool SEARCH_PANE_LISTVIEW::m_selectionDirty
private

Definition at line 60 of file search_pane_tab.h.

Referenced by OnItemActivated(), OnItemDeselected(), OnItemSelected(), and OnUpdateUI().

◆ m_sortAscending

bool SEARCH_PANE_LISTVIEW::m_sortAscending
private

Definition at line 59 of file search_pane_tab.h.

Referenced by OnColClicked(), and Sort().

◆ m_sortCol

int SEARCH_PANE_LISTVIEW::m_sortCol
private

Definition at line 58 of file search_pane_tab.h.

Referenced by OnColClicked(), and Sort().


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