Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Python Code Completion

<< < (3/12) > >>

MortenMacFly:

--- Quote from: oBFusCATed on October 15, 2012, 05:31:23 pm ---You'll have a combobox with the current language showed by the symbol browser. Changing the value in the combo could change the UI - ask the plugin to build the correct UI.

--- End quote ---
I am still not really convinced. If you have large projects with a lot of CC members, building the UI every time you switch really takes time and can be avoided if you have just two symbol browser that both would need no update when switching between them. You can see this now already with the C++ tree, if you enable "workspace level".

Have you ever worked with the Fortran project? There, you have another symbol browser which works just fine besides the C/C++ one. This usage is really convenient. And in fact if you have multiple language projects (which is very common at least for C/C++ and Fortran) you would switch pretty often. For Fortran, I am pretty happy with how it is.

...just my 2 cents...

oBFusCATed:

--- Quote from: MortenMacFly on October 16, 2012, 07:10:46 am ---...If you have large projects with a lot of CC members, building the UI every time you switch really takes time...

--- End quote ---
When switching the language the only operations that will happen will be oldPanel->Hide() and newPanel->Show(). The plugins will keep all panels up to date and full with the correct data.

MortenMacFly:

--- Quote from: oBFusCATed on October 16, 2012, 09:20:35 am ---When switching the language the only operations that will happen will be oldPanel->Hide() and newPanel->Show().

--- End quote ---
True, but it wouldn't allow you to have i.e. both symbol trees under each other, which may be desired. If that's possible, too I am fine with it. Remember, that in mixed-code project you switch rather often from one to another language. So seeing i.e. all relevant methods of your project together is helpful for navigation.

oBFusCATed:
We can provide a way to have any number of symbol browser tabs, so the user can have some control.

dmoore:
It would be easy enough to develop prototypes with different approaches to handling the UI (all in one tab, across multiple tabs etc)

What's bothering me more at the moment is that CC still tries to offer suggestions for python if the python completion returns nothing. This is quite annoying as is the find declaration/implementation stuff. Would anyone mind if I did some lexer checks in the  CC plugin to not show tips/options for python files? What happens with Fortran files?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version