KTextEditor
editor.h
237 * Individual views might have set different fonts, can be queried with the "font" key via \see KTextEditor::ConfigInterface::configValue().
308 // using ExpandFunction = std::function<QString(const QStringView &text, KTextEditor::View *view)>;
321 bool registerVariableMatch(const QString &name, const QString &description, ExpandFunction expansionFunc);
337 bool registerVariablePrefix(const QString &prefix, const QString &description, ExpandFunction expansionFunc);
379 void addVariableExpansion(const QList<QWidget *> &widgets, const QStringList &variables = QStringList()) const;
This class allows the application that embeds the KTextEditor component to allow it access to applica...
Definition application.h:44
KTextEditor::EditorPrivate One instance of this class is hold alive during a kate part session,...
Definition kateglobal.h:65
QString(*)(const QStringView &text, KTextEditor::View *view) ExpandFunction
Function that is called to expand a variable in text.
Definition editor.h:309
void configChanged(KTextEditor::Editor *editor)
This signal is emitted whenever the editor configuration is changed.
virtual Command * queryCommand(const QString &cmd) const =0
Query for the command cmd.
virtual KTextEditor::Application * application() const =0
Current hosting application, if any set.
virtual ConfigPage * configPage(int number, QWidget *parent)=0
Get the config page with the number, config pages from 0 to configPages()-1 are available if configPa...
virtual void setApplication(KTextEditor::Application *application)=0
Set the global application object.
void documentCreated(KTextEditor::Editor *editor, KTextEditor::Document *document)
The editor emits this signal whenever a document was successfully created.
virtual QStringList commandList() const =0
Get a list of available command line strings.
void repositoryReloaded(KTextEditor::Editor *editor)
This signal is emitted whenever the editor syntax repository is reloaded.
virtual void configDialog(QWidget *parent)=0
Show the editor's config dialog, changes will be applied to the editor and the configuration changes ...
virtual int configPages() const =0
Get the number of available config pages.
virtual QList< Command * > commands() const =0
Get a list of all registered commands.
virtual Document * createDocument(QObject *parent)=0
Create a new document object with parent.
virtual const KAboutData & aboutData() const =0
Get the about data of this Editor part.
virtual QList< Document * > documents()=0
Get a list of all documents of this editor.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.