summaryrefslogtreecommitdiff
path: root/src/plugins/qmljsinspector/qmljsinspector.h
diff options
context:
space:
mode:
authorLasse Holmstedt <lasse.holmstedt@nokia.com>2010-08-09 10:07:03 +0200
committerLasse Holmstedt <lasse.holmstedt@nokia.com>2010-08-12 09:39:26 +0200
commitd572efedbd0b4d1f453db6b72c7fa158549f9b85 (patch)
tree1f7ca96e4602eac793a92edace4ed2a893bc1854 /src/plugins/qmljsinspector/qmljsinspector.h
parent740aadb7cdd875b72f146d99c981e598f622886a (diff)
downloadqt-creator-d572efedbd0b4d1f453db6b72c7fa158549f9b85.tar.gz
Added settings class to QML Inspector
For starters, we only remember whether the initial warning about dangers of Live Preview was shown.
Diffstat (limited to 'src/plugins/qmljsinspector/qmljsinspector.h')
-rw-r--r--src/plugins/qmljsinspector/qmljsinspector.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/plugins/qmljsinspector/qmljsinspector.h b/src/plugins/qmljsinspector/qmljsinspector.h
index dd1b3d4418..aadc9e6be4 100644
--- a/src/plugins/qmljsinspector/qmljsinspector.h
+++ b/src/plugins/qmljsinspector/qmljsinspector.h
@@ -65,6 +65,7 @@ namespace Internal {
class ClientProxy;
class InspectorContext;
+class InspectorSettings;
class ContextCrumblePath;
class QmlJSLiveTextPreview;
@@ -94,14 +95,19 @@ public:
QDeclarativeDebugExpressionQuery *setBindingForObject(int objectDebugId, const QString &objectId,
const QString &propertyName, const QVariant &value,
bool isLiteralValue);
- static bool showExperimentalWarning();
- static void setShowExperimentalWarning(bool value);
+ void saveSettings() const;
+ void restoreSettings();
+
+ bool showExperimentalWarning();
+ void setShowExperimentalWarning(bool value);
+
static Inspector *instance();
// returns the project being currently debugged, or 0 if not debugging anything
ProjectExplorer::Project *debugProject() const;
void createDockWidgets();
+
signals:
void statusMessage(const QString &text);
void livePreviewActivated(bool isActivated);
@@ -150,12 +156,13 @@ private:
int m_connectionAttempts;
ClientProxy *m_clientProxy;
- static bool m_showExperimentalWarning;
bool m_listeningToEditorManager;
ContextCrumblePath *m_crumblePath;
QDockWidget *m_crumblePathDock;
+ InspectorSettings *m_settings;
+
// Qml/JS integration
QHash<QString, QmlJSLiveTextPreview *> m_textPreviews;
QmlJS::Snapshot m_loadedSnapshot; //the snapshot loaded by the viewer