KTextEditor
View Extension Interfaces
A KTextEditor implementation may implement a View extension interface, but it does not need to. More...
Classes | |
| class | KTextEditor::AnnotationViewInterface |
| Annotation interface for the View. More... | |
| class | KTextEditor::CodeCompletionInterface |
| Code completion extension interface for the View. More... | |
| class | KTextEditor::ConfigInterface |
| Config interface extension for the View. More... | |
| class | KTextEditor::CoordinatesToCursorInterface |
| Pixel coordinate to Cursor extension interface for the View. More... | |
| class | KTextEditor::SessionConfigInterface |
| Session config interface extension for the Document, View and Plugin. More... | |
| class | KTextEditor::TemplateInterface |
| This is an interface for inserting template strings with user editable fields into a document. More... | |
| class | KTextEditor::TextHintInterface |
| This is an interface for the KTextEditor::View class. More... | |
Detailed Description
A KTextEditor implementation may implement a View extension interface, but it does not need to.
So as a KTextEditor user you have to cast the View to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a View view into the DesiredExtensionInterface, example:
// view is of type KTextEditor::View* KTextEditor::DesiredExtensionInterface *iface = qobject_cast<KTextEditor::DesiredExtensionInterface*>( view ); if( iface ) { // the implementation supports the interface // do stuff } else { // the implementation does not support the interface }
- See also:
- KTextEditor::View
The following classes are a list of all available View extension interfaces.
KDE 4.3 API Reference