Mihai Varga
f8c0f0b143
loleaflet: added option to fire 'updatescrolloffset' when scrolling
2015-08-12 19:43:15 +03:00
Mihai Varga
e7cd3a75ef
loleaflet: getDocSize method for getting the size in pixels
2015-08-12 19:22:26 +03:00
Mihai Varga
e3ae95bfc9
loleaflet: get numberOfPages/Parts and getCurrentPart/Page mehtods
2015-08-12 19:16:34 +03:00
Mihai Varga
6d12b870fb
loleaflet: removed an extra mouse down event
2015-08-12 19:12:12 +03:00
Mihai Varga
b11f4ca1d8
loleaflet: map focus methods
2015-08-12 18:23:15 +03:00
Mihai Varga
cd83b92370
loleaflet: rename 'searchnotfound' event to 'search'
...
Also added 'originalPhrase' and 'count' members to the event
2015-08-12 18:06:49 +03:00
Mihai Varga
653aa2c9ea
loleaflet: tilebench cleanup
2015-08-11 17:29:38 +03:00
Mihai Varga
079b8c562f
loleaflet: script to launch more clients
...
I think we need to use chrome as firefox doesn't load inactive tabs.
And also we need to load the clients (chrome tabs) synchronously as
starting too many tabs at once will cause it to fail.
2015-08-11 17:21:25 +03:00
Mihai Varga
f9a7c80031
loleafet: document loading test.
...
Opening loadtest.html in the browser launches a 'client' that opens
several documents and scrolls them
2015-08-11 17:20:12 +03:00
Mihai Varga
396efe4806
loleaflet: parse the error cmd before firing the error event
2015-08-11 11:37:26 +03:00
Mihai Varga
1708455928
loleaflet: don't decrease emptyTilesCount when prefetching
...
from other parts
2015-08-11 09:44:54 +03:00
Mihai Varga
aeac42bbc0
loleaflet: moved the socket initialization in the GridLayer
2015-08-11 09:28:19 +03:00
Mihai Varga
f961995d96
loleaflet: use 'resetselection' instead of mouse click
2015-08-10 10:25:55 +03:00
Mihai Varga
4f181fcfda
loleaflet: disable buttons in viewing mode
2015-08-10 10:25:55 +03:00
Mihai Varga
0a02f3fd7d
loleaflet: forgot to rename command state event
2015-08-10 10:25:55 +03:00
Mihai Varga
898765d5a8
loleaflet: also set the status to 100% when all tiles are loaded
2015-08-07 11:26:20 +03:00
Mihai Varga
d68f69a2b6
loleaflet: request lok session when entering edit mode
2015-08-07 11:12:39 +03:00
Mihai Varga
2e92526038
loleaflet: fixed jslint errors
2015-08-07 09:57:45 +03:00
Mihai Varga
1254dbd0b1
loleaflet: updated README with alltilesloaded event
2015-08-07 09:50:50 +03:00
Mihai Varga
4836668c66
loleaflet: requestLOKSession event handler
2015-08-07 09:49:20 +03:00
Mihai Varga
50399b8dba
loleaflet: fire 'alltilesloaded' as a statusindicator event
...
This is fired all the new (empty) tiles have been loaded.
This is not fire for prefetched tiles
2015-08-07 09:45:47 +03:00
Mihai Varga
d4f818522a
'requestloksession' message that starts a LOK process
...
Used to predict the user's interaction with the document and to
provide a better response time
2015-08-06 18:54:45 +03:00
Mihai Varga
843dab3476
loleaflet: dialog control
2015-08-06 18:07:38 +03:00
Mihai Varga
cd598cd106
loleaflet: always use text cursor except when dragging
2015-08-06 18:06:29 +03:00
Mihai Varga
1379326bcf
loleaflet: on error fire 'error' events
...
Those events are now handled by a removable control
2015-08-06 17:41:56 +03:00
Mihai Varga
e0dda7b928
loleaflet: notify when the document is initialized
2015-08-06 17:04:00 +03:00
Mihai Varga
35a1ac1d86
loleaflet: rename the global map variable to avoid referencing it
...
To avoid mistakes like writing 'map.fire' instead of 'this._map.fire'
2015-08-06 16:53:43 +03:00
Mihai Varga
6a7d33cdb5
loleaflet: update scroll offset after dragging
...
The scroll offset is updated on the 'moveend' event which occurs
after the document has been released. But we don't want to update the
scroll offset when scrolling
2015-08-06 16:48:41 +03:00
Mihai Varga
2dcd083b64
loleaflet: cancel the current selection when switching parts
...
And only invalidate a part of the previous slide.
For example, when clicking a title in a slide, a rectangle is drawn
around it. We we switch slides, that rectangle should be gone and
clicking outside of the slide solves this
2015-08-06 16:12:08 +03:00
Mihai Varga
9d957ccafb
loleaflet: forgot 'this' keyword
2015-08-05 19:07:42 +03:00
Mihai Varga
c36bca17f5
loleaflet: request tiles closer to the cursor first
2015-08-05 17:51:30 +03:00
Jan Holesovsky
527821597f
Make the timestamps work also for non-file:// URLs.
2015-08-04 20:39:33 +02:00
Tor Lillqvist
47ee691084
Bump major.minor to 1.3 here in master
2015-08-04 20:58:07 +03:00
Mihai Varga
8798600292
loleaflet: don't change the view if the cursor is not visible
2015-08-04 18:19:02 +03:00
Mihai Varga
abd3f95a3d
loleaflet: don't scroll to cursor on zoom
...
Also, scroll to cursor in viewing mode too when changing pages
2015-08-04 14:14:14 +03:00
Mihai Varga
c4511f1c21
loleaflet: enable page switching in toolbar
2015-08-04 13:59:33 +03:00
Mihai Varga
364d9f8053
loleaflet: don't emit the updateparts event for text docs
2015-08-04 13:59:16 +03:00
Mihai Varga
52baf44298
loleaflet: only send the timestamp when provided
2015-08-04 13:37:18 +03:00
Mihai Varga
840c87851b
loleaflet: allow specifying the imagePath in the map init
...
imagePath is used to load images
2015-08-04 11:22:17 +03:00
Mihai Varga
305ddc4cc1
lolealfet: scrollOffset, scrollLeft, scrollTop methods
...
That scroll to an absolute value, and scrollOffset returns the
absloute offset relative to the beginning of the document
2015-08-04 11:09:10 +03:00
Henry Castro
bcda896389
loleaflet: add time stamp query parameter
2015-08-03 21:25:34 -04:00
Mihai Varga
b38d701b97
loleaflet: updated README to reflect new API
2015-08-03 19:19:38 +03:00
Mihai Varga
6eef93a288
loleaflet: send the updateparts message too
2015-08-03 19:08:06 +03:00
Mihai Varga
6812c6aa0b
goToPage API
...
in loleaflet, this is achived by invalidating the cursor and centering
the viewing area around it
2015-08-03 19:07:02 +03:00
Mihai Varga
7aa7c59074
loleaflet: handle parts in Writer
...
In Writer a part is a page and we only get notified about the
current page in which the cursor is. Internally (invalidation and
caching) we work with a single part (0)
2015-08-03 17:39:45 +03:00
Mihai Varga
6257081494
loleaflet: bump version after tarball
2015-08-03 10:15:09 +03:00
Mihai Varga
8e3cddb76b
loleaflet: bump version before tarball
2015-08-03 10:14:47 +03:00
Mihai Varga
a205889e35
loleaflet: update version in master branch
2015-07-31 21:01:40 +03:00
Mihai Varga
f2a950d885
loleaflet: handle the case when prefetching starts from the last part
2015-07-31 17:34:24 +03:00
Mihai Varga
99089a9dd3
loleaflet: don't create img object for prefetched tiles from other parts
...
Instead, add an extra parameter to the 'tile' command (prefetch=true)
to know to cache it when it arrives on the client
2015-07-30 15:11:00 +03:00
Mihai Varga
71750599bd
loleaflet: prefetch all tiles from other parts
...
not only those outside of the visible area
2015-07-30 14:41:22 +03:00
Mihai Varga
9339004176
loleaflet: no rectangle around toolbar buttons
2015-07-29 18:07:50 +03:00
Mihai Varga
f3d5b7c09c
loleaflet: UI tweaks
2015-07-29 17:02:32 +03:00
Mihai Varga
932ffaad68
loleaflet: delete invalid tiles outside of the visible area
2015-07-28 12:32:49 +03:00
Mihai Varga
f36431571e
loleaflet: start prefetching after 5s of inactivity
...
After 5s of inactivity request new tiles every 0.75s
2015-07-28 10:31:51 +03:00
Mihai Varga
1f88357aa8
loleaflet: tilebench - replay an editing session
...
Sends recorded key input commands to the server over a period
about 20 seconds and then requests and empty tile so that the
'alltilesloaded' event is fired in the end, letting us know that the
editing session finished.
2015-07-27 17:53:18 +03:00
Mihai Varga
88f32c61be
loleaflet: log method accepts a timestamp parameter
...
This will be used for tests, to add timestamps to tile requests
2015-07-27 17:51:45 +03:00
Mihai Varga
8d2afb39df
loleaflet: update max bounds when the document has a new size
2015-07-27 12:34:11 +03:00
Mihai Varga
04be35fa39
loleaflet: prefetch tiles when all empty tiles have loaded
2015-07-27 12:26:08 +03:00
Mihai Varga
746c3cb747
loleaflet: updated the test to work with the new scrollbar control
2015-07-27 10:34:07 +03:00
Mihai Varga
53f51a8650
loleaflet: dynamically create the parts preview and tabs divs
2015-07-24 18:13:58 +03:00
Mihai Varga
4f62d67b80
loleaflet: keyboard navigation now also fires 'scrollby' event
2015-07-24 17:17:49 +03:00
Mihai Varga
eca15f7c17
loleaflet: scroll API and event description in README
2015-07-24 16:04:38 +03:00
Mihai Varga
36ccbd84fb
loleaflet: scroll by 1/4 of the view size
2015-07-24 16:04:38 +03:00
Mihai Varga
d7019a0a79
loleaflet: reverse mouse wheel delta sign
...
So that a positive value would scroll down
2015-07-24 16:04:38 +03:00
Mihai Varga
bfa5eda503
loleaflet: renamed handler so we can later have a 'scroll' method
2015-07-24 16:04:38 +03:00
Mihai Varga
e7fc840c9e
loleaflet: mouse scroll is now triggered on the map div
...
Not on the document scrollbar container as before
2015-07-24 16:04:38 +03:00
Mihai Varga
d33f71d32d
loleaflet: renamed Map.ScrollWheelZoom to Map.Scroll
2015-07-24 16:04:38 +03:00
Mihai Varga
9b097f376d
loleaflet: add the scrollbars as a control to be easily removed
2015-07-24 16:04:38 +03:00
Mihai Varga
75155481ac
loleaflet: dynamically create the clipboard div
2015-07-23 17:17:56 +03:00
Mihai Varga
1609139908
loleaflet: removed console.log call
2015-07-23 16:55:38 +03:00
Mihai Varga
5f368efc32
loleaflet: test if loading a document and scrolling works
...
To run the test, open tilebench.html in a browser
2015-07-23 16:53:56 +03:00
Mihai Varga
d055317175
loleaflet: notify when all empty tiles have loaded
...
Will be used for testing
2015-07-23 15:45:08 +03:00
Mihai Varga
929cf9e061
loleaflet: disabled prefetching in editing mode
...
Because the server discards requests that are already in the queue so
we can no longer keep track of the number of requested/received tiles.
This count was used to determine if the user is idle (not editing) so
we can prefetch tiles in the meanwhile
2015-07-22 18:17:38 +03:00
Mihai Varga
b083470901
loleaflet: set calc sheet names in tabs
2015-07-22 15:26:19 +03:00
Mihai Varga
379072c0aa
loleaflet: parse the whole message if it's not a tile
...
Some messages might have new line characters
2015-07-22 15:08:11 +03:00
Mihai Varga
287ad122d7
loleaflet: fixed paragraph alignment commands
2015-07-22 10:48:31 +03:00
Mihai Varga
0492094b4e
loleaflet: notify the server about the current part
...
We need this because we want to prefetch tiles from other parts too.
In order to render a tile we need to call 'setPart' and then 'paintTile'
so this might change the current part in the document.
But when the user is editing/selecting we want to work on the part that
he/she is viewing
2015-07-21 19:07:00 +03:00
Mihai Varga
d89631a826
loleaflet: fixed uno commands for paragraph alignment
2015-07-21 11:21:10 +03:00
Mihai Varga
596ee77d5a
loleaflet: use the new invalidate x y widht height command
2015-07-21 11:08:36 +03:00
Mihai Varga
7fe1c2707f
loleaflet: notify when the connection dropped
2015-07-21 11:08:36 +03:00
Mihai Varga
f0f88381ca
loleaflet: prefetching from other parts causes too much invalidation
2015-07-17 12:59:00 +03:00
Mihai Varga
5aff27e3ce
loleaflet: code to prefetch tiles from other parts
2015-07-17 12:59:00 +03:00
Mihai Varga
369993b6ca
loleaflet: don't invalidate tiles from other parts
2015-07-17 12:59:00 +03:00
Mihai Varga
4ceab5f095
loleaflet: fixed js errors detected by lint
2015-07-16 18:18:30 +03:00
Mihai Varga
8d22cb3089
loleaflet: moved 'rectanglesToPolygons' method to PolyUtils
2015-07-16 17:47:40 +03:00
Mihai Varga
b159241e77
loleaflet: the cursor now has the same width (2px)
2015-07-16 17:33:18 +03:00
Mihai Varga
fe06836afb
loleaflet: prefetch fewer tiles in while editing
2015-07-16 16:51:44 +03:00
Mihai Varga
e8eedf3f25
loleaflet: moved mouse handler from TileLayer.js -> Map.Mouse.js
2015-07-16 16:15:30 +03:00
Mihai Varga
11063ea843
loleaflet: moved keyboard handler from TileLayer.js -> Map.Keyboard.js
2015-07-16 15:23:42 +03:00
Mihai Varga
71ff6dca64
loleaflet: log server - client communication
2015-07-16 14:02:49 +03:00
Mihai Varga
51592a4c53
loleaflet: log utility
...
It's used to log communication between the server and the client
It can print or download a csv formated file
2015-07-16 13:55:53 +03:00
Mihai Varga
d5f9250bd8
loleaflet: sendMessage method to replace map.socket.send
2015-07-16 13:20:11 +03:00
Mihai Varga
606ef3679e
loleaflet: saveas icon and dialog
2015-07-16 12:51:07 +03:00
Mihai Varga
1c16fd89f3
loleaflet: saveAs API
2015-07-16 12:51:07 +03:00
Mihai Varga
c335bda364
loleaflet: use vex dialog alert
2015-07-16 12:51:07 +03:00
Mihai Varga
6a68d35502
loleaflet: added vex dialog release 2.3.2
...
Github page: https://github.com/HubSpot/vex
MIT license: https://github.com/HubSpot/vex/blob/master/LICENSE
2015-07-16 12:51:07 +03:00
Mihai Varga
9c5cb3a140
loleaflet: added the document API in README
2015-07-16 12:51:07 +03:00
Mihai Varga
d7158497d5
loleaflet: save button
2015-07-16 12:51:07 +03:00
Mihai Varga
370109c6e4
loleaflet: parse and send part names from the status cmd
2015-07-15 18:49:32 +03:00
Mihai Varga
70d47f8d83
loleaflet: spreadsheet tab control
2015-07-15 15:12:44 +03:00
Mihai Varga
70ff917752
loleaflet: spreadsheet tabs html/css
2015-07-15 15:11:39 +03:00
Mihai Varga
242d66feea
loleaflet: make use of 'type' parameter from the status command
...
And only load the preview if type === 'presentation'
2015-07-15 10:23:03 +03:00
Mihai Varga
27b9e44386
loleaflet: dynamicaly make room for the preview in the left
2015-07-15 09:34:37 +03:00
Mihai Varga
e593ca0284
loleaflet: removed scroll inertia and fixed some tabs
2015-07-14 19:24:04 +03:00
Mihai Varga
8bcdf523e7
loleaflet: reduce the margin of the scrollbar
2015-07-14 19:19:37 +03:00
Mihai Varga
4083f96188
loleaflet: tiles preview sidebar control
2015-07-14 19:01:07 +03:00
Mihai Varga
9eedcb9dbe
loleaflet: tiles preview container
2015-07-14 18:52:38 +03:00
Mihai Varga
101858f5a3
loleaflet: getPartPreview method for the slides sidebar
...
An ID is being added to the tile request to mark the tile as destined
for the preview. This ID is also return from the server
2015-07-14 18:40:08 +03:00
Mihai Varga
16e3d615fd
loleaflet: preview container
2015-07-14 11:06:45 +03:00
Mihai Varga
449c0a387f
loleaflet: check already visited tiles when prefetching
...
In order to avoid duplicate tiles
2015-07-13 20:06:30 +03:00
Mihai Varga
786432b984
loleaflet: renamed 'previous' to 'prev'
2015-07-13 19:16:46 +03:00
Mihai Varga
c23aa66e54
loleaflet: don't toggle buttons on click
2015-07-13 18:03:41 +03:00
Mihai Varga
3bd2e8f778
loleaflet: renamed toggleState to toggleCommandState
2015-07-13 18:03:41 +03:00
Mihai Varga
f6a9a8ce04
loleaflet: selection control for viewing modes
2015-07-13 16:01:18 +03:00
Mihai Varga
0d41a804eb
loleaflet: enabled mouse selection in viewing mode
...
Mouse selection is enabled by by calling
map.enableSelection() which disables dragging and selection
can be disabled to re-enable dragging by calling
map.disableSelection()
The above only work for 'view' and 'readonly' mode
2015-07-13 15:53:02 +03:00
Mihai Varga
df0224964e
loleaflet: enable selection in viewing mode by dblclicking a word
2015-07-13 10:24:40 +03:00
Mihai Varga
c881fd2f8f
loleaflet: manually add controls in the html file
2015-07-10 18:01:19 +03:00
Mihai Varga
f24ea56603
loleaflet: updated the status indicator event
2015-07-10 16:51:50 +03:00
Mihai Varga
cd9433e192
loleaflet: setPart API for switching parts
...
Also added the 'updateparts' event which has the members:
currentPart and parts, indicating the current visible part
and the number of parts
2015-07-10 16:32:19 +03:00
Mihai Varga
761a1b320d
loleaflet: toggleState API for bold, italic, etc
...
Also added the event 'statechanged' with members
unoCmd and state
2015-07-10 15:27:30 +03:00
Mihai Varga
9eea9a63c7
loleaflet: exposed the setPermission API: map.setPermission(perm)
...
Where perm can be: edit, view or readonly
This also replaces the editMode and readOnly flags
2015-07-10 12:28:56 +03:00
Mihai Varga
146afb7921
loleaflet: exposed the 'search' API: map.search()
2015-07-10 11:00:53 +03:00
Mihai Varga
e1c3426b6e
loleaflet: keep prefetch borders if the view didn't change
...
Also, only prefetch tiles from a 5 tiles widte border. Not more because
it would freeze the UI
2015-07-10 09:25:32 +03:00
Mihai Varga
1cb3cfcc81
loleaflet: prefetch tiles around the current visible area
...
Tiles are prefetched from the border of the current visible area
and the border expands as the tiles are fetched. In the end covering
the whole document if left alone.
2015-07-10 09:04:03 +03:00
Mihai Varga
da568fc097
loleaflet: fixed short document panning in view mode
2015-07-09 15:09:25 +03:00
Mihai Varga
4e03f31276
loleaflet: start in readOnly mode option
2015-07-09 14:50:21 +03:00
Mihai Varga
1cea814fcb
loleaflet: removed unnecessary event
2015-07-09 09:32:24 +03:00
Mihai Varga
607ea7b453
loleaflet: fixed isValidTile method and when tilecanceling occurs
2015-07-09 09:30:28 +03:00
Mihai Varga
ddaa3b49c1
loleaflet: restore focus to the document after toolbar interaction
2015-07-09 09:28:41 +03:00
Mihai Varga
9321a7bb6d
loleaflet: disable fade Animation as it still causes problems
2015-07-08 14:45:18 +03:00
Mihai Varga
f374079d1a
loleaflet: toolbar control integration
2015-07-08 09:22:27 +03:00
Mihai Varga
104931362e
loleaflet: toolbar buttons control
2015-07-08 09:21:26 +03:00
Mihai Varga
96fff483a6
loleaflet: breeze toolbar icons
2015-07-08 09:14:45 +03:00
Mihai Varga
fea50859b9
loleaflet: send click event before doubleclick
...
Also, the click event is now fired instantly, previously we would've
waited 250ms to see if a dblclick occurs and we would cancel the first
2 clicks
2015-07-07 19:21:30 +03:00
Tor Lillqvist
8864d8432b
Bump minor version in this branch
2015-07-07 18:32:55 +03:00
Mihai Varga
5a61cbce46
loleaflet: get the rest of the message for textSelectionContent
...
Because initially the message is split by the first new line
character
2015-07-07 18:14:53 +03:00
Tor Lillqvist
1c53caf59e
Bump version after tarball
2015-07-07 17:50:12 +03:00
Tor Lillqvist
5c9967ae61
Bump version for tarball
2015-07-07 17:39:35 +03:00
Mihai Varga
1e27c29440
loleaflet: don't swap handles based on the cursor
2015-07-07 17:25:55 +03:00
Tor Lillqvist
de6eeb2645
Bump version after tarball
2015-07-07 11:13:33 +03:00
Tor Lillqvist
6e70c25daf
Bump version for tarball
2015-07-07 10:58:10 +03:00
Tor Lillqvist
f76878de5b
The file we produce based on this Makefile must depend on this Makefile
2015-07-07 10:57:58 +03:00
Mihai Varga
6b52fe1436
Set opacity to 1 when replacing a tile
2015-07-03 16:53:20 +03:00
Mihai Varga
1465f96938
Updated control description
2015-07-02 10:26:29 +03:00
Mihai Varga
d24d8bdc08
Switch viewMode->editMode by clicking in the document
2015-07-01 17:44:03 +03:00
Mihai Varga
a28c688a54
Fix some keys on chrome + preventDefault for tab
2015-07-01 12:27:21 +03:00
Mihai Varga
f312736e18
Skip fadeAnimation rather than disabling it
...
Disabling it might cancel currently fading in tiles
e.g. when scrolling we want fadeAnimation but if a tile invalidation
occurs that would completly disble fadeAnimation and new tiles requested
by scrolling will not load
2015-07-01 11:13:14 +03:00
Mihai Varga
d0586f9267
Maintain an invalidation count for each tile
...
Count how many times a tile has been invalidated.
For each inalidation increase the counter and for each arrival
of the new tile decrease it.
Only cache tiles with the invalidation count equal to 0 because
when zooming, we might cancel previous requests and the tiles in the
old zoom layer are no longer valid
2015-07-01 10:47:05 +03:00
Mihai Varga
d45a967e8d
Disable animFade when zooming + cache tiles from other zoom levels
2015-06-30 20:23:07 +03:00
Mihai Varga
fca2f030fe
Just mention that this will be the future toolbar
2015-06-30 15:05:32 +03:00
Mihai Varga
842c50d163
Update cursor on zoomend
2015-06-30 12:56:47 +03:00
Mihai Varga
d0f420bc81
Added a set of keys that need to be handled on the keydown event
2015-06-30 11:34:24 +03:00
Mihai Varga
1714df5f9e
Scroll to cursor position if it's out of the viewing area
2015-06-29 19:02:58 +03:00
Mihai Varga
1acd0ab78d
Ignore scroll event when zooming
...
That event is fired because of container resize.
This time I've added a method that resets the ignoreScroll flag
after 200ms if it's not reseted until then.
2015-06-29 18:42:20 +03:00
Mihai Varga
5ccda335ef
Start in edit mode by specifying it in the URL
...
http://.../host=host_address&file_path=file_path&edit=true
2015-06-29 16:43:47 +03:00
Mihai Varga
cfa8912063
Start loleaflet in viewing mode
2015-06-29 15:54:25 +03:00
Mihai Varga
96aa6e2048
Restore focus to textArea after dragging handle
2015-06-29 15:17:43 +03:00
Mihai Varga
2e5e63724e
Restored tile cache and removed invalid tiles from it
2015-06-29 12:45:14 +03:00
Mihai Varga
0c1a0b1b12
Fix firefox backspace after handling it for chrome
2015-06-29 12:14:26 +03:00
Mihai Varga
bed964c00d
Fix backspace input on chrome
2015-06-29 11:37:02 +03:00
Mihai Varga
a32278cb2b
Don't send 2 clicks before sending dblclick
...
Mouse events are now put in a queue. If within 250ms from the first
click arrives another, it's a double click, the previos and the current
clicks are canceled and a dblclick command is sent instead.
2015-06-29 10:54:32 +03:00
Henry Castro
ec2de8f46e
loleaflet: Disable mouse when dragging text.
2015-06-29 00:27:00 -04:00
Henry Castro
fa3b208b7f
loleaflet: Selecting table does not reset handler.
2015-06-29 00:18:04 -04:00
Henry Castro
d25ed90b1e
loleaflet: Disable mouse when dragging image.
2015-06-27 19:38:31 -04:00
Jan Holesovsky
551672c08d
Further tweaks to the cursor position.
2015-06-27 00:07:35 +02:00
Henry Castro
acfad75fc9
loleaflet: Fix cursor visible when changing part.
2015-06-26 15:38:58 -04:00
Mihai Varga
fe4ff86335
Temporarily disable client cache
...
Until we invalidate tiles from all zoom levels
2015-06-26 19:29:02 +03:00
Mihai Varga
9a3e71bad8
Keyboard input is handled in a hidden textarea
...
We now have a hidden text area where the user's input actually goes,
but it also fires events that are caught by leaflet and are sent
to the server
2015-06-26 19:20:21 +03:00
Mihai Varga
bee60c69e8
Move the cursor to the left by half its size
2015-06-26 14:34:18 +03:00
Mihai Varga
e901c6fe34
Set marker not clickable during mouse selection
2015-06-26 12:43:57 +03:00
Mihai Varga
56418272ca
Fixed keyCode on chrome
2015-06-26 12:04:04 +03:00
Mihai Varga
3dffe1ed62
This should handle doc resize caused by page deletion
2015-06-26 10:11:57 +03:00
Henry Castro
38133c7886
loleaflet: Swap selection handler.
...
In order to get continuous selection, the handlers are swapped if the
distance from cursor to handlers cross over.
2015-06-25 23:29:58 -04:00
Henry Castro
392a4bbb85
loleaflet: Reset drag flag when no selection.
2015-06-25 20:36:53 -04:00
Henry Castro
48d7af6378
loleaflet: Avoid mouse click on blinking cursor.
2015-06-25 16:37:57 -04:00
Jan Holesovsky
be6b89d1aa
More tweaks wrt. cursor blinking.
2015-06-25 18:31:33 +02:00
Mihai Varga
32d6f4fc5f
Detect document size changes
2015-06-25 19:24:57 +03:00
Henry Castro
fa89bbd55b
loleaflet: Set cursor blinking linear
2015-06-25 12:15:38 -04:00
Mihai Varga
7858402ea4
Removed hungarian notation
2015-06-25 16:15:04 +03:00
Mihai Varga
f5c8ec852d
Fixed eslint errors in Control.EditView.js
2015-06-25 15:50:53 +03:00
Mihai Varga
a72d66f08b
Fixed eslint errors in Control.Parts.js
2015-06-25 15:48:51 +03:00
Mihai Varga
fa3a5ab0c1
Fixed eslint errors in Control.Search
2015-06-25 15:36:02 +03:00
Mihai Varga
7be20044be
Fixed eslint errors in Control.StatusIndicator.js
2015-06-25 15:25:46 +03:00
Mihai Varga
d85b853e33
Fixed eslint errors in Cursor.js
2015-06-25 15:24:41 +03:00
Mihai Varga
a04a0c4a9f
Fixed eslint errors in GridLayer.js
2015-06-25 15:23:03 +03:00
Mihai Varga
64f6e5647d
Fixed eslint errors in TileLayer.js
2015-06-25 15:16:14 +03:00
Mihai Varga
dfbc34af2f
Fix eslint errors in Map.js
2015-06-25 14:19:06 +03:00
Mihai Varga
2f6dd8a3e7
Ignore src/scrollbar when running jake lint
2015-06-25 13:49:51 +03:00
Mihai Varga
e9691e6557
Enable fadeAnimated only when zooming/scrolling
2015-06-25 13:25:03 +03:00
Mihai Varga
d977411f0c
Request selection content after selection and a time delta
2015-06-25 13:09:38 +03:00
Mihai Varga
bc65f57a54
tile invalidation: don't disable animFrame
...
This affects zooming. Instead just skip the method that calls
the animation frame
2015-06-25 12:35:31 +03:00
Mihai Varga
4b996b644d
Copy event handler
...
I implemented the solution found here
http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard#answer-17528590
which basically creates an invisible text area, sets focus to it,
selects the text, enables firing the oncopy then focus is restored to
the document.
2015-06-24 13:32:56 +03:00
Mihai Varga
1e5269a467
Clicking on a selection should deselect it
2015-06-23 14:56:03 +03:00
Mihai Varga
e8d5cbbb1e
Replaced 'dragging' with 'isDragged' because 'dragging' is already used
2015-06-23 14:23:35 +03:00
Mihai Varga
b5cbd467d9
Cancel tile request for tiles out of the visible area
...
This provides a better scrolling experience
When a large enough number of tiles have been requested we know that
they will cover the whole viewing area so we're able to cancel the
previous (not yet fulfilled) requests
2015-06-23 13:44:35 +03:00
Mihai Varga
d2124f3078
Fixed invalid tiles bounds
2015-06-22 17:48:05 +03:00
Mihai Varga
c5e950bb41
Reverted ecfe65b37f
2015-06-22 17:45:43 +03:00
Mihai Varga
9c73ddbd08
Reverted 73974f7397
2015-06-22 17:45:10 +03:00
Mihai Varga
37b79bb643
loleaflet: update selection when dragging the selection handle
2015-06-22 11:37:39 +03:00
Henry Castro
c157e732f9
loleaflet: Add keydown event.
2015-06-19 09:50:24 -04:00
Henry Castro
dbc369c445
loleaflet: Use keymap to convert UNO key codes.
2015-06-19 09:32:27 -04:00
Henry Castro
bf17fde478
loleaflet: grow / shrink the text selection.
2015-06-18 21:10:38 -04:00
Henry Castro
f9b012ae45
loleaflet: grow / shrink the graphic selection.
2015-06-17 20:59:33 -04:00
Henry Castro
ac58e56de2
loleaflet: Disable Map keys when editing documents.
...
When the document is in editing mode, the default map
keys for zooming is disabled.
2015-06-15 22:12:30 -04:00
Henry Castro
d170ee598e
loleaflet: Add graphics selection.
2015-06-15 20:44:11 -04:00
Henry Castro
cceb663a64
loleaflet: keyup != keypress different keycodes
...
keypress and keyup are different keycodes values
and they differ some browser, keypress is the right
charcode and keycode values.
2015-06-14 19:16:04 -04:00
Henry Castro
21035bf438
loleaflet: Mimic gtktiledviewer editing
...
gtktiledviewer is the reference code to enable
editing for calc, writer and impress.
2015-06-11 19:48:08 -04:00
Henry Castro
ba6663d445
loleaflet: Added onkeyup event.
2015-06-10 21:59:09 -04:00
Jan Holesovsky
73974f7397
Fix JavaScript part of the tiles invalidation.
...
Now it is possible to type in in some cases, but for the full functionality,
tuning together with the server is necessary.
2015-06-10 18:58:34 +02:00
Jan Holesovsky
ecfe65b37f
Don't actually create the tiles until after we get them from the server.
...
When a tile is requested, don't create anything yet, just send the request.
Create the tile after we actually get it from the server.
This is in preparation for the cancellation of the tiles requests.
2015-06-10 18:13:34 +02:00
Henry Castro
007ebda88c
Fixed cursor position.
2015-06-06 18:17:37 -04:00
Jan Holesovsky
6df02b89d2
Enable editing in master again.
2015-06-05 16:03:06 +02:00
Tor Lillqvist
391d17831d
Bump minor number in this master branch
2015-06-05 16:28:49 +03:00
Tor Lillqvist
28d28dd67c
Bump version after tarball
2015-06-04 14:20:11 +03:00
Tor Lillqvist
41c5359d82
Bump version for tarball
2015-06-04 14:19:48 +03:00
Henry Castro
43425c406d
The keycode RETURN it is converted to click.
...
The keypress and keycode = 13 are converted to click event,
so Calc Application does not receive keypress RETURN, It is needed
to commit changes into cell.
2015-06-02 23:49:51 -04:00
Henry Castro
87ea674177
Convert Javascript keycode to UNO keycode
2015-06-02 23:43:18 -04:00
Henry Castro
78764623d8
Added blinking cursor
2015-06-02 23:38:00 -04:00
Henry Castro
afa848cf79
Disable fade animation, it does not work Calc.
...
When tile invalidation the fade animation set opacity to 0
so the tile is gray out.
2015-06-02 23:13:01 -04:00
Jan Holesovsky
def78817b0
TiledLayer should not clear the search bar's not found indication.
2015-05-31 21:47:15 +02:00
Jan Holesovsky
4342c5c9fb
Don't switch parts when we are in the correct one already.
2015-05-31 14:02:29 +02:00
Jan Holesovsky
0f9e24f77d
Disable invalidation for the moment, breaks slides.
2015-05-31 00:38:22 +02:00
Jan Holesovsky
6b743655cc
Small addition.
2015-05-31 00:37:20 +02:00
Jan Holesovsky
29ba14178e
Kill _abortLoading, causes loss of tiles in various scenarios.
...
loleaflet only triggers the loading of the tile, and the tile comes sooner or
later whatever we do, so the idea of aborting the loading does not work until
we have server support for that anyway - let's just kill that for now.
2015-05-30 23:34:32 +02:00
Jan Holesovsky
128bfcec10
Never ignore scroll.
...
After 'make clear-cache', sometimes causes losing scroll events (the user
moves the scrollbar, but the document does not move).
2015-05-30 04:12:03 +02:00
Mihai Varga
865f23d4e7
Use SearchItem.SearchStartPoint
2015-05-29 14:18:39 +03:00
Tor Lillqvist
7721409594
Post-release bump to 1.0.9
2015-05-29 09:41:25 +03:00
Tor Lillqvist
96e0b433a7
Bump version to 1.0.8 for tarball
2015-05-29 09:40:54 +03:00
Mihai Varga
2fa440c18f
Status indicator control
2015-05-28 18:43:29 +03:00
Mihai Varga
1d34f8f0a8
Set pointer cursor in viewmode
2015-05-28 17:43:53 +03:00
Mihai Varga
d8dd709377
setpart command handler
2015-05-28 17:22:45 +03:00
Henry Castro
e974f7c98c
Fixed EMPTY invalidattiles
2015-05-28 09:36:52 -04:00
Tor Lillqvist
6968bd1c3c
This should obviously be noarch
2015-05-28 11:19:20 +03:00
Mihai Varga
f999c337b9
Better differentiate commands, status vs statusindicator
2015-05-28 11:02:12 +03:00
Miklos Vajna
36c94140ef
loleaflet: document ~/.npmrc prefix setting
2015-05-27 16:09:04 +02:00
Tor Lillqvist
beb321d142
Revert attempts at sanity
2015-05-27 16:33:49 +03:00
Tor Lillqvist
6b91320f69
Intermediate non-working attempt at sanity
2015-05-27 16:29:57 +03:00
Tor Lillqvist
85e98d5231
Don't put superfluous stuff in the tarball, and bump version to 1.0.2
2015-05-27 14:58:41 +03:00
Henry Castro
6742cd8046
Capture invalidatetiles when keys are pressed
...
There is a problem with fade and opacity. they
are set to 0.
2015-05-26 23:51:52 -04:00
Henry Castro
9287074b75
Added cursor visible and invalidate cursor
2015-05-26 20:52:35 -04:00
Henry Castro
8d094fbf3f
Added keypress function to send keys
2015-05-26 20:37:11 -04:00
Mihai Varga
bd642c3d37
Make the view/edit text in the control unselectable
2015-05-26 20:56:27 +03:00
Mihai Varga
22232e070f
Dragging will be handled in the js code
2015-05-26 20:56:27 +03:00
Mihai Varga
77b8e0d126
Edit/View switching handler
2015-05-26 20:56:27 +03:00
Mihai Varga
7b79f0edd5
Control for switching between viewing and editing mode
2015-05-26 20:56:27 +03:00
Jan Holesovsky
bc02be9812
Don't cycle the parts, stop at 0 / max.
2015-05-25 18:43:18 +02:00
Mihai Varga
29d4296d12
Disable prev/next part buttons for the first/last part
2015-05-25 17:52:36 +03:00
Mihai Varga
57cb4fe243
Prune tiles after switching parts
2015-05-25 17:36:18 +03:00
Mihai Varga
bcdf048d6d
Merge adjacent selection rectangles into a single polygon
...
+ the document is scrolled to the average center of the rectangles
if that is out of the viewing area
2015-05-25 16:54:29 +03:00