#ifndef EXPRESSIONQUERYWIDGET_H #define EXPRESSIONQUERYWIDGET_H #include #include QT_BEGIN_NAMESPACE class QGroupBox; class QTextEdit; class QLineEdit; class QPushButton; class ExpressionQueryWidget : public QWidget { Q_OBJECT public: enum Style { Compact, Shell }; ExpressionQueryWidget(QmlEngineDebug *client, QWidget *parent = 0); protected: bool eventFilter(QObject *obj, QEvent *event); public slots: void setCurrentObject(const QmlDebugObjectReference &obj); private slots: void executeExpression(); void showResult(); void lineEditTextChanged(const QString &s); private: void appendPrompt(); void checkCurrentContext(); void showCurrentContext(); void updateTitle(); Style m_style; QmlEngineDebug *m_client; QmlDebugExpressionQuery *m_query; QGroupBox *m_groupBox; QTextEdit *m_textEdit; QLineEdit *m_lineEdit; QPushButton *m_button; QString m_prompt; QString m_expr; QString m_lastExpr; QmlDebugObjectReference m_currObject; QmlDebugObjectReference m_objectAtLastFocus; }; QT_END_NAMESPACE #endif