summaryrefslogtreecommitdiffstats
path: root/tools/qmldebugger/engine.h
blob: 8e8c0f225a2ae789cc8f3760c7b16eb32f26056d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef ENGINE_H
#define ENGINE_H

#include <QWidget>
#include <QtCore/qpointer.h>
#include <QtDeclarative/qmlengine.h>
#include <QtDeclarative/qmlcontext.h>
#include <QtDeclarative/qmlview.h>
#include <QtDeclarative/qmldebug.h>

QT_BEGIN_NAMESPACE

class ObjectPropertiesView;
class QmlDebugConnection;
class QmlDebugPropertyReference;
class QmlDebugWatch;
class ObjectTree;
class WatchTableModel;
class WatchTableView;

class QTabWidget;

class EnginePane : public QWidget
{
Q_OBJECT
public:
    EnginePane(QmlDebugConnection *, QWidget *parent = 0);

public slots:
    void refreshEngines();

private slots:
    void enginesChanged();

    void queryContext(int);
    void contextChanged();

    void engineSelected(int);

private:
    QmlEngineDebug *m_client;
    QmlDebugEnginesQuery *m_engines;
    QmlDebugRootContextQuery *m_context;

    ObjectTree *m_objTree;
    QTabWidget *m_tabs;
    WatchTableView *m_watchTableView;

    QmlView *m_engineView;
    QList<QObject *> m_engineItems;

    WatchTableModel *m_watchTableModel;

    ObjectPropertiesView *m_propertiesView;
};

QT_END_NAMESPACE

#endif // ENGINE_H