Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

CC toolbar enhancement

(1/5) > >>

sbezgodov:
Hello, all.
I've make a patch, which improves codecompletion plugin toolbar functionality and speeds up switching editors.
1. Now in the plugin options dialog you can turn off scope filtering choice control. This means you can choose Visual Studio or Visual Assist alike style. Using second variant also saves some space in screen area.
2. Added Freeze/Thaw calls to toolbar's choice controls. This massively increases speed of switching between editor files!! Especially noticeable when user switches between large files.
3. Added cbEVT_UPDATE_VIEW_LAYOUT event. This needed to update toolbar size after changing its style in plugin options. Further can be used if we will decide to implement customizable toolbars or when forced layout update is needed.
4. Fixed bug when editor cursor is inside namespace, and it wasn't shown in toolbar.



[attachment deleted by admin]

oBFusCATed:
I've made similar patch, but I haven't found the time to show it to the public :)

One question (I've not looked at the implementation):
Do you sort the Visual Assist style combo? If not please do it, because it is very helpful :)

MortenMacFly:

--- Quote from: oBFusCATed on March 18, 2010, 02:17:24 pm ---Do you sort the Visual Assist style combo? If not please do it, because it is very helpful :)

--- End quote ---
But make it configurable :D. Because often methods are sorted/grouped by functionality which would get lost if always sorted alphabetically.

MortenMacFly:

--- Quote from: sbezgodov on March 18, 2010, 01:37:22 pm ---1. Now in the plugin options dialog you can turn off scope filtering choice control. This means you can choose Visual Studio or Visual Assist alike style. Using second variant also saves some space in screen area.

--- End quote ---
I wonder how you would quickly limit the view by namespace using only one combobox. Assume you have a file that works a lot with namespaces and would like to see just the methods of a certain namespace. That's why the initial implementation was splitted into two controls IIRC.

ollydbg:
Nice work, I will download the patch and test it, thanks!!!

Edit
I'm thinking about parsing: using namespace statement like:

ParserThread::ParseBufferForNamespaces

I personally think: we can hold these information when we doing the batch parsing, so, these information can be directly retrieved from the Tokentree.

Any body can understand my idea??, sorry if I'm not explain well.

Navigation

[0] Message Index

[#] Next page

Go to full version