KTextEditor
KTextEditor Namespace Reference
Namespaces | |
Search | |
Functions | |
Plugin * | createPlugin (KService::Ptr service, QObject *parent) |
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
Plugin * KTextEditor::createPlugin | ( | KService::Ptr | service, |
QObject * | parent | ||
) |
Create a plugin represented by service
with parent object parent
.
To get the KService object you usually use KServiceTypeTrader. Example
// do something with service
}
- Returns
- the plugin or NULL if it could not be loaded
Definition at line 147 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 173 of file ktexteditor.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.