Commit graph

6385 commits

Author SHA1 Message Date
Szymon Kłos
b94e9773f7 notebookbar: cache writer references tab
Change-Id: I239efd1506c1130e92ca5d503caf42eadb48524d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
882fbd0e96 notebookbar: cache writer layout tab
Change-Id: I3c2b505c610008436ad7b2d06071a006ef5f37b5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e24b927eb1 autofilter: partial updates support
Change-Id: If2c67954e044bce1fc7338e86c1dca9b0a945380
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
01fb800043 notebookbar: don't create containers for partial updates
Change-Id: I025533ca48ca100bd7da1a48b21d7eb3f59e3bf4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
5af69a6ccd jsdialog: use one instance of notebookbar builder
+ setup windowId which is received from core

Change-Id: Iefc726a2e547d79adca669768bd3c606cb3151bb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
1f1d509ecf jsdialog: don't use static members
Change-Id: Ie0284a3c53219fcadfc63972d9ffc9188fc29175
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
06124d774e jsdialog: tabcontrol update to handle all tabs JSON
if JSON has more tabs - build in dedicated containers
if JSON has only one tab - build old old way

Change-Id: Ic960d6976ccdf60c48ca0057fdaa0ff115fca708
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
830d9408dc jsdialog: use partial updates for notebookbar
Change-Id: Iccf43dcb434695dc2be8d72f8e6fd43a659d1af0
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
b896700c3a jsdialog: accept boolean
Change-Id: Ia81f0601fdf82292991f4d00c290a9b88e217b23
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
acfce03a21 fontwork dialog: center on screen
we first create it without any content so foce the correct size
to correctly calculate position

Change-Id: I08d6a4c8ec42d5515ddd11cec508cb222d4c6ec8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
e079b779fe jsdialog: partial updates support for listbox
Change-Id: I75a7449a053f056c6212ff4db471b22f71228936
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
40e171e726 jsdialog: partial updates support for expander
Change-Id: I398cbacb12d2342fa27df9ad4fce9e6db0c37eb2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
6d2b234659 jsdialog: accept also boolean enabled state
Change-Id: Id991e3a6d488e0be282f5f9ad333a567632f6c67
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
96eecc4fe6 jsdialog: fix button state handling
Change-Id: I9f91ce63a5ae8d3dbdde3257c4487995920d3277
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
f8c64ec0d5 jsdialog: remove all chars instead of only first
Change-Id: Ic819167db66f97e3a4967f85bc41f5f5554fd88f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
3796f19c15 jsdialog: partial updates for DrawingArea
Change-Id: I47ccc8afc06d27460a1c5e64dd10c0444fc03250
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Gökay Şatır
500ba660e9 CanvasSectionContainer: Add background color and border color.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I5d34e5ec9a1caa26ecee3dbc9dc23fb43423e29b
2021-01-21 13:48:13 +03:00
mert
8100a01c9c Fix typo that causes insertpage not to work
Change-Id: I3c0e2e2e4ef5c639c22e7562bc5602ebfea06bef
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-21 10:22:58 +01:00
mert
75f1cc3705 added insert connectors popup dialog
Change-Id: If97eb79bd697fe2e2b9cb86cbc1643e5890bf626
Signed-off-by: mert <mert.tumer@collabora.com>
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
2b5c00c861 Allow insert, delete, duplicate page for drawings
We restrict insert/delete/duplicate page (slide) only to
presentations, but they also work the in the same way for
drawings. This changes the restrictions to also take drawings
into account for this actions.

Change-Id: Ia9a3627d2144a6813f341ab8a8287743abad475a
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
6d58f0f394 Change "Slide" menu entry to "Page" for drawings
Change-Id: I25febf4287df868d4755658af992be3031e064cd
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
a478dc4229 Cleanup menubar entries for drawing (remove presentation specific)
Change-Id: If98719cfb37c05bedbeee7f239f931c769278834
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
bf0daa2dce Use own icon for drawings, don't share with presentations
Change-Id: I6cecc9869d36bc1e45a4ed88344c62e0c9adac1d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
3fa52ac5a8 Duplicate the presentation menu entries for drawing
Currently the presentation and drawing menu entries use the same
definition, but as drawings are different with different terms,
it is best to separate the presentation and drawing entires
instead of handling the exceptions all the time.

Change-Id: I078eb4ebb5014a04614d20363042b3cd75e9a36d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
400432f159 modify the toolbar for drawings
Separate the toolbar from presentation and remove icons that are
valid for presentation only.

Change-Id: I0dd74f396326b838c9a65352978a771bdb5da13d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
aa6d8af042 Separate shortcuts online help for presentations and drawings
Change-Id: Ic6290ea43fc55e78a037ac3b774cb0eb090e8ba5
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Pranam Lashkari
005132da03 leaflet: support reordering sheet tabs via drag and drop
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibe4106aca08456410c4c524eeb8a630993737815
2021-01-19 14:14:22 -04:00
Henry Castro
7e0186600d loleaflet: makefile: fix builddir != srcdir
Change-Id: I97083c0a093a4038cb91dd618096eeb4292463fe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-18 17:31:19 -04:00
Rash419
bee45ebf72 leaflet: display correct number of characters in statusbar
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I93dc5c54abb3a43cdffe1b12ca3e22247ed22f67
2021-01-18 17:10:35 +02:00
Tamás Zolnai
c0ae7f8bb8 Fix "Cannot read property 'color' of undefined" error
Crash trace:
at NewClass.getViewColor (/src/map/Map.js:702:33)
at NewClass._onUpdateCellViewCursor (/src/layer/tile/TileLayer.js:1466:55)
at NewClass._onCellViewCursorMsg (/src/layer/tile/TileLayer.js:1450:8)
at NewClass._onMessage (/src/layer/tile/TileLayer.js:710:9)
at NewClass._onMessage (/src/layer/tile/CalcTileLayer.js:394:37)
at NewClass._onMessage (/src/core/Socket.js:916:24)

Caught by calc/sheet_operations multi-user test.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I56b686e8d9f27a407f1fef54808e4f65c99173f0
2021-01-18 13:36:26 +01:00
Gökay Şatır
137a757d72 CanvasSectionProps: Add an overview of sections.
We are drawing things from different files onto the same canvas.
CanvasSectionContainer is organising them. When they are too many, it is difficult to know about sections' important properties.
CanvasSectionProps keeps sections maintainable.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9e81104c30f30a47c02625ce9d6716a98958317c
2021-01-18 15:17:07 +03:00
Gökay Şatır
15bf787771 CanvasSectionContainer: Fixes.
Bugs related to ordering of sections are fixed.
addSection and createSection functions are separated.
contextMenu event is added.
Sections' drawing orders are updated for future uses.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89127c97ad7b7dac4b293c4108c44cb6c4427134
2021-01-17 18:56:27 +03:00
Dennis Francis
95a8028f00 On resize allow recomputation of section pos and size
by resetting the isLocated flag for each section.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0ad41f20219afd8b90050bd43223843ca280587d
2021-01-16 18:12:00 +05:30
Dennis Francis
10f70ae866 fix pixel offset between grid and row headers
Sections which are not yet expanded via locateSections() can interfere
with the hitLeft() and hitTop() for sections of same z-index depending
on order of addition. So lets skip the sections for computing hitLeft()
and hitTop(). This also avoids redoing locateSections() for all sections
everytime a new section is added.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7595f5b5cfaa61d8fcfe177edd4c605d3fb7b122
2021-01-16 18:12:00 +05:30
Dennis Francis
7cf060dfbb don't leave 1px empty space near headers
when there are no freeze-panes active.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id5b651d4b1e76cd14b725d125f813d93ed031ff8
2021-01-16 18:12:00 +05:30
Dennis Francis
34578ce3fd fix the debug tile-border rectangles in red
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I93b950a5f903ed5ed2713a518911f8e37eadddfc
2021-01-16 18:12:00 +05:30
Michael Meeks
136f20b386 Use jsdom to load and execute our CSS, HTML and JS.
Change-Id: Ia7414e1fd19bf7ebfa29274d1acac5cee4837341
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Michael Meeks
c7d0de0877 Start of using NodeJS to do load simulation.
Change-Id: Id27ff406adc2269665aca0bbb54dd2102a4c7c74
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Tamás Zolnai
d1118b43be Fix wrong view info when opening two views close in time.
The issue is that we passed viewinfo messaged to do _docLayer
in wrong order because of the too simple delaying mechanism.

Wrong scenario steps:
viewinfo-1 arrives: _docLayer is not initialized yet -> 100 ms delay.
viewinfo-2 arrives: _docLayer is initialized now -> pass to _docLayer.
viewinfo-1's timeout: _docLayer is initialized now -> pass to _docLayer

Better to use the more sophisticated delaying method.
See _tryToDelayMessage() and related methods. They keep the order
of the messages.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I335b350b1553cfdee573f7d2e57c86c4b8f9af84
2021-01-14 15:04:13 +01:00
mert
f72d394a02 Fix calc text-input focus problem on Android
Change-Id: Iacd279f741c35703807f14a9798fbe2ef0f45d50
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-14 11:27:12 +03:00
Szymon Kłos
fe5454faa6 popup: improve text layout
Change-Id: Id3700692706bb67b8e626b24a2ae9c10dff1f772
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-14 08:16:33 +01:00
Andreas-Kainz
79374db3ae Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I3ce2be9cc6362c09725fe1692e6853f195274211
2021-01-14 06:29:37 +01:00
Pedro Pinto Silva
ad87fb854d Fontwork: layout improvements
- iconview fix layout without using hard-coded margins
- fontwork: make sure the elements start at the same left position as the title and that they occupy the dialog evenly
- hide unnecessary label
- space-around when on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia92acf1cbf09a3e7c6e996f9a846163835b115af
2021-01-13 16:57:16 +01:00
Pedro Pinto Silva
04ca03925d Notebookbar: disable command: easier to scan its status
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5f89c40f65a111de1a08d6e55eaaa68499449ed3
2021-01-13 11:35:28 +01:00
Andreas-Kainz
1f5feb1534 Notebookbar: disable commands without gray background
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I539d70ab1ba07d27cf34b61a8bf1a333e0bc4531
2021-01-13 11:35:28 +01:00
Szymon Kłos
ddcc45860c jsdialog: TreeView doubleclick to activate row
Change-Id: I312770470bf05c07c85c7962ce97132558c031f6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
5aed87e10b Add fontwork dialog to the ui
Change-Id: I3c66f2e6db4fbfa5dd42484e260113e6233d62fd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
bfc91864c0 jsdialog: implemented IconView
Change-Id: Ifb27b008396cba9c4695058096ae4f1757fa0a26
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
8e6ea69206 jsdialog: draggable only using titlebar
Change-Id: I7ee2cf4f1bc0d39a13b8689e3ab1db395665d201
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00
Szymon Kłos
08d49d9e9a Mark current linespacing setting in menu
Change-Id: I283082d7d78359861a7920290e99f90393ef6588
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-13 09:46:22 +01:00