From b0c6298f1a5b7a1b16a20ccd577f6e2318ae95ad Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Oct 2011 16:54:05 +1100 Subject: Implement ILoader interface so that clients can load documents from background threads. --- src/Editor.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index fb7f4c636..d52d2498f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -8708,6 +8708,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { (reinterpret_cast(lParam))->Release(); break; + case SCI_CREATELOADER: { + Document *doc = new Document(); + if (doc) { + doc->AddRef(); + doc->Allocate(wParam); + doc->SetUndoCollection(false); + } + return reinterpret_cast(static_cast(doc)); + } + case SCI_SETMODEVENTMASK: modEventMask = wParam; return 0; -- cgit v1.2.3