KTextEditor
Editor Extension Interfaces
Classes | |
class | KTextEditor::CommandInterface |
class | KTextEditor::ContainerInterface |
Detailed Description
A KTextEditor implementation may implement an Editor extension interface, but it does not need to.
So as a KTextEditor user you have to cast the Editor to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a Editor editor into the DesiredExtensionInterface, example:
// editor is of type KTextEditor::Editor*
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::Editor
The following classes are a list of all available Editor extension interfaces.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.