Commit Graph

948 Commits

Author SHA1 Message Date
Pietro Gagliardi b2e9b646a4 Got rid of typedefs in the various newcontrol files for consistency. 2015-05-04 15:51:23 -04:00
Pietro Gagliardi 80b82b7698 Got rid of the typedef struct box box; and typedef struct boxControl boxControl; from box.c, for consistency. 2015-05-04 15:37:03 -04:00
Pietro Gagliardi bdbf72e69f Removed memory management TODOs; that's already in TODO.md under array.c. 2015-05-04 15:10:03 -04:00
Pietro Gagliardi 854d1f49af Made preferredSize function names consistent on Windows. Stale TODO cleanup. 2015-05-04 14:56:26 -04:00
Pietro Gagliardi c6229271cc Implemented tab disabling on OS X. 2015-05-04 14:53:23 -04:00
Pietro Gagliardi 7f41a3982f Finished implementing uiTab enable/disable on Windows. 2015-05-04 14:45:18 -04:00
Pietro Gagliardi 5c9751f4d4 Set up a framework on Windows for implementing tab enable/disable. 2015-05-04 14:42:23 -04:00
Pietro Gagliardi 23e3230156 Fixed control enabling on Windows uiWindows. 2015-05-04 14:32:55 -04:00
Pietro Gagliardi e59aeb19ca Added a disabled uiTab test. It works fine on GTK+ (as expected) but the feature needs to be implemented on Windows and OS X. 2015-05-04 14:14:12 -04:00
Pietro Gagliardi 4716781e78 Finished container enable/disable on Windows for now. 2015-05-04 14:05:36 -04:00
Pietro Gagliardi 3ead59424d I am wrong there's nothing wrong with what we're doing now because only the immediate parent calls uiControlSysFunc(uiXxxSysFuncContainerDisable). 2015-05-04 13:55:57 -04:00
Pietro Gagliardi d98a2291cb More enable/disable container stuff. 2015-05-04 11:09:28 -04:00
Pietro Gagliardi 37140cf6f0 Completed the nested box test. 2015-05-04 11:07:23 -04:00
Pietro Gagliardi 31dc99899d Set up a framework for testing nested enables and disables. 2015-05-04 10:34:16 -04:00
Pietro Gagliardi bdabe89617 More TODOs. 2015-05-04 09:55:34 -04:00
Pietro Gagliardi b15f5ff1c7 Started implementing container enable/disable on Windows. More TODOs. 2015-05-04 09:53:53 -04:00
Pietro Gagliardi 8f5ebd3118 More TODOs. 2015-05-04 01:15:14 -04:00
Pietro Gagliardi d23fae34be Implemented uiControlEnable() and uiControlDisable() for containers and uiWIndow on Mac OS X. 2015-05-04 01:14:18 -04:00
Pietro Gagliardi d237449060 Fixed a typo in ui.idl. 2015-05-04 00:50:10 -04:00
Pietro Gagliardi dfbc8d439e Added uiControlSysFunc() to box.c. 2015-05-04 00:48:59 -04:00
Pietro Gagliardi c99e78268e Added a facility for system-dependent uiControl methods. 2015-05-04 00:38:28 -04:00
Pietro Gagliardi 9af3e6acc2 More TODOs. 2015-05-04 00:36:57 -04:00
Pietro Gagliardi 33c34c1572 Made a comment in the previous commit more clear. 2015-05-04 00:17:23 -04:00
Pietro Gagliardi d57df09f0e Fixed a latent bug with uiTab on GTK+. 2015-05-04 00:16:31 -04:00
Pietro Gagliardi 4ba0f795eb Switched from manually enabling menu items on OS X to automatic enabling, just like with the application menu. Same code :/ Also cleaned up useless [NSMenuItem setEnabled:] calls. 2015-05-03 21:37:45 -04:00
Pietro Gagliardi 82312861e9 Implemented menu finalization on OS X. 2015-05-03 21:28:21 -04:00
Pietro Gagliardi 9e6678b635 Implemented uiMenu window identification in the test program. It works on all platforms. 2015-05-03 21:22:00 -04:00
Pietro Gagliardi d25c954d9f Added code to get the active window for menu events on Mac OS X. Will test next. 2015-05-03 21:05:55 -04:00
Pietro Gagliardi 62424fbd79 Decided not to hide NMHDR.idFrom in Windows WM_NOTIFY handlers; it's not worth it (we can get the ID anyway with GWLP_ID) and breaks the contract on WM_NOTIFY; who knows what user code will do? 2015-05-03 20:02:44 -04:00
Pietro Gagliardi 862f84292f Fixed an error in windows/container.c. 2015-05-03 19:58:37 -04:00
Pietro Gagliardi 7086373807 Fixed an error left over in the previous commit. 2015-05-03 19:58:12 -04:00
Pietro Gagliardi fd4c559e86 Removed the typename argument from uiAlloc() and uiRealloc(). 2015-05-03 19:52:24 -04:00
Pietro Gagliardi 325f16cfb3 Added some comments to the previous commit. 2015-05-03 18:15:12 -04:00
Pietro Gagliardi 84894f2fb0 Implemented the GTK+ preferred size vtable functions for uiContainer. 2015-05-03 18:05:52 -04:00
Pietro Gagliardi 3c9d25f2fd TODO exposition. 2015-05-03 17:45:12 -04:00
Pietro Gagliardi 997db39bb7 Decided not to optimize Windows menu item lookup. 2015-05-03 17:37:36 -04:00
Pietro Gagliardi 23cfcc8c6d Confirmed that tabs are taken into account with TCM_ADJUSTRECT on Windows. 2015-05-03 17:21:48 -04:00
Pietro Gagliardi aa568e51cf Implemented uiControlPreferredSize() on Windows uiTabs. 2015-05-03 17:13:40 -04:00
Pietro Gagliardi fc1044aab9 Quick TODOTODOTODO... resolution. 2015-05-03 16:56:58 -04:00
Pietro Gagliardi c3cfb3fe09 Added a no menus option to the test program. 2015-05-03 16:46:50 -04:00
Pietro Gagliardi 4eaa3ac574 Implemented die() in the test program. 2015-05-03 16:44:13 -04:00
Pietro Gagliardi 511cc76ef8 Investigated setAppleMenu:; decided to save it for later. 2015-05-03 16:28:46 -04:00
Pietro Gagliardi ecb565e06a More TODOs. 2015-05-03 15:56:42 -04:00
Pietro Gagliardi 2186192502 Changed c-> to uiControl(c)-> in the various newcontrol files for consistency. 2015-05-03 14:44:46 -04:00
Pietro Gagliardi 51cdb1817e Added WS_EX_CONTROLPARENT to uiContainer on Windows. 2015-05-03 14:12:45 -04:00
Pietro Gagliardi a0329ba878 Moved ui.idl TODOs to TODO.md since they're long-term. 2015-05-03 13:54:42 -04:00
Pietro Gagliardi 4e1a99c868 Moved the include guards around the typedefs in ui.h. 2015-05-03 13:50:41 -04:00
Pietro Gagliardi 5ac0e7aa32 TODO consolidation/elaboration. 2015-05-03 13:47:03 -04:00
Pietro Gagliardi eae2e92d87 Confirmed that NSMenuValidation was only informal; thanks to Psy| in irc.freenode.net/#macdev for explaining how informal protocols actually worked (since the declaration in the headers threw me off). 2015-05-03 13:39:54 -04:00
Pietro Gagliardi 60d30688eb More TODOs. 2015-05-03 13:18:27 -04:00