Generic highlighter is now part of the text editor plugin.

This commit is contained in:
Leandro Melo
2010-05-20 13:56:11 +02:00
parent 9b6c86bdc1
commit 55b26868e6
47 changed files with 232 additions and 671 deletions

View File

@@ -44,7 +44,8 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
{
m_actionHandler = new TextEditorActionHandler(
QLatin1String(TextEditor::Constants::C_TEXTEDITOR),
TextEditorActionHandler::Format);
TextEditorActionHandler::Format |
TextEditorActionHandler::UnCommentSelection);
m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT);
}
@@ -76,6 +77,11 @@ Core::IEditor *PlainTextEditorFactory::createEditor(QWidget *parent)
return rc->editableInterface();
}
void PlainTextEditorFactory::addMimeType(const QString &type)
{
m_mimeTypes.append(type);
}
QStringList PlainTextEditorFactory::mimeTypes() const
{
return m_mimeTypes;