Commit Graph

454 Commits

Author SHA1 Message Date
Sasha Koshka c7cd944ae2 Removed redundant HandleWidth parameter from config
The handle width can be specified by themes with padding values.
This also allows for far more granularity of the handle width
adjustment as it can depend on context.
2023-03-31 13:55:45 -04:00
Sasha Koshka d1b5cd863a Added more package-level comments 2023-03-31 13:50:26 -04:00
Sasha Koshka e7ec9ad6f3 Moved defaultfont to default/font 2023-03-31 13:45:52 -04:00
Sasha Koshka c1e2bf46a6 TextBox supports copy/paste with keyboard commands 2023-03-31 03:25:46 -04:00
Sasha Koshka ab78bc640d Piano example no longer crashes 2023-03-31 01:30:18 -04:00
Sasha Koshka 7b300333cf I am going insane 2023-03-31 01:06:29 -04:00
Sasha Koshka 53bfc8df68 Re-organized module structure 2023-03-30 23:19:04 -04:00
Sasha Koshka 719b7b99ac Merge pull request 'clipboard' (#14) from clipboard into main
Reviewed-on: sashakoshka/tomo#14
2023-03-31 01:45:28 +00:00
Sasha Koshka e7ad588fb8 Apparently go mod replace can do this! 2023-03-30 21:37:57 -04:00
Sasha Koshka 6406b70077 Add cut capability to textmanip 2023-03-30 21:33:49 -04:00
Sasha Koshka 6456759bfc The targets list now has the proper type of ATOM 2023-03-30 20:51:11 -04:00
Sasha Koshka 0d4104255c Selection data is property sent to the requestor 2023-03-30 18:52:29 -04:00
Sasha Koshka 17422cc054 selectionClaim seeks to the start of the data before reading it 2023-03-30 18:42:40 -04:00
Sasha Koshka a16f3c2cd7 TARGETS list is now properly assembled 2023-03-30 18:32:14 -04:00
Sasha Koshka 017543aa0f Temporary redirect to patched xgbutil that will only work on my machine 2023-03-30 18:05:29 -04:00
Sasha Koshka f9e5503320 Pasting implemented (nonworking) 2023-03-30 13:10:58 -04:00
Sasha Koshka 8abc4defa7 Fixed INCR
Oops!
2023-03-29 23:24:42 -04:00
Sasha Koshka fc228a13d3 Fleshed out the mime type conversion method a bit 2023-03-29 12:33:57 -04:00
Sasha Koshka 1ebf5e1103 Implemented INCR selection properties 2023-03-29 12:27:23 -04:00
Sasha Koshka ab61615018 X backend generates mime type from owner response 2023-03-29 03:03:13 -04:00
Sasha Koshka 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
Sasha Koshka 0aede3502b This should have been several separate commits 2023-03-29 00:50:23 -04:00
Sasha Koshka 6f15ff3366 We now set the target atom properly 2023-03-28 01:00:54 -04:00
Sasha Koshka 01a0fc1bd3 You can fcucking PASTE now!!! 2023-03-27 20:44:39 -04:00
Sasha Koshka 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
Sasha Koshka 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
Sasha Koshka 3aa8495873 Terrible discovery (panels don't work properly) 2023-03-24 17:38:21 -04:00
Sasha Koshka bdc1109bcf Modal dialogs lock the window's input until they are closed 2023-03-24 01:31:40 -04:00
Sasha Koshka a2c0ff5f4c Popups package uses the new modal system 2023-03-24 00:47:04 -04:00
Sasha Koshka d710d13f0d Added the ability to make different window types 2023-03-24 00:34:25 -04:00
Sasha Koshka 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
Sasha Koshka 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
Sasha Koshka d9bddce20b File and directory view elements wip 2023-03-21 12:26:48 -04:00
Sasha Koshka 60aac053fb Add ability to change an icon's icon 2023-03-21 12:26:06 -04:00
Sasha Koshka faf5ebb283 List can now add multiple entries at once, and clear all of them 2023-03-20 01:57:06 -04:00
Sasha Koshka f37101eb9e Ctrl+a selects all in TextBox 2023-03-20 01:56:12 -04:00
Sasha Koshka d475e5e2ec TextBox now has an OnEnter method. 2023-03-20 01:13:23 -04:00
Sasha Koshka 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
Sasha Koshka bf667aded9 Small tweaks to the wintergreen atlas 2023-03-18 01:57:17 -04:00
Sasha Koshka b4befa5aa5 Made the default handle width an odd number 2023-03-17 02:05:22 -04:00