Commit Graph
55 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 10b48a48a5 Move creation and housekeeping of the cursor objects to the world of SessionImplementation 2012-11-09 12:07:24 +01:00
Tobias Hintze 3653e13a42 implement OperationFactory and NowjsOperationRouter; add spec() to ops 2012-11-09 12:00:43 +01:00
Tobias Hintze cd5b09f731 create TrivialOperationRouter 2012-11-09 11:59:15 +01:00
Friedrich W. H. Kossebau 6c785c38d9 Move implementation of SessionImplementation.moveMemberCaret into OpMoveMemberCursor 2012-11-09 11:58:17 +01:00
Friedrich W. H. Kossebau 36b6891d14 Remove SessionImplementation.getLocalMemberid, should not be a property of the session object 2012-11-09 11:57:36 +01:00
Friedrich W. H. Kossebau add136763c Create OpRemoveMember for removing cursors/avatars 2012-11-09 11:57:23 +01:00
Friedrich W. H. Kossebau b69a7d94ac Restore old text input state, but now with SessionController and OpInsertText 2012-11-09 11:56:19 +01:00
Friedrich W. H. Kossebau fb46e0b011 Move click handling to SessionController (with a workaround for no cursors yet in Session object) 2012-11-09 11:55:40 +01:00
Tobias Hintze 91d80781a9 remove verbosity 2012-11-09 11:49:06 +01:00
Tobias Hintze b45ad3218a rename (Trivial)UserModel.myMemberId to getLocalMemberId and use it in session 2012-11-09 11:48:58 +01:00
Tobias Hintze 316c89f218 SessionImplementation: events-subscribe cleanup 2012-11-09 11:48:29 +01:00
Friedrich W. H. Kossebau 97e0e41a28 Move home of avatars into SessionView
Temporarily disables click handling
2012-11-09 11:48:07 +01:00
Friedrich W. H. Kossebau a728da8fbc turn avatar factory method into own class gui.AvatarFactory 2012-11-09 11:46:39 +01:00
Tobias Hintze 4e4e5b1658 TrivialUserModel 2012-11-09 11:44:34 +01:00
Tobias Hintze 690f8a86a8 SessionImplementation: remove obsolete addEditingAvatar (now a Op) 2012-11-09 11:40:39 +01:00
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