aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/icodestylepreferencesfactory.h
diff options
context:
space:
mode:
authorJarek Kobus <jkobus@trolltech.com>2011-08-16 10:45:23 +0200
committerJarek Kobus <jaroslaw.kobus@nokia.com>2011-09-23 10:23:15 +0200
commit224491182666840def3a551a840c8fa840bfe5c2 (patch)
tree0c75ae3cc76819f373c1642ffd598e57568dac54 /src/plugins/texteditor/icodestylepreferencesfactory.h
parent3955df7855c9d27d8d470f509578bd9004b72ea1 (diff)
Implement Code Style schemes
Task-number: QTCREATORBUG-5092 Change-Id: I218cef02f7c242e4dfae59b1b8021ea618e60d07 Reviewed-on: http://codereview.qt-project.org/5160 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/icodestylepreferencesfactory.h')
-rw-r--r--src/plugins/texteditor/icodestylepreferencesfactory.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h
index 6a06e9b160..da570e4aee 100644
--- a/src/plugins/texteditor/icodestylepreferencesfactory.h
+++ b/src/plugins/texteditor/icodestylepreferencesfactory.h
@@ -39,9 +39,10 @@
namespace TextEditor {
-class IFallbackPreferences;
-class TabPreferences;
+class ICodeStylePreferences;
+class CodeStylePool;
class Indenter;
+class ISnippetProvider;
class TEXTEDITOR_EXPORT ICodeStylePreferencesFactory : public QObject
{
@@ -51,9 +52,11 @@ public:
virtual QString languageId() = 0;
virtual QString displayName() = 0;
- virtual IFallbackPreferences *createPreferences(const QList<IFallbackPreferences *> &fallbacks) const = 0;
- virtual QWidget *createEditor(IFallbackPreferences *preferences, TabPreferences *tabSettings, QWidget *parent) const = 0;
+ virtual ICodeStylePreferences *createCodeStyle() const = 0;
+ virtual QWidget *createEditor(ICodeStylePreferences *preferences, QWidget *parent) const = 0;
virtual TextEditor::Indenter *createIndenter() const = 0;
+ virtual ISnippetProvider *snippetProvider() const = 0;
+ virtual QString previewText() const = 0;
};
} // namespace TextEditor