Extending Qt Creator Manual | TextEditorFactory

Extending Qt Creator Manual 4.5.2

# TextEditorFactory Class

(TextEditor::TextEditorFactory)

Inherits: | Core::IEditorFactory

- List of all members, including inherited members

## Public Types

typedef | AutoCompleterCreator
typedef | DocumentCreator
typedef | EditorCreator
typedef | EditorWidgetCreator
typedef | IndenterCreator
typedef | SyntaxHighLighterCreator

## Public Functions

| TextEditorFactory(QObject *parent = 0)
| ~TextEditorFactory()
void | addHoverHandler(BaseHoverHandler *handler)
void | setAutoCompleterCreator(const AutoCompleterCreator &creator)
void | setCodeFoldingSupported(bool on)
void | setCommentDefinition(Utils::CommentDefinition definition)
void | setCompletionAssistProvider(CompletionAssistProvider *provider)
void | setDocumentCreator(const DocumentCreator &creator)
void | setDuplicatedSupported(bool on)
void | setEditorActionHandlers(Core::Id contextId, uint optionalActions)
void | setEditorActionHandlers(uint optionalActions)
void | setEditorCreator(const EditorCreator &creator)
void | setEditorWidgetCreator(const EditorWidgetCreator &creator)
void | setIndenterCreator(const IndenterCreator &creator)
void | setMarksVisible(bool on)
void | setParenthesesMatchingEnabled(bool on)
void | setSyntaxHighlighterCreator(const SyntaxHighLighterCreator &creator)
void | setUseGenericHighlighter(bool enabled)

## Reimplemented Public Functions

virtual Core::IEditor * | createEditor() override

- 9 public functions inherited from Core::IEditorFactory

## Member Type Documentation

### typedef TextEditorFactory::AutoCompleterCreator

### typedef TextEditorFactory::DocumentCreator

### typedef TextEditorFactory::EditorCreator

### typedef TextEditorFactory::EditorWidgetCreator

### typedef TextEditorFactory::IndenterCreator

### typedef TextEditorFactory::SyntaxHighLighterCreator

## Member Function Documentation

### TextEditorFactory::TextEditorFactory(QObject *parent = 0)

Default constructs an instance of TextEditorFactory.

### TextEditorFactory::~TextEditorFactory()

Destroys the instance of TextEditorFactory.

### void TextEditorFactory::addHoverHandler(BaseHoverHandler *handler)

### `[override virtual]` Core::IEditor *TextEditorFactory::createEditor()

### void TextEditorFactory::setAutoCompleterCreator(const AutoCompleterCreator &creator)

### void TextEditorFactory::setCodeFoldingSupported(bool on)

### void TextEditorFactory::setCommentDefinition(Utils::CommentDefinition definition)

### void TextEditorFactory::setCompletionAssistProvider(CompletionAssistProvider *provider)

### void TextEditorFactory::setDocumentCreator(const DocumentCreator &creator)

### void TextEditorFactory::setDuplicatedSupported(bool on)

### void TextEditorFactory::setEditorActionHandlers(Core::Id contextId, uint optionalActions)

### void TextEditorFactory::setEditorActionHandlers(uint optionalActions)

### void TextEditorFactory::setEditorCreator(const EditorCreator &creator)

### void TextEditorFactory::setEditorWidgetCreator(const EditorWidgetCreator &creator)

### void TextEditorFactory::setIndenterCreator(const IndenterCreator &creator)

### void TextEditorFactory::setMarksVisible(bool on)

### void TextEditorFactory::setParenthesesMatchingEnabled(bool on)

### void TextEditorFactory::setSyntaxHighlighterCreator(const SyntaxHighLighterCreator &creator)

### void TextEditorFactory::setUseGenericHighlighter(bool enabled)