1
0
Fork 0

GUI: Added slots for changing watch type

This commit is contained in:
morsisko 2020-10-22 01:34:24 +02:00 committed by Duncan Ogilvie
parent c84f198539
commit 495205790e
2 changed files with 35 additions and 0 deletions

View File

@ -274,3 +274,33 @@ void WatchView::watchdogIsFalseSlot()
DbgCmdExecDirect(QString("SetWatchdog %1, \"isfalse\"").arg(getSelectedId()));
updateWatch();
}
void WatchView::setTypeUintSlot()
{
DbgCmdExecDirect(QString("SetWatchType %1, \"uint\"").arg(getSelectedId()));
updateWatch();
}
void WatchView::setTypeIntSlot()
{
DbgCmdExecDirect(QString("SetWatchType %1, \"int\"").arg(getSelectedId()));
updateWatch();
}
void WatchView::setTypeFloatSlot()
{
DbgCmdExecDirect(QString("SetWatchType %1, \"float\"").arg(getSelectedId()));
updateWatch();
}
void WatchView::setTypeAsciiSlot()
{
DbgCmdExecDirect(QString("SetWatchType %1, \"ascii\"").arg(getSelectedId()));
updateWatch();
}
void WatchView::setTypeUnicodeSlot()
{
DbgCmdExecDirect(QString("SetWatchType %1, \"unicode\"").arg(getSelectedId()));
updateWatch();
}

View File

@ -26,6 +26,11 @@ public slots:
void watchdogUnchangedSlot();
void watchdogIsTrueSlot();
void watchdogIsFalseSlot();
void setTypeUintSlot();
void setTypeIntSlot();
void setTypeFloatSlot();
void setTypeAsciiSlot();
void setTypeUnicodeSlot();
protected:
void setupContextMenu();