Commit Graph

1733 Commits

Author SHA1 Message Date
Pietro Gagliardi 07acb1ae04 Now that all calls have to be made on a single thread, Stack.SetStretchy() can safely be called even after its Window is created (which is also when the Stack is assigned to the Window anyway). 2014-08-12 19:54:46 -04:00
Pietro Gagliardi 734901351e More TODOs. 2014-08-12 17:24:14 -04:00
Pietro Gagliardi 5523cdb22a Implemented tab stopping. 2014-08-12 17:18:45 -04:00
Pietro Gagliardi 2146ac2af3 Added WS_EX_CONTROLPARENT to container and Tab on Windows. 2014-08-12 17:04:04 -04:00
Pietro Gagliardi d060977cc7 Got rid of the strlen() call in comctl32_windows.c. Thanks to joeshow on the Gopher Academy Slack. 2014-08-12 15:58:17 -04:00
Pietro Gagliardi f27aa8df46 Removed TODO about Windows Tabs having no currently selected tab out of a nonzero number of tabs; Xeek in irc.freenode.net/#winapi confirmed this cannot happen. 2014-08-12 13:27:27 -04:00
Pietro Gagliardi 24a42d29a5 Improved dialog base units calculations on Windows. 2014-08-12 13:10:30 -04:00
Pietro Gagliardi 9ecd124500 Made Stack an interface to keep parity with all other Controls. 2014-08-12 12:40:48 -04:00
Pietro Gagliardi 7d86f9d440 More future plans. 2014-08-12 12:33:44 -04:00
Pietro Gagliardi acf25c4798 Got rid of invalid pointer/integer conversions in table_unix.c and rearranged some validity tests there to be safer. 2014-08-12 12:29:27 -04:00
Pietro Gagliardi 995fbb2b8f Migrated all Common Controls version 6 initialization on the Windows backend to C. 2014-08-12 12:05:23 -04:00
Pietro Gagliardi 1873b72d49 Got rid of the direct use of WPARAM in Area mouse events on Windows. Whatever happened between then and now, Held works on both Windows and GTK+ now... 2014-08-12 05:11:17 -04:00
Pietro Gagliardi eb504480b1 Fixed the weird crash with calling Do() recursively; woo! 2014-08-11 21:57:20 -04:00
Pietro Gagliardi 166eaeb7db Revert "Revert "Settled race condition TODOs across all platforms... as an unfortunate case :(""
Put this back on master so we can debug.

This reverts commit 67adbd43a1.
2014-08-11 19:38:21 -04:00
Pietro Gagliardi 67adbd43a1 Revert "Settled race condition TODOs across all platforms... as an unfortunate case :("
Things broke when introducing this after the new GC... let's see if this broke under the new GC or not.

This reverts commit b198a4dfec.
2014-08-11 17:18:02 -04:00
Pietro Gagliardi 2c7c8b3a6b More TODOs. 2014-08-11 16:50:45 -04:00
Pietro Gagliardi 7d578d2617 Resolved failure conditions in the GTK+ Table GtkTreeModel implementation. 2014-08-11 14:22:17 -04:00
Pietro Gagliardi b1a2ed827b More future plans. 2014-08-11 14:17:22 -04:00
Pietro Gagliardi b198a4dfec Settled race condition TODOs across all platforms... as an unfortunate case :( 2014-08-11 14:16:23 -04:00
Pietro Gagliardi 5d4fd8169b Settled the Label alignment TODO in label_darwin.go. Also more future plans. 2014-08-11 13:27:17 -04:00
Pietro Gagliardi 219132f2f1 Renamed Mac OS X's container's view field to id to be in sync with the other Mac OS X data structures. 2014-08-11 12:49:39 -04:00
Pietro Gagliardi 55f25afb49 Removed TODOs about initial sizing of Windows and their Controls on Mac OS X; turns out we fixed that problem when we did our container NSView and overrode setFrameSize: :D 2014-08-11 12:40:41 -04:00
Pietro Gagliardi 61cd581ff4 Added a test for window size to test the small window weirdness of Areas on Mac OS X. 2014-08-11 12:21:19 -04:00
Pietro Gagliardi 3ebbae73ec Fixed compilation errors on the Mac OS X side. 2014-08-11 12:00:18 -04:00
Pietro Gagliardi bb8603ed4e Moved Mac OS X modifier flags constants to the Objective-C side for maximum safety. 2014-08-11 11:52:10 -04:00
Pietro Gagliardi 5a67a81e0b Removed a TODO about "other properties" of the Mac OS X Area initializer; I have no idea what those properties would be. 2014-08-11 11:47:28 -04:00
Pietro Gagliardi 80ff6b2048 Renamed areaView to goAreaView in accordance to the other Objective-C class names on the Mac OS X backend. 2014-08-11 11:44:55 -04:00
Pietro Gagliardi be56135451 Removed the need for C.frame() by splitting apart the alignment rect functions on the Mac OS X side. 2014-08-11 11:36:32 -04:00
Pietro Gagliardi 10201ef24f Finished Table cell text layout styles on Mac OS X. 2014-08-11 03:56:07 -04:00
Pietro Gagliardi 4bede4aa8d Split the autocorrect disabling stuff on Mac OS X into its own function and marked the TextArea TODO as a future plan. 2014-08-11 00:17:21 -04:00
Pietro Gagliardi 57cdc83280 Started setting text layout options for Table on Mac OS X. 2014-08-10 23:54:56 -04:00
Pietro Gagliardi a172143fe6 Improved the error reporting facilities of uiinit() on Mac OS X. Not used yet, though... 2014-08-10 22:24:08 -04:00
Pietro Gagliardi 37b1c3309b Stored table column numbers more efficiently on Mac OS X. 2014-08-10 22:10:47 -04:00
Pietro Gagliardi 5ec2c768fa Made a more intelligent Table.preferredSize() for Mac OS X. 2014-08-10 15:56:59 -04:00
Pietro Gagliardi d30956d625 More future plans. 2014-08-10 14:42:58 -04:00
Pietro Gagliardi 5679d02d1e Removed borders from Areas on Mac OS X. 2014-08-10 14:37:34 -04:00
Pietro Gagliardi 4e46975906 Really fixed Mac OS X text box borders this time =P 2014-08-10 14:15:59 -04:00
Pietro Gagliardi 01136cbd86 Fixed text field/label bordering on Mac OS X. 2014-08-10 13:55:46 -04:00
Pietro Gagliardi 65db139be7 More .m file restructuring on the Mac OS X backend. 2014-08-10 13:28:34 -04:00
Pietro Gagliardi 0b3f6570ac Settled NSBitmapImageRep TODOs on the Mac OS X backend. 2014-08-10 13:19:42 -04:00
Pietro Gagliardi 09a1239d94 Removed TODO about nil receiver in uitask_darwin.m by checking for nil anyway. 2014-08-10 08:04:20 -04:00
Pietro Gagliardi f7c17958c1 Removed TODO in area_darwin.m; -[NSView displayRect:] is the answer. 2014-08-09 22:27:57 -04:00
Pietro Gagliardi 9bf415bcaf Removed TODO about duplicate case labels (it's illegal in C too; citing the standards (both C89 and C99) as proof). 2014-08-09 21:49:21 -04:00
Pietro Gagliardi 62938635a2 Started splitting apart xsizing_darwin.m and rearranging objc_darwin.h. 2014-08-09 21:34:56 -04:00
Pietro Gagliardi ea3dd093f7 Changed PrefSize to PreferredSize throughout. 2014-08-09 21:29:37 -04:00
Pietro Gagliardi eec2f985b0 Renamed display() to areaRepaintAll() and resolved a TODO on the Mac OS X side. 2014-08-09 21:27:28 -04:00
Pietro Gagliardi 9217250d5c Removed unnecessary TODO from xsizing_darwin.m. 2014-08-09 10:39:46 -04:00
Pietro Gagliardi 6c1bf7aabd Big change: with the current event model, it's safe to call Area.RepaintAll() (and the future Area.Repaint()) from within AreaHandler.Key() and AreaHandler.Mouse(); get rid of the bool returns from each. The future Area.Repaint() is important; the bool returns repainted the whole Area, which may not be optimal. 2014-08-09 10:33:38 -04:00
Pietro Gagliardi b4a97e871a Settled the placement of functions formerly in sizing_windows.c and updated the winapi_windows.h header file to suit. 2014-08-09 10:26:42 -04:00
Pietro Gagliardi 5198f7202f Finished the previous commit. 2014-08-09 00:28:12 -04:00