72 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 6fa1f56f05 Move HTML rendering of logging out of normal BrowserRuntime 2015-03-14 01:37:32 +01:00
Friedrich W. H. Kossebau 651004d393 Fix JSLint issues in programs/benchmark. 2015-02-23 23:18:20 +01:00
Friedrich W. H. Kossebau 153dd629dc Fix JSLint issues in docnosis 2015-02-23 17:31:37 +01:00
Friedrich W. H. Kossebau c749ca8927 Code cleanups in programs/editor for issues found with JSLint 2015-02-23 17:31:37 +01:00
Friedrich W. H. Kossebau 46b4a89286 Remove currently unused RawDeflate 2014-06-20 16:22:35 +02:00
Friedrich W. H. Kossebau 6d5c5d7170 Replace inflating code in RawInflate.js with code from the pako project 2014-06-20 16:22:35 +02:00
Philip Peitsch a4c217ace8 Fix karma.conf.js updating on Windows
Karma.conf.js may contain \r's when checked out on Windows. Cope with
these when updating the karma configuration file content.
2014-06-07 02:09:56 +10:00
Satvik Kumar dac037b52c Fixed paths for files excluded from license check
On Windows the paths have backslashes causing any check against the array
of excluded files to fail. To solve this I used the path module to
normalize the file paths in the array of excluded paths for the license
string check.
2014-06-07 01:49:41 +10:00
Jos van den Oever 59f412dc64 Check javascript licenses during build configuration.
A check is run to make sure all licenses (with a few exceptions) are the same for the files that go into webodf.js.
2014-06-04 12:48:01 +02:00
Friedrich W. H. Kossebau 7f80e8e163 Normalize license headers of editor/benchmark/tests/firefox-addon/viewer source files
* remove @license tag, for consistency with library source files
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released stuff
* separate license header by empty line from following content
2014-06-02 17:49:46 +02:00
Friedrich W. H. Kossebau 4aeec35cfe Add one special license header to the compiled webodf.js 2014-06-02 12:29:13 +02:00
Friedrich W. H. Kossebau 97ff04b0a7 make Webodf version a global property on the new namespace webodf 2014-04-11 15:05:07 +02:00
Friedrich W. H. Kossebau 42c76534b4 Move creation of jsfileslist.txt into webodf/CMakeLists.txt 2014-04-09 11:43:15 +02:00
Philip Peitsch d227f4b6d1 Normalize lookup paths in updateJS 2014-02-18 22:31:23 +11:00
Philip Peitsch 14f1ded1b1 Fix various paths that must be denormalized on Windows in updateJS 2014-02-14 02:14:32 +11:00
Jos van den Oever feaba170e2 Rename the print() function to createDotFile(). 2014-02-12 17:49:38 +01:00
Jos van den Oever 2c6d6e1274 Also save the full dependency graph. 2014-02-12 17:27:24 +01:00
Jos van den Oever fbbd2900f4 Add colors to the graph. 2014-02-12 17:26:52 +01:00
Jos van den Oever 64531c4238 Do not exit before all files are written.
small edit to graph: interfaces are now always shown.
2014-02-12 17:26:52 +01:00
Jos van den Oever f7debea477 Create a dependency graph from manifest.json.
This is created at every run of the build system.
2014-02-12 17:26:52 +01:00
Jos van den Oever 9cbb71ec1f Remove dependencies that depend on other dependencies from manifest.json. 2014-02-12 17:26:52 +01:00
Jos van den Oever b328fd2e8c Make the webodf.js build 100% typed.
The build target needed for slowly moving towards 100% typed has been removed. Only the test files are not required to be typed now.
2014-02-08 18:37:32 +01:00
Jos van den Oever a45ab58c81 Make OperationTransformer and OperationTransformMatrix 100% typed.
Now all classes that are in use are 100% typed.
2014-02-08 18:03:04 +01:00
Jos van den Oever 59d2e09611 Make CaretManager and SessionView 100% typed. 2014-02-08 15:57:20 +01:00
Jos van den Oever bed3b62469 Make DirectFormattingController and SessionController 100% typed. 2014-02-08 14:48:22 +01:00
Jos van den Oever e632ed2ae6 Make a large number of controllers 100% typed. 2014-02-08 13:37:50 +01:00
Jos van den Oever c0368e5537 Make OperationRouter and TrivialOperationRouter 100% typed. 2014-02-08 10:38:04 +01:00
Jos van den Oever a1f86ac7b6 Make OperationFactory 100% typed. 2014-02-08 10:38:04 +01:00
Jos van den Oever 25fa630f0d Make some operation classes 100% typed. 2014-02-08 10:38:04 +01:00
Jos van den Oever ff013b1759 Make the operations OpAddAnnotation, OpAddCursor, OpAddMember, OpAddStyle, OpApplyDirectStyling, OpApplyHyperlink and OpInsertImage 100% typed. 2014-02-08 10:37:23 +01:00
Jos van den Oever 72a99e5a63 Make ops.OpSplitParagraph 100% typed. 2014-02-08 10:37:23 +01:00
Jos van den Oever a14d2735b2 Make ops.OpRemoveText 100% typed. 2014-02-08 10:37:23 +01:00
Jos van den Oever ffb52fbfa6 Make gui.SelectionView, ops.EditInfo, and ops.OpInsertText 100% typed. 2014-02-08 10:37:22 +01:00
Jos van den Oever f9734f5633 Make gui.EventManager 100% typed. 2014-02-08 10:37:22 +01:00
Jos van den Oever d664f5cbfa Use a simpler and reproducible algorithm for sorting classes in dependency order. 2014-02-08 10:35:18 +01:00
Jos van den Oever 1ac0d0050f Make ops.Member and ops.OdtDocument 100% typed. 2014-02-07 16:18:41 +01:00
Jos van den Oever eef8494743 Make ops.StepsTranslator 100% typed. 2014-02-07 16:18:41 +01:00
Jos van den Oever a637eb31bf Add support for asynchronous loading of classes.
Dependencies between classes are listed in the manifest.json files.
These files list what classes are required to load other classes. Yet, each eval
of a class can trigger loading of a required class. This means that the request
for a particular class is only sent out when the class that needs it is loaded.

This patch adds a new function:
    runtime.loadClasses(classNames, callback);

This function creates a list of all required classes before doing any loading.
If the environment is the browser and a callback is provided, the list of files
is added as <script/> tags to the DOM. This means the browser can request all
files at once. The callback is attached to the onload trigger of the last
<script/> tag.

If no callback is provided, the files are still loaded synchronously.

runtime.loadClass is still present but redundant, since the runtime already
knows what classes are needed for other classes.

odf.html is adapted to use the new class.
2014-02-07 15:38:09 +01:00
Jos van den Oever 9f9869509f Automatically update karma.conf.js.
When javascript files are changed, removed or added, the build system will
update karma.conf.js.
2014-02-06 15:39:18 +01:00
Jos van den Oever 8a171bb30f Make gui.TrivialUndoManager and gui.UndoStateRules 100% typed. 2014-02-05 15:28:06 +01:00
Jos van den Oever ca0f085055 Make gui.Caret, gui.UndoManager and ops.Operation 100% typed. 2014-02-05 15:28:05 +01:00
Jos van den Oever 01a6b908cc Make ShadowCursor independent from OdtDocument. 2014-02-05 14:24:25 +01:00
Jos van den Oever a9e64e645f Remove circular dependency between OdtDocument and OdtCursor.
OdtCursor does not depend on OdtDocument any more. In fact, it is not specific
to ODF any more so at some point it could be renamed.
2014-02-05 14:24:25 +01:00
Jos van den Oever 7f20a8a6c7 More verbose output for circular dependencies and small type fixes. 2014-02-05 09:23:56 +01:00
Jos van den Oever e76efab218 Add comments that explain the caching method. 2014-02-05 09:19:05 +01:00
Jos van den Oever 3f9e2ee02e Speed up JSLint checks by only checking files that have changed.
This speedup makes it feasible to run updateJS.js on every build invocation. This ensures that new javascript files are always picked up.
2014-02-04 16:11:18 +01:00
Jos van den Oever f0ed5a4f42 Do not store the list of js files in CMakeLists.txt.
The list of files changes on many commits and makes merging hard. This patch simply removes the list from the code and uses one that is generated and placed in the build directory.
2014-02-04 12:11:37 +01:00
Philip Peitsch 8c7de7c698 Refactor how style summary is retrieved to use cached values
When selecting or modifying large areas of content, the multiple
style information lookup becomes quite expensive. These can be greatly
sped up by using a common cached value + associated query object
instead.
2014-01-29 00:46:52 +11:00
Philip Peitsch 012f7d98b4 Implemented faster & more robust cursor position fixing logic
Existing behaviour was slow if the cursor has a large distance between
the
anchor and focus nodes. It also tended to lose the first letter when
right
near the start of a paragraph or root boundary.

New logic avoids the need for expensive positional lookups, instead
exploiting the fact that the actual step value of the cursor is expected
to be unmoved. This allows the start and end points of the range to be
simply moved to their nearest valid step.

* Re-ordered ambiguous elements in test
"Remove_DeleteLastCharacterInSpan"

Fixes issue #261
2014-01-15 11:29:49 +11:00
Jos van den Oever 819ea5cac8 Sort paths to read files to make the output of updateJS.js more stable. 2013-12-20 17:32:49 +01:00