diff options
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h index 570ba738b..3a6818192 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -397,6 +397,19 @@ private: * Listbox management. */ +// ScintillaBase implements IListBoxDelegate to receive ListBoxEvents from a ListBox + +struct ListBoxEvent { + enum class EventType { selectionChange, doubleClick } event; + ListBoxEvent(EventType event_) : event(event_) { + } +}; + +class IListBoxDelegate { +public: + virtual void ListNotify(ListBoxEvent *plbe)=0; +}; + class ListBox : public Window { public: ListBox(); @@ -420,7 +433,7 @@ public: virtual void RegisterImage(int type, const char *xpm_data)=0; virtual void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) = 0; virtual void ClearRegisteredImages()=0; - virtual void SetDoubleClickAction(CallBackAction, void *)=0; + virtual void SetDelegate(IListBoxDelegate *lbDelegate)=0; virtual void SetList(const char* list, char separator, char typesep)=0; }; |