25#ifndef EDA_LIST_DIALOG_H
26#define EDA_LIST_DIALOG_H
29#include <../common/dialogs/eda_list_dialog_base.h>
52 EDA_LIST_DIALOG( wxWindow* aParent,
const wxString& aTitle,
const wxArrayString& aItemHeaders,
53 const std::vector<wxArrayString>& aItemList,
54 const wxString& aPreselectText = wxEmptyString,
55 bool aSortList =
true );
57 EDA_LIST_DIALOG( wxWindow* aParent,
const wxString& aTitle,
bool aSortList =
true );
63 void Append(
const wxArrayString& aItemStr );
64 void InsertItems(
const std::vector<wxArrayString>& aItemList,
int aPosition = 0 );
76 bool Show(
bool show )
override;
79 void initDialog(
const wxArrayString& aItemHeaders,
const std::vector<wxArrayString>& aItemList,
80 const wxString& aPreselectText);
83 virtual void onSize( wxSizeEvent& event )
override;
The base class for create windows for drawing purpose.
Class EDA_LIST_DIALOG_BASE.
void textChangeInFilterBox(wxCommandEvent &event) override
bool Show(bool show) override
void SetOKLabel(const wxString &aLabel)
void initDialog(const wxArrayString &aItemHeaders, const std::vector< wxArrayString > &aItemList, const wxString &aPreselectText)
wxString GetTextSelection(int aColumn=0)
Return the selected text from aColumn in the wxListCtrl in the dialog.
void onListItemActivated(wxListEvent &event) override
void SetListLabel(const wxString &aLabel)
virtual void onSize(wxSizeEvent &event) override
std::vector< wxArrayString > m_itemsList
void Append(const wxArrayString &aItemStr)
void InsertItems(const std::vector< wxArrayString > &aItemList, int aPosition=0)