Debugger: Use bin editor widget for standalone-memory views.

Remove MemoryViewWidget/RegisterMemoryViewWidget
in favour of MemoryView/RegisterMemoryView based on the bin
editor widget.
This commit is contained in:
Friedemann Kleint
2011-04-19 12:17:48 +02:00
parent ce67924b73
commit ed30a3f724
14 changed files with 566 additions and 1005 deletions

View File

@@ -37,6 +37,7 @@
#include "debuggerconstants.h"
#include "debuggercore.h"
#include "debuggerengine.h"
#include "memoryagent.h"
#include <utils/qtcassert.h>
#include <utils/savedaction.h>
@@ -169,9 +170,14 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
copyContentsToClipboard();
else if (act == actAdjust)
resizeColumnsToContents();
else if (act == actShowMemory)
engine->openMemoryView(address);
else if (act == actShowDisassembler)
else if (act == actShowMemory) {
const QString title = tr("Memory at Frame #%1 (%2) 0x%3)").
arg(row).arg(frame.function).arg(address, 0, 16);
QList<MemoryMarkup> ml;
ml.push_back(MemoryMarkup(address, 1, QColor(Qt::blue).lighter(),
tr("Frame #%1 (%2)").arg(row).arg(frame.function)));
engine->openMemoryView(address, 0, ml, QPoint(), title);
} else if (act == actShowDisassembler)
engine->openDisassemblerView(frame);
else if (act == actLoadSymbols)
engine->loadSymbolsForStack();