KTextEditor
editor.h
Go to the documentation of this file.
bool simpleMode() const
Query the editor whether simple mode is on or not.
Definition ktexteditor.cpp:101
virtual void writeConfig(KConfig *config=0)=0
Write editor configuration to KConfig config.
const QString & defaultEncoding() const
Get the current default encoding for this Editor part.
Definition ktexteditor.cpp:106
virtual const QList< Document * > & documents()=0
Get a list of all documents of this editor.
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...
void documentCreated(KTextEditor::Editor *editor, KTextEditor::Document *document)
The editor emits this signal whenever a document was successfully created.
virtual QString configPageFullName(int number) const =0
Get a readable full name for the config page number.
virtual void configDialog(QWidget *parent)=0
Show the editor's config dialog, changes will be applied to the editor, but not saved anywhere automa...
virtual int configPages() const =0
Get the number of available config pages.
virtual QString configPageName(int number) const =0
Get a readable name for the config page number.
void setDefaultEncoding(const QString &defaultEncoding)
Set the current default encoding for this Editor part.
Definition ktexteditor.cpp:111
virtual const KAboutData * aboutData() const =0
Get the about data of this Editor part.
void setSimpleMode(bool on)
Switch editor to simple mode for average users.
Definition ktexteditor.cpp:96
virtual void readConfig(KConfig *config=0)=0
Read editor configuration from KConfig config.
virtual Document * createDocument(QObject *parent)=0
Create a new document object with parent.
virtual bool configDialogSupported() const =0
Check, whether this editor has a configuration dialog.
virtual KIcon configPageIcon(int number) const =0
Get a pixmap with size for the config page number.
Editor * editor(const char *libname)
Helper function for the EditorChooser.
Definition ktexteditor.cpp:173
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.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.