Commit Graph

315 Commits

Author SHA1 Message Date
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
Pietro Gagliardi f24e177d99 Mostly fixed Labels on Windows being offset slightly; need to finish the fix by making it not apply to standalone Labels and adding comments. 2014-08-08 23:47:06 -04:00
Pietro Gagliardi 21dbda72e2 Added an optimization to the Tab code on Windows where only the current tab was resized, thinking it would solve flicker issues. It did not, and GTK+ resizes all tabs, so I'm keeping this in mergeback/ for now. 2014-08-08 23:02:25 -04:00
Pietro Gagliardi 0cf86eeb03 Added nested and empty tabs to the test program, and fixed up relevant documentation. 2014-08-08 22:28:58 -04:00
Pietro Gagliardi 8ee7b2b809 Removed borders from Areas on the GTK+ backend. 2014-08-08 20:31:15 -04:00
Pietro Gagliardi ff6c3a7cbe More TODOs. 2014-08-08 20:16:42 -04:00
Pietro Gagliardi 3200a0ca97 More TODO/future plan separation. 2014-08-08 20:14:25 -04:00
Pietro Gagliardi 79ada1bdaa Starting splitting out future plans from the TODOs again; this time: Group. 2014-08-08 20:05:36 -04:00
Pietro Gagliardi e1486f3cd1 Decided to revert the transparency changes; I'll try flicker-free first. 2014-08-08 13:07:38 -04:00
Pietro Gagliardi 6707839e9b Added what should have been the flicker-free code to Windows containers; it doesn't actually work 100%, though (not flicker-free; window backgrounds are now black), so it's #ifdef'd out for now. 2014-08-07 11:27:00 -04:00
Pietro Gagliardi ddbb719918 Made containers transparent on Windows. This is the first of a four-part set (though IDK if it will be four commits) to make both containers and areas both transparent and flicker-free. Also added a Space() tab to the test program to test the transparency. 2014-08-06 21:34:31 -04:00
Pietro Gagliardi 2ea9987c98 Made the tabs of Tab controls on Windows children of the main tab control itself; this will let us be transparent... hopefully. 2014-08-06 20:53:11 -04:00