aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-11 14:08:43 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-11 14:08:43 +1000
commit1910b44f6d435ccaa88840268ed75c7f7ce42f12 (patch)
tree9528eeeaa6ea0a680c44483b037cdc8cc54714f4 /include/Platform.h
parentac23936dc6c4caf6462214f8117639a6198bb52a (diff)
downloadscintilla-mirror-1910b44f6d435ccaa88840268ed75c7f7ce42f12.tar.gz
Backport: Implement SCN_AUTOCSELECTIONCHANGE notification.
Backported from changeset 6306:7e28cdba6d61.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h15
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;
};