Commit Graph
40 Commits
Author SHA1 Message Date
Tobias Hintze 768bc1094c SessionImplementation: declare events 2012-11-09 11:31:11 +01:00
Tobias Hintze b0d1305496 add event system to SessionImplementation (emit/subscribe) 2012-11-09 11:27:46 +01:00
Tobias Hintze 1467184ebb SessionImplementation: remove obsolete createAvatar function 2012-11-09 11:27:41 +01:00
Friedrich W. H. Kossebau def456a6ca Extract creation of avatar from SessionImplementation.addMemberToSession into factory method
for now just test.js, breaks other usages of SessionImplementation
2012-11-09 11:27:11 +01:00
Tobias Hintze f4ad9986c6 wip-snapshot: start factory passing 2012-11-09 11:18:47 +01:00
Tobias Hintze c2abff25a0 first bits of refactoring SessionController / SessionImplementation 2012-11-09 11:14:10 +01:00
Jos van den Oever 8b428e2bc6 If the offset is zero and there is no TextNode, create one. 2012-10-23 15:07:56 +02:00
Aditya Bhatt 4371098d19 lint 2012-10-23 12:44:17 +02:00
Aditya Bhatt 7b0261ea00 True user tracking involves both cursor and focus tracking. Add avatarActivated event and use it in the paragraphStyles selector, so that when you click on another avatar, it's paragraph is selected 2012-10-23 12:32:26 +02:00
Aditya Bhatt 6e5caa6a27 Merge branch 'collaborate' of gitorious.org:webodf/webodf into collaborate 2012-10-23 12:12:05 +02:00
Aditya Bhatt 24c79a2ab8 Fix conflict and methodify getActiveAvatar
Conflicts:
	webodf/lib/ops/SessionImplementation.js
2012-10-23 12:09:39 +02:00
Jos van den Oever 3db5eed7c5 Avoid text being added to the Caret when typing. 2012-10-23 11:42:38 +02:00
Jos van den Oever e29a11c786 Change getFocussedAvatar to getActiveAvatar and make it return the right value. 2012-10-23 10:11:35 +02:00
Jos van den Oever d5705f6fc7 Make the active avatar a member of SessionImplementation state.
also fix some whitespace and other JSlint problems and add some function signatures.
2012-10-23 10:07:20 +02:00
Aditya Bhatt 5edb34ce38 add active avatar logic 2012-10-23 09:57:05 +02:00
Aditya Bhatt c2828f9d7f Merge branch 'collaborate' of gitorious.org:webodf/webodf into collaborate 2012-10-22 16:39:16 +02:00
Aditya Bhatt cb67594780 Use memberMoveCaret instead of just move() on mouse click, so we have one unified gateway to move carets. Fire an event containing the avatar's info whenever the avatar moves for others to intercept 2012-10-22 16:34:27 +02:00
Jos van den Oever e966700c7a Implement getPositionInTextNode. 2012-10-22 15:01:46 +02:00
Jos van den Oever 6f515c19c8 Speedup by using local definitions of return values. 2012-10-21 17:38:17 +02:00
Jos van den Oever f959545875 Use stricter typing. 2012-10-21 17:17:55 +02:00
Aditya Bhatt cdf9c05660 fix conflict 2012-10-21 15:38:19 +02:00
Aditya Bhatt d1ba31a6df webodf/lib/
use zero-length selection to get the clicked area (element + offset), and improve SelectionMover's step counter
2012-10-21 15:36:22 +02:00
Tobias Hintze 758333d210 update "@source:" references to gitorious.org/webodf
(as in master: de1a79c36f)
2012-10-21 12:18:15 +02:00
Jos van den Oever d1271871a7 Some progress on implementing the insertText operation. 2012-10-21 11:38:17 +02:00
Jos van den Oever 0a82df45d5 Add function signatures documentation to SessionImplementation.
This helps with finding errors.
2012-10-20 12:19:38 +02:00
Jos van den Oever 00dd7b1cd6 Add option to pass a key handler to an avatar. 2012-10-17 10:10:32 +02:00
Jos van den Oever 6e0192f1c7 Add functions for adding and removing paragraphs.
Also change session operations to return a boolean. This will later be used for making an implementation of a session that signals if certain operations are allowed or not. This is useful in operational transforms, unit tests and enabling or disabling parts of the ui.
2012-10-11 17:40:25 +02:00
Jos van den Oever ea840b7579 Add ability to create a new empty text odf document. 2012-10-11 13:07:44 +02:00
Jos van den Oever ac51bbc948 Make the session caret iterator move more nicely. 2012-10-03 09:01:14 +02:00
Jos van den Oever f90bfedd36 Use a SelectionManager to keep track of selections, positioniterators and selectionmovers.
This is needed because moving a cursor influences all the positionIterator.
2012-09-02 10:37:24 +02:00
Jos van den Oever 3efcbf70f4 Use one SelectionMover for all Avatars. 2012-09-02 10:22:48 +02:00
Jos van den Oever 8497b82c84 Also move through span elements and only move one avatar when clicking. 2012-08-31 16:31:41 +02:00
Jos van den Oever 97ab9bbfbe Work towards positioning the avatar by mouse click. 2012-08-29 23:30:40 +02:00
Jos van den Oever 566749728e Get avatar to move somewhat along with the caret. 2012-08-28 22:19:58 +02:00
Jos van den Oever b9ce3ae618 Make it possible to step more than one positions at once in SelectionMover. 2012-08-28 00:01:43 +02:00
Jos van den Oever e785aeed3f Add more avatar tests. 2012-08-21 19:23:43 +02:00
Jos van den Oever bd1d25fc4d Add a simple avatar test. 2012-08-21 19:23:43 +02:00
Jos van den Oever 9cbd4b2db5 Add an implementation of Selection.
Normally a document can have only one Selection. With collaboration we need more than one, so we add our own implementation of the same interface.
2012-08-09 17:21:22 +02:00
Jos van den Oever 6186336626 Make test file have two documents and add avatar icons. 2012-08-09 09:17:39 +02:00
Jos van den Oever c37feaaa03 Add a blinking caret for an avatar. 2012-08-08 21:29:30 +02:00