forked from qt-creator/qt-creator
QmlJSScriptConsole: Refactored ScriptConsole, added functionality.
The ScriptConsole is renamed to QmlJSScriptConsole. The console can be used to evaluate expressions during a QML application debug session. Changes: * Console can be used even when application is not on a debug break * The object context is the currently selected object in Inspector * ContextMenu has a Clear option * Multiple line expressions are supported * Traverse Command History using up and down arrow keys Change-Id: I4e1cd8763d60be43dbba395ead2a9a086d6bab7d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -73,6 +73,13 @@ public:
|
||||
Internal::QmlDebuggerClient *activeDebuggerClient();
|
||||
QHash<QString, Internal::QmlDebuggerClient*> debuggerClients();
|
||||
|
||||
QmlJsDebugClient::QDeclarativeEngineDebug *engineDebugClient() const;
|
||||
void setEngineDebugClient(QmlJsDebugClient::QDeclarativeEngineDebug *client);
|
||||
|
||||
int currentSelectedDebugId() const;
|
||||
QString currentSelectedDisplayName() const;
|
||||
void setCurrentSelectedDebugInfo(int debugId, const QString &displayName = QString());
|
||||
|
||||
public slots:
|
||||
void logServiceStatusChange(const QString &service, QDeclarativeDebugClient::Status newStatus);
|
||||
void logServiceActivity(const QString &service, const QString &logMessage);
|
||||
@@ -83,6 +90,7 @@ signals:
|
||||
void connectionStartupFailed();
|
||||
void connectionError(QAbstractSocket::SocketError socketError);
|
||||
void serviceConnectionError(const QString serviceName);
|
||||
void selectionChanged();
|
||||
|
||||
private slots:
|
||||
void connectionErrorOccurred(QAbstractSocket::SocketError socketError);
|
||||
|
||||
Reference in New Issue
Block a user