aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackwindow.h
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-06-16 11:08:54 +0200
committerhjk <qtc-committer@nokia.com>2010-06-22 10:59:57 +0200
commit6a6cba5518fb88345c53a7cd645f6cb6466a84e3 (patch)
tree88d7875ae5bd6f70a3654b11f80c6ed9b9685369 /src/plugins/debugger/stackwindow.h
parent4cc244469a4c7d9fb2b3e598727c6d8a2e7c1813 (diff)
debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes that are instantiated per run. The DebuggerRunControl will now create an object of (a class derived from) DebuggerEngine that contains all the relevant "dynamic" data. DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin, whereas the data bits went to DebuggerEngine. There is no formal notion of a "current" DebuggerEngine. However, as there's only one DebuggerEngine at a time that has its data models connected to the view, there's still some "de facto" notion of a "current" engine. Calling SomeModel::setData(int role, QVariant data) with custom role is used as the primary dispatch mechanism from the views to the "current" data models (and the engine, as all data models know their engine).
Diffstat (limited to 'src/plugins/debugger/stackwindow.h')
-rw-r--r--src/plugins/debugger/stackwindow.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/stackwindow.h b/src/plugins/debugger/stackwindow.h
index 29de3c7384..ad6ad41dc7 100644
--- a/src/plugins/debugger/stackwindow.h
+++ b/src/plugins/debugger/stackwindow.h
@@ -33,17 +33,14 @@
#include <QtGui/QTreeView>
namespace Debugger {
-class DebuggerManager;
-
namespace Internal {
-class DisassemblerViewAgent;
class StackWindow : public QTreeView
{
Q_OBJECT
public:
- StackWindow(DebuggerManager *manager, QWidget *parent = 0);
+ explicit StackWindow(QWidget *parent = 0);
~StackWindow();
public slots:
@@ -54,13 +51,16 @@ private slots:
void rowActivated(const QModelIndex &index);
void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); }
void showAddressColumn(bool on);
+ void reloadFullStack();
private:
void contextMenuEvent(QContextMenuEvent *ev);
void copyContentsToClipboard();
- DebuggerManager *m_manager;
- DisassemblerViewAgent *m_disassemblerAgent;
+ void setModelData(int role, const QVariant &value = QVariant(),
+ const QModelIndex &index = QModelIndex());
+ QVariant modelData(int role, const QModelIndex &index = QModelIndex());
+
bool m_alwaysResizeColumnsToContents;
};