Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC plugin interface redesign
dmoore:
Very nice, thanks. And ooh that abs path :o feel like such a smurf.
I still need to test out the html links and then give some thought to how to handle symbol browser. (Note that the current categories "Global functions", "Global typedefs", Global variables", Preprocessor symbols", "Global macros" don't fit that well with python)
Alpha:
By the way, you can 'cheat' a bit to prevent the calltip from flashing as you press left/right arrow keys. (Edit: Just make sure to process cbEVT_SHOW_CALL_TIP afterwards with either the actual results, or an empty string vector so CCManager knows to cancel it.)
--- Code: ---Index: PythonCodeCompletion.cpp
===================================================================
--- PythonCodeCompletion.cpp (revision 434)
+++ PythonCodeCompletion.cpp (working copy)
@@ -511,6 +507,11 @@
cbStyledTextCtrl *control=ed->GetControl();
m_state = STATE_CALLTIP_REQUEST;
RequestCallTip(control,argsStartPos,ed->GetFilename());
+ if (control->CallTipActive()) // Probably ours, so return the last know definition so it does not cancel while we recalculate
+ {
+ sv.push_back(m_ActiveCalltipDef);
+ argsPos = m_argsPos;
+ }
return sv;
}
return sv;
--- End code ---
(I think your plugin sometimes returns " " as a calltip; probably it is the plugin's job, not CCManager, to filter that.)
oBFusCATed:
Alpha: Can I ask you to try to describe your commits in more detail (what and why you're doing in the commit is important), especially commits changing core sdk stuff like cbEditor.
Alpha:
Okay, will do. (That specific commit was to prevent editor hooks from calling plugins before the editor was completely initialized.) Would you like me to try to edit past commit messages?
oBFusCATed:
--- Quote from: Alpha on November 07, 2013, 02:11:25 pm ---Would you like me to try to edit past commit messages?
--- End quote ---
Yes, please :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version