IEditor Class
(Core::IEditor)The IEditor class is an interface for providing suitable editors for documents according to their MIME type. More...
| Header: | #include <coreplugin/editormanager/ieditor.h> |
| Inherits: | Core::IContext |
Public Functions
| virtual int | currentColumn() const |
| virtual int | currentLine() const |
| virtual Core::IDocument * | document() const = 0 |
| virtual Core::IEditor * | duplicate() |
| bool | duplicateSupported() const |
| virtual void | gotoLine(int line, int column = 0, bool centerLine = true) |
| virtual bool | isDesignModePreferred() const |
| virtual bool | restoreState(const QByteArray &) |
| virtual QByteArray | saveState() const |
| void | setDuplicateSupported(bool duplicatesSupported) |
| virtual QWidget * | toolBar() = 0 |
- 6 public functions inherited from Core::IContext
Static Public Members
| const QMetaObject | staticMetaObject |
Detailed Description
The IEditor class is an interface for providing suitable editors for documents according to their MIME type.
Classes that implement this interface are for example the editors for C++ files, UI files, and resource files.
Whenever a user wants to edit or create a document, the EditorManager scans all IEditorFactory interfaces for suitable editors. The selected IEditorFactory is then asked to create an editor, which must implement this interface.
See also Core::IEditorFactory and Core::EditorManager.
Member Function Documentation
[virtual] int IEditor::currentColumn() const
[virtual] int IEditor::currentLine() const
[pure virtual] Core::IDocument *IEditor::document() const
[virtual] Core::IEditor *IEditor::duplicate()
bool IEditor::duplicateSupported() const
Returns whether duplication is supported.
See also setDuplicateSupported().
[virtual] void IEditor::gotoLine(int line, int column = 0, bool centerLine = true)
[virtual] bool IEditor::isDesignModePreferred() const
[virtual] bool IEditor::restoreState(const QByteArray &)
[virtual] QByteArray IEditor::saveState() const
void IEditor::setDuplicateSupported(bool duplicatesSupported)
Sets whether duplication is supported to duplicatesSupported.
See also duplicateSupported().