Commit Graph

458 Commits

Author SHA1 Message Date
Pietro Gagliardi 4a5218df5b Added bool Table columns on Mac OS X. 2014-08-17 10:13:28 -04:00
Pietro Gagliardi 5854cf2e5d Implemented bool Table columns on the GTK+ backend. 2014-08-17 07:23:18 -04:00
Pietro Gagliardi aed66e27e3 Fixed weird pixel corruption in the Mac OS X ImageList implementation (damn GC). Thanks to erica in irc.freenode.net/#macdev for guessing right and others for helping. 2014-08-16 22:50:25 -04:00
Pietro Gagliardi ae7e86c24b Removed the ImageList proposal now that it's implemented. 2014-08-16 21:56:41 -04:00
Pietro Gagliardi 5903dffe3c Implemented ImageList and Table ImageIndex on Mac OS X. 2014-08-16 21:49:43 -04:00
Pietro Gagliardi 37069eadcb Implemented ImageList and Table ImageIndex on GTK+. 2014-08-16 20:48:35 -04:00
Pietro Gagliardi c60e775536 Fixed crashing glitch in Table on Windows. 2014-08-16 18:33:51 -04:00
Pietro Gagliardi 6d56f6f6b7 Improved scaling quality of images in ImageLists and more TODOs. 2014-08-16 17:43:43 -04:00
Pietro Gagliardi 270c03269f More TODOs. 2014-08-16 17:40:32 -04:00
Pietro Gagliardi d5f9c237b7 Added image lists to Tables and added them to the Windows backend... mostly. There are a few kinks to work out... 2014-08-16 17:37:21 -04:00
Pietro Gagliardi 5d69bc2534 Added some test data for ImageList. 2014-08-16 15:17:18 -04:00
Pietro Gagliardi 8702763137 Added the beginning of ImageList, including the Windows implementation. 2014-08-16 14:02:00 -04:00
Pietro Gagliardi 3ac3a72471 More Image List stuff. 2014-08-16 11:26:55 -04:00
Pietro Gagliardi dc281043e3 Added a proposal for image lists. 2014-08-16 09:37:50 -04:00
Pietro Gagliardi 444f140657 Cleaned up after bold attributes in group_unix.go. 2014-08-16 09:26:46 -04:00
Pietro Gagliardi 39c0919652 Added a proposal for Tree. 2014-08-16 09:14:23 -04:00
Pietro Gagliardi 7880514811 Removed the gtkcolor.c mergeback; decided to hack on GtkColorChooser. 2014-08-16 08:50:18 -04:00
Pietro Gagliardi 1d117b7965 Implemented Group on Mac OS X. 2014-08-16 00:37:38 -04:00
Pietro Gagliardi 5a1fc98fc3 Added test of Group with a Control that fills it. 2014-08-15 22:59:45 -04:00
Pietro Gagliardi 5531866fed Added Group on Windows. 2014-08-15 22:56:55 -04:00
Pietro Gagliardi c5ee8c62da Resolved some future plans. 2014-08-15 21:44:35 -04:00
Pietro Gagliardi 318036d155 Added Group and implemented it on GTK+. 2014-08-15 21:43:24 -04:00
Pietro Gagliardi 6b77304c8a More future plans. 2014-08-15 20:08:14 -04:00
Pietro Gagliardi bf57ce17ca Removed outdated comment from Control's documentation. 2014-08-15 20:01:57 -04:00
Pietro Gagliardi a282a12b81 Fixed up Grid and wrote a test. 2014-08-15 19:50:00 -04:00
Pietro Gagliardi 0359d3bf4a Added Label.isStandalone(), used by Grid. Now for the Grid test... 2014-08-15 19:35:49 -04:00
Pietro Gagliardi d824e549f1 Adjusted Grid to be like new Stack. Automatically made Labels in Grids filling. 2014-08-15 19:34:06 -04:00
Pietro Gagliardi 1fe7831cb8 Moved Grid back. Removed now-unused stack.created. 2014-08-15 19:33:33 -04:00
Pietro Gagliardi 6340b3a054 More TODOs. 2014-08-15 19:17:30 -04:00
Pietro Gagliardi a1dc098cbe More TODOs. 2014-08-15 18:59:42 -04:00
Pietro Gagliardi d132de18a6 I HAVE DEFEATED APPKIT. 2014-08-15 12:56:33 -04:00
Pietro Gagliardi 441b8c7c73 Implemented applicationShouldTerminate: and applicationShouldTerminateAfterLastWindowClosed: on Mac OS X. 2014-08-15 05:15:44 -04:00
Pietro Gagliardi e556f92e52 Removed TODO for Mac OS X default and escape button equivalents; the default is handled properly and there is no canonical escape (it's a property of the dialog manager, which we don't run). Thanks Lyle42 and kongtomorrow in irc.freenode.net/#macdev. 2014-08-14 23:55:50 -04:00
Pietro Gagliardi b91ee96316 Changed one of the names of the buttons in the small window test so it can be used for testing key equivalents in GTK+ and Mac OS X Areas. 2014-08-14 23:43:43 -04:00
Pietro Gagliardi 764ce362f3 Finally removed the TODO for buttons > 3 in GTK+ Areas (alas, bad end). 2014-08-14 23:28:22 -04:00
Pietro Gagliardi f4db1dcfc4 Can't think of a better name for sharedWndProc(). 2014-08-14 23:09:53 -04:00
Pietro Gagliardi 0bc79598c7 More future plans. 2014-08-14 19:45:33 -04:00
Pietro Gagliardi 6f385137fc Removed -[NSApp activateIgnoringOtherApps:]; see http://stackoverflow.com/a/25318870/3408572. I don't know how much of a burden this will be in practice. 2014-08-14 19:44:13 -04:00
Pietro Gagliardi 63981722cf Resolved Alt key woes on GTK+. 2014-08-14 18:55:54 -04:00
Pietro Gagliardi 5ca3f0f0f9 Made Labels on Windows transparent. 2014-08-14 17:13:52 -04:00
Pietro Gagliardi 307577889e Fixed some small issues in the C code of the Windows port. 2014-08-14 16:17:44 -04:00
Pietro Gagliardi 868161b7f0 Moved code to handle window user data in the Windows backend to a single function. 2014-08-14 16:12:43 -04:00
Pietro Gagliardi d944af8609 Split out common container window procedure code in Windows to its own function. 2014-08-14 16:00:31 -04:00
Pietro Gagliardi 52339e1f11 More TODOs. 2014-08-14 15:41:05 -04:00
Pietro Gagliardi 72375c7ef1 Made Windows container transparent. Transparency not completely functioning yet... 2014-08-14 15:19:34 -04:00
Pietro Gagliardi cf604f7b05 Fine-tuned margin/spacing values on Mac OS X. Also more future plans. 2014-08-14 13:44:24 -04:00
Pietro Gagliardi c187aa59b9 Moved TODO about Labels to mergeback/grid.go; will worry when Grids become a thing again. 2014-08-14 13:15:11 -04:00
Pietro Gagliardi acbe70b4e5 Fixed the infinite loop on Tab control dialog message bug(s) on the Windows backend. 2014-08-14 13:05:31 -04:00
Pietro Gagliardi 2c8bb7bc6d Fixed Tabs on Windows having undesirable tab stop behavior. This doesn't work correctly in wine, and I can confirm for the first time that it actually is a bug in wine! 2014-08-14 11:30:48 -04:00
Pietro Gagliardi c1dc235d3b Stripped C-style comments from C sources and headers where appropriate. 2014-08-14 10:42:10 -04:00
Pietro Gagliardi 19976849e1 Added C99 to the Windows and GTK+ cgo CFLAGS after Ian Taylor confirmed it was safe to use. 2014-08-14 10:26:09 -04:00
Pietro Gagliardi 7ddc99fd7f Merged xsizing_darwin.m into control_darwin.m. Even though alignment info is only currently used by Label, these functions are called in basegetAuxResizeInfo(), and who knows what will happen future. 2014-08-14 10:12:28 -04:00
Pietro Gagliardi eb4b082d7f Decided to consider the preferred size of all tabs on Windows; on Windows Tabs aren't really expected to resize based on which tab is selected, unlike Mac OS X... 2014-08-14 10:03:11 -04:00
Pietro Gagliardi a2629c2bbf Wrote the documentation for Go(). Also more TODOs. 2014-08-14 09:53:29 -04:00
Pietro Gagliardi 4e120b03df Removed GTK+ spurious resize TODO and debug spiel; I can't notice much of a difference after ignoring extraneous resizes. The custom container will stay, however, as it does not demonstrate weird background drawing bugs with oxygen-gtk. 2014-08-14 09:46:33 -04:00
Pietro Gagliardi c94a976822 Cleaned up a bunch of TODOs, moving a few to future plans. 2014-08-14 09:38:12 -04:00
Pietro Gagliardi d384df97d0 Implemented table column autoresize on Windows. Also fixed Windows/Mac OS X build. 2014-08-14 09:20:20 -04:00
Pietro Gagliardi 697b3cc1b0 Updated debug spew. 2014-08-14 08:00:05 -04:00
Pietro Gagliardi 9aacd55d58 Removed the preferred width/height calls from the custom GTK+ container; we aren't really going to use them. 2014-08-14 07:57:24 -04:00
Pietro Gagliardi 38772a1a4a Made the custom GTK+ container's forall safer in container_unix.c. 2014-08-14 07:52:53 -04:00
Pietro Gagliardi 8d7eb59fc5 g_ptr_array_remove() DOES preserve order; the documentation is bad. Removed that TODO from container_unix.c. 2014-08-14 07:42:51 -04:00
Pietro Gagliardi de22660ae4 Integrated the custom GTK+ container. Woo! Now to do minor fixups... 2014-08-13 23:37:54 -04:00
Pietro Gagliardi 9cad7bf60b Rewrote the GTK+ container to work for package ui. 2014-08-13 23:27:18 -04:00
Pietro Gagliardi c1e1b0549c Added beginning of the custom GTK+ contianer code. 2014-08-13 23:14:36 -04:00
Pietro Gagliardi ab0bb32b1b Made Tables tab stops on Windows. 2014-08-13 22:38:39 -04:00
Pietro Gagliardi c9f7a2191a Added missing URL from comments. 2014-08-13 17:31:40 -04:00
Pietro Gagliardi c167753bd9 Removed TODO about Windows Table sizing; the alternatives just don't work (literally). 2014-08-13 16:49:30 -04:00
Pietro Gagliardi 1c5f09d49e Removed TODO about using LVITEM memory for Tables on Windows. I would still need to do a UTF-16 conversion on the Go side, and it seems I can't do that to an already-available buffer (it can only be done to a freshly-allocated one). Not even with unicode/utf16. 2014-08-13 15:19:18 -04:00
Pietro Gagliardi 79c97996b3 I can't read; GDK_3BUTTON_PRESS actually must happen in double the time FROM THE FIRST CLICK, not half the time from the second click, so the behavior we have now is correct! TODO removed. 2014-08-13 15:00:32 -04:00
Pietro Gagliardi 952305be82 Rechecked Stack/Grid code; non-standalone Label behavior TODO removed. 2014-08-13 14:56:58 -04:00
Pietro Gagliardi 944da72875 Removed leftover from several commits ago. 2014-08-13 14:53:44 -04:00
Pietro Gagliardi f45a192247 Documented the previous commit and more TODOs. 2014-08-13 14:12:09 -04:00
Pietro Gagliardi 2a2d730d12 Decided to remove AreaHandler.Defocuses() as that mucks up with the Mac OS X keyboard trap. 2014-08-13 14:09:53 -04:00
Pietro Gagliardi 35228385c1 Kinda sorta maybe implemented AreaHandler.Defocus() on Mac OS X. Starting to think I should just not allow Areas to be focused out. 2014-08-13 14:02:10 -04:00
Pietro Gagliardi b01c653942 Made Areas on Windows tab stops and implemented AreaHandler.Defocuses() on Windows. 2014-08-13 10:41:27 -04:00
Pietro Gagliardi 59f2eeca22 Figured out why I'm getting intermittent crashes. Worked around for now, but will become a major issue soon... 2014-08-13 09:57:22 -04:00
Pietro Gagliardi e28b791489 Implemented AreaHandler.Defocuses() on GTK+. Also more future plans. 2014-08-13 08:01:13 -04:00
Pietro Gagliardi 0a4dfbbae1 Added a new method to AreaHandler, Defocuses(), for navigation events. 2014-08-12 22:58:23 -04:00
Pietro Gagliardi 503364af51 Added a proposal for a Sidebar control. 2014-08-12 21:02:47 -04:00
Pietro Gagliardi 6dcda6aafa Determined that Backspace, Tab, and Enter work in Areas on Windows (though more TODOs due to dialog message craziness). 2014-08-12 20:08:53 -04:00
Pietro Gagliardi 9b35def046 Refined a TODO. 2014-08-12 19:58:18 -04:00
Pietro Gagliardi c07a902935 More future plans. 2014-08-12 19:55:56 -04:00
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