KTextEditor
View Extension Interfaces
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 Document and 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::TemplateInterface2 |
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:53:24 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:53:24 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.