Tobias Hintze
10859a274b
Merge branch 'collaborate'
...
Conflicts:
programs/editor/index.html
webodf/lib/gui/Caret.js
webodf/tests/gui/AvatarTests.js
2012-11-13 08:45:26 +01:00
Tobias Hintze
0bec7b379d
add license headers
2012-11-09 12:35:35 +01:00
Tobias Hintze
bfcb3d8b8f
programs/editor: re-enable offline-editing
2012-11-09 12:30:36 +01:00
Tobias Hintze
8ff251ec4e
cosmetics
2012-11-09 12:29:41 +01:00
Friedrich W. H. Kossebau
5dd5b08ce4
Attach avatar handler to the right node (cursor element, not span element)
...
Fixes:
* avatar handler styles not being applied
* cursor blinking directly before avatar handler
and possibly also
* losing the avatar handler sometimes
2012-11-09 12:29:29 +01:00
Friedrich W. H. Kossebau
4cc7378039
Move setting of edited-by-avatar styles into SessionView
2012-11-09 12:26:51 +01:00
Tobias Hintze
f1e7811ff4
make userid parameter of editor_init; default to "you"
2012-11-09 12:26:12 +01:00
Tobias Hintze
eb43b6fb88
fix order of inits: UserModel, Replay, StartEditing
2012-11-09 12:26:05 +01:00
Friedrich W. H. Kossebau
0787d50b1e
Add NowjsUserModel object (still needs to be filled with data from server)
...
for now serves same user data as TrivialUserModel
2012-11-09 12:25:52 +01:00
Tobias Hintze
5e23162a0b
programs/editor: implement waiting for server-connection
2012-11-09 12:24:49 +01:00
Friedrich W. H. Kossebau
549dd93381
Turn setting the style of a paragraph into an operation (dirty initial hack)
2012-11-09 12:24:35 +01:00
Friedrich W. H. Kossebau
677c436ceb
Setting attribute "usercolor" on changed paragraphs no longer needed
2012-11-09 12:23:21 +01:00
Friedrich W. H. Kossebau
9985bb5a12
Fix paragraphstyle selector to only show named styles for a paragraph
...
Also use "___" as separator because the memberId is used directly in CSS
2012-11-09 12:23:12 +01:00
Tobias Hintze
cf548d1225
jslint fixes
2012-11-09 12:21:35 +01:00
Tobias Hintze
46d4024b61
programs/editor: load a document on start
2012-11-09 12:21:33 +01:00
Tobias Hintze
82f6693230
implement ping/pong in NowjsOptionRouter (needs memberid!)
2012-11-09 12:21:29 +01:00
Tobias Hintze
81face95a2
just jslint fixes
2012-11-09 12:21:22 +01:00
Friedrich W. H. Kossebau
fdeb90fda1
Make removeCursor work
2012-11-09 12:21:19 +01:00
Friedrich W. H. Kossebau
51570c2838
Unbreak styles combobox in programs/editor
...
Also
* emit signal for cursor move again
* turn signal names into string objects
* makes Session and Document take odfCanvas instead of just odfContainer
2012-11-09 12:21:08 +01:00
Friedrich W. H. Kossebau
af07d10ef4
Use term "cursor" instead of "member" when it is just about a cursor
2012-11-09 12:19:55 +01:00
Friedrich W. H. Kossebau
95dbc32c1d
Sync programs/editors with changes in webodf/libs
2012-11-09 12:19:32 +01:00
Aditya Bhatt
50403ed51c
font styles dialog tab
2012-11-02 16:13:29 +05:30
Jos van den Oever
d5e0a690f3
Add webodf.js that is a wrapper to load runtime.js.
...
This allows using the same index.html in development and deployment. Just replace the wrapper webodf.js with the compiled webodf.js.
2012-11-01 13:52:58 +01:00
Friedrich W. H. Kossebau
609ffa1c4b
make programs/editor work in Firefox (16)
...
* workaround for setting the modified-highlighting style
* add -moz variants of the animation style
2012-10-31 14:13:28 +01:00
Friedrich W. H. Kossebau
69e70c5639
turn function Session(...) from a broken constructor function to a normal createSession(...)
2012-10-31 14:13:24 +01:00
Friedrich W. H. Kossebau
019ec7f5b1
move start of document loading the requirement chain, to ensure avatars and widgets are present on "statereadychange"
2012-10-31 14:13:20 +01:00
Friedrich W. H. Kossebau
b09eb91312
Remove "Doc" placeholder text in index.html, to reduce flicker on loading
2012-10-30 11:52:42 +01:00
Friedrich W. H. Kossebau
e0ce31e94a
In editor_init() do a proper chaining of callbacks for required dojo compononts
...
Also set the content on the topPane at its creation
2012-10-30 11:52:38 +01:00
Aditya Bhatt
358a7a3bbc
New paragraph styles dialog
2012-10-23 17:35:05 +02:00
Aditya Bhatt
de734cd8ff
Fix typo
2012-10-23 16:44:26 +02:00
Friedrich W. H. Kossebau
517d2af424
Add german translations (and prepare russian one)
2012-10-23 16:32:10 +02:00
Aditya Bhatt
e9b4c483c2
Make translator 'global' by reparenting to document
2012-10-23 14:22:17 +02:00
Aditya Bhatt
712463e251
First attempt at translations
2012-10-23 13:54:05 +02:00
Aditya Bhatt
f39db20f7f
Remove log
2012-10-23 12:55:15 +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
a88ac87a3c
more visible colors
2012-10-23 12:11:51 +02:00
Aditya Bhatt
397ac61d78
Have awesome animated paragraph highlight for edited paragraphs
2012-10-23 12:10:05 +02:00
Aditya Bhatt
5edb34ce38
add active avatar logic
2012-10-23 09:57:05 +02:00
Aditya Bhatt
39c257701d
Make TestSession -> Session
2012-10-23 09:30:10 +02:00
Aditya Bhatt
8f37417536
Use Avatar's actual positioning instead of the mouse click to determine the place / paragraph being edited. Now the paragraph style selector will keep track of the current paragraph even when the avatar moves with the cursor
2012-10-22 16:35:50 +02:00
Aditya Bhatt
2411c05683
if there is no paragraph where we clicked, return handler
2012-10-22 11:33:44 +02:00
Aditya Bhatt
080f7a2163
Don't let other avatars grab focus when moving a current avatar or changing the document
2012-10-22 10:52:52 +02:00
Tobias Hintze
22b155f103
editor: move creation of "changed"-event from html to editor.js
2012-10-22 10:25:54 +02:00
Tobias Hintze
008acd9935
programs/editor: change loading and init()
2012-10-21 22:55:04 +02:00
Tobias Hintze
375457d233
update license and copyright headers
2012-10-21 20:46:20 +02:00
Aditya Bhatt
44f55e74ed
make avatar balloons move when document content is changed
2012-10-05 16:55:06 +05:30
Aditya Bhatt
ad6c99cb4d
better caret handle
2012-10-04 20:22:00 +05:30
Aditya Bhatt
58838bbd40
avoid race condition
2012-10-04 18:51:03 +05:30
Aditya Bhatt
c11f0ffa5b
add workaround comment
2012-10-04 18:04:35 +05:30
Aditya Bhatt
23352d5706
editable = false
2012-10-04 18:00:30 +05:30