2020-03-31 06:14:52 +03:00
|
|
|
- Done
|
|
|
|
- Check events only for interested widgets (use focus for keyboard and region for mouse)
|
|
|
|
- Add handling of disabled widget nodes
|
|
|
|
- Add handling of custom external actions for widgets
|
|
|
|
- Do something with return of custom handlers (the exact same thing we do with event handlers)
|
|
|
|
- Add scroll support
|
|
|
|
- Add hstack/vstack containers
|
|
|
|
- Improve input (keyboard) handling
|
|
|
|
- Implement copy/paste
|
|
|
|
- Add HiDPI handling
|
|
|
|
- Handle window resize
|
|
|
|
- Improve handling of Color (turn to 0.0 to 1.0 instead of 0 to 255? only do it for alpha?)
|
|
|
|
- Add handling of non visible widget nodes
|
|
|
|
- Handle widget fixed size
|
|
|
|
- Add good looking caret to textField
|
|
|
|
- Add support for onFocus/onBlur
|
|
|
|
- Maybe we don't need this and we can get by with position in render function?
|
|
|
|
- Add support for onEnter/onLeave (keep track of previous active widgets)
|
|
|
|
- We probably need it for drag&drop
|
|
|
|
- How is the user going to provide state updates?
|
2020-04-07 07:04:55 +03:00
|
|
|
- We already provide this with the State monad and corresponding lenses
|
2020-04-09 19:46:49 +03:00
|
|
|
- Improve mouse support/current state of mouse and keyboard for event handling
|
2020-04-11 23:31:55 +03:00
|
|
|
- Make handleEvent run inside MonadState (required to update user provided lenses) **CANCELLED**
|
|
|
|
- Add logic that allows widgets to update user state
|
|
|
|
- Does it make sense to avoid lenses internally, given that we already include the dependency?
|
2020-03-31 06:14:52 +03:00
|
|
|
- How will long running (i.e., not immediate) user tasks will be handled?
|
2020-04-28 00:29:28 +03:00
|
|
|
- Using local coordinates for widgets **CANCELLED**
|
|
|
|
- How do we adjust current displacement?
|
2020-04-28 01:42:54 +03:00
|
|
|
- Track drawing operations made by a Widget
|
|
|
|
- Reorganize drawing operations
|
2020-04-07 07:04:55 +03:00
|
|
|
- Stop, think and design
|
2020-03-31 06:14:52 +03:00
|
|
|
- How should all of this be organized?
|
|
|
|
- How should modules be layed out?
|
2020-05-04 07:33:44 +03:00
|
|
|
- What are good interfaces for the different parts of the system?
|
2020-03-31 06:14:52 +03:00
|
|
|
- Does it make sense that handleEvent is the only pure function in a widget?
|
2020-04-28 00:29:28 +03:00
|
|
|
- Based on the previous design, refactor modules
|
2020-05-26 22:01:52 +03:00
|
|
|
- Current massive refactor
|
2020-05-31 02:03:45 +03:00
|
|
|
- Replace Tree with Containers' Tree
|
|
|
|
- Fix issue with event handling (click makes everything disappear)
|
|
|
|
- Fix focus situation (remove _focusRing and replace with single focus, then use _widgetNextFocusable)
|
|
|
|
- Provide focus to render (needed by textField)
|
|
|
|
- Check if resize children still makes sense (maybe the widget itself can resize on the corresponding event?)
|
|
|
|
- Handle SetFocus request
|
|
|
|
- Check if WidgetState is really needed
|
2020-05-30 06:51:09 +03:00
|
|
|
- Maybe Data.Dynamic can be used, but currently abadoned
|
2020-05-31 02:03:45 +03:00
|
|
|
- Rethink Tree.Path import
|
|
|
|
- Clean up Seq imports
|
|
|
|
- Where can we use Seq? Does it make sense to use it everywhere? What about Traversable?
|
2020-05-26 22:01:52 +03:00
|
|
|
- Reorganize Common Types. What do other projects do? They should be simple to import and use
|
2020-06-08 21:25:52 +03:00
|
|
|
- Create composite widget, allowing isolated event handling and UI creation
|
2020-06-06 06:19:21 +03:00
|
|
|
- Create application widget, based on composite
|
2020-05-31 02:03:45 +03:00
|
|
|
- Remove UserTask concept, handle it as WidgetTask
|
2020-06-06 06:19:21 +03:00
|
|
|
- Support long running tasks that can provide events through a channel
|
2020-06-10 03:44:39 +03:00
|
|
|
- Add Multiple response support (extra value in EventResponse)
|
2020-06-10 05:31:45 +03:00
|
|
|
- Try to remove all those Typeable requirements in CompositeWidget
|
|
|
|
- Removing Monad from Widget/WidgetInstance was good enough
|
|
|
|
- Some Typeable constraints still needed, but user should not need to do anything
|
2020-06-15 00:53:04 +03:00
|
|
|
- Provide a way of initializing the application
|
|
|
|
- Probably taking a simple event that is relayed to appEventsHandler is enough?
|
2020-06-10 05:31:45 +03:00
|
|
|
- Implement Global keys
|
|
|
|
- Improve merge process
|
2020-06-17 22:15:17 +03:00
|
|
|
- Add a way to get path of widget given an id, and provide a method to send a message/event (most likely, a new Request kind)
|
2020-06-15 20:00:52 +03:00
|
|
|
- Rename EventResult to something more accurate
|
|
|
|
- Replace resultWidget and friends with non-Maybe versions (update widgets)
|
2020-06-24 06:45:57 +03:00
|
|
|
|
|
|
|
- Pending
|
2020-06-03 05:23:23 +03:00
|
|
|
- Add _renderLast_ function to Renderer, which delays rendering until the first pass is done
|
|
|
|
- Futher calls to _renderLast_ should not be ignored (tooltip on dropdown menu?)
|
|
|
|
- A _handleDelayedRendering_ also needs to be added
|
|
|
|
- We also need a way of receiving events on _upper_ layers
|
2020-06-24 06:45:57 +03:00
|
|
|
- All this is needed for dropdowns, but it's also useful for tooltips
|
2020-06-26 01:56:00 +03:00
|
|
|
- Create Dropdown
|
2020-04-28 00:29:28 +03:00
|
|
|
- Improve hstack/vstack
|
2020-05-12 01:53:41 +03:00
|
|
|
- If available space is greater than requested, do not apply resizing logic
|
2020-04-28 00:29:28 +03:00
|
|
|
- Does a styling engine make sense or doing something similar to Flutter is simpler?
|
2020-05-30 05:13:24 +03:00
|
|
|
- Does keeping style for some things (fixed width/height) make sense?
|
2020-04-28 00:29:28 +03:00
|
|
|
- Could container handle padding and centering?
|
|
|
|
- Implement styling engine. Think why Maybe Double instead of Maybe Dimension (to handle pixels, percent, etc)
|
2020-05-31 02:03:45 +03:00
|
|
|
- Improve FixedSize. Consider adding min/max width/height
|
2020-04-28 00:29:28 +03:00
|
|
|
- Improve ergonomics
|
2020-05-27 00:14:32 +03:00
|
|
|
- https://hackage.haskell.org/package/string-interpolate
|
2020-04-28 00:29:28 +03:00
|
|
|
- Check if advanced type level features would improve the design
|
|
|
|
- Check what syntax extensions can be abused to make life easier
|
2020-05-27 00:14:32 +03:00
|
|
|
- https://limperg.de/ghc-extensions/#basic-patterns
|
|
|
|
- https://limperg.de/ghc-extensions/#datakinds
|
|
|
|
- Maybe -> https://typeclasses.com/extensions-intro
|
2020-04-28 00:29:28 +03:00
|
|
|
- Look for ways that allow both lenses and user events to be used in the same widget
|
2020-06-06 06:19:21 +03:00
|
|
|
- Most likely through a Default instance
|
2020-04-28 00:29:28 +03:00
|
|
|
- Related to previous, look for ways to simplify widget setup. Default instance with common values?
|
2020-05-26 22:01:52 +03:00
|
|
|
- Find way of providing instance config (style, visibility, etc) before providing children (some sort of flip operator)
|
2020-04-28 00:29:28 +03:00
|
|
|
- Keep sending mouse move event if mouse is away but button is still pressed
|
2020-05-30 05:13:24 +03:00
|
|
|
- Fix scroll click navigation
|
2020-06-26 01:56:00 +03:00
|
|
|
- Add support for scroll requests from children
|
|
|
|
- Improve Dropdown
|
|
|
|
- Create self rendered version
|
|
|
|
- Expose customizable interface
|
|
|
|
- Request scroll when needed
|
2020-06-17 22:15:17 +03:00
|
|
|
- Should Resize be restored?
|
2020-04-28 00:29:28 +03:00
|
|
|
- Create layer widget to handle overlays/dialog boxes/tooltips (takes care of overlays)
|
|
|
|
- Add text selection/editing to textField
|
2020-06-23 06:11:16 +03:00
|
|
|
- Request text input when text field gets focus (required for mobile)
|
2020-06-05 20:08:07 +03:00
|
|
|
- Add testing
|
|
|
|
- Delayed until this point to try to settle down interfaces
|
2020-06-24 06:45:57 +03:00
|
|
|
- Look for opportunities to reduce code duplication (CompositeWidget and BaseContainer)
|
|
|
|
- Try to unify path handling on widgetFind and widgetNextFocusable
|
2020-06-26 01:56:00 +03:00
|
|
|
- This is also needed for _widgetPreferredSize and _widgetResize
|
2020-04-28 00:29:28 +03:00
|
|
|
- Create Checkbox
|
|
|
|
- Create Radio
|
|
|
|
- Create Color Selector
|
|
|
|
- Create Dialog
|
|
|
|
- Create File Selector
|
|
|
|
- Drag & drop for user (add attribute indicating if component supports being source/target)
|
|
|
|
- Add new request types (drag started, drag stopped, drag cancelled)
|
|
|
|
- Add new events (drag hover)
|
2020-06-07 04:54:51 +03:00
|
|
|
- SDL supports Drag and Drop integration with OS
|
2020-04-28 01:42:54 +03:00
|
|
|
- Implement SDL_Surface + Cairo backend
|
|
|
|
- Can we cache some drawing operations?
|
2020-05-04 07:33:44 +03:00
|
|
|
- Check if using [lifted-async](https://github.com/maoe/lifted-async) is worth it
|
2020-06-17 22:15:17 +03:00
|
|
|
- Can we generalize _widgetFind?
|
|
|
|
- To find widgetInstances that need a specific kind of event (entities that need timeStep)
|
|
|
|
- Instead of passing Point, pass WidgetQuery ADT. Currently it would support... PointQuery
|
|
|
|
- Do we need this?
|
|
|
|
- It is implemented in chore/unify-query. I honestly don't think it's an improvement
|