[NEW] (Author: Ben) Remove Calltip restriction from plugins side.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@701 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 14 years ago
parent 3a6ebc0885
commit 45481e65af

@ -102,12 +102,13 @@ void FunctionCallTip::showPrevOverload() {
showCalltip();
}
void FunctionCallTip::close() {
if (!isVisible()) {
void FunctionCallTip::close()
{
if (!isVisible() || !_selfActivated)
return;
}
_pEditView->execute(SCI_CALLTIPCANCEL);
_selfActivated = false;
_currentOverload = 0;
}
@ -406,6 +407,7 @@ void FunctionCallTip::showCalltip()
_startPos = _curPos;
_pEditView->showCallTip(_startPos, textBuffer);
_selfActivated = true;
if (highlightstart != highlightend) {
_pEditView->execute(SCI_CALLTIPSETHLT, highlightstart, highlightend);
}

@ -30,7 +30,8 @@ public:
FunctionCallTip(ScintillaEditView * pEditView) : _pEditView(pEditView), _pXmlKeyword(NULL), _curPos(0), _startPos(0),
_curFunction(NULL), _currentNrOverloads(0), _currentOverload(0),
_currentParam(0), _funcName(NULL),
_start('('), _stop(')'), _param(','), _terminal(';'), _ignoreCase(true), _additionalWordChar(TEXT(""))
_start('('), _stop(')'), _param(','), _terminal(';'), _ignoreCase(true),
_additionalWordChar(TEXT("")), _selfActivated(false)
{};
~FunctionCallTip() {/* cleanup(); */};
void setLanguageXML(TiXmlElement * pXmlKeyword); //set calltip keyword node
@ -63,6 +64,7 @@ private:
TCHAR _terminal;
generic_string _additionalWordChar;
bool _ignoreCase;
bool _selfActivated;
bool getCursorFunction(); //retrieve data about function at cursor. Returns true if a function was found. Calls loaddata if needed
bool loadFunction(); //returns true if the function can be found

Loading…
Cancel
Save