IExternalEditor Class
class Core::IExternalEditorThe IExternalEditor class enables registering an external editor in the Open With dialog. More...
Header: | #include <coreplugin/editormanager/iexternaleditor.h> |
Inherits: | Core::EditorType |
Public Functions
IExternalEditor() | |
virtual | ~IExternalEditor() override |
virtual bool | startEditor(const Utils::FilePath &fileName, QString *errorMessage) = 0 |
Static Public Members
const ExternalEditorList | allExternalEditors() |
const ExternalEditorList | externalEditors(const Utils::MimeType &mimeType) |
Detailed Description
\inmodule
QtCreator \ingroup
mainclasses
Member Function Documentation
[explicit]
IExternalEditor::IExternalEditor()
\internal
[override virtual noexcept]
IExternalEditor::~IExternalEditor()
\internal
[static]
const ExternalEditorList IExternalEditor::allExternalEditors()
Returns all available external editors.
[static]
const ExternalEditorList IExternalEditor::externalEditors(const Utils::MimeType &mimeType)
Returns all external editors available for this mimeType in the default order (editors ordered by MIME type hierarchy).
[pure virtual]
bool IExternalEditor::startEditor(const Utils::FilePath &fileName, QString *errorMessage)
Opens the editor with fileName. Returns true
on success or false
on failure along with the error in errorMessage.