libui/TODO.md

53 lines
3.4 KiB
Markdown
Raw Normal View History

- consider calling setAppleMenu: for the application menu; it doesn't seem to make much of a difference but
- make the name of the variable to refer to a single tab page consistent (already decided to make them all `page`)
- make sure uiEntryOnChanged() is not triggered when calling uiEntrySetText()
- clean up windows resizing logic
- make it so that only top-level window resizes trigger an update; container resizes do not update
- windows resizing logic is simply not comprehensive enough (no null resizes allowed) to do things
- we control resizes of all children so we can reliably update after a resize
- we already need to do this in uiContainer :/
2015-05-07 13:46:37 -05:00
- make it so Windows API calls that do logLastError(), etc. abort whatever they're doing and not try to continue, just like wintable
- 32-bit Mac OS X support (requires lots of code changes)
- change the build system to be more receptive to arch changes
2015-05-07 20:07:58 -05:00
- http://stackoverflow.com/questions/4543087/applicationwillterminate-and-the-dock-but-wanting-to-cancel-this-action
2015-04-10 13:31:16 -05:00
ultimately:
2015-04-15 22:14:36 -05:00
- add some sort of runtime type checking
2015-04-30 12:31:06 -05:00
- MAYBE readd lifetime handling/destruction blocking
- figure out how to integrate leak checking into the source tree
2015-05-07 14:12:28 -05:00
- assign control IDs on windows
- GWL(P)_ID
- related? [12:25] <ZeroOne> And the blue outline on those buttons [ALL clicked buttons on Windows 7] won't go away
- I get this too
- SWP_NOCOPYBITS to avoid button redraw issues on Windows when not in tab, but only when making resize faster
- opposite side alignment control in uiBox
- collapse multiple consecutive menu separators?
- including for quit/preferences/about?
- or not even have separators there?
- in which case, hide leading or trailing separators?
2015-05-07 17:15:09 -05:00
- generate libui.lib and related files
2015-05-07 17:52:40 -05:00
- rename newcontrol.[cm] to control.[cm] or something else?
- make OS-specific headers generated by an IDL
2015-05-07 18:55:42 -05:00
- figure out what to do on Windows and GTK+ if we don't have menus but the user wants a menubar (zero-height widget? don't bother? complain?)
- bin.c
- find a way to consolidate the duplicate code across OSs
- find a way to move the has parent check at the beginning of binDestroy()
- determine whether or not margins count in preferredSize() when there is no main control
- menu item state change while the menu is visible (not in response to user action)
- OS X: requires an [NSMenu update] call after changing state
- Windows: requires getting current menu state when amending it in sync()
- figure out where we should return HRESULTs
- Windows: don't abort if a cleanup function fails?
2015-05-07 20:07:58 -05:00
- drop "Page" from uiTab method names? (uiTabAppendPage() -> uiTabAppend())
notes to self
- explicitly document label position at top-left corner
- mark that uiControlShow() on a uiWindow() will bring to front and give keyboard focus because of OS X
- make sure ShowWindow() is sufficient for zorder on Windows
- document that you can't use InsertBefore functions to insert before a nonexistent index (that includes if an array is empty)
- reconsider this, as the pointer array code does work with the first invalid index...
- we would need to test everything else with it
- note that uiTabInsertPageBefore() does NOT change the current tab page (it may change its index if inserting before the current page)
- note that the default action for uiWindowOnClosing() is to return 0 (keep the window open)
2015-05-07 19:26:56 -05:00
- note that uiInitOptions should be initialized to zero