Commit Graph
674 Commits
Author SHA1 Message Date
Jos van den Oever 16220f4507 Move signalMemberUpdated, signalMemberRemoved and signalMemberAdded from ops.OdtDocument to ops.Document. 2014-02-24 15:19:05 +01:00
Jos van den Oever b3c77bf307 Move signals CursorAdded, CursorRemoved and CursorMoved to ops.Document.
This makes SvgSelectionView independent from ops.OdtDocument.
2014-02-24 15:13:13 +01:00
Philip Peitsch c225ba36f9 Add multi-letter insertion at doc start to benchmark (post-cache prime) 2014-02-20 21:24:41 +11:00
Friedrich W. H. Kossebau 065d161cf0 Sort-out deps for editor-compiled.js-target build a little
* no longer copy all webodf files, unneeded
* move copying of other editor source files and webodf.js into own targets
2014-02-19 12:45:32 +01:00
Friedrich W. H. Kossebau 3224e5495d Use relative paths in dojoConfig 2014-02-19 12:44:51 +01:00
Friedrich W. H. Kossebau e0c240cdeb Remove unused old avatar images flower and pigeon 2014-02-19 12:44:42 +01:00
Friedrich W. H. Kossebau 07e5f5ea1e Remove duplicated runtime.libraryPaths setting in docnosis/index.html 2014-02-17 17:19:46 +01:00
Friedrich W. H. Kossebau 7f20c22627 Set runtime.currentDirectory/libraryPaths in faked webodf.js for out-of-source runs
Frees "production" code from adjustments for out-of-source developer code
2014-02-17 17:19:46 +01:00
Aditya Bhatt 4214259c6a Editor: Remove window event listeners on destroy(). 2014-02-17 14:51:32 +01:00
Aditya Bhatt ca2135d34f Make canvasContainer dodge the overlapping toolbar. 2014-02-17 14:51:32 +01:00
Aditya Bhatt 2b41f5b328 Toolbar polish:
* Make the toolbar absolutely positioned and full-width.
This should let it's contents properly reflow when the
screen is not wide enough.
* Add a little shadow.
2014-02-17 14:51:32 +01:00
Aditya Bhatt 61831d8e2d Fix toolbar positioning on body scroll.
When, after clicking in the text, the iOS keyboard
pops up, the entire editor body is scrolled upwards
because the window is shrunk, even if there was
no way to scroll it before.
This means that the toolbar slides upwards and out
of the visible part of the viewport.

This is unacceptable, therefore this commit introduces
a fix:
CSS-translate the toolbar when detecting a scroll. focusout,
or touchmove event.
2014-02-17 14:51:32 +01:00
Aditya Bhatt fe8fff71b8 Let the canvas's container have bouncy webkit scroll,
disable pinch-to-zoom on the editor and viewer.
2014-02-17 14:51:32 +01:00
Philip Peitsch 2df564f303 Handle absolute paths in nativeQTClient's application.qrc 2014-02-15 01:02:50 +11:00
Friedrich W. H. Kossebau dd6f6fa2eb Fix file headers missing AGPL copy note & @source not yet pointing to github 2014-02-12 15:58:15 +01:00
Friedrich W. H. Kossebau cb691213e6 No longer cursor insertion in SessionController.startEditing, fix cursor removal where missing 2014-02-12 01:22:26 +01:00
Friedrich W. H. Kossebau 927fcb7e8d Remove unmaintained adapter to nowjs-based server 2014-02-06 12:32:32 +01:00
Friedrich W. H. Kossebau 4824548860 Adapt PullboxOperationRouter to batch processing signals
Missing from 26a9252edb
2014-02-05 16:32:48 +01:00
Jos van den Oever f376bbfb78 Update EditorSession to the new document API. 2014-02-05 14:24:25 +01:00
Philip Peitsch eb3d8aefbf Batch up calls that refresh the canvas CSS, size or annotations
These calls are UI render-related operations, and don't need to be done
immediately after every operation. Batching these up and doing them all
once after all ops are processed greatly improves the performance of
paragraph alignment updates with multiple paragraphs selected.
2014-02-05 22:53:37 +11:00
Philip Peitsch ae0c695971 Add paragraph alignment to the benchmark
This is disabled by default because it is very very slow (8s @ 10pages)
2014-02-05 22:53:36 +11:00
Friedrich W. H. Kossebau d2671e2a00 @returns -> @return 2014-01-31 15:33:43 +01:00
Friedrich W. H. Kossebau 142052b986 Add link to editor's welcome.odt (for webodf.org of course :) ) 2014-01-31 13:22:48 +01:00
Aditya Bhatt 6196adb15f Enable virtual selections in Viewer.
This initializes the Session, SessionView,
and SessionController, without yet enabling
editing, so that cursor movements and therefore
virtual selections work.

Hide the caret and handle.
2014-01-30 17:13:59 +05:30
Philip Peitsch bb8daa3a9c Activate the undo manager in the performance benchmark 2014-01-24 10:22:20 +11:00
Philip Peitsch 6a7841d20e Allow background colour in benchmark to be set in the URL
Having different coloured results makes it easier to distinguish between
active instances of a benchmark (e.g., master + branch).
2014-01-24 10:22:20 +11:00
Philip Peitsch 678cc4c36c Redesign benchmark to be more usable on small screens (e.g., mobiles) 2014-01-23 23:55:09 +11:00
Philip Peitsch 23e2a7bd79 Remove non-useful benchmark step
Non-automated steps in a mostly automated benchmark is not the best
idea I ever had...
2014-01-23 23:55:09 +11:00
Philip Peitsch d92d02e510 Add bulk-operation benchmark steps
Add repeated insert, remove and move steps to see how behaviour scales.
2014-01-23 23:55:08 +11:00
lli 32f148930a Preserve the text style when splitting at the end of paragraph.
At the moment, splitting at the end of the following paragraph
<p style-name="standard">hello <span style-name="bold">world|</span></p>
will create a new paragraph like below
<p style-name="standard">|<span style-name="bold"></span></p>

The cursor is moved out of the span due to empty span is not considered as
a valid cursor position in the current design. this causes newly entered
text are not formatted correctly.

Merged DirectTextStyler and DirectParagraphStyler into
DirectFormattingController. These have become closely related concepts as
a result of changes in this patch.
2014-01-20 22:32:24 +11:00
Aditya Bhatt 6921bffe71 Rename TextManipulator to TextController 2014-01-15 13:37:47 +05:30
Aditya Bhatt 1c65c0eeec Rename ImageManager to ImageController 2014-01-15 13:37:47 +05:30
lli cde721f758 Updated the SessionController to use the same virtual selection in both edit and read only mode. 2013-12-19 10:39:42 +11:00
Philip Peitsch 3f2b2f0fb9 Support different selection view renderers
In certain cases it is useful to be able to swap out the technique used
to render cursor selections on the document. For example, SVG polygon
based rendering interacts badly with mouse events on the WebKit build
shipped on MacOS X 10.7.5.
2013-12-19 01:55:51 +11:00
lli 66e25e096d Move selection related operations into the new SelectionController.js 2013-12-18 23:26:30 +11:00
Philip Peitsch d38824ad80 Make cursor sub-element CSS styles component-specific
Previous implementation was using the element type (span or div) to
determine if the element was a handle or caret. This is problematic if
additional elements are placed inside the cursor node (as necessary for
proper IME support)
2013-12-18 11:05:31 +11:00
Aditya Bhatt bce63fe89a Fix de-DE translation for "Insert Image" 2013-12-17 13:19:47 +01:00
Aditya Bhatt b1dbc64d84 Add german translations for hyperlink UI. 2013-12-17 13:19:47 +01:00
Aditya Bhatt 5f056eb079 Fix hyperlink UI translations for english. 2013-12-17 13:19:47 +01:00
lli e1b8b4747d Hook up the HyperlinkClickHandler with ODFViewerPlugin 2013-12-17 17:59:17 +11:00
Friedrich W. H. Kossebau 60626b01dc Fix widget js files to only call runtime.loadClass(...) in the setup method, not at definition time 2013-12-16 23:52:59 +01:00
Philip Peitsch 9ed4ac0db4 Renamed HyperlinkManager to HyperlinkController 2013-12-13 23:35:51 +11:00
lli 353b4b68f1 Added editor buttons for applying or deleting hyperlinks 2013-12-13 17:40:22 +11:00
Friedrich W. H. Kossebau 3758ebf9e5 Add flag "showRemoveButton" to AnnotationViewManager, to not show the button if wanted 2013-12-12 18:07:42 +01:00
Philip Peitsch 2ec3d857ec Re-implement the selection commands using new StepsTranslator interfaces
This re-implementation also addresses problems when navigating passed
annotations as identified in issue #65 & #65.

This also fixes a large performance issue with extending or moving the
cursor via short-cut keys.
2013-12-11 00:50:25 +11:00
Aditya Bhatt c99e4d354e Add NLNet and KO logos to viewer's about dialog. 2013-12-09 18:55:40 +01:00
Philip Peitsch 085f4c2adc Add an apply direct formatting benchmark action
Additionally, the benchmark will now take configuration options via the
query parameters rather than after the hash.
2013-12-06 01:27:20 +11:00
Friedrich W. H. Kossebau 62db9e22fe Add API dox for Editor.addEventListener, with possible event ids and error codes 2013-12-03 18:32:40 +01:00
Friedrich W. H. Kossebau 50f18a109e For OperationRouter turn explicit subscription methods into generic ones + explicit state getters 2013-12-03 18:32:40 +01:00
Friedrich W. H. Kossebau 42c5a7c617 Export errors and other oprouter states in the Editor API, experimental use in collabeditor.js 2013-12-03 18:32:39 +01:00