mirror of https://github.com/stella-emu/stella.git
Start of the great colon purge.
This commit is contained in:
parent
5b13265772
commit
28b237794d
|
@ -34,12 +34,12 @@ AudioWidget::AudioWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
const int fontWidth = lfont.getMaxCharWidth(),
|
||||
fontHeight = lfont.getFontHeight(),
|
||||
lineHeight = lfont.getLineHeight();
|
||||
int xpos = 10, ypos = 25, lwidth = lfont.getStringWidth("AUDW: ");
|
||||
int xpos = 10, ypos = 25, lwidth = lfont.getStringWidth("AUDW ");
|
||||
|
||||
// AudF registers
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos+2,
|
||||
lwidth, fontHeight,
|
||||
"AUDF:", kTextAlignLeft);
|
||||
"AUDF", kTextAlignLeft);
|
||||
xpos += lwidth;
|
||||
myAudF = new DataGridWidget(boss, nfont, xpos, ypos,
|
||||
2, 1, 2, 5, Common::Base::F_16);
|
||||
|
@ -59,7 +59,7 @@ AudioWidget::AudioWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
// AudC registers
|
||||
xpos = 10; ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos+2, lwidth, fontHeight,
|
||||
"AUDC:", kTextAlignLeft);
|
||||
"AUDC", kTextAlignLeft);
|
||||
xpos += lwidth;
|
||||
myAudC = new DataGridWidget(boss, nfont, xpos, ypos,
|
||||
2, 1, 2, 4, Common::Base::F_16);
|
||||
|
@ -71,7 +71,7 @@ AudioWidget::AudioWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
// AudV registers
|
||||
xpos = 10; ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos+2, lwidth, fontHeight,
|
||||
"AUDV:", kTextAlignLeft);
|
||||
"AUDV", kTextAlignLeft);
|
||||
xpos += lwidth;
|
||||
myAudV = new DataGridWidget(boss, nfont, xpos, ypos,
|
||||
2, 1, 2, 4, Common::Base::F_16);
|
||||
|
|
|
@ -43,7 +43,7 @@ CpuWidget::CpuWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
|||
// Create a 1x1 grid with label for the PC register
|
||||
xpos = x; ypos = y; lwidth = 4 * fontWidth;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos+1, lwidth-2, fontHeight,
|
||||
"PC:", kTextAlignLeft);
|
||||
"PC ", kTextAlignLeft);
|
||||
myPCGrid =
|
||||
new DataGridWidget(boss, nfont, xpos + lwidth, ypos, 1, 1, 4, 16, Common::Base::F_16);
|
||||
myPCGrid->setTarget(this);
|
||||
|
@ -99,7 +99,7 @@ CpuWidget::CpuWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
|||
|
||||
// Add labels for other CPU registers
|
||||
xpos = x;
|
||||
string labels[4] = { "SP:", "A:", "X:", "Y:" };
|
||||
string labels[4] = { "SP ", "A ", "X ", "Y " };
|
||||
for(int row = 0; row < 4; ++row)
|
||||
{
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos + row*lineHeight + 1,
|
||||
|
@ -110,7 +110,7 @@ CpuWidget::CpuWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
|||
// Create a bitfield widget for changing the processor status
|
||||
xpos = x; ypos += 4*lineHeight + 2;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos+1, lwidth-2, fontHeight,
|
||||
"PS:", kTextAlignLeft);
|
||||
"PS ", kTextAlignLeft);
|
||||
myPSRegister = new ToggleBitWidget(boss, nfont, xpos+lwidth, ypos, 8, 1);
|
||||
myPSRegister->setTarget(this);
|
||||
addFocusWidget(myPSRegister);
|
||||
|
|
|
@ -43,9 +43,9 @@ RomWidget::RomWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
|||
// Show current bank state
|
||||
xpos = x; ypos = y + 7;
|
||||
t = new StaticTextWidget(boss, lfont, xpos, ypos,
|
||||
lfont.getStringWidth("Bank:"),
|
||||
lfont.getStringWidth("Bank"),
|
||||
lfont.getFontHeight(),
|
||||
"Bank:", kTextAlignLeft);
|
||||
"Bank", kTextAlignLeft);
|
||||
|
||||
xpos += t->getWidth() + 5;
|
||||
myBank = new EditTextWidget(boss, nfont, xpos, ypos-1,
|
||||
|
|
|
@ -38,12 +38,12 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
x += 5;
|
||||
const int lineHeight = lfont.getLineHeight();
|
||||
int xpos = x, ypos = y + 10;
|
||||
int lwidth = lfont.getStringWidth(longstr ? "Frame Cycle:" : "F. Cycle:");
|
||||
int lwidth = lfont.getStringWidth(longstr ? "Frame Cycle " : "F. Cycle ");
|
||||
int fwidth = 5 * lfont.getMaxCharWidth() + 4;
|
||||
|
||||
// Add frame info
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
longstr ? "Frame Count:" : "Frame:",
|
||||
longstr ? "Frame Count " : "Frame ",
|
||||
kTextAlignLeft);
|
||||
xpos += lwidth;
|
||||
myFrameCount = new EditTextWidget(boss, nfont, xpos, ypos-1, fwidth, lineHeight, "");
|
||||
|
@ -51,7 +51,7 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
|
||||
xpos = x; ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
longstr ? "Frame Cycle:" : "F. Cycle:",
|
||||
longstr ? "Frame Cycle " : "F. Cycle ",
|
||||
kTextAlignLeft);
|
||||
xpos += lwidth;
|
||||
myFrameCycles = new EditTextWidget(boss, nfont, xpos, ypos-1, fwidth, lineHeight, "");
|
||||
|
@ -66,10 +66,10 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
myVBlank->setEditable(false);
|
||||
|
||||
xpos = x + lwidth + myFrameCycles->getWidth() + 8; ypos = y + 10;
|
||||
lwidth = lfont.getStringWidth(longstr ? "Color Clock:" : "Pixel Pos:");
|
||||
lwidth = lfont.getStringWidth(longstr ? "Color Clock " : "Pixel Pos ");
|
||||
fwidth = 3 * lfont.getMaxCharWidth() + 4;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
"Scanline:", kTextAlignLeft);
|
||||
"Scanline ", kTextAlignLeft);
|
||||
|
||||
myScanlineCount = new EditTextWidget(boss, nfont, xpos+lwidth, ypos-1, fwidth,
|
||||
lineHeight, "");
|
||||
|
@ -77,7 +77,7 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
|
||||
ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
longstr ? "Scan Cycle:" : "S. Cycle:", kTextAlignLeft);
|
||||
longstr ? "Scan Cycle " : "S. Cycle ", kTextAlignLeft);
|
||||
|
||||
myScanlineCycles = new EditTextWidget(boss, nfont, xpos+lwidth, ypos-1, fwidth,
|
||||
lineHeight, "");
|
||||
|
@ -85,7 +85,7 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
|
||||
ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
"Pixel Pos:", kTextAlignLeft);
|
||||
"Pixel Pos ", kTextAlignLeft);
|
||||
|
||||
myPixelPosition = new EditTextWidget(boss, nfont, xpos+lwidth, ypos-1, fwidth,
|
||||
lineHeight, "");
|
||||
|
@ -93,7 +93,7 @@ TiaInfoWidget::TiaInfoWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
|
||||
ypos += lineHeight + 5;
|
||||
new StaticTextWidget(boss, lfont, xpos, ypos, lwidth, lineHeight,
|
||||
longstr ? "Color Clock:" : "Color Clk:", kTextAlignLeft);
|
||||
longstr ? "Color Clock " : "Color Clk ", kTextAlignLeft);
|
||||
|
||||
myColorClocks = new EditTextWidget(boss, nfont, xpos+lwidth, ypos-1, fwidth,
|
||||
lineHeight, "");
|
||||
|
|
|
@ -60,19 +60,23 @@ TiaWidget::TiaWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
addFocusWidget(myColorRegs);
|
||||
|
||||
xpos += myColorRegs->colWidth() + 5;
|
||||
myCOLUP0Color = new ColorWidget(boss, nfont, xpos, ypos+2, 1.5*lineHeight, lineHeight - 4);
|
||||
myCOLUP0Color = new ColorWidget(boss, nfont, xpos, ypos+2,
|
||||
uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myCOLUP0Color->setTarget(this);
|
||||
|
||||
ypos += lineHeight;
|
||||
myCOLUP1Color = new ColorWidget(boss, nfont, xpos, ypos+2, 1.5*lineHeight, lineHeight - 4);
|
||||
myCOLUP1Color = new ColorWidget(boss, nfont, xpos, ypos+2,
|
||||
uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myCOLUP1Color->setTarget(this);
|
||||
|
||||
ypos += lineHeight;
|
||||
myCOLUPFColor = new ColorWidget(boss, nfont, xpos, ypos+2, 1.5*lineHeight, lineHeight - 4);
|
||||
myCOLUPFColor = new ColorWidget(boss, nfont, xpos, ypos+2,
|
||||
uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myCOLUPFColor->setTarget(this);
|
||||
|
||||
ypos += lineHeight;
|
||||
myCOLUBKColor = new ColorWidget(boss, nfont, xpos, ypos+2, 1.5*lineHeight, lineHeight - 4);
|
||||
myCOLUBKColor = new ColorWidget(boss, nfont, xpos, ypos+2,
|
||||
uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myCOLUBKColor->setTarget(this);
|
||||
|
||||
// Fixed debug colors
|
||||
|
@ -88,7 +92,7 @@ TiaWidget::TiaWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
t = new StaticTextWidget(boss, lfont, xpos, ypos + 2, 2*fontWidth, fontHeight,
|
||||
dbgLabels[row], kTextAlignLeft);
|
||||
myFixedColors[row] = new ColorWidget(boss, nfont, xpos + 2 + t->getWidth() + 4,
|
||||
ypos + 2, 1.5*lineHeight, lineHeight - 4);
|
||||
ypos + 2, uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myFixedColors[row]->setTarget(this);
|
||||
}
|
||||
xpos += t->getWidth() + myFixedColors[0]->getWidth() + 24;
|
||||
|
@ -99,7 +103,7 @@ TiaWidget::TiaWidget(GuiObject* boss, const GUI::Font& lfont,
|
|||
t = new StaticTextWidget(boss, lfont, xpos, ypos + 2, 2*fontWidth, fontHeight,
|
||||
dbgLabels[row], kTextAlignLeft);
|
||||
myFixedColors[row] = new ColorWidget(boss, nfont, xpos + 2 + t->getWidth() + 4,
|
||||
ypos + 2, 1.5*lineHeight, lineHeight - 4);
|
||||
ypos + 2, uInt32(1.5*lineHeight), lineHeight - 4);
|
||||
myFixedColors[row]->setTarget(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue