KTextEditor
KTextEditor Namespace Reference
Namespaces | |
Search | |
Functions | |
KTEXTEDITOR_EXPORT_DEPRECATED Plugin * | createPlugin (KService::Ptr service, QObject *parent) |
KTEXTEDITOR_EXPORT Editor * | editor (const char *libname) |
Detailed Description
Namespace for the KDE Text Editor Interfaces.
These interfaces provide easy access to editor parts for the applications embedding them. At the moment they are at least supported by both the Kate Part and the Yzis Part.
Function Documentation
Create a plugin represented by service
with parent object parent
.
To get the KService object you usually use KServiceTypeTrader. Example
KService::List list = KServiceTypeTrader::self()->query("KTextEditor/Plugin");
foreach(const KService::Ptr &service, list) {
// do something with service
}
- Returns
- the plugin or NULL if it could not be loaded
Definition at line 148 of file ktexteditor.cpp.
Editor * KTextEditor::editor | ( | const char * | libname | ) |
Helper function for the EditorChooser.
Usually you do not have to use this function. Instead, use KTextEditor::EditorChooser::editor().
- Parameters
-
libname library name, for example "katepart"
- Returns
- the Editor object on success, otherwise NULL
Definition at line 174 of file ktexteditor.cpp.
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.