Hooked up logic for NT View attribute and hide palette functionality in Qt GUI
This commit is contained in:
parent
2d403fac3e
commit
a79400720b
2
TODO-SDL
2
TODO-SDL
|
@ -44,7 +44,7 @@ Memory Watch Window | NO | NO
|
||||||
TAS Editor | NO | NO |
|
TAS Editor | NO | NO |
|
||||||
6502 Debugger Window | YES | YES |
|
6502 Debugger Window | YES | YES |
|
||||||
PPU Viewer | YES | NO |
|
PPU Viewer | YES | NO |
|
||||||
Name Table Viewer | NO | NO |
|
Name Table Viewer | YES | NO |
|
||||||
Memory Hex Editor | YES | YES |
|
Memory Hex Editor | YES | YES |
|
||||||
Trace Logger | YES | NO |
|
Trace Logger | YES | NO |
|
||||||
Code/Data Logger | YES | NO |
|
Code/Data Logger | YES | NO |
|
||||||
|
|
|
@ -110,10 +110,17 @@ ppuNameTableViewerDialog_t::ppuNameTableViewerDialog_t(QWidget *parent)
|
||||||
showAttrbCbox = new QCheckBox( tr("Show Attributes") );
|
showAttrbCbox = new QCheckBox( tr("Show Attributes") );
|
||||||
ignorePaletteCbox = new QCheckBox( tr("Ignore Palette") );
|
ignorePaletteCbox = new QCheckBox( tr("Ignore Palette") );
|
||||||
|
|
||||||
|
//showScrollLineCbox->setChecked( attview );
|
||||||
|
showAttrbCbox->setChecked( attview );
|
||||||
|
ignorePaletteCbox->setChecked( hidepal );
|
||||||
|
|
||||||
grid->addWidget( showScrollLineCbox, 0, 0, Qt::AlignLeft );
|
grid->addWidget( showScrollLineCbox, 0, 0, Qt::AlignLeft );
|
||||||
grid->addWidget( showAttrbCbox , 1, 0, Qt::AlignLeft );
|
grid->addWidget( showAttrbCbox , 1, 0, Qt::AlignLeft );
|
||||||
grid->addWidget( ignorePaletteCbox , 2, 0, Qt::AlignLeft );
|
grid->addWidget( ignorePaletteCbox , 2, 0, Qt::AlignLeft );
|
||||||
|
|
||||||
|
connect( showAttrbCbox , SIGNAL(stateChanged(int)), this, SLOT(showAttrbChanged(int)));
|
||||||
|
connect( ignorePaletteCbox, SIGNAL(stateChanged(int)), this, SLOT(ignorePaletteChanged(int)));
|
||||||
|
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
refreshSlider = new QSlider( Qt::Horizontal );
|
refreshSlider = new QSlider( Qt::Horizontal );
|
||||||
hbox->addWidget( new QLabel( tr("Refresh: More") ) );
|
hbox->addWidget( new QLabel( tr("Refresh: More") ) );
|
||||||
|
@ -337,6 +344,16 @@ void ppuNameTableViewerDialog_t::scanLineChanged( const QString &txt )
|
||||||
//printf("ScanLine: '%s' %i\n", s.c_str(), PPUViewScanline );
|
//printf("ScanLine: '%s' %i\n", s.c_str(), PPUViewScanline );
|
||||||
}
|
}
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
void ppuNameTableViewerDialog_t::showAttrbChanged(int state)
|
||||||
|
{
|
||||||
|
attview = (state != Qt::Unchecked);
|
||||||
|
}
|
||||||
|
//----------------------------------------------------
|
||||||
|
void ppuNameTableViewerDialog_t::ignorePaletteChanged(int state)
|
||||||
|
{
|
||||||
|
hidepal = (state != Qt::Unchecked);
|
||||||
|
}
|
||||||
|
//----------------------------------------------------
|
||||||
void ppuNameTableViewerDialog_t::refreshSliderChanged(int value)
|
void ppuNameTableViewerDialog_t::refreshSliderChanged(int value)
|
||||||
{
|
{
|
||||||
NTViewRefresh = value;
|
NTViewRefresh = value;
|
||||||
|
|
|
@ -103,6 +103,8 @@ class ppuNameTableViewerDialog_t : public QDialog
|
||||||
void singleScreen1Clicked(void);
|
void singleScreen1Clicked(void);
|
||||||
void singleScreen2Clicked(void);
|
void singleScreen2Clicked(void);
|
||||||
void singleScreen3Clicked(void);
|
void singleScreen3Clicked(void);
|
||||||
|
void showAttrbChanged(int state);
|
||||||
|
void ignorePaletteChanged(int state);
|
||||||
void refreshSliderChanged(int value);
|
void refreshSliderChanged(int value);
|
||||||
void scanLineChanged( const QString &txt );
|
void scanLineChanged( const QString &txt );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue