summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/behaviorsettingspage.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/behaviorsettingspage.h
parent3955df7855c9d27d8d470f509578bd9004b72ea1 (diff)
downloadqt-creator-224491182666840def3a551a840c8fa840bfe5c2.tar.gz
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/behaviorsettingspage.h')
-rw-r--r--src/plugins/texteditor/behaviorsettingspage.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/plugins/texteditor/behaviorsettingspage.h b/src/plugins/texteditor/behaviorsettingspage.h
index fa575c68f4..2378deb7d7 100644
--- a/src/plugins/texteditor/behaviorsettingspage.h
+++ b/src/plugins/texteditor/behaviorsettingspage.h
@@ -40,11 +40,12 @@
namespace TextEditor {
class TabSettings;
+class TypingSettings;
class StorageSettings;
class BehaviorSettings;
class ExtraEncodingSettings;
-
-class TabPreferences;
+class ICodeStylePreferences;
+class CodeStylePool;
class BehaviorSettingsPageParameters
{
@@ -71,19 +72,22 @@ public:
void finish();
bool matches(const QString &s) const;
+ ICodeStylePreferences *codeStyle() const;
+ CodeStylePool *codeStylePool() const;
+ const TypingSettings &typingSettings() const;
const StorageSettings &storageSettings() const;
const BehaviorSettings &behaviorSettings() const;
const ExtraEncodingSettings &extraEncodingSettings() const;
- TabPreferences *tabPreferences() const;
-
signals:
+ void typingSettingsChanged(const TextEditor::TypingSettings &);
void storageSettingsChanged(const TextEditor::StorageSettings &);
void behaviorSettingsChanged(const TextEditor::BehaviorSettings &);
void extraEncodingSettingsChanged(const TextEditor::ExtraEncodingSettings &);
private:
- void settingsFromUI(StorageSettings *storageSettings,
+ void settingsFromUI(TypingSettings *typingSettings,
+ StorageSettings *storageSettings,
BehaviorSettings *behaviorSettings,
ExtraEncodingSettings *extraEncodingSettings) const;
void settingsToUI();