|
|
|
@ -88,7 +88,7 @@ class FunctionCompletion : public CustomCompleter {
|
|
|
|
|
|
|
|
|
|
virtual void addItem ( const TQString &item ) {
|
|
|
|
|
TQString newItemName = item;
|
|
|
|
|
KCompletion::addItem(newItemName);
|
|
|
|
|
TDECompletion::addItem(newItemName);
|
|
|
|
|
TQString tx = processName( item );
|
|
|
|
|
tx += " \"" + item + "\"";
|
|
|
|
|
nameMap[item] = tx;
|
|
|
|
@ -96,16 +96,16 @@ class FunctionCompletion : public CustomCompleter {
|
|
|
|
|
if(tx.length() == 0) {
|
|
|
|
|
kdDebug() << "function-name-extraction failed with \"" << item << "\"" << endl;
|
|
|
|
|
}else{
|
|
|
|
|
KCompletion::addItem( tx );
|
|
|
|
|
TDECompletion::addItem( tx );
|
|
|
|
|
kdDebug() << "addding \"" << item << "\" as \"" << tx << "\"" << endl;
|
|
|
|
|
}
|
|
|
|
|
KCompletion::addItem( item );
|
|
|
|
|
TDECompletion::addItem( item );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void removeItem ( const TQString &item ) {
|
|
|
|
|
FuncMap::iterator it = nameMap.find( item );
|
|
|
|
|
if( it != nameMap.end() ) {
|
|
|
|
|
KCompletion::removeItem( *it );
|
|
|
|
|
TDECompletion::removeItem( *it );
|
|
|
|
|
revNameMap.remove( *it );
|
|
|
|
|
nameMap.remove( it );
|
|
|
|
|
}
|
|
|
|
@ -114,7 +114,7 @@ class FunctionCompletion : public CustomCompleter {
|
|
|
|
|
virtual void clear() {
|
|
|
|
|
nameMap.clear();
|
|
|
|
|
revNameMap.clear();
|
|
|
|
|
KCompletion::clear();
|
|
|
|
|
TDECompletion::clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void postProcessMatch ( TQString *match ) const {
|
|
|
|
@ -133,7 +133,7 @@ class FunctionCompletion : public CustomCompleter {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void postProcessMatches ( KCompletionMatches *matches ) const {
|
|
|
|
|
virtual void postProcessMatches ( TDECompletionMatches *matches ) const {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|