X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/d259f61f080f2388a00f36766240aac016970dd2..570dad923e20ad098263df653287a08f5473427a:/src/debugger/heapallocatorbrowser.cpp diff --git a/src/debugger/heapallocatorbrowser.cpp b/src/debugger/heapallocatorbrowser.cpp index fb1308b..7224be3 100644 --- a/src/debugger/heapallocatorbrowser.cpp +++ b/src/debugger/heapallocatorbrowser.cpp @@ -1,5 +1,5 @@ // -// allwatch.cpp - All Watch +// heapallocatorbrowser.cpp: Memory heap allocation // // by Jean-Paul Mari // @@ -21,48 +21,22 @@ HeapAllocatorBrowserWindow::HeapAllocatorBrowserWindow(QWidget * parent/*= 0*/) : QWidget(parent, Qt::Dialog), layout(new QVBoxLayout), text(new QTextBrowser), -// layout(new QVBoxLayout), text(new QLabel), -// refresh(new QPushButton(tr("Refresh"))), -// address(new QLineEdit), -// go(new QPushButton(tr("Go"))), -// memBase(0), -// NbWatch(0), -// PtrWatchInfo(NULL) Adr(0) -//PtrAdr(NULL) { setWindowTitle(tr("Heap Allocation")); -// address->setInputMask("hhhhhh"); -// QHBoxLayout * hbox1 = new QHBoxLayout; -// hbox1->addWidget(refresh); -// hbox1->addWidget(address); -// hbox1->addWidget(go); - - // Need to set the size as well... -// resize(560, 480); - QFont fixedFont("Lucida Console", 8, QFont::Normal); -// QFont fixedFont("", 8, QFont::Normal); fixedFont.setStyleHint(QFont::TypeWriter); text->setFont(fixedFont); -//// layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); layout->addWidget(text); -// layout->addWidget(refresh); -// layout->addLayout(hbox1); - -// connect(refresh, SIGNAL(clicked()), this, SLOT(RefreshContents())); -// connect(go, SIGNAL(clicked()), this, SLOT(GoToAddress())); } // HeapAllocatorBrowserWindow::~HeapAllocatorBrowserWindow(void) { -// NbWatch = 0; -// free(PtrAdr); } @@ -70,7 +44,6 @@ HeapAllocatorBrowserWindow::~HeapAllocatorBrowserWindow(void) void HeapAllocatorBrowserWindow::RefreshContents(void) { char string[1024]; -// char buf[64]; QString HA; size_t Adr68K; size_t Error = 0; @@ -146,7 +119,6 @@ void HeapAllocatorBrowserWindow::RefreshContents(void) else { return RefreshContents(); - //sprintf(string, "Memory allocator has been initialised"); } } else @@ -192,54 +164,5 @@ void HeapAllocatorBrowserWindow::keyPressEvent(QKeyEvent * e) { hide(); } -#if 0 - else if (e->key() == Qt::Key_PageUp) - { - memBase -= 480; - - if (memBase < 0) - memBase = 0; - - RefreshContents(); - } - else if (e->key() == Qt::Key_PageDown) - { - memBase += 480; - - if (memBase > (0x200000 - 480)) - memBase = 0x200000 - 480; - - RefreshContents(); - } - else if (e->key() == Qt::Key_Up || e->key() == Qt::Key_Minus) - { - memBase -= 16; - - if (memBase < 0) - memBase = 0; - - RefreshContents(); - } - else if (e->key() == Qt::Key_Down || e->key() == Qt::Key_Equal) - { - memBase += 16; - - if (memBase > (0x200000 - 480)) - memBase = 0x200000 - 480; - - RefreshContents(); - } -#endif -} - - -#if 0 -void HeapAllocatorBrowserWindow::GoToAddress(void) -{ - bool ok; - QString newAddress = address->text(); - memBase = newAddress.toUInt(&ok, 16); - RefreshContents(); } -#endif