IExternalEditor Class
(Core::IExternalEditor)The IExternalEditor class enables registering an external editor in the Open With dialog. More...
Header: | #include <IExternalEditor> |
Public Functions
~IExternalEditor() | |
virtual QString | displayName() const = 0 |
virtual Id | id() const = 0 |
virtual QStringList | mimeTypes() const = 0 |
virtual bool | startEditor(const QString &fileName, QString *errorMessage) = 0 |
Static Public Members
const QList<IExternalEditor *> | allExternalEditors() |
Detailed Description
The IExternalEditor class enables registering an external editor in the Open With dialog.
Member Function Documentation
IExternalEditor::~IExternalEditor()
Destroys the instance of IExternalEditor.
[static]
const QList<IExternalEditor *> IExternalEditor::allExternalEditors()
[pure virtual]
QString IExternalEditor::displayName() const
[pure virtual]
Id IExternalEditor::id() const
[pure virtual]
QStringList IExternalEditor::mimeTypes() const
Returns the mime type the editor supports
[pure virtual]
bool IExternalEditor::startEditor(const QString &fileName, QString *errorMessage)
Opens the editor with fileName. Returns true
on success or false
on failure along with the error in errorMessage.