| 
    KiCad PCB EDA Suite
    
   | 
 
  
Public Member Functions | |
| NET_SELECTOR_COMBOPOPUP () | |
| wxString | GetStringValue () const override | 
| void | SetNetInfo (const NETINFO_LIST *aNetInfoList) | 
| void | SetIndeterminateLabel (const wxString &aIndeterminateLabel) | 
| void | SetIndeterminate () | 
| bool | IsIndeterminate () | 
| void | SetSelectedNetcode (int aNetcode) | 
| int | GetSelectedNetcode () | 
| void | SetSelectedNet (const wxString &aNetname) | 
| wxString | GetSelectedNetname () | 
| void | Accept () override | 
| bool | Create (wxWindow *aParent) override | 
| wxWindow * | GetControl () override | 
| void | SetStringList (const wxArrayString &aStringList) | 
| void | SetStringValue (const wxString &aNetName) override | 
| void | SetSelectedString (const wxString &aString) | 
| void | OnPopup () override | 
| void | OnStartingKey (wxKeyEvent &aEvent) | 
| wxSize | GetAdjustedSize (int aMinWidth, int aPrefHeight, int aMaxHeight) override | 
Protected Member Functions | |
| void | getListContent (wxArrayString &aNetnames) override | 
| Fill the combobox list.   | |
| std::optional< wxString > | getSelectedValue () const | 
| Get the currently selected value in the list, or std::nullopt.   | |
| wxString | getFilterValue () const | 
| Get the current value of the filter control.   | |
| void | rebuildList () | 
| Call this to rebuild the list from the getListContent() method.   | |
Protected Attributes | |
| const NETINFO_LIST * | m_netinfoList | 
| wxString | m_indeterminateLabel | 
| int | m_selectedNetcode | 
| std::map< wxString, wxString > | m_unescapedNetNameMap | 
| wxTextValidator * | m_filterValidator | 
| wxTextCtrl * | m_filterCtrl | 
| wxListBox * | m_listBox | 
| int | m_minPopupWidth | 
| int | m_maxPopupHeight | 
| wxEvtHandler * | m_focusHandler | 
| wxString | m_selectedString | 
| wxArrayString | m_stringList | 
Private Member Functions | |
| wxSize | updateSize () | 
| void | onIdle (wxIdleEvent &aEvent) | 
| void | onMouseMoved (const wxPoint aScreenPos) | 
| void | onMouseClick (wxMouseEvent &aEvent) | 
| void | onKeyDown (wxKeyEvent &aEvent) | 
| void | onEnter (wxCommandEvent &aEvent) | 
| void | onFilterEdit (wxCommandEvent &aEvent) | 
| void | doStartingKey (wxKeyEvent &aEvent) | 
| void | doSetFocus (wxWindow *aWindow) | 
Definition at line 36 of file net_selector.cpp.
      
  | 
  inline | 
Definition at line 39 of file net_selector.cpp.
References m_netinfoList, and m_selectedNetcode.
      
  | 
  inlineoverridevirtual | 
Reimplemented from FILTER_COMBOPOPUP.
Definition at line 89 of file net_selector.cpp.
References CREATE_NET, NETINFO_ITEM::GetNetCode(), FILTER_COMBOPOPUP::getSelectedValue(), m_indeterminateLabel, m_netinfoList, m_selectedNetcode, m_unescapedNetNameMap, NO_NET, FILTER_COMBOPOPUP::rebuildList(), and UnescapeString().
      
  | 
  overrideinherited | 
Definition at line 65 of file filter_combobox.cpp.
References _, m_filterCtrl, m_filterValidator, m_listBox, onEnter(), onFilterEdit(), onIdle(), onKeyDown(), and onMouseClick().
      
  | 
  privateinherited | 
Definition at line 432 of file filter_combobox.cpp.
References KIPLATFORM::UI::ForceFocus().
Referenced by onKeyDown(), onMouseMoved(), and OnStartingKey().
      
  | 
  privateinherited | 
Definition at line 398 of file filter_combobox.cpp.
References m_filterCtrl, and text.
Referenced by onKeyDown(), and OnStartingKey().
      
  | 
  overrideinherited | 
Definition at line 174 of file filter_combobox.cpp.
References m_maxPopupHeight, m_minPopupWidth, and updateSize().
      
  | 
  inlineoverrideinherited | 
Definition at line 47 of file filter_combobox.h.
      
  | 
  protectedinherited | 
Get the current value of the filter control.
Can be empty.
Definition at line 218 of file filter_combobox.cpp.
References m_filterCtrl.
Referenced by getListContent(), NET_SELECTOR_COMBOPOPUP::getListContent(), and SYMBOL_FILTER_COMBOPOPUP::getListContent().
      
  | 
  inlineoverrideprotectedvirtual | 
Fill the combobox list.
Reimplemented from FILTER_COMBOPOPUP.
Definition at line 161 of file net_selector.cpp.
References CREATE_NET, filter, FILTER_COMBOPOPUP::getFilterValue(), m_indeterminateLabel, m_netinfoList, m_unescapedNetNameMap, NO_NET, and UnescapeString().
      
  | 
  inline | 
Definition at line 73 of file net_selector.cpp.
References m_selectedNetcode.
      
  | 
  inline | 
Definition at line 81 of file net_selector.cpp.
References m_netinfoList, and m_selectedNetcode.
      
  | 
  protectedinherited | 
Get the currently selected value in the list, or std::nullopt.
Definition at line 207 of file filter_combobox.cpp.
References m_listBox.
Referenced by Accept(), and NET_SELECTOR_COMBOPOPUP::Accept().
      
  | 
  inlineoverride | 
Definition at line 44 of file net_selector.cpp.
References NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), m_indeterminateLabel, m_netinfoList, m_selectedNetcode, and NO_NET.
      
  | 
  inline | 
Definition at line 70 of file net_selector.cpp.
References m_selectedNetcode.
      
  | 
  privateinherited | 
      
  | 
  privateinherited | 
Definition at line 388 of file filter_combobox.cpp.
References m_listBox, rebuildList(), and updateSize().
Referenced by Create().
      
  | 
  privateinherited | 
Definition at line 254 of file filter_combobox.cpp.
References KIPLATFORM::UI::GetMousePosition(), m_filterCtrl, m_focusHandler, and onMouseMoved().
Referenced by Create().
      
  | 
  privateinherited | 
Definition at line 322 of file filter_combobox.cpp.
References Accept(), doSetFocus(), doStartingKey(), m_filterCtrl, m_focusHandler, and m_listBox.
Referenced by Create().
      
  | 
  privateinherited | 
Definition at line 294 of file filter_combobox.cpp.
References Accept(), and m_listBox.
Referenced by Create().
      
  | 
  privateinherited | 
Definition at line 275 of file filter_combobox.cpp.
References doSetFocus(), m_filterCtrl, and m_listBox.
Referenced by onIdle().
      
  | 
  overrideinherited | 
Definition at line 134 of file filter_combobox.cpp.
References GetStringValue(), m_filterCtrl, m_listBox, and updateSize().
      
  | 
  inherited | 
Definition at line 149 of file filter_combobox.cpp.
References doSetFocus(), doStartingKey(), and m_filterCtrl.
      
  | 
  protectedinherited | 
Call this to rebuild the list from the getListContent() method.
Definition at line 198 of file filter_combobox.cpp.
References getListContent(), and m_listBox.
Referenced by NET_SELECTOR_COMBOPOPUP::Accept(), onFilterEdit(), NET_SELECTOR_COMBOPOPUP::SetIndeterminateLabel(), NET_SELECTOR_COMBOPOPUP::SetNetInfo(), and SetStringList().
      
  | 
  inline | 
Definition at line 69 of file net_selector.cpp.
References m_selectedNetcode.
      
  | 
  inline | 
Definition at line 63 of file net_selector.cpp.
References m_indeterminateLabel, and FILTER_COMBOPOPUP::rebuildList().
      
  | 
  inline | 
Definition at line 57 of file net_selector.cpp.
References m_netinfoList, and FILTER_COMBOPOPUP::rebuildList().
      
  | 
  inline | 
Definition at line 75 of file net_selector.cpp.
References m_netinfoList, and m_selectedNetcode.
      
  | 
  inline | 
Definition at line 72 of file net_selector.cpp.
References m_selectedNetcode.
      
  | 
  inherited | 
Definition at line 127 of file filter_combobox.cpp.
References m_selectedString.
      
  | 
  inherited | 
Definition at line 104 of file filter_combobox.cpp.
References m_stringList, and rebuildList().
      
  | 
  overrideinherited | 
Definition at line 118 of file filter_combobox.cpp.
      
  | 
  privateinherited | 
Definition at line 224 of file filter_combobox.cpp.
References KIUI::GetTextSize(), LIST_ITEM_PADDING, LIST_PADDING, m_listBox, m_maxPopupHeight, and m_minPopupWidth.
Referenced by GetAdjustedSize(), onFilterEdit(), and OnPopup().
      
  | 
  protectedinherited | 
Definition at line 101 of file filter_combobox.h.
Referenced by Create(), doStartingKey(), FILTER_COMBOPOPUP(), getFilterValue(), onIdle(), onKeyDown(), onMouseMoved(), OnPopup(), and OnStartingKey().
      
  | 
  protectedinherited | 
Definition at line 100 of file filter_combobox.h.
Referenced by Create(), and FILTER_COMBOPOPUP().
      
  | 
  protectedinherited | 
Definition at line 106 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP(), onIdle(), and onKeyDown().
      
  | 
  protected | 
Definition at line 207 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetStringValue(), and SetIndeterminateLabel().
      
  | 
  protectedinherited | 
Definition at line 102 of file filter_combobox.h.
Referenced by Create(), FILTER_COMBOPOPUP(), getSelectedValue(), onFilterEdit(), onKeyDown(), onMouseClick(), onMouseMoved(), OnPopup(), rebuildList(), and updateSize().
      
  | 
  protectedinherited | 
Definition at line 104 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP(), GetAdjustedSize(), and updateSize().
      
  | 
  protectedinherited | 
Definition at line 103 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP(), GetAdjustedSize(), and updateSize().
      
  | 
  protected | 
Definition at line 206 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetSelectedNetname(), GetStringValue(), NET_SELECTOR_COMBOPOPUP(), SetNetInfo(), and SetSelectedNet().
      
  | 
  protected | 
Definition at line 208 of file net_selector.cpp.
Referenced by Accept(), GetSelectedNetcode(), GetSelectedNetname(), GetStringValue(), IsIndeterminate(), NET_SELECTOR_COMBOPOPUP(), SetIndeterminate(), SetSelectedNet(), and SetSelectedNetcode().
      
  | 
  protectedinherited | 
Definition at line 108 of file filter_combobox.h.
Referenced by Accept(), GetStringValue(), and SetSelectedString().
      
  | 
  protectedinherited | 
Definition at line 109 of file filter_combobox.h.
Referenced by getListContent(), and SetStringList().
      
  | 
  protected | 
Definition at line 210 of file net_selector.cpp.
Referenced by Accept(), and getListContent().