mirror of https://github.com/mgba-emu/mgba.git
Qt: Add buttons to memory viewer
This commit is contained in:
parent
27545462e4
commit
9972ff5019
|
@ -104,6 +104,11 @@ MemoryView::MemoryView(GameController* controller, QWidget* parent)
|
|||
connect(controller, SIGNAL(gamePaused(mCoreThread*)), this, SLOT(update()));
|
||||
connect(controller, SIGNAL(stateLoaded(mCoreThread*)), this, SLOT(update()));
|
||||
connect(controller, SIGNAL(rewound(mCoreThread*)), this, SLOT(update()));
|
||||
|
||||
connect(m_ui.copy, SIGNAL(clicked()), m_ui.hexfield, SLOT(copy()));
|
||||
connect(m_ui.save, SIGNAL(clicked()), m_ui.hexfield, SLOT(save()));
|
||||
connect(m_ui.paste, SIGNAL(clicked()), m_ui.hexfield, SLOT(paste()));
|
||||
connect(m_ui.load, SIGNAL(clicked()), m_ui.hexfield, SLOT(load()));
|
||||
}
|
||||
|
||||
void MemoryView::setIndex(int index) {
|
||||
|
|
|
@ -210,6 +210,51 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QPushButton" name="copy">
|
||||
<property name="text">
|
||||
<string>Copy Selection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="paste">
|
||||
<property name="text">
|
||||
<string>Paste</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="save">
|
||||
<property name="text">
|
||||
<string>Save Selection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="load">
|
||||
<property name="text">
|
||||
<string>Load</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
|
Loading…
Reference in New Issue