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