ComSquare
Public Member Functions | Private Attributes | List of all members
ComSquare::Debugger::CGramDebug Class Reference

window that allow the user to view all data going through the memory bus. More...

#include <CGramDebug.hpp>

Inheritance diagram for ComSquare::Debugger::CGramDebug:
Collaboration diagram for ComSquare::Debugger::CGramDebug:

Public Member Functions

 CGramDebug (SNES &snes, ComSquare::PPU::PPU &ppu)
 
 CGramDebug (const CGramDebug &)=delete
 
CGramDebugoperator= (const CGramDebug &)=delete
 
 ~CGramDebug () override=default
 
uint16_t read (uint8_t addr)
 Read data at the CGRAM address send it to the debugger. More...
 
void focus ()
 Focus the debugger's window. More...
 
void updateInfoTile (int row, int column)
 Update the text fields with corresponding tile info. More...
 
void tileClicked (const QModelIndex &index)
 Update call updateInfoTile with the correct address. More...
 

Private Attributes

ClosableWindow_window
 The QT window for this debugger. More...
 
SNES_snes
 A reference to the snes (to disable the debugger). More...
 
Ui::CgramView _ui
 A widget that contain the whole UI. More...
 
CGramModel _model
 The Log visualizer model for QT. More...
 
ComSquare::PPU::PPU_ppu
 A reference to the ppu. More...
 

Detailed Description

window that allow the user to view all data going through the memory bus.

Constructor & Destructor Documentation

◆ CGramDebug() [1/2]

ComSquare::Debugger::CGramDebug::CGramDebug ( SNES snes,
ComSquare::PPU::PPU ppu 
)
explicit

◆ CGramDebug() [2/2]

ComSquare::Debugger::CGramDebug::CGramDebug ( const CGramDebug )
delete

◆ ~CGramDebug()

ComSquare::Debugger::CGramDebug::~CGramDebug ( )
overridedefault

Member Function Documentation

◆ focus()

void ComSquare::Debugger::CGramDebug::focus ( )

Focus the debugger's window.

◆ operator=()

CGramDebug& ComSquare::Debugger::CGramDebug::operator= ( const CGramDebug )
delete

◆ read()

uint16_t ComSquare::Debugger::CGramDebug::read ( uint8_t  addr)

Read data at the CGRAM address send it to the debugger.

Parameters
addrThe address to read from.
Returns
The color value in BGR, looks like this xbbbbbgggggrrrrr.

◆ tileClicked()

void ComSquare::Debugger::CGramDebug::tileClicked ( const QModelIndex &  index)

Update call updateInfoTile with the correct address.

◆ updateInfoTile()

void ComSquare::Debugger::CGramDebug::updateInfoTile ( int  row,
int  column 
)

Update the text fields with corresponding tile info.

Member Data Documentation

◆ _model

CGramModel ComSquare::Debugger::CGramDebug::_model
private

The Log visualizer model for QT.

◆ _ppu

ComSquare::PPU::PPU& ComSquare::Debugger::CGramDebug::_ppu
private

A reference to the ppu.

◆ _snes

SNES& ComSquare::Debugger::CGramDebug::_snes
private

A reference to the snes (to disable the debugger).

◆ _ui

Ui::CgramView ComSquare::Debugger::CGramDebug::_ui
private

A widget that contain the whole UI.

◆ _window

ClosableWindow* ComSquare::Debugger::CGramDebug::_window
private

The QT window for this debugger.


The documentation for this class was generated from the following files: