diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-08 12:26:22 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-08 12:28:55 +0200 |
commit | ff092f79b33e48847c7a475eb7362ffb9649aa49 (patch) | |
tree | 2cd51c85c6feb090a2170071b73bbd01b5bf7386 /src/libs/qmljs/qmljsicontextpane.h | |
parent | 76be30020289b247ede3d537a397728acc7509ae (diff) | |
download | qt-creator-ff092f79b33e48847c7a475eb7362ffb9649aa49.tar.gz |
QmlJS: Remove LookupContext.
Use Context or ScopeChain instead.
Change-Id: I2489477eac08774ba41710ee81876aab11b5af24
Reviewed-on: http://codereview.qt.nokia.com/1699
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsicontextpane.h')
-rw-r--r-- | src/libs/qmljs/qmljsicontextpane.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsicontextpane.h b/src/libs/qmljs/qmljsicontextpane.h index 558b12c6a3..3a05e7d04c 100644 --- a/src/libs/qmljs/qmljsicontextpane.h +++ b/src/libs/qmljs/qmljsicontextpane.h @@ -37,8 +37,8 @@ #include "qmljs_global.h" +#include <qmljs/qmljsdocument.h> #include <qmljs/parser/qmljsastfwd_p.h> -#include <qmljs/qmljslookupcontext.h> namespace TextEditor { class BaseTextEditor; @@ -46,6 +46,10 @@ class BaseTextEditor; namespace QmlJS { +namespace Interpreter { +class ScopeChain; +} + class QMLJS_EXPORT IContextPane : public QObject { Q_OBJECT @@ -53,7 +57,7 @@ class QMLJS_EXPORT IContextPane : public QObject public: IContextPane(QObject *parent = 0) : QObject(parent) {} virtual ~IContextPane() {} - virtual void apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, LookupContext::Ptr lookupContext, AST::Node *node, bool update, bool force = false) = 0; + virtual void apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, const Interpreter::ScopeChain *scopeChain, AST::Node *node, bool update, bool force = false) = 0; virtual void setEnabled(bool) = 0; virtual bool isAvailable(TextEditor::BaseTextEditor *editor, Document::Ptr document, AST::Node *node) = 0; virtual QWidget* widget() = 0; |