Added hot key to close hex editor window by pressing Esc key. Added logic to open ppu viewer from name table editor.
This commit is contained in:
parent
1958daf6cb
commit
9c70a682b7
|
@ -918,7 +918,7 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
|
|||
|
||||
// File -> Close
|
||||
closeAct = new QAction(tr("Close"), this);
|
||||
//closeAct->setShortcuts(QKeySequence::Open);
|
||||
closeAct->setShortcut(QKeySequence(tr("Esc")));
|
||||
closeAct->setStatusTip(tr("Close Window"));
|
||||
connect(closeAct, SIGNAL(triggered()), this, SLOT(closeWindow(void)) );
|
||||
|
||||
|
|
|
@ -1218,9 +1218,9 @@ void ppuNameTableView_t::contextMenuEvent(QContextMenuEvent *event)
|
|||
{
|
||||
QAction *act;
|
||||
QMenu menu(this);
|
||||
QMenu *subMenu;
|
||||
//QMenu *subMenu;
|
||||
//QActionGroup *group;
|
||||
char stmp[64];
|
||||
char stmp[128];
|
||||
int tIdx, tx, ty;
|
||||
|
||||
convertXY2TableTile( event->pos().x(), event->pos().y(), &tIdx, &tx, &ty );
|
||||
|
@ -1233,7 +1233,7 @@ void ppuNameTableView_t::contextMenuEvent(QContextMenuEvent *event)
|
|||
|
||||
sprintf( stmp, "Open Tile %X%X in PPU Viewer", selTile.x(), selTile.y() );
|
||||
act = new QAction(tr(stmp), &menu);
|
||||
act->setShortcut( QKeySequence(tr("V")));
|
||||
//act->setShortcut( QKeySequence(tr("V")));
|
||||
connect( act, SIGNAL(triggered(void)), this, SLOT(openTilePpuViewer(void)) );
|
||||
menu.addAction( act );
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#include "Qt/dface.h"
|
||||
#include "Qt/input.h"
|
||||
#include "Qt/config.h"
|
||||
#include "Qt/HexEditor.h"
|
||||
#include "Qt/fceuWrapper.h"
|
||||
|
||||
#define PATTERNWIDTH 128
|
||||
|
@ -1261,6 +1262,7 @@ void ppuTileEditor_t::setCellValue( int y, int x, int colorIndex )
|
|||
}
|
||||
writeMemPPU( a+8, val );
|
||||
|
||||
hexEditorRequestUpdateAll();
|
||||
}
|
||||
//----------------------------------------------------
|
||||
void ppuTileEditor_t::showKeyAssignments(void)
|
||||
|
|
Loading…
Reference in New Issue