Inherited by KTextEditor::ViewPrivate.
|virtual void||registerInlineNoteProvider (KTextEditor::InlineNoteProvider *provider)=0|
|virtual void||unregisterInlineNoteProvider (KTextEditor::InlineNoteProvider *provider)=0|
Inline notes interface for rendering notes in the text.
The inline notes interface provides a way to render arbitrary things in the text. The text layout of the line is adapted to create space for the note. Possible applications include showing a name of a function parameter in a function call or rendering a square with a color preview next to CSS color property.
To register as inline note provider, call registerInlineNoteProvider() with an instance that inherits InlineNoteProvider. Finally, make sure you remove your inline note provider by calling unregisterInlineNoteProvider().
Member Function Documentation
Register the inline note provider
Whenever a line is painted, the
provider will be queried for notes that should be painted in it. When the provider is about to be destroyed, make sure to call unregisterInlineNoteProvider() to avoid a dangling pointer.
provider inline note provider
The documentation for this class was generated from the following files: