KiCad PCB EDA Suite
|
#include <listbox_tricks.h>
Public Types | |
enum | MENU_ID { ID_COPY = wxID_HIGHEST + 1 , ID_CUT , ID_PASTE , ID_DELETE , ID_DUPLICATE } |
These are the ids for the menu. More... | |
Public Member Functions | |
LISTBOX_TRICKS (wxWindow &aWindow, wxListBox &aListBox) | |
~LISTBOX_TRICKS () | |
void | SetMenuLabels (const std::map< MENU_ID, wxString > &aItems) |
Private Member Functions | |
void | OnListBoxCopy (wxCommandEvent &aEvent) |
void | OnListBoxCut (wxCommandEvent &aEvent) |
void | OnListBoxPaste (wxCommandEvent &aEvent) |
void | OnListBoxDelete (wxCommandEvent &aEvent) |
void | OnListBoxDuplicate (wxCommandEvent &aEvent) |
void | OnListBoxRDown (wxMouseEvent &aEvent) |
void | OnListBoxKeyDown (wxKeyEvent &aEvent) |
void | listBoxCopy () |
void | listBoxCut () |
void | listBoxPaste () |
wxArrayString | listBoxGetSelected () const |
wxArrayInt | listBoxDeleteSelected () |
Delete the selected filters. | |
void | listBoxDuplicateSelected () |
Duplicate the selected filters. | |
Private Attributes | |
std::map< MENU_ID, wxString > | m_menuStrings |
wxWindow & | m_parent |
wxListBox & | m_listBox |
Definition at line 45 of file listbox_tricks.h.
These are the ids for the menu.
Enumerator | |
---|---|
ID_COPY | |
ID_CUT | |
ID_PASTE | |
ID_DELETE | |
ID_DUPLICATE |
Definition at line 54 of file listbox_tricks.h.
LISTBOX_TRICKS::LISTBOX_TRICKS | ( | wxWindow & | aWindow, |
wxListBox & | aListBox | ||
) |
Definition at line 45 of file listbox_tricks.cpp.
References _, ID_COPY, ID_CUT, ID_DELETE, ID_DUPLICATE, ID_PASTE, m_listBox, m_menuStrings, OnListBoxCopy(), OnListBoxCut(), OnListBoxDelete(), OnListBoxDuplicate(), OnListBoxKeyDown(), OnListBoxPaste(), and OnListBoxRDown().
LISTBOX_TRICKS::~LISTBOX_TRICKS | ( | ) |
Definition at line 71 of file listbox_tricks.cpp.
References m_listBox, OnListBoxCopy(), OnListBoxCut(), OnListBoxDelete(), OnListBoxDuplicate(), OnListBoxKeyDown(), OnListBoxPaste(), and OnListBoxRDown().
|
private |
Definition at line 148 of file listbox_tricks.cpp.
References filter, and listBoxGetSelected().
Referenced by listBoxCut(), OnListBoxCopy(), and OnListBoxKeyDown().
|
private |
Definition at line 202 of file listbox_tricks.cpp.
References listBoxCopy(), listBoxDeleteSelected(), and m_listBox.
Referenced by OnListBoxCut(), and OnListBoxKeyDown().
|
private |
Delete the selected filters.
Returns the indexes of the deleted filters (which won't be valid anymore).
Definition at line 95 of file listbox_tricks.cpp.
References m_listBox.
Referenced by listBoxCut(), OnListBoxDelete(), and OnListBoxKeyDown().
|
private |
Duplicate the selected filters.
Definition at line 127 of file listbox_tricks.cpp.
References filter, and m_listBox.
Referenced by OnListBoxDuplicate(), and OnListBoxKeyDown().
|
private |
Definition at line 114 of file listbox_tricks.cpp.
References m_listBox.
Referenced by listBoxCopy().
|
private |
Definition at line 166 of file listbox_tricks.cpp.
References m_listBox, and text.
Referenced by OnListBoxKeyDown(), and OnListBoxPaste().
|
private |
Definition at line 290 of file listbox_tricks.cpp.
References listBoxCopy().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 296 of file listbox_tricks.cpp.
References listBoxCut().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 284 of file listbox_tricks.cpp.
References listBoxDeleteSelected().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 308 of file listbox_tricks.cpp.
References listBoxDuplicateSelected().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 259 of file listbox_tricks.cpp.
References listBoxCopy(), listBoxCut(), listBoxDeleteSelected(), listBoxDuplicateSelected(), and listBoxPaste().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 302 of file listbox_tricks.cpp.
References listBoxPaste().
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 214 of file listbox_tricks.cpp.
References KIUI::AddMenuItem(), ID_COPY, ID_CUT, ID_DELETE, ID_DUPLICATE, ID_PASTE, KiBitmap(), m_menuStrings, and m_parent.
Referenced by LISTBOX_TRICKS(), and ~LISTBOX_TRICKS().
void LISTBOX_TRICKS::SetMenuLabels | ( | const std::map< MENU_ID, wxString > & | aItems | ) |
Definition at line 86 of file listbox_tricks.cpp.
References m_menuStrings.
|
private |
Definition at line 98 of file listbox_tricks.h.
Referenced by LISTBOX_TRICKS(), listBoxCut(), listBoxDeleteSelected(), listBoxDuplicateSelected(), listBoxGetSelected(), listBoxPaste(), and ~LISTBOX_TRICKS().
|
private |
Definition at line 95 of file listbox_tricks.h.
Referenced by LISTBOX_TRICKS(), OnListBoxRDown(), and SetMenuLabels().
|
private |
Definition at line 97 of file listbox_tricks.h.
Referenced by OnListBoxRDown().