}
-void LyXView::redrawWorkArea()
-{
- lyxerr[Debug::WORKAREA] << "LyXView::redrawWorkArea" << std::endl;
- work_area_->redraw();
- updateStatusBar();
-}
-
-
WorkArea * LyXView::workArea()
{
return work_area_;
updateToolbars();
updateLayoutChoice();
updateWindowTitle();
- redrawWorkArea();
+ updateStatusBar();
+ work_area_->redraw();
}
connectBuffer(*work_area_->bufferView().buffer());
showErrorList("Parse");
}
- redrawWorkArea();
+ updateStatusBar();
+ work_area_->redraw();
return loaded;
}
if (errorsConnection_.connected())
disconnectBuffer();
+ bufferChangedConnection_ =
+ buf.changed.connect(
+ boost::bind(&WorkArea::redraw, work_area_));
+
errorsConnection_ =
buf.errors.connect(
boost::bind(&LyXView::showErrorList, this, _1));
void LyXView::disconnectBuffer()
{
+ errorsConnection_.disconnect();
+ bufferChangedConnection_.disconnect();
messageConnection_.disconnect();
busyConnection_.disconnect();
titleConnection_.disconnect();