• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KTextEditor

Namespaces | Classes | Functions
KTextEditor Namespace Reference

Namespaces

namespace  Search

Classes

class  AnnotationInterface
class  AnnotationModel
class  AnnotationViewInterface
class  Attribute
class  CodeCompletionInterface
class  CodeCompletionModel
class  CodeCompletionModel2
class  CodeCompletionModelControllerInterface
class  CodeCompletionModelControllerInterface2
class  CodeCompletionModelControllerInterface3
class  Command
class  CommandExtension
class  CommandInterface
class  ConfigInterface
class  ConfigPage
class  ContainerInterface
class  CoordinatesToCursorInterface
class  Cursor
class  Document
class  DocumentAdaptor
class  Editor
class  EditorChooser
class  Factory
class  HighlightInterface
class  LoadSaveFilterCheckPlugin
class  Mark
class  MarkInterface
class  MdiContainer
class  Message
class  MessageInterface
class  ModeInterface
class  ModificationInterface
class  MovingCursor
class  MovingInterface
class  MovingRange
class  MovingRangeFeedback
class  ParameterizedSessionConfigInterface
class  Plugin
class  Range
class  RangeCommand
class  RecoveryInterface
class  SearchInterface
class  SessionConfigInterface
class  SmartCursor
class  SmartCursorNotifier
class  SmartCursorWatcher
class  SmartInterface
class  SmartRange
class  SmartRangeNotifier
class  SmartRangeWatcher
class  TemplateInterface
class  TemplateInterface2
class  TemplateScript
class  TemplateScriptRegistrar
class  TextHintInterface
class  VariableInterface
class  View
class  ViewBarContainer

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

◆ createPlugin()

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

KService::List list = KServiceTypeTrader::self()->query("KTextEditor/Plugin");
foreach(const KService::Ptr &service, list) {
// do something with service
}
KServiceTypeTrader::self
static KServiceTypeTrader * self()
KServiceTypeTrader::query
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
KService::Ptr
KSharedPtr< KService > Ptr
KService::List
QList< Ptr > List
Returns
the plugin or NULL if it could not be loaded

Definition at line 147 of file ktexteditor.cpp.

◆ editor()

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
libnamelibrary name, for example "katepart"
Returns
the Editor object on success, otherwise NULL
See also
KTextEditor::EditorChooser::editor()

Definition at line 173 of file ktexteditor.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal