forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user