IExternalEditor Class

(Core::IExternalEditor)

The IExternalEditor class enables registering an external editor in the Open With dialog. More...

Header: #include <IExternalEditor>
Inherits: QObject

Public Functions

virtual QString displayName() const = 0
virtual Id id() const = 0
virtual QStringList mimeTypes() const = 0
virtual bool startEditor(const QString &fileName, QString *errorMessage) = 0
  • 32 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The IExternalEditor class enables registering an external editor in the Open With dialog.

Member Function Documentation

[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.