cen64/debugger/memory_view.h
Derek "Turtle" Roe 8b89df2fdc See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-01 18:44:21 -05:00

36 lines
737 B
C++

//
// memory_view.h: CEN64D memory view (MVC).
//
// CEN64D: Cycle-Accurate Nintendo 64 Debugger
// Copyright (C) 2015, Tyler J. Stachecki.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#ifndef MEMORY_VIEW_H
#define MEMORY_VIEW_H
#include <QAbstractScrollArea>
#include <QPaintEvent>
#include <QResizeEvent>
class MemoryView : public QAbstractScrollArea {
Q_OBJECT
unsigned fontWidth, fontHeight;
unsigned addressOctets;
int byteStart, bytesPerRow;
char formatstr[16];
public:
explicit MemoryView(unsigned addressOctets);
virtual ~MemoryView();
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent* event);
};
#endif