Commit Graph

773 Commits

Author SHA1 Message Date
Francisco Vallarino
5f68fa381b Improve handling of new split position 2021-01-16 22:03:05 -03:00
Francisco Vallarino
2c77ca5427 Add support for onChange and model initialization in split 2021-01-16 20:58:35 -03:00
Francisco Vallarino
0f4bfe34ff Make widgetResize return WidgetResult instead of WidgetNode 2021-01-16 15:38:48 -03:00
Francisco Vallarino
809d9a1d2d Add option in split to ignore resize after handle was dragged 2021-01-16 12:58:57 -03:00
Francisco Vallarino
18946ef8e3 Fix split issues when sizeReq change dinamically 2021-01-16 10:57:13 -03:00
Francisco Vallarino
a5475f0e2e Improve handling of space in split. Add vsplit. 2021-01-15 20:29:03 -03:00
Francisco Vallarino
43108f1901 Improve split component, now considering sizeReq of main side. Pending consideration of secondary 2021-01-15 18:36:06 -03:00
Francisco Vallarino
932ac1dd5c Rename/fix sizeReq min/max functions 2021-01-15 18:35:33 -03:00
Francisco Vallarino
4ad4b24e35 Refacto stack to provide its functionality for space allocation 2021-01-15 18:34:47 -03:00
Francisco Vallarino
4b88a3a369 Improve naming convention of node related utility functions 2021-01-15 14:41:17 -03:00
Francisco Vallarino
4280524c51 Partial commit of split component 2021-01-15 14:26:44 -03:00
Francisco Vallarino
5238e1731e Fix image issue when image has not already been loaded. Minor renaming (ctx -> target) 2021-01-15 00:11:51 -03:00
Francisco Vallarino
00a471c109 Update tasks 2021-01-14 16:31:57 -03:00
Francisco Vallarino
5c35d95411 Remove all existing images and retry when Nothing is returned from createImageRGBA 2021-01-14 16:21:22 -03:00
Francisco Vallarino
68fd9e09da Make handlePendingImages take care of updating env 2021-01-14 15:03:24 -03:00
Francisco Vallarino
a9502408fc Add function to immediately render new image data 2021-01-14 14:06:44 -03:00
Francisco Vallarino
60b87fdf07 Fail restore process if widget tree structure differs 2021-01-13 22:39:44 -03:00
Francisco Vallarino
8c9892cb19 Remove default font handling. Show error message if loading fails 2021-01-13 19:05:37 -03:00
Francisco Vallarino
7bb3d3a454 Handle WidgetId/Path changes automatically in Single/Container 2021-01-13 18:35:56 -03:00
Francisco Vallarino
d5f6f61c85 Update tasks 2021-01-13 14:13:13 -03:00
Francisco Vallarino
7b35e80913 Make widget tree serialization configurable 2021-01-13 14:02:45 -03:00
Francisco Vallarino
6a1e78a616 Reorganize util modules 2021-01-13 13:02:36 -03:00
Francisco Vallarino
babbd3be93 Standardize typeclass derivation order 2021-01-12 17:48:38 -03:00
Francisco Vallarino
a2d926a71e Rename getInstanceTree/restoreInstanceTree to shorter versions 2021-01-12 16:58:04 -03:00
Francisco Vallarino
041ee0c7db Remove unneeded Typeable deriving. Update tasks 2021-01-12 16:42:34 -03:00
Francisco Vallarino
0517dd7d14 Add serialization support 2021-01-12 14:34:39 -03:00
Francisco Vallarino
ce2697943f Simplify state handling on Container 2021-01-12 13:20:12 -03:00
Francisco Vallarino
c746318170 Simplify state handling on Single 2021-01-12 11:43:08 -03:00
Francisco Vallarino
0e48826cb0 Add WidgetModel/WidgetEvent type aliases. Remove unneeded deriving Typeable declarations 2021-01-12 10:39:34 -03:00
Francisco Vallarino
7282abe13c Rename rootPath -> emptyPath 2021-01-12 10:02:24 -03:00
Francisco Vallarino
eb85a22d3b Fix unit tests. 300! 2021-01-06 18:43:25 -03:00
Francisco Vallarino
6ec893bc95 Reorder Single/Container config and try to match options in both 2021-01-06 17:24:01 -03:00
Francisco Vallarino
4bdbc2836b Test disabled state works. Add _enabled_ combinator (enabled/disabled having different purposes is confusing, think better names) 2021-01-06 15:56:27 -03:00
Francisco Vallarino
e0d743e5d5 Add support for _active_ style state 2021-01-06 15:26:47 -03:00
Francisco Vallarino
cc512e024e Add focusHover style state (needed to be able to maintain border for active widgets) 2021-01-06 14:08:42 -03:00
Francisco Vallarino
54859fb2a4 Fix missing resize after Leave if follow up Enter did not request a resize 2021-01-06 12:51:58 -03:00
Francisco Vallarino
dac13bdf1c Remove unneeded code 2021-01-06 10:50:21 -03:00
Francisco Vallarino
478f2895fd Partial commit fixing wheel/hover issue (major cleanup needed, followup commit) 2021-01-06 10:40:39 -03:00
Francisco Vallarino
c5085090ea Temporary commit fixing leave/enter resize issue 2021-01-05 13:51:37 -03:00
Francisco Vallarino
f396aa0c63 Make listView handle style changes when the action happens instead of rendering time 2021-01-05 11:01:35 -03:00
Francisco Vallarino
d0ea69efd4 Update tasks 2021-01-04 12:55:08 -03:00
Francisco Vallarino
08a0810cf6 Fix issue when syling changes on children. Remove containerStyleOnEvent, no longer needed (it was there for performance reasons) 2021-01-04 10:24:01 -03:00
Francisco Vallarino
b47d49dc10 Make hover style take precedence over focus 2021-01-04 10:07:47 -03:00
Francisco Vallarino
436336de3d Consider text size when rebuilding glyphs on label and button 2021-01-04 09:48:06 -03:00
Francisco Vallarino
5b9293ee87 When a new widget is detected during Container merge, request a Resize (sizeReqs need to be recalculated) 2021-01-03 22:33:39 -03:00
Francisco Vallarino
8af2f21d0f Rename containerStyleOnMerge to containerStyleOnEvent 2021-01-03 22:31:53 -03:00
Francisco Vallarino
f6bf75294a Add containerGetActiveStyle to Container 2021-01-03 22:21:54 -03:00
Francisco Vallarino
b2eca14864 Base buttons merge/resize logic on labels 2021-01-03 22:12:48 -03:00
Francisco Vallarino
45f7490ead Remove widgetUpdateSizeReq. Update sizeReq when necessary on init/merge/handleEvent/handleMessage 2021-01-03 22:01:26 -03:00
Francisco Vallarino
d11452bf8c Temporary commit for removal of updateSizeReq 2021-01-02 11:51:23 -03:00