Commit Graph

434 Commits

Author SHA1 Message Date
39dc09bc4a X backend clipboard properly negotiates data type with owner
The clipboard API has been changed to allow an application to
accept a number of different mime types, and the X backend will now
check the accepted types list against the owner's TARGETS list and
choose the best one.
2023-03-29 02:55:12 -04:00
0aede3502b This should have been several separate commits 2023-03-29 00:50:23 -04:00
6f15ff3366 We now set the target atom properly 2023-03-28 01:00:54 -04:00
01a0fc1bd3 You can fcucking PASTE now!!! 2023-03-27 20:44:39 -04:00
02a27447b9 Changed the clipboard API so that it will work with X
In X, clipboard/selection data is specific to each window, and it
may take some time before the clipboard data is fully transferred.
This actually makes sense because there can be entire images in
the clipboard and it is important the clipboard API supports large
file transfer. Because of this, the Copy and Paste methods have
been moved into Window, and Paste now returns a channel.
2023-03-25 13:32:48 -04:00
6a3f45a2e0 Set transient for on panels
This makes panels behave as expected. It feels incredibly wrong but
shotcut does it, it can't be that bad.
2023-03-24 22:49:53 -04:00
3aa8495873 Terrible discovery (panels don't work properly) 2023-03-24 17:38:21 -04:00
bdc1109bcf Modal dialogs lock the window's input until they are closed 2023-03-24 01:31:40 -04:00
a2c0ff5f4c Popups package uses the new modal system 2023-03-24 00:47:04 -04:00
d710d13f0d Added the ability to make different window types 2023-03-24 00:34:25 -04:00
fff5ad4d96 File now produces an error'd icon for an erroneous file 2023-03-23 20:57:51 -04:00
Sasha Koshka
8447b06641 Created a convenience constructor for Inset 2023-03-23 18:05:30 -04:00
Sasha Koshka
6a08d0f317 Added a Component parameter to theme cases 2023-03-23 17:34:08 -04:00
d3d3cddfef Merge pull request 'file-elements' (#13) from file-elements into main
Reviewed-on: sashakoshka/tomo#13
2023-03-23 20:21:36 +00:00
Sasha Koshka
45021b6153 Rename DirectoryView to Directory 2023-03-23 15:56:56 -04:00
Sasha Koshka
6638a471c7 File is now configurable 2023-03-23 15:55:18 -04:00
Sasha Koshka
6c8ff55dc1 Text labels are now drawn
The typesetter will need to be reworked to properly break lines in
the middle of words for this to function properly.
2023-03-23 15:38:51 -04:00
Sasha Koshka
7ec5e1ab2a Made the buttons in the file browser example work 2023-03-23 14:45:46 -04:00
Sasha Koshka
14802b4b82 Implemented history for DirectoryView
For some reason DirectoryView won't draw changes all of the time...
2023-03-23 14:37:44 -04:00
Sasha Koshka
f74f6a43f8 DirectoryView selects and de-selects files 2023-03-23 14:11:42 -04:00
Sasha Koshka
68341517f7 DirectoryView uses File to display files 2023-03-21 18:03:31 -04:00
Sasha Koshka
dcc672e2bc ScrollContainer does not scroll child in a forbidden direction 2023-03-21 17:37:33 -04:00
d9bddce20b File and directory view elements wip 2023-03-21 12:26:48 -04:00
60aac053fb Add ability to change an icon's icon 2023-03-21 12:26:06 -04:00
faf5ebb283 List can now add multiple entries at once, and clear all of them 2023-03-20 01:57:06 -04:00
f37101eb9e Ctrl+a selects all in TextBox 2023-03-20 01:56:12 -04:00
d475e5e2ec TextBox now has an OnEnter method. 2023-03-20 01:13:23 -04:00
221647a265 Made icons a bit better
There is a new IconNone and an IconUpward, and buttons don't
expand awkwardly when they have an icon.
2023-03-20 01:12:19 -04:00
bf667aded9 Small tweaks to the wintergreen atlas 2023-03-18 01:57:17 -04:00
b4befa5aa5 Made the default handle width an odd number 2023-03-17 02:05:22 -04:00
0f272f4835 DocumentContainer does as well 2023-03-17 02:00:19 -04:00
d651570746 The list element calls the scroll bounds change callback 2023-03-17 01:58:42 -04:00
493c5210a7 DocumentContainer sets minimum size properly 2023-03-17 01:52:26 -04:00
0fd56f272c Fixed text being cut of on several examples 2023-03-17 01:38:57 -04:00
4c6e01203c Label.EmCollapse actually works now 2023-03-17 01:00:11 -04:00
b189518c92 Did the same thing for the vertical layout 2023-03-16 23:04:33 -04:00
4b788dd783 Horizontal layout does not use integer math anymore
Instead it uses fixed.Int26_6. Could have used floats but then we
would need a new point datatype and we already have utility
functions for fixed point math
2023-03-16 20:55:11 -04:00
cdf805dadc Implemented all text alignment methods 2023-03-16 20:24:33 -04:00
Sasha Koshka
6258c77f86 Added an align method to label 2023-03-16 15:58:26 -04:00
Sasha Koshka
b90ffeb4fd X backend window disowns child before closing
This prevents elements from drawing to a closed window (causing
xgb to print an error)
2023-03-16 14:42:18 -04:00
Sasha Koshka
a4ef28cdd0 Moved containers into a separate package 2023-03-16 14:22:56 -04:00
c55925d152 Added a package that just links all backends 2023-03-16 01:14:39 -04:00
11b680db63 Added package summaries to more packages 2023-03-16 01:10:59 -04:00
d57db6327d Merge branch 'main' of git.tebibyte.media:sashakoshka/tomo 2023-03-16 00:45:50 -04:00
0d8d2a0190 Cleaned up pattern documentation a bit 2023-03-16 00:45:33 -04:00
6ee3014fda Merge pull request 'robust-parenting' (#12) from robust-parenting into main
Reviewed-on: sashakoshka/tomo#12
2023-03-16 04:34:08 +00:00
0ebf0bc814 Raycaster example now works 2023-03-16 00:30:59 -04:00
40aa1a788b Renamed some oddly named files 2023-03-16 00:26:54 -04:00
bffdb000ed Piano element handles motion events 2023-03-16 00:25:36 -04:00
5ca9206f65 DocumentContainer properly adopts children now 2023-03-16 00:24:40 -04:00