Introduced IQuickFixFactory.

This commit is contained in:
Roberto Raggi
2010-06-22 14:14:22 +02:00
parent 3e7c7296d1
commit 23aa0af883
5 changed files with 66 additions and 5 deletions

View File

@@ -107,7 +107,20 @@ public:
virtual bool supportsEditor(TextEditor::ITextEditable *editor);
virtual TextEditor::QuickFixState *initializeCompletion(TextEditor::ITextEditable *editable);
virtual QList<TextEditor::QuickFixOperation::Ptr> quickFixOperations(TextEditor::BaseTextEditor *editor) const;
};
class CppQuickFixFactory: public TextEditor::IQuickFixFactory
{
Q_OBJECT
public:
CppQuickFixFactory(QObject *parent = 0);
virtual ~CppQuickFixFactory();
/*
* Returns true if this IQuickFixFactory can be used with the given editor.
*/
virtual QList<TextEditor::QuickFixOperation::Ptr> quickFixOperations(TextEditor::BaseTextEditor *editor);
};
} // end of namespace Internal