Commit Graph

279 Commits

Author SHA1 Message Date
Francisco Vallarino
f4d919f902 Add option to draw checkbox mark as a times x sign 2021-01-26 22:59:15 -03:00
Francisco Vallarino
5650d21e7b Use WidgetId in WidgetRequest instead of Path when possible. Minor code reorganization 2021-01-26 15:11:17 -03:00
Francisco Vallarino
89aa1ef9c5 Add (optional) max repetitions to RenderEvery request. Improvements/additions to tooltip 2021-01-25 13:52:39 -03:00
Francisco Vallarino
7f60e3e8e5 Add tooltip widget (initial commit) 2021-01-24 16:16:04 -03:00
Francisco Vallarino
ed83cbce83 Unify integralField and floatingField into numericField. Rename to FromFractional and reduce constraints in Dial. 2021-01-24 12:23:21 -03:00
Francisco Vallarino
c2fc4d56d2 Improve handling of mod keys in keystroke. Add configuration option to ignore matching children events 2021-01-23 13:56:48 -03:00
Francisco Vallarino
f64c3c7758 Add keystroke component 2021-01-22 20:15:36 -03:00
Francisco Vallarino
3d1cdbc5f0 Minor rename and reorganization 2021-01-21 13:23:46 -03:00
Francisco Vallarino
eecaa4b7e3 Add node to arguments of handleEvent. Make confirm set focus to accept button if visible and focused 2021-01-21 00:25:21 -03:00
Francisco Vallarino
c7340bd724 Minor code reorganization 2021-01-20 11:22:19 -03:00
Francisco Vallarino
3a742073a6 Rename updateSizeReq/nodeUpdateSizeReq to getSizeReq/nodeGetSizeReq in tests 2021-01-20 00:14:54 -03:00
Francisco Vallarino
2d04b132ab Initial split unit tests 2021-01-19 14:47:10 -03:00
Francisco Vallarino
fc71463e83 Add FractionalToReal typeclass to handle needed conversion back from Dial 2021-01-19 10:21:37 -03:00
Francisco Vallarino
51edb21f78 Fix issue when releasing drag on integral/floating field (clicks == 0 when dragging) 2021-01-19 00:31:04 -03:00
Francisco Vallarino
c82d2c0137 Remove SetFocus from checkbox and radio 2021-01-19 00:22:56 -03:00
Francisco Vallarino
d0cd0c14c0 Add event handling to dial 2021-01-19 00:14:44 -03:00
Francisco Vallarino
a1af467bd9 Add keyboard support to dial 2021-01-18 23:53:35 -03:00
Francisco Vallarino
575ad38e14 Add initial support for dial widget 2021-01-18 13:37:46 -03:00
Francisco Vallarino
0f4bfe34ff Make widgetResize return WidgetResult instead of WidgetNode 2021-01-16 15:38:48 -03:00
Francisco Vallarino
18946ef8e3 Fix split issues when sizeReq change dinamically 2021-01-16 10:57:13 -03:00
Francisco Vallarino
932ac1dd5c Rename/fix sizeReq min/max functions 2021-01-15 18:35:33 -03:00
Francisco Vallarino
4280524c51 Partial commit of split component 2021-01-15 14:26:44 -03:00
Francisco Vallarino
00a471c109 Update tasks 2021-01-14 16:31:57 -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
babbd3be93 Standardize typeclass derivation order 2021-01-12 17:48:38 -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
0e48826cb0 Add WidgetModel/WidgetEvent type aliases. Remove unneeded deriving Typeable declarations 2021-01-12 10:39:34 -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
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
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
436336de3d Consider text size when rebuilding glyphs on label and button 2021-01-04 09:48:06 -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
1888bdca28 Use upgraded nanovg bindings (temporarily from my fork) 2020-12-31 13:38:00 -03:00
Francisco Vallarino
c98b802379 Update tasks 2020-12-29 14:51:38 -03:00
Francisco Vallarino
19595aee5d Improve handling of lower layers in zstack. Add option to ignore events in a container 2020-12-29 14:07:15 -03:00
Francisco Vallarino
acff0fffd4 Make zstack handle mouse according to used regions. Make stack adjust its size to its content. Simplify related settings 2020-12-28 23:00:25 -03:00