Il 02/01/2012 10:18, Tommaso Cucinotta ha scritto:
If you want to see just a preliminary hack that kind of works, please,
find it attached.
I forgot to mention: the files in qt4/ are still part of the Chat
capability patch.
For the collaborative editing, all the affected files are in src/support
and src/.
I don't pretend the design to be anyway correct, just a hack made for
fun :-).
Specifically, I think we need absolutely 2 views over the same buffer,
not just one,
in such a case :-), i.e., when accepting a connection from remote, we should
create a new BufferView. Similarly, when connecting to a remote LyX, we
should
create a new BufferView. Additionally, who initiates a connection to a
remote
instance, should also download from it the whole buffer over which to
work in
a new WorkArea. All things quite easy to add...
Also, mouse-related LFUNs just do not make sense to be forwarded remotely,
as they refer to mouse coordinates which are specific to the local instance.
However, they should be someway inhibited, otherwise the 2 views go easily
out of sync. Such things are more difficult to achieve, as due to the number
of LFUNs existing in LyX.
T.