Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi all,
I've got a very productive week. Here's what I've made: replaced the single
ListBox to a Window containing custom ListBox implementation. I've
encountered with several problems around KeyInput function, so I had to
implement key action is PreNotify() function: ESC key closes the window,
tab/space also (beacuse I assume that the user typed in the whole
procedure/function name), not-exsisting procedure types are deleted, the
ListBox filters entries when typing. The window is declared as
boost::scoped_ptr to avoid memory leaks. So it works like in MS basic ide
:D .
Now, to the non-visibe parts. My first "cache" was a single vector
containig a struct: this have chages to use boost::unordered_map, and
wrapped into a class called CodeCompleteDataCache. I got here some link
errors, but thank to Andras I could solve that.
There are some things that I'me thinking on:
- the ctor of CodeCompleteWindow gets an EditorWindow* as it's parameter,
but the only thing I need from it it it's ExtTextEngine, which is a scoped
pointer. Using this inside the CodeCompleteWindow(instreas of storing
EditorWindow*) was a failure. Any advice?
Regards,
Gergő

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.