Minor Qt debugger coloring changes.
This commit is contained in:
parent
bcb620ccf9
commit
c7627d9d26
|
@ -2454,14 +2454,13 @@ void QAsmView::updateAssemblyView(void)
|
||||||
|
|
||||||
if ( symbolicDebugEnable )
|
if ( symbolicDebugEnable )
|
||||||
{
|
{
|
||||||
asmFlags |= ASM_DEBUG_SYMS;
|
asmFlags |= ASM_DEBUG_SYMS | ASM_DEBUG_REPLACE;
|
||||||
|
|
||||||
if ( registerNameEnable )
|
if ( registerNameEnable )
|
||||||
{
|
{
|
||||||
asmFlags |= ASM_DEBUG_REGS;
|
asmFlags |= ASM_DEBUG_REGS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//asmText->clear();
|
|
||||||
|
|
||||||
for (int i=0; i < 0xFFFF; i++)
|
for (int i=0; i < 0xFFFF; i++)
|
||||||
{
|
{
|
||||||
|
@ -4370,6 +4369,7 @@ void QAsmView::drawText( QPainter *painter, int x, int y, const char *txt )
|
||||||
void QAsmView::paintEvent(QPaintEvent *event)
|
void QAsmView::paintEvent(QPaintEvent *event)
|
||||||
{
|
{
|
||||||
int x,y,l, row, nrow, selAddr;
|
int x,y,l, row, nrow, selAddr;
|
||||||
|
int cd_boundary, asm_start_boundary;
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
QColor white("white"), black("black"), blue("blue");
|
QColor white("white"), black("black"), blue("blue");
|
||||||
QColor hlgtFG("white"), hlgtBG("blue");
|
QColor hlgtFG("white"), hlgtBG("blue");
|
||||||
|
@ -4408,7 +4408,13 @@ void QAsmView::paintEvent(QPaintEvent *event)
|
||||||
}
|
}
|
||||||
selAddr = parent->getBookmarkSelectedAddress();
|
selAddr = parent->getBookmarkSelectedAddress();
|
||||||
|
|
||||||
|
cd_boundary = (int)(2.5*pxCharWidth) - pxLineXScroll;
|
||||||
|
asm_start_boundary = cd_boundary + (10*pxCharWidth);
|
||||||
|
//asm_stop_boundary = asm_start_boundary + (9*pxCharWidth);
|
||||||
|
|
||||||
painter.fillRect( 0, 0, viewWidth, viewHeight, this->palette().color(QPalette::Window) );
|
painter.fillRect( 0, 0, viewWidth, viewHeight, this->palette().color(QPalette::Window) );
|
||||||
|
painter.fillRect( 0, 0, cd_boundary, viewHeight, this->palette().color(QPalette::Mid) );
|
||||||
|
painter.fillRect( asm_start_boundary, 0, (9*pxCharWidth), viewHeight, this->palette().color(QPalette::AlternateBase) );
|
||||||
|
|
||||||
y = pxLineSpacing;
|
y = pxLineSpacing;
|
||||||
|
|
||||||
|
@ -4425,7 +4431,7 @@ void QAsmView::paintEvent(QPaintEvent *event)
|
||||||
{
|
{
|
||||||
if ( l == asmPC->line )
|
if ( l == asmPC->line )
|
||||||
{
|
{
|
||||||
painter.fillRect( 0, y - pxLineSpacing + pxLineLead, viewWidth, pxLineSpacing, QColor("pink") );
|
painter.fillRect( cd_boundary, y - pxLineSpacing + pxLineLead, viewWidth, pxLineSpacing, QColor("pink") );
|
||||||
forceDarkColor = true;
|
forceDarkColor = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4434,7 +4440,7 @@ void QAsmView::paintEvent(QPaintEvent *event)
|
||||||
{
|
{
|
||||||
if ( asmEntry[l]->type != dbg_asm_entry_t::ASM_TEXT )
|
if ( asmEntry[l]->type != dbg_asm_entry_t::ASM_TEXT )
|
||||||
{
|
{
|
||||||
painter.fillRect( 0, y - pxLineSpacing + pxLineLead, viewWidth, pxLineSpacing, QColor("light blue") );
|
painter.fillRect( cd_boundary, y - pxLineSpacing + pxLineLead, viewWidth, pxLineSpacing, QColor("light blue") );
|
||||||
forceDarkColor = true;
|
forceDarkColor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4520,12 +4526,11 @@ void QAsmView::paintEvent(QPaintEvent *event)
|
||||||
y += pxLineSpacing;
|
y += pxLineSpacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
l = (int)(2.5*pxCharWidth) - pxLineXScroll;
|
|
||||||
pen = painter.pen();
|
pen = painter.pen();
|
||||||
pen.setWidth(3);
|
pen.setWidth(3);
|
||||||
pen.setColor( this->palette().color(QPalette::WindowText));
|
pen.setColor( this->palette().color(QPalette::WindowText));
|
||||||
painter.setPen( pen );
|
painter.setPen( pen );
|
||||||
painter.drawLine( l, 0, l, viewHeight );
|
painter.drawLine( cd_boundary, 0, cd_boundary, viewHeight );
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// Bookmark Manager Methods
|
// Bookmark Manager Methods
|
||||||
|
|
|
@ -1383,10 +1383,10 @@ guiColorPickerDialog_t::guiColorPickerDialog_t( QColor *c, QWidget *parent )
|
||||||
|
|
||||||
mainLayout->addWidget( colorDialog );
|
mainLayout->addWidget( colorDialog );
|
||||||
|
|
||||||
colorDialog->setCurrentColor( *c );
|
|
||||||
colorDialog->setWindowFlags(Qt::Widget);
|
colorDialog->setWindowFlags(Qt::Widget);
|
||||||
colorDialog->setOption( QColorDialog::DontUseNativeDialog, true );
|
colorDialog->setOption( QColorDialog::DontUseNativeDialog, true );
|
||||||
colorDialog->setOption( QColorDialog::NoButtons, true );
|
colorDialog->setOption( QColorDialog::NoButtons, true );
|
||||||
|
colorDialog->setCurrentColor( *c );
|
||||||
|
|
||||||
connect( colorDialog, SIGNAL(colorSelected(const QColor &)) , this, SLOT(colorChanged( const QColor &)) );
|
connect( colorDialog, SIGNAL(colorSelected(const QColor &)) , this, SLOT(colorChanged( const QColor &)) );
|
||||||
connect( colorDialog, SIGNAL(currentColorChanged(const QColor &)), this, SLOT(colorChanged( const QColor &)) );
|
connect( colorDialog, SIGNAL(currentColorChanged(const QColor &)), this, SLOT(colorChanged( const QColor &)) );
|
||||||
|
|
Loading…
Reference in New Issue