Angus Leeming wrote:
Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
The following messages are really Buffer dependant and not BufferView dependant and should stay so IMHO:

lyx_cb.C(289): bv_.buffer()->message(_("Autosave failed!"));
lyx_cb.C(316): bv->buffer()->message(_("Autosaving current document..."));
lyx_cb.C(442): bv->buffer()->message(_("Running configure..."));
lyx_cb.C(451): bv->buffer()->message(_("Reloading configuration..."));
lyxfind.C(292): bv->buffer()->message(_("String not found!"));

Hum, not the last one obviously... (the patch is correct).

I don't really get why you need a signal. Why can't a BufferView.message function not call a WorkArea.message function? There's a one-to-one correspondence, no?

For now yes but I can very well imagine multiple WorkArea using the same BufferView.

Use-case: a teacher wants to show how to write a LyX document. The student just have to watch on their WorkArea what the teacher is doing. Only one WorkArea could be read-write at a time. All other WorkAreas would be watch only.

Sounds fun, doesn't it?

Abdel.

Reply via email to