mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
MemoryWidget: Split Actions into Import and Export.
This commit is contained in:
parent
89bc1649e3
commit
cf533df814
@ -246,17 +246,18 @@ void MemoryWidget::CreateWidgets()
|
|||||||
// Sidebar top menu
|
// Sidebar top menu
|
||||||
QMenuBar* menubar = new QMenuBar(sidebar);
|
QMenuBar* menubar = new QMenuBar(sidebar);
|
||||||
menubar->setNativeMenuBar(false);
|
menubar->setNativeMenuBar(false);
|
||||||
QMenu* menu_actions = new QMenu(tr("&Actions"));
|
|
||||||
|
|
||||||
menu_actions->addAction(tr("&Load file to current address"), this,
|
QMenu* menu_import = new QMenu(tr("&Import"));
|
||||||
&MemoryWidget::OnSetValueFromFile);
|
menu_import->addAction(tr("&Load file to current address"), this,
|
||||||
menu_actions->addSeparator();
|
&MemoryWidget::OnSetValueFromFile);
|
||||||
menu_actions->addAction(tr("Dump &MRAM"), this, &MemoryWidget::OnDumpMRAM);
|
menubar->addMenu(menu_import);
|
||||||
menu_actions->addAction(tr("Dump &ExRAM"), this, &MemoryWidget::OnDumpExRAM);
|
|
||||||
menu_actions->addAction(tr("Dump &ARAM"), this, &MemoryWidget::OnDumpARAM);
|
|
||||||
menu_actions->addAction(tr("Dump &FakeVMEM"), this, &MemoryWidget::OnDumpFakeVMEM);
|
|
||||||
|
|
||||||
menubar->addMenu(menu_actions);
|
QMenu* menu_export = new QMenu(tr("&Export"));
|
||||||
|
menu_export->addAction(tr("Dump &MRAM"), this, &MemoryWidget::OnDumpMRAM);
|
||||||
|
menu_export->addAction(tr("Dump &ExRAM"), this, &MemoryWidget::OnDumpExRAM);
|
||||||
|
menu_export->addAction(tr("Dump &ARAM"), this, &MemoryWidget::OnDumpARAM);
|
||||||
|
menu_export->addAction(tr("Dump &FakeVMEM"), this, &MemoryWidget::OnDumpFakeVMEM);
|
||||||
|
menubar->addMenu(menu_export);
|
||||||
|
|
||||||
sidebar_layout->setSpacing(1);
|
sidebar_layout->setSpacing(1);
|
||||||
sidebar->setLayout(sidebar_layout);
|
sidebar->setLayout(sidebar_layout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user