mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-20 21:17:58 -04:00
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)
43 lines
967 B
C++
43 lines
967 B
C++
//
|
|
// register_view.h: CEN64D register 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 REGISTER_VIEW_H
|
|
#define REGISTER_VIEW_H
|
|
#include "register_model.h"
|
|
#include <QAbstractScrollArea>
|
|
#include <QPaintEvent>
|
|
#include <QResizeEvent>
|
|
|
|
class RegisterView : public QAbstractScrollArea {
|
|
Q_OBJECT
|
|
|
|
RegisterModel model;
|
|
const char **registers;
|
|
unsigned numRegisters;
|
|
|
|
unsigned fontWidth, fontHeight;
|
|
unsigned longestMnemonic, octets;
|
|
char formatstr[16];
|
|
|
|
public:
|
|
explicit RegisterView(const char **regs, unsigned num_regs, unsigned octets);
|
|
virtual ~RegisterView();
|
|
|
|
unsigned getMaximumHeight() const;
|
|
unsigned getMaximumWidth() const;
|
|
|
|
RegisterModel& getModel();
|
|
void paintEvent(QPaintEvent* event);
|
|
void resizeEvent(QResizeEvent *event);
|
|
};
|
|
|
|
#endif
|
|
|