}
-void BufferView::repaint()
-{
- pimpl_->repaint();
-}
-
-
bool BufferView::fitCursor()
{
return pimpl_->fitCursor();
/// resize event has happened
void resize();
- /**
- * Repaint the pixmap. Used for when we don't want
- * to go through the full update() logic, just a simple
- * repaint of the whole screen.
- */
- void repaint();
/// reload the contained buffer
void reload();
textcache.clear();
}
- repaint();
+ update();
updateScrollbar();
owner_->updateMenubar();
owner_->updateToolbar();
resizeCurrentBuffer();
updateScrollbar();
owner_->updateLayoutChoice();
- repaint();
+ update();
}
}
}
-void BufferView::Pimpl::repaint()
-{
- // Regenerate the screen.
- lyxerr << "BufferView::repaint()\n";
- screen().redraw(*bv_);
-}
-
-
void BufferView::Pimpl::updateScrollbar()
{
if (!bv_->text) {
}
}
- if (widthChange || heightChange) {
- repaint();
- }
+ if (widthChange || heightChange)
+ update();
// always make sure that the scrollbar is sane.
updateScrollbar();
if (name == "bibitem") {
// We need to do a redraw because the maximum
// InsetBibitem width could have changed
-#warning please check you mean repaint() not update(),
-#warning and whether the repaint() is needed at all
- bv_->repaint();
+#warning check whether the update() is needed at all
+ bv_->update();
bv_->fitCursor();
}
} else {
///
bool loadLyXFile(string const &, bool);
///
- void repaint();
- ///
void workAreaResize();
///
void updateScrollbar();
+
+2003-08-01 André Pönitz <poenitz@gmx.net>
+
+ * BufferView.[Ch]:
+ * BufferView_pimpl.[Ch]:
+ * lyxfunc.C:
+ * text3.C: merge BufferView::repaint() and BufferView::update()
+
2003-08-01 José Matos <jamatos@lyx.org>
* buffer.[Ch]: file_format is no longer a buffer data element.
#endif
int cell = -1;
- bool changed = false;
for (int i = 0; i < tabular.rows(); ++i) {
int maxAsc = 0;
int maxDesc = 0;
if (lt->selection.mark()) {
lt->setSelection();
if (!lt->isInInset())
- view()->repaint();
+ view()->update();
}
view()->update(lt, BufferView::SELECT);
view()->switchKeyMap();
// if values really changed...but not very important right now. (Lgb)
// All visible buffers will need resize
view()->resize();
- view()->repaint();
+ view()->update();
}
break;
#endif
}
- view()->repaint();
+ view()->update();
break;
}
lt->setSelection();
if (lt->isInInset())
bv->updateInset(lt->inset_owner);
- else
- bv->repaint();
}
bv->update();
if (!bv->text->selection.set())
bv->update(BufferView::UPDATE);
bv->text->setSelection();
- bv->repaint();
+ bv->update();
bv->fitCursor();
break;
}