Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Patch: function arguments added to autocomplete tooltip
p2rkw:
It's not finished, but maybe one of you want to test it, and share your opinions? I hope I included all modified files in patch. It's probably conflicts with this one.
ollydbg: You worry about Token class' size? Documentation can be stored in separate hashmap (or map) that connects token's id to text (map can be also created for other rare data, like m_TemplateAlias). What do you think?
If you worry, about amount memory used by c::b: It may be even cheaper to store only documentation in memory, instead of loading few source files only to display short comment. Keep in mind that in current implementation, documentation is shown when user selects another item from autocomplete list. It will be also possible to read documents from external source (like xml generated by doxygen).
User should be able to disable documentation helper.
Should documentation tip shows up when user hover some symbol? Or maybe when he do ctrl + click (similarly to debugger)?
ollydbg:
--- Quote from: p2rkw on December 10, 2012, 04:09:33 am ---ollydbg: You worry about Token class' size? Documentation can be stored in separate hashmap (or map) that connects token's id to text (map can be also created for other rare data, like m_TemplateAlias). What do you think?
--- End quote ---
If you look at the declaration of Token class, you will see it is already a fat body. It has many members(many wxString, many stl containers), that's why you see Codeblocks.exe occupy a lot of memory. We do not directly use "reference" in this class I think.
--- Quote ---If you worry, about amount memory used by c::b: It may be even cheaper to store only documentation in memory, instead of loading few source files only to display short comment.
--- End quote ---
I'm not quite understand your idea. If you want to store "only documents", do you mean, you want to add another wxString member named m_Comments in Token class?
I don't mean loading few source "files", I mean when you show one Token, you only need to open one file which have this Token.
--- Quote ---Keep in mind that in current implementation, documentation is shown when user selects another item from autocomplete list. It will be also possible to read documents from external source (like xml generated by doxygen).
User should be able to disable documentation helper.
Should documentation tip shows up when user hover some symbol? Or maybe when he do ctrl + click (similarly to debugger)?
--- End quote ---
I do not have looked into your patch, but I think showing the comments in the log panel is a good idea. Think you have a very long comments, if you show them around your mouse pointer, the tip/autocompletion window will be quite huge. :)
dmoore:
--- Quote from: ollydbg on December 10, 2012, 04:06:07 pm ---I do not have looked into your patch, but I think showing the comments in the log panel is a good idea. Think you have a very long comments, if you show them around your mouse pointer, the tip/autocompletion window will be quite huge. :)
--- End quote ---
Seems to work fine as a popup window in Netbeans: http://netbeans.org/images_www/v7/1/screenshots/editor.png
(Would just need to be made scrollable for long comments)
oBFusCATed:
This netbeans screenshot is mighty ugly...
dmoore:
another netbeans: http://www.javaworld.com/javaworld/jw-05-2009/images/net_beans_code_complete.jpg
pydev (eclipse): http://pydev.org/images/screenshot/screenshot_code_completion_self.png
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version