forked from qt-creator/qt-creator
Adding interface for context widget to qmljs lib
This commit is contained in:
@@ -22,6 +22,7 @@ HEADERS += \
|
||||
$$PWD/qmljsscopebuilder.h \
|
||||
$$PWD/qmljslineinfo.h \
|
||||
$$PWD/qmljscompletioncontextfinder.h \
|
||||
$$PWD/qmljsicontextpane.h \
|
||||
$$PWD/qmljspropertyreader.h \
|
||||
$$PWD/qmljsrewriter.h
|
||||
|
||||
|
||||
32
src/libs/qmljs/qmljsicontextpane.h
Normal file
32
src/libs/qmljs/qmljsicontextpane.h
Normal 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
|
||||
Reference in New Issue
Block a user