Script: Some refactoring.

This commit is contained in:
Friedemann Kleint
2010-01-15 17:30:26 +01:00
parent 96e31c2a0f
commit 1855316aaa
5 changed files with 163 additions and 95 deletions

View File

@@ -38,6 +38,8 @@
#include <QtCore/QPoint>
#include <QtCore/QSet>
#include <QtCore/QVariant>
#include <QtCore/QSharedPointer>
#include <QtCore/QScopedPointer>
QT_BEGIN_NAMESPACE
class QAction;
@@ -103,18 +105,22 @@ private:
void reloadFullStack() {}
bool supportsThreads() const { return true; }
void maybeBreakNow(bool byFunction);
bool checkForBreakCondition(bool byFunction);
void updateWatchData(const WatchData &data);
void updateLocals();
void updateSubItem(const WatchData &data);
Q_SLOT void showDebuggerOutput(int channel, const QString &m);
private:
friend class ScriptAgent;
QScriptEngine *m_scriptEngine;
bool importExtensions();
QSharedPointer<QScriptEngine> m_scriptEngine;
QString m_scriptContents;
QString m_scriptFileName;
ScriptAgent *m_scriptAgent;
QScopedPointer<ScriptAgent> m_scriptAgent;
bool m_stopped;
bool m_stopOnNextLine;