Go to the documentation of this file.
7 #include <QtWidgets/QMainWindow>
9 #include "ui/ui_cgramView.h"
10 #include <QtCore/QSortFilterProxyModel>
12 #include <QMouseEvent>
39 [[nodiscard]]
int rowCount(
const QModelIndex &parent)
const override;
41 [[nodiscard]]
int columnCount(
const QModelIndex &parent)
const override;
43 [[nodiscard]] QVariant
data(
const QModelIndex &index,
int role)
const override;
69 uint16_t
read(uint8_t addr);
ClosableWindow * _window
The QT window for this debugger.
Definition: CGramDebug.hpp:51
const int column
The number of columns.
Definition: CGramDebug.hpp:27
ComSquare::PPU::PPU & _ppu
A reference to the ppu.
Definition: CGramDebug.hpp:59
CGramModel _model
The Log visualizer model for QT.
Definition: CGramDebug.hpp:57
void tileClicked(const QModelIndex &index)
Update call updateInfoTile with the correct address.
Definition: CGramDebug.cpp:60
const int rows
The number of rows.
Definition: CGramDebug.hpp:29
uint16_t read(uint8_t addr)
Read data at the CGRAM address send it to the debugger.
Definition: CGramDebug.cpp:35
~CGramModel() override=default
Definition: ClosableWindow.hpp:12
~CGramDebug() override=default
SNES & _snes
A reference to the snes (to disable the debugger).
Definition: CGramDebug.hpp:53
QVariant data(const QModelIndex &index, int role) const override
Return a data representing the table cell.
Definition: CGramDebug.cpp:81
Definition: APUDebug.cpp:11
CGramDebug(SNES &snes, ComSquare::PPU::PPU &ppu)
Definition: CGramDebug.cpp:15
Container of all the components of the SNES.
Definition: SNES.hpp:32
void focus()
Focus the debugger's window.
Definition: CGramDebug.cpp:30
ComSquare::PPU::PPU & _ppu
The ppu to log the cgram.
Definition: CGramDebug.hpp:24
int y
Definition: CGramDebug.hpp:31
CGramModel(ComSquare::PPU::PPU &ppu)
Definition: CGramDebug.cpp:67
int columnCount(const QModelIndex &parent) const override
The number of column the table has.
Definition: CGramDebug.cpp:76
Ui::CgramView _ui
A widget that contain the whole UI.
Definition: CGramDebug.hpp:55
CGramDebug & operator=(const CGramDebug &)=delete
const CGramModel & operator=(const CGramModel &)=delete
window that allow the user to view all data going through the memory bus.
Definition: CGramDebug.hpp:47
void updateInfoTile(int row, int column)
Update the text fields with corresponding tile info.
Definition: CGramDebug.cpp:40
int x
Definition: CGramDebug.hpp:30
The qt model that bind the logs to the view.
Definition: CGramDebug.hpp:19
int rowCount(const QModelIndex &parent) const override
The number of row the table has.
Definition: CGramDebug.cpp:71
The class containing all the registers of the PPU.
Definition: PPU.hpp:46