21#ifndef __ANTARES_COMMON_COMPONENT_SPOTLIGHT_LISTBOX_PANEL_H__
22#define __ANTARES_COMMON_COMPONENT_SPOTLIGHT_LISTBOX_PANEL_H__
25#include "../../wx-wrapper.h"
26#include <wx/scrolwin.h>
33class ListboxPanel :
public wxScrolledWindow,
public Yuni::IEventObserver<ListboxPanel>
38 searchResultTextHeight = 25,
64 void onDraw(wxPaintEvent& evt);
93 wxString pLonguestGroupName;
94 wxSize pLonguestGroupNameSize;
95 bool pRecomputeLonguestGroupNameSize;
96 wxColour pDisabledColor;
98 wxString pCacheResultText;
99 wxSize pCacheResultTextSize;
108 YString pLastGroupName;
112 DECLARE_EVENT_TABLE()
Definition listbox-panel.h:34
void onMouseMotion(wxMouseEvent &evt)
Event: mouse moved.
Definition listbox-panel.cpp:82
void onMouseLeave(wxMouseEvent &)
Event: mouse leave.
Definition listbox-panel.cpp:127
void onMouseLeftUp(wxMouseEvent &evt)
Event: Mouse Click.
Definition listbox-panel.cpp:329
void onDraw(wxPaintEvent &evt)
Event: draw the panel.
Definition listbox-panel.cpp:138
void doSelectItemFromMouseDblClick()
Delayed event.
Definition listbox-panel.cpp:343
void onMouseDblClick(wxMouseEvent &evt)
Event: Mouse Double Click.
Definition listbox-panel.cpp:336
void resetProvider(Spotlight::IProvider::Ptr provider)
Reset the data provider.
Definition listbox-panel.cpp:133
virtual ~ListboxPanel()
Destructor.
Definition listbox-panel.cpp:70
void recomputeBoundsForLonguestGroupName(wxDC &dc)
Recompute the bounds of the longuest group name.
Definition listbox-panel.cpp:75
ListboxPanel(Spotlight *parent, uint flags)
Default constructor.
Definition listbox-panel.cpp:52
void doSelectItemFromMouseLeftUp()
Delayed event.
Definition listbox-panel.cpp:384
void onEraseBackground(wxEraseEvent &)
UI: Erase background, empty to avoid flickering.
Definition listbox-panel.h:70
std::shared_ptr< Vector > VectorPtr
Vector Ptr.
Definition spotlight.h:35
std::shared_ptr< IProvider > Ptr
ptr
Definition spotlight.h:34
std::shared_ptr< Vector > VectorPtr
Vector ptr.
Definition spotlight.h:36
Definition spotlight.h:40