mirror of https://github.com/stella-emu/stella.git
added hotkey tooltips to debugger
This commit is contained in:
parent
c3ef18987b
commit
2f10781b6d
|
@ -32,38 +32,38 @@ DataGridOpsWidget::DataGridOpsWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
int xpos = x; int ypos = y;
|
int xpos = x; int ypos = y;
|
||||||
_zeroButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_zeroButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"0", kDGZeroCmd);
|
"0", kDGZeroCmd);
|
||||||
_zeroButton->setToolTip("Zero currently selected value");
|
_zeroButton->setToolTip("Zero currently selected value (Z)");
|
||||||
|
|
||||||
ypos += bheight + space;
|
ypos += bheight + space;
|
||||||
_invButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_invButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"Inv", kDGInvertCmd);
|
"Inv", kDGInvertCmd);
|
||||||
_invButton->setToolTip("Invert currently selected value");
|
_invButton->setToolTip("Invert currently selected value (I)");
|
||||||
|
|
||||||
ypos += bheight + space;
|
ypos += bheight + space;
|
||||||
_incButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_incButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"++", kDGIncCmd);
|
"++", kDGIncCmd);
|
||||||
_incButton->setToolTip("Increase currently selected value.");
|
_incButton->setToolTip("Increase currently selected value. (=, Keypad +)");
|
||||||
|
|
||||||
ypos += bheight + space;
|
ypos += bheight + space;
|
||||||
_shiftLeftButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_shiftLeftButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"<<", kDGShiftLCmd);
|
"<<", kDGShiftLCmd);
|
||||||
_shiftLeftButton->setToolTip("Shift currently selected value left");
|
_shiftLeftButton->setToolTip("Shift currently selected value left (,)");
|
||||||
|
|
||||||
// Move to next column, skip a row
|
// Move to next column, skip a row
|
||||||
xpos = x + bwidth + space; ypos = y + bheight + space;
|
xpos = x + bwidth + space; ypos = y + bheight + space;
|
||||||
_negButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_negButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"Neg", kDGNegateCmd);
|
"Neg", kDGNegateCmd);
|
||||||
_negButton->setToolTip("Negate currently selected value");
|
_negButton->setToolTip("Negate currently selected value (N)");
|
||||||
|
|
||||||
ypos += bheight + space;
|
ypos += bheight + space;
|
||||||
_decButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_decButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
"--", kDGDecCmd);
|
"--", kDGDecCmd);
|
||||||
_decButton->setToolTip("Decrease currently selected value");
|
_decButton->setToolTip("Decrease currently selected value (-, Keypad -)");
|
||||||
|
|
||||||
ypos += bheight + space;
|
ypos += bheight + space;
|
||||||
_shiftRightButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
_shiftRightButton = new ButtonWidget(boss, font, xpos, ypos, bwidth, bheight,
|
||||||
">>", kDGShiftRCmd);
|
">>", kDGShiftRCmd);
|
||||||
_shiftRightButton->setToolTip("Shift currently selected value right");
|
_shiftRightButton->setToolTip("Shift currently selected value right (.)");
|
||||||
|
|
||||||
// Calculate real dimensions
|
// Calculate real dimensions
|
||||||
_w = 2 * (bwidth+space);
|
_w = 2 * (bwidth+space);
|
||||||
|
|
|
@ -563,26 +563,31 @@ void DebuggerDialog::addRomArea()
|
||||||
|
|
||||||
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, "Step", kDDStepCmd, true);
|
bwidth, bheight, "Step", kDDStepCmd, true);
|
||||||
|
b->setToolTip("Ctrl+S");
|
||||||
b->setHelpAnchor("GlobalButtons", true);
|
b->setHelpAnchor("GlobalButtons", true);
|
||||||
wid2.push_back(b);
|
wid2.push_back(b);
|
||||||
buttonY += bheight + 4;
|
buttonY += bheight + 4;
|
||||||
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, "Trace", kDDTraceCmd, true);
|
bwidth, bheight, "Trace", kDDTraceCmd, true);
|
||||||
|
b->setToolTip("Ctrl+T");
|
||||||
b->setHelpAnchor("GlobalButtons", true);
|
b->setHelpAnchor("GlobalButtons", true);
|
||||||
wid2.push_back(b);
|
wid2.push_back(b);
|
||||||
buttonY += bheight + 4;
|
buttonY += bheight + 4;
|
||||||
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, "Scan +1", kDDSAdvCmd, true);
|
bwidth, bheight, "Scan +1", kDDSAdvCmd, true);
|
||||||
|
b->setToolTip("Ctrl+L");
|
||||||
b->setHelpAnchor("GlobalButtons", true);
|
b->setHelpAnchor("GlobalButtons", true);
|
||||||
wid2.push_back(b);
|
wid2.push_back(b);
|
||||||
buttonY += bheight + 4;
|
buttonY += bheight + 4;
|
||||||
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, "Frame +1", kDDAdvCmd, true);
|
bwidth, bheight, "Frame +1", kDDAdvCmd, true);
|
||||||
|
b->setToolTip("Ctrl+F");
|
||||||
b->setHelpAnchor("GlobalButtons", true);
|
b->setHelpAnchor("GlobalButtons", true);
|
||||||
wid2.push_back(b);
|
wid2.push_back(b);
|
||||||
buttonY += bheight + 4;
|
buttonY += bheight + 4;
|
||||||
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
b = new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, "Run", kDDRunCmd);
|
bwidth, bheight, "Run", kDDRunCmd);
|
||||||
|
b->setToolTip("Escape");
|
||||||
b->setHelpAnchor("GlobalButtons", true);
|
b->setHelpAnchor("GlobalButtons", true);
|
||||||
wid2.push_back(b);
|
wid2.push_back(b);
|
||||||
|
|
||||||
|
@ -594,6 +599,7 @@ void DebuggerDialog::addRomArea()
|
||||||
myRewindButton =
|
myRewindButton =
|
||||||
new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, LEFT_ARROW.data(), 7, 11, kDDRewindCmd, true);
|
bwidth, bheight, LEFT_ARROW.data(), 7, 11, kDDRewindCmd, true);
|
||||||
|
myRewindButton->setToolTip("Alt[+Shift]+Left");
|
||||||
myRewindButton->setHelpAnchor("GlobalButtons", true);
|
myRewindButton->setHelpAnchor("GlobalButtons", true);
|
||||||
myRewindButton->clearFlags(Widget::FLAG_ENABLED);
|
myRewindButton->clearFlags(Widget::FLAG_ENABLED);
|
||||||
|
|
||||||
|
@ -603,6 +609,7 @@ void DebuggerDialog::addRomArea()
|
||||||
myUnwindButton =
|
myUnwindButton =
|
||||||
new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
new ButtonWidget(this, *myLFont, buttonX, buttonY,
|
||||||
bwidth, bheight, RIGHT_ARROW.data(), 7, 11, kDDUnwindCmd, true);
|
bwidth, bheight, RIGHT_ARROW.data(), 7, 11, kDDUnwindCmd, true);
|
||||||
|
myUnwindButton->setToolTip("Alt[+Shift]+Right");
|
||||||
myUnwindButton->setHelpAnchor("GlobalButtons", true);
|
myUnwindButton->setHelpAnchor("GlobalButtons", true);
|
||||||
myUnwindButton->clearFlags(Widget::FLAG_ENABLED);
|
myUnwindButton->clearFlags(Widget::FLAG_ENABLED);
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,7 @@ TiaWidget::TiaWidget(GuiObject* boss, const GUI::Font& lfont,
|
||||||
// Fixed debug colors
|
// Fixed debug colors
|
||||||
xpos += myCOLUP0Color->getWidth() + 30; ypos = 10 + lineHeight + 6;
|
xpos += myCOLUP0Color->getWidth() + 30; ypos = 10 + lineHeight + 6;
|
||||||
myFixedEnabled = new CheckboxWidget(boss, lfont, xpos, ypos, "Debug Colors", kDbgClCmd);
|
myFixedEnabled = new CheckboxWidget(boss, lfont, xpos, ypos, "Debug Colors", kDbgClCmd);
|
||||||
|
myFixedEnabled->setToolTip("Enable fixed debug colors", Event::ToggleFixedColors);
|
||||||
myFixedEnabled->setTarget(this);
|
myFixedEnabled->setTarget(this);
|
||||||
addFocusWidget(myFixedEnabled);
|
addFocusWidget(myFixedEnabled);
|
||||||
|
|
||||||
|
|
|
@ -398,7 +398,7 @@ void DeveloperDialog::addVideoTab(const GUI::Font& font)
|
||||||
// debug colors
|
// debug colors
|
||||||
myDebugColorsWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT * 1, ypos + 1,
|
myDebugColorsWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT * 1, ypos + 1,
|
||||||
"Debug colors (*)");
|
"Debug colors (*)");
|
||||||
myDebugColorsWidget->setToolTip(Event::ToggleFixedColors);
|
myDebugColorsWidget->setToolTip("Enable fixed debug colors", Event::ToggleFixedColors);
|
||||||
wid.push_back(myDebugColorsWidget);
|
wid.push_back(myDebugColorsWidget);
|
||||||
ypos += lineHeight + VGAP + 2;
|
ypos += lineHeight + VGAP + 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue