|  | NumeRe v1.1.4
    NumeRe: Framework für Numerische Rechnungen | 
The popup control for the generic search control. Implemented ontop of a list view. More...
#include <searchctrl.hpp>
| Public Member Functions | |
| virtual bool | Create (wxWindow *parent) override | 
| virtual void | Init () override | 
| virtual wxWindow * | GetControl () override | 
| virtual wxString | GetStringValue () const override | 
| Returns the string representation of the selected item after the popup had been closed.  More... | |
| void | OnKeyEvent (wxKeyEvent &event) | 
| This event handler is necessary to pass the keycodes, which are accidentally catched in this control, to the actual text entry of the composed control.  More... | |
| void | OnMouseUp (wxMouseEvent &WXUNUSED(event)) | 
| This event handler fires, if the user double clicks on an item in the popup list.  More... | |
| void | OnMouseMove (wxMouseEvent &event) | 
| This event handler provides the mouse hover effect in the popup list.  More... | |
| void | OnDragStart (wxListEvent &event) | 
| This event handler is the drag-drop handler for the search results.  More... | |
| void | Set (wxArrayString &stringArray) | 
| A set function to update the contents in the displayed list.  More... | |
| void | SetColSizes (const wxArrayInt &sizes) | 
| Change the column sizes. Will create as many columns as fields are in the array.  More... | |
| void | EnableDragDrop (bool enable) | 
| Enable or disable the drag-drop feature of this control.  More... | |
| void | EnableColors (bool enable) | 
| Enables or disables coloring of functions in blue.  More... | |
| void | SetCallTips (const wxString &calltip, const wxString &calltiphighlight=wxEmptyString) | 
| Sets the calltips for the popup list.  More... | |
| Private Member Functions | |
| wxArrayString | split (wxString sString) | 
| wxDECLARE_EVENT_TABLE () | |
| Private Attributes | |
| int | m_ListId | 
| bool | m_enableDragDrop | 
| bool | m_enableColors | 
| wxArrayInt | m_sizes | 
| wxString | m_callTip | 
| wxString | m_callTipHighlight | 
The popup control for the generic search control. Implemented ontop of a list view.
Definition at line 31 of file searchctrl.hpp.
| 
 | inlineoverridevirtual | 
Definition at line 44 of file searchctrl.hpp.
| 
 | inline | 
Enables or disables coloring of functions in blue.
| enable | bool | 
Definition at line 106 of file searchctrl.hpp.
References m_enableColors.
Referenced by ToolBarSearchCtrl::ToolBarSearchCtrl().
| 
 | inline | 
Enable or disable the drag-drop feature of this control.
| enable | bool | 
Definition at line 93 of file searchctrl.hpp.
References m_enableDragDrop.
Referenced by ToolBarSearchCtrl::ToolBarSearchCtrl().
| 
 | inlineoverridevirtual | 
Definition at line 59 of file searchctrl.hpp.
| 
 | overridevirtual | 
Returns the string representation of the selected item after the popup had been closed.
Definition at line 70 of file searchctrl.cpp.
References m_ListId.
| 
 | inlineoverridevirtual | 
Definition at line 49 of file searchctrl.hpp.
References m_callTip, m_callTipHighlight, m_enableColors, m_enableDragDrop, m_ListId, and m_sizes.
| void SearchCtrlPopup::OnDragStart | ( | wxListEvent & | event | ) | 
This event handler is the drag-drop handler for the search results.
| event | wxListEvent& | 
Definition at line 335 of file searchctrl.cpp.
References m_enableDragDrop, and m_ListId.
| void SearchCtrlPopup::OnKeyEvent | ( | wxKeyEvent & | event | ) | 
This event handler is necessary to pass the keycodes, which are accidentally catched in this control, to the actual text entry of the composed control.
| event | wxKeyEvent& | 
Definition at line 89 of file searchctrl.cpp.
References m_ListId.
| void SearchCtrlPopup::OnMouseMove | ( | wxMouseEvent & | event | ) | 
This event handler provides the mouse hover effect in the popup list.
| event | wxMouseEvent& | 
Definition at line 310 of file searchctrl.cpp.
References HIGHLIGHTCOLOR, m_callTip, m_callTipHighlight, and m_enableColors.
| void SearchCtrlPopup::OnMouseUp | ( | wxMouseEvent & | WXUNUSEDevent | ) | 
This event handler fires, if the user double clicks on an item in the popup list.
| event | wxMouseEvent& | 
Definition at line 295 of file searchctrl.cpp.
References m_ListId.
| void SearchCtrlPopup::Set | ( | wxArrayString & | stringArray | ) | 
A set function to update the contents in the displayed list.
| stringArray | wxArrayString& | 
Definition at line 363 of file searchctrl.cpp.
References HIGHLIGHTCOLOR, m_enableColors, m_sizes, min, and split().
Referenced by SearchCtrl::OnTextChange().
| 
 | inline | 
Sets the calltips for the popup list.
| calltip | const wxString& | 
| calltiphighlight | const wxString& | 
Definition at line 119 of file searchctrl.hpp.
References m_callTip, and m_callTipHighlight.
Referenced by PackageListSearchCtrl::PackageListSearchCtrl(), ToolBarSearchCtrl::ToolBarSearchCtrl(), and TreeSearchCtrl::TreeSearchCtrl().
| 
 | inline | 
Change the column sizes. Will create as many columns as fields are in the array.
| sizes | const wxArrayInt& | 
Definition at line 80 of file searchctrl.hpp.
References m_sizes.
Referenced by PackageListSearchCtrl::PackageListSearchCtrl(), and ToolBarSearchCtrl::ToolBarSearchCtrl().
| 
 | private | 
Referenced by Set().
| 
 | private | 
| 
 | private | 
Definition at line 38 of file searchctrl.hpp.
Referenced by Init(), OnMouseMove(), and SetCallTips().
| 
 | private | 
Definition at line 39 of file searchctrl.hpp.
Referenced by Init(), OnMouseMove(), and SetCallTips().
| 
 | private | 
Definition at line 36 of file searchctrl.hpp.
Referenced by EnableColors(), Init(), OnMouseMove(), and Set().
| 
 | private | 
Definition at line 35 of file searchctrl.hpp.
Referenced by EnableDragDrop(), Init(), and OnDragStart().
| 
 | private | 
Definition at line 34 of file searchctrl.hpp.
Referenced by GetStringValue(), Init(), OnDragStart(), OnKeyEvent(), and OnMouseUp().
| 
 | private | 
Definition at line 37 of file searchctrl.hpp.
Referenced by Init(), Set(), and SetColSizes().