KTextEditor
application.h
28 * The application must pass a pointer to the Application object to the setApplication method of the
29 * global editor instance and ensure that this object stays valid for the complete lifetime of the editor.
31 * It must not reimplement this class but construct an instance and pass a pointer to a QObject that
37 * The same holds for activeMainWindow(), even if no main window is around, you will get a non-nullptr
38 * interface object that allows to call the functions of the MainWindow without needs for a nullptr
QList< KTextEditor::MainWindow * > mainWindows()
Get a list of all main windows.
Definition application.cpp:32
void pluginCreated(const QString &name, KTextEditor::Plugin *plugin)
This signal is emitted when an Plugin was loaded.
void pluginDeleted(const QString &name, KTextEditor::Plugin *plugin)
This signal is emitted when an Plugin got deleted.
KTextEditor::Document * openUrl(const QUrl &url, const QString &encoding=QString())
Open the document url with the given encoding.
Definition application.cpp:66
void documentCreated(KTextEditor::Document *document)
This signal is emitted when the document was created.
void documentDeleted(KTextEditor::Document *document)
This signal is emitted when the document has been deleted.
friend class ApplicationPrivate
Private d-pointer class is our best friend ;)
Definition application.h:197
bool closeDocuments(const QList< KTextEditor::Document * > &documents)
Close a list of documents.
Definition application.cpp:87
KTextEditor::Plugin * plugin(const QString &name)
Get a plugin for the plugin with with identifier name.
Definition application.cpp:95
KTextEditor::Document * findUrl(const QUrl &url)
Get the document with the URL url.
Definition application.cpp:58
bool closeDocument(KTextEditor::Document *document)
Close the given document.
Definition application.cpp:79
KTextEditor::MainWindow * activeMainWindow()
Accessor to the active main window.
Definition application.cpp:40
QList< KTextEditor::Document * > documents()
Get a list of all documents that are managed by the application.
Definition application.cpp:50
void documentWillBeDeleted(KTextEditor::Document *document)
This signal is emitted before a document which should be closed is deleted The document is still acce...
This class allows the application that embeds the KTextEditor component to allow it to access parts o...
Definition mainwindow.h:47
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.