Commit Graph

349 Commits

Author SHA1 Message Date
abakkk 463c1a4c5a update to Codeberg 2021-05-28 18:09:02 +02:00
abakkk 40f4f0b946 change license 2021-05-27 18:54:08 +02:00
abakkk 5df2f8b992 Merge branch 'pile' into 'face'
v11.1
2021-04-26 15:00:37 +02:00
abakkk d716a398dc version -> 11.1 2021-04-26 14:31:16 +02:00
abakkk 996a035017 update "How to draw an arrow" media in README 2021-04-26 14:30:36 +02:00
abakkk 92b8bddb6b simplify prefs getChildrenOf
GTK4 widgets are iterable.
2021-04-26 12:00:16 +02:00
abakkk 25e1f27ac9 make helper not blocking 2021-04-04 12:09:33 +02:00
abakkk 5ad5dfffd1 not to erase the text on Escape key pressed
Related to #60.
2021-03-11 09:37:17 +01:00
abakkk cb40739af7 override default handlers in prefs
Use GJS GObject overrides. Not to matter whether the signal exists.
2021-03-11 09:20:39 +01:00
O. Giesmann c87003101c Update draw-on-your-screen.po 2021-03-10 09:50:35 +01:00
abakkk e9abbbb1c4 Merge branch 'pile' into 'face'
v11

See merge request abakkk/DrawOnYourScreen!22
2021-02-20 00:26:42 +00:00
abakkk 41e7a9d547 version -> 11 2021-02-20 01:14:22 +01:00
abakkk 1a993dca38 update french localization 2021-02-20 01:13:39 +01:00
abakkk e470e2f40d fixes for old GS versions 2021-02-20 00:56:21 +01:00
abakkk 137742d471 adapt to Clutter API changes
device.get_coords() has been removed and seat.query_state() is unusable with null sequences.
2021-02-19 23:24:04 +01:00
abakkk d125d77d01 Gtk4 port
Tested with Gtk 4.1.0.
2021-02-19 23:23:58 +01:00
abakkk f087570eb5 minor, param renaming
"showTextRectangle" -> "showElementBounds" and
"drawTextRectangle" -> "drawElementBounds".
2021-02-19 23:21:35 +01:00
abakkk 27a398d0e1 add convenient marks for rotation and stretch transformations 2021-02-19 23:21:04 +01:00
abakkk ca6baf0dc8 minor, enumeration syntax 2021-02-19 23:20:57 +01:00
abakkk cb49c83799 add centered text alignment 2021-02-19 23:20:29 +01:00
abakkk 3223a6fdca return to start a new text line
`Shift + Return` was not compatible with the ibusCandidatePopup.

So the only way to "validate" a text element is to click outside the text area.

Related to #56.
2021-02-19 23:19:58 +01:00
abakkk 5698f3f7cb multi-line text elements
* Can browse and break lines anywhere
* Can past multi-line texts
* Do not need lineIndex anymore and grouped lines are preserved permanently

Related to #56
2021-02-19 23:19:50 +01:00
abakkk f18e8e6ac0 add toggle animations
* background
* grid
* square area
2021-02-19 23:19:41 +01:00
abakkk 0e6428404e Merge branch 'dev' into 'master'
v10

Closes #52

See merge request abakkk/DrawOnYourScreen!21
2020-10-21 09:40:31 +02:00
abakkk 5e14f261b3 version -> 10 2020-10-21 09:37:33 +02:00
abakkk e588728d3d Dot not use stateObj
Remove `Me.stateObj.areaManager`.
It caused errors on extension updated from ego (`JS ERROR: TypeError: Me.stateObj.areaManager is undefined`).
2020-10-21 09:33:40 +02:00
abakkk e99927d985 fix multi-monitor
Layer container allocation box is relative to the drawing area. So transform stage point before checking.

Fix 58677dc1.
Close #52.
2020-10-21 09:33:40 +02:00
abakkk baf5e7c968 hide square area outline
Hide the square area outline when the drawing area is not reactive.

Fix 58677dc1.
2020-10-21 09:33:40 +02:00
abakkk 28a9d79d03 fix french localization 2020-10-21 09:28:57 +02:00
O. Giesmann 1437091725 update deutsch localization
close !20
2020-10-16 11:06:02 +02:00
abakkk 022fb02556 update french localization 2020-10-12 11:32:22 +02:00
abakkk ea11a92689 Merge branch 'dev' into 'master'
v9

See merge request abakkk/DrawOnYourScreen!19
2020-10-12 11:25:25 +02:00
abakkk c9c214c6d5 version -> 9 2020-10-12 11:22:48 +02:00
abakkk 9731ebecb7 start a new line with "Shift + Enter"
Text tool:
* Enter: valid text and close text entry.
* Escape: close text entry.
* Shift + Enter: Start a new line.

related to #30.
2020-10-12 11:09:20 +02:00
abakkk cddfa3172f Font size markup bug workaround
The "small" font size attribute was applied to the whole text.

https://gitlab.gnome.org/GNOME/mutter/-/issues/1467
2020-10-11 13:09:28 +02:00
abakkk 80b49f2a1d SVG size and layer container
Fix SVG size by taking the size of the layers.
2020-10-11 09:28:02 +02:00
abakkk bb90ab6040 bind grid layer visibility and hasGrid
Repaint an empty grid layer is useless.
2020-10-10 15:05:12 +02:00
abakkk dd45e87f01 layers and eraser
Paint the current element in the `backLayer` when it is in "eraser mode".
2020-10-10 15:02:01 +02:00
abakkk 556cbb2ab3 remove debug constants
Remove CAIRO_DEBUG_EXTENDS and SVG_DEBUG_EXTENDS.
2020-10-09 11:56:47 +02:00
abakkk 58677dc175 Split the drawing area in several layer widgets.
The drawing area is now a container and the layers are the proper drawing widgets. There is a separated layer for the current element so only the current element is redisplayed when drawing.
2020-10-09 11:51:01 +02:00
abakkk ed167f8d1b fix transformation stopping
* Handle case where grabbed element does not have transformation to stop.
* Update cursor after erasing drawing while an element is grabbed.
2020-10-09 08:48:42 +02:00
O. Giesmann 44ba9ba17d create deutsch localization
related to #47.
2020-10-07 09:48:09 +02:00
abakkk b3fffc193e Merge branch 'dev' into 'master'
v8.1

Closes #46 and #45

See merge request abakkk/DrawOnYourScreen!18
2020-10-06 17:31:03 +02:00
abakkk 42eff0fa05 version -> 8.1 2020-10-06 17:20:59 +02:00
abakkk ff350130a4 rework of key event handling
* Handle stage key events only when the area is reactive. Any reason to handle key events in other cases?
* Move `Escape` key handling to the stage `key-press-event` handler. So leaving the drawing mode with `Escape` is still possible when the overview mode has been entered inadvertently.
2020-10-05 16:46:16 +02:00
abakkk 28def0059d finish undo/redo rework
* "Undo(Redo) last brushstroke" -> "Undo(Redo)".
* Sync `_updateActionSensitivity` menu method with the new undo/redo behavior.
* Smooth button action is no longer destructive.
* Clean undone smooth transformations when doing a new smooth transformation.
2020-10-04 22:48:40 +02:00
abakkk 236e4db236 transformation notUndoable => undoable
The `undoable` transformation property is not preserved when the element is "stringified". So transformations cannot be undone, once the element is loaded from JSON.
2020-10-04 22:17:13 +02:00
abakkk ccf928c048 make smooth transformations undoable/redoable 2020-10-04 20:55:06 +02:00
abakkk e218819edd make transformations undoable/redoable 2020-10-04 17:20:03 +02:00
abakkk 6374cc8c47 motion timeout
Add intermediate points to make quick free drawings smoother.
Do not redisplay the area at this step (crashes).
Use device.get_coords rather than global.get_pointer because the later return rounded (floor) values.

Fix #45.
2020-10-04 11:12:47 +02:00