|virtual void ||DoSetPopupControl (wxComboPopup *aPopup) override|
|virtual void ||OnDrawItem (wxDC &aDC, wxRect const &aRect, int aItem, int aFlags) const override|
|virtual wxCoord ||OnMeasureItem (size_t aItem) const override|
|virtual wxCoord ||OnMeasureItemWidth (size_t aItem) const override|
|void ||TryVetoMouse (wxMouseEvent &aEvent)|
| ||Veto a mouseover event if in the separator. More...|
|void ||TryVetoSelect (wxCommandEvent &aEvent, bool aInner)|
| ||Veto a select event for the separator. More...|
|void ||OnMouseUp (wxMouseEvent &aEvent)|
| ||Mouse up on an item in the list. More...|
|void ||OnKeyUp (wxKeyEvent &aEvent)|
| ||Key up on an item in the list. More...|
|void ||TrySkipSeparator (wxKeyEvent &aEvent, bool aInner)|
| ||For arrow key events, skip over separators. More...|
|wxString ||SafeGetString (int aItem) const |
| ||Safely get a string for an item, returning wxEmptyString if the item doesn't exist. More...|
|int ||GetSelectionEither (bool aInner) const |
| ||Get selection from either the outer (combo box) or inner (popup) list. More...|
|void ||SetSelectionEither (bool aInner, int aSel)|
| ||Safely set selection for either the outer (combo box) or inner (popup) list, doing nothing for invalid selections. More...|
Customized combo box for footprint selection.
This provides the following features:
- library name is greyed out for readability when lib:footprint format is found in the item text
- empty items are displayed as nonselectable separators
Multiple separators in a row is undefined behavior; it is likely to result in errors such as the ability to select separators. Separators ARE valid at the top and bottom.
For any items containing footprints, the "lib:footprint" name should be attached to the item as a wxStringClientData.
Definition at line 46 of file footprint_choice.h.