aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
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
commit09972b3a179d7ea39ef6ce7e0474531797c549fb (patch)
tree530dd174861606cacb57bce355cd14720f0bef9c /include
parenta4051422b4364d1193abc9a31d1f3df42fdedc47 (diff)
downloadscintilla-mirror-09972b3a179d7ea39ef6ce7e0474531797c549fb.tar.gz
Implement SCN_AUTOCSELECTIONCHANGE notification.
Diffstat (limited to 'include')
-rw-r--r--include/Platform.h15
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface1
3 files changed, 16 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;
};
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 58643a8d9..6f18af9a9 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -1102,6 +1102,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCN_FOCUSOUT 2029
#define SCN_AUTOCCOMPLETED 2030
#define SCN_MARGINRIGHTCLICK 2031
+#define SCN_AUTOCSELECTIONCHANGE 2032
/* --Autogenerated -- end of section automatically generated from Scintilla.iface */
/* These structures are defined to be exactly the same shape as the Win32
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index f35206990..135be3b4e 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -4855,6 +4855,7 @@ evt void FocusIn=2028(void)
evt void FocusOut=2029(void)
evt void AutoCCompleted=2030(string text, int position, int ch, CompletionMethods listCompletionMethod)
evt void MarginRightClick=2031(int modifiers, int position, int margin)
+evt void AutoCSelectionChange=2032(int listType, string text, int position)
# There are no provisional APIs currently, but some arguments to SCI_SETTECHNOLOGY are provisional.