mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
Rework 'dbg painting' to be in line with trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20568 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
39cd77bee0
commit
3ab50efe1f
@ -350,9 +350,11 @@ int QLPainter::text(int x, int y, docstring const & s,
|
||||
p.setLayoutDirection(Qt::LeftToRight);
|
||||
p.drawText(-lb, mA, str);
|
||||
QPixmapCache::insert(key, pm);
|
||||
/*
|
||||
LYXERR(Debug::PAINTING) << "h=" << h << " mA=" << mA << " mD=" << mD
|
||||
<< " w=" << w << " lb=" << lb << " tw=" << textwidth
|
||||
<< " rb=" << rb << endl;
|
||||
*/
|
||||
}
|
||||
// Draw the cached pixmap.
|
||||
drawPixmap(x + lb, y - mA, pm);
|
||||
|
@ -198,7 +198,6 @@ void RowPainter::paintInset(pos_type const pos, Font const & font)
|
||||
bool tmp = refreshInside;
|
||||
if (!in || !in->wide()) {
|
||||
refreshInside = true;
|
||||
LYXERR(Debug::PAINTING) << endl << "Paint inset fully" << endl;
|
||||
}
|
||||
if (refreshInside)
|
||||
inset->drawSelection(pi, int(x_), yo_);
|
||||
@ -1023,12 +1022,13 @@ void paintPar
|
||||
// 12 lines lower):
|
||||
if (lyxerr.debugging(Debug::PAINTING)) {
|
||||
if (text.isMainText(*pi.base.bv->buffer()))
|
||||
LYXERR(Debug::PAINTING) << "#";
|
||||
LYXERR(Debug::PAINTING) << "\n{" << inside <<
|
||||
repaintAll << row_has_changed << "}";
|
||||
else
|
||||
LYXERR(Debug::PAINTING) << "[" <<
|
||||
repaintAll << row_has_changed <<
|
||||
cursor_on_row << "]";
|
||||
LYXERR(Debug::PAINTING) << "[" << inside <<
|
||||
repaintAll << row_has_changed << "]";
|
||||
}
|
||||
|
||||
rp.paintAppendix();
|
||||
rp.paintDepthBar();
|
||||
rp.paintChangeBar();
|
||||
@ -1044,8 +1044,6 @@ void paintPar
|
||||
}
|
||||
// Re-enable screen drawing for future use of the painter.
|
||||
pi.pain.setDrawingEnabled(true);
|
||||
|
||||
LYXERR(Debug::PAINTING) << "." << endl;
|
||||
}
|
||||
|
||||
} // namespace anon
|
||||
@ -1054,6 +1052,7 @@ void paintPar
|
||||
void paintText(BufferView & bv,
|
||||
Painter & pain)
|
||||
{
|
||||
LYXERR(Debug::PAINTING) << "\t\t*** START DRAWING ***" << endl;
|
||||
BOOST_ASSERT(bv.buffer());
|
||||
Buffer const & buffer = *bv.buffer();
|
||||
Text & text = buffer.text();
|
||||
@ -1095,6 +1094,8 @@ void paintText(BufferView & bv,
|
||||
// lyxerr << "par descent: " << text.getPar(vi.p1).ascent() << endl;
|
||||
if (vi.y2 < bv.workHeight() && vi.update_strategy == FullScreenUpdate)
|
||||
pain.fillRectangle(0, vi.y2, bv.workWidth(), bv.workHeight() - vi.y2, Color::bottomarea);
|
||||
|
||||
LYXERR(Debug::PAINTING) << "\n\t\t*** END DRAWING ***" << endl;
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,6 +83,9 @@ What's new
|
||||
buffer. These are bound by default to C-M-t and C-M-d, for Postscript
|
||||
and DVI, respectively, for view, and to C-M-S-t and C-M-S-d, for update.
|
||||
|
||||
- The debug output obtained with the '-dbg painting' option has been
|
||||
modified to be more verbose and in line with the LyX development
|
||||
version.
|
||||
|
||||
** Bug fixes:
|
||||
*************
|
||||
|
Loading…
Reference in New Issue
Block a user