Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Patch: function arguments added to autocomplete tooltip
MortenMacFly:
--- Quote from: p2rkw on November 26, 2012, 08:33:47 pm ---I made those 3 functions as static free functions because they don't touch any Codecompletion's non-static and static fields. Moreover they're visible only in codecompletion.cpp compilation unit.
--- End quote ---
Then put them on top of the unit into a "Helper" namespace, as it is done in other files (i.e. nativeparser.cpp). ;)
p2rkw:
domore: I agree, docs might be displayed in scintilla's call tip, but first CC must handle documentation comments properly.
edit: It's possible but this require intervention into scintillaWX, IMO it is worth it. Currently call tip and auto complete hides each other.
p2rkw:
About documentation, I tried to detect when user changes selection in autocomplete but currently I can't do that.
developers, have you any plans, ideas about documentation support?
--- Quote ---Would be nice if the box was horizontally scrollable but that probably requires changes to scintilla.
--- Quote ---I don't know to to add scroll, but I found that box's maximum dimensions are hardcoded in wxscintilla/src/PlatWX.cpp in ListBoxImpl::GetDesiredRect()
--- End quote ---
--- End quote ---
ollydbg:
--- Quote from: p2rkw on November 28, 2012, 02:51:14 am ---About documentation, I tried to detect when user changes selection in autocomplete but currently I can't do that.
developers, have you any plans, ideas about documentation support?
--- End quote ---
First, you need to use a method to recognize comments? We can get comments from the Parserthread class (not implemented), or we can find/search comments around the symbol through Scintilla's API.
Second, to show the comments, I once see that Codelite IDE use an customized window. (not the build-in one in scintilla)
MortenMacFly:
--- Quote from: p2rkw on November 28, 2012, 02:51:14 am ---ideas about documentation support?
--- End quote ---
Well did you try the Doxyblocks plugin in the first place? You have everything you need in place there. Including scanning for docs.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version