org.kde.koala
Interface KReplaceSignals


public interface KReplaceSignals


Method Summary
 void replace(java.lang.String text, int replacementIndex, int replacedLength, int matchedLength)
          Connect to this slot to implement updating of replaced text during the replace operation.
 

Method Detail

replace

void replace(java.lang.String text,
             int replacementIndex,
             int replacedLength,
             int matchedLength)
Connect to this slot to implement updating of replaced text during the replace operation. Extra care must be taken to properly implement the "no prompt-on-replace" case. For instance highlight isn't emitted in that case (some code might rely on it), and for performance reasons one should repaint after replace() ONLY if prompt-on-replace was selected.

Parameters:
text - The text, in which the replacement has already been done.
replacementIndex - Starting index of the matched substring
replacedLength - Length of the replacement string
matchedLength - Length of the matched string