Adding interface for context widget to qmljs lib

This commit is contained in:
Thomas Hartmann
2010-07-06 10:39:32 +02:00
parent 98949083ec
commit 9d70d66878
2 changed files with 33 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ HEADERS += \
$$PWD/qmljsscopebuilder.h \
$$PWD/qmljslineinfo.h \
$$PWD/qmljscompletioncontextfinder.h \
$$PWD/qmljsicontextpane.h \
$$PWD/qmljspropertyreader.h \
$$PWD/qmljsrewriter.h

View File

@@ -0,0 +1,32 @@
#ifndef QMLJSICONTEXTPANE_H
#define QMLJSICONTEXTPANE_H
#include <QObject>
#include "qmljs_global.h"
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>
namespace TextEditor {
class BaseTextEditorEditable;
} //TextEditor
namespace QmlJS {
class QMLJS_EXPORT IContextPane : public QObject
{
Q_OBJECT
public:
IContextPane(QObject *parent = 0) : QObject(parent) {}
virtual ~IContextPane() {}
virtual void apply(TextEditor::BaseTextEditorEditable *editor, Document::Ptr doc, AST::Node *node, bool update) = 0;
virtual void setEnabled(bool) = 0;
};
} // namespace QmlJS
#endif // QMLJSICONTEXTPANE_H