Commit Graph

1116 Commits

Author SHA1 Message Date
Pietro Gagliardi 582e3b4644 Implemented triple-clicks and up on Windows. 2014-05-23 17:01:56 -04:00
Pietro Gagliardi 92e4d32284 Added code that will replace the toolkit-internal double-click/triple-click handling in an effort to normalize click count handling. 2014-05-23 14:03:57 -04:00
Pietro Gagliardi 63ae00622a More TODOs about mouse button click counts. The GTK+ implementation might be the killer here... 2014-05-23 13:00:19 -04:00
Pietro Gagliardi ec2749d46c Updated some TODOs (part 2 of yesterday's The Old New Thing post). 2014-05-22 23:23:10 -04:00
Pietro Gagliardi 0b609178ff More of the previous commit. 2014-05-22 04:01:35 -04:00
Pietro Gagliardi 77d861354e More KeyEvent Modifiers designing in the TODO file. 2014-05-22 03:59:19 -04:00
Pietro Gagliardi 6a07a06cb8 Updated TODO on modifier keys handling in KeyEvent. 2014-05-22 03:44:25 -04:00
Pietro Gagliardi e2ab537474 Updated a TODO with a The Old New Thing blog post link posted today (!) that answers the question the TODO asks. 2014-05-21 23:19:55 -04:00
Pietro Gagliardi 8c386274e9 Removed TODO about pixel alignment of scrollviews on Mac OS X; mikeash in irc.freenode.net/#macdev told me this only happens when using fractional pixels (because Mac OS X lets you use fractional coordinates and sizes), so we don't have an issue since all our coordinates are integers. 2014-05-21 18:44:20 -04:00
Pietro Gagliardi 5b0f8e8cc7 Updated TODOs after confirming that Windows and Mac do have MouseEvent.Held[] sorted. 2014-05-20 12:32:05 -04:00
Pietro Gagliardi c01549420d Removed 10.6 build issues from TODO now that that's done. 2014-05-20 09:03:44 -04:00
Pietro Gagliardi 989ac438fc Fixed the whole NSApplication.h thing so now the project builds with both 10.6 and 10.8. Ugh. 2014-05-20 08:35:39 -04:00
Pietro Gagliardi c6d24f0e32 Changed #include to #import on the Objective-C files to settle the whole include guards thing. Now to continue fixing Mac OS X 10.6 building... 2014-05-20 08:08:55 -04:00
Pietro Gagliardi 3e9e767d79 Fixed the Mac OS X 10.6 building using a rather hackish approach... Now it won't build on 10.6 itself without problems, so... 2014-05-20 07:46:57 -04:00
Pietro Gagliardi 5f5f4f6c2a Set up the Mac OS X build to always target Mac OS X 10.6 regardless of the host system; this is what we want and by default building on 10.8 produces binaries which won't run on 10.6. This isn't working yet, though: one enum in NSApplication.h becomes empty on 10.6... 2014-05-19 23:53:10 -04:00
Pietro Gagliardi 946e007e5d Same as previous commit, but for Mac OS X now. The #cgo directives are in uitask_darwin.go. 2014-05-19 22:52:59 -04:00
Pietro Gagliardi a48dd80add Removed the extra #cgo directives from the Unix files. cgo collects directives from ALL files, rather than using each file's directive individually, so having them combined like this is pointless. Instead, the #cgo directives are (or is, since there's only one) in uitask_unix.go. Will do the same for Mac next; this will help since we're going to add a CFLAGS value afterward. 2014-05-19 22:32:38 -04:00
Pietro Gagliardi 4e820e86fc Moved gtk_main() such that uitask_unix.go calls it directly via cgo. This is in preparation for the next two commits, which will remove the #cgo directives from all files except the uitask_*.go files, since they're being concatenated across files. 2014-05-19 22:18:53 -04:00
Pietro Gagliardi 7b7005ec19 TODO file update. 2014-05-19 00:11:50 -04:00
Pietro Gagliardi cadbc174e3 Removed TODO about buttons 1+3 causing a button 2 click on Mac OS X Areas... it was actually on my host's end: X11/KDE is doing it, and I never noticed that before, nor do I remember that happening on the Windows/wine or GTK+ versions :S That's it for the TODOs in the Mac OS X Go files! :D 2014-05-18 12:53:15 -04:00
Pietro Gagliardi 216b5c183c Made drawing of NSScrollView backgrounds explicit on Mac OS X. This is what Interface Builder sets for NSTableViews, so we do that too for Listbox. This also means NSScrollView draws the background for our Areas, settling the clear clip rect TODO. 2014-05-17 20:21:48 -04:00
Pietro Gagliardi b9c12da838 More TODOs (see previous commit). 2014-05-17 17:10:23 -04:00
Pietro Gagliardi 24cac41de6 Decided to unconditionally redraw everything on a window resize on Mac OS X. Now to add TODOs for the other platforms to see if we should do the same. 2014-05-17 17:07:53 -04:00
Pietro Gagliardi ce14390eff Fixed variable names in Area drawing code on Unix to reflect that image.Rectangle is point-to-point, not origin/size like on Mac OS X. Windows was already fine; it just uses "left, top, right, and bottom" instead of "x0, y0, x1, and y1". 2014-05-17 17:01:52 -04:00
Pietro Gagliardi 352c60bf68 More clarification on the previous commit. 2014-05-17 16:21:25 -04:00
Pietro Gagliardi eca42bc152 Removed TODO about not using bad-for-tracking features of NSEvent in Areas on Mac OS X since that's not relevant to our use of tracking areas. 2014-05-17 16:19:42 -04:00
Pietro Gagliardi aa530add43 Added experimental code that tried, and failed, to combat combobox autoselection on Mac OS X. 2014-05-17 15:06:44 -04:00
Pietro Gagliardi 6a06292081 Added the Stack Overflow link for Mac OS X Listbox insertion autoselection and fixed deletion autoselection as well. 2014-05-17 13:27:54 -04:00
Pietro Gagliardi be56293e9c Found a method in NSArrayController via Stack Overflow which lets me suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension. 2014-05-17 12:42:00 -04:00
Pietro Gagliardi cc74fda950 Started working on a blog post of NSTableView creation in code, so removed the respective personal TODO in listbox_darwin.go. 2014-05-16 23:12:40 -04:00
Pietro Gagliardi d8a7d9b53e Fixed up a bunch of Mac OS X function names, mostly Listbox-related, to be more clear and more consistent. 2014-05-16 20:44:19 -04:00
Pietro Gagliardi 6d67bce9b1 Moved toBOOL() from sysdata_darwin.go to objc_darwin.go since it's used by other Mac OS X files too. 2014-05-16 20:29:16 -04:00
Pietro Gagliardi 8ce1555ca2 Decided not to move the initCocoa() function to a file init_darwin.go because it's small enough now that it doesn't matter. 2014-05-16 20:24:30 -04:00
Pietro Gagliardi 332f9ffd5b Moved some old documents out of the top-level directory and into a folder olddocs/ to make things neater. 2014-05-16 19:57:25 -04:00
Pietro Gagliardi dc179b3a44 Implemented the Super and order changes on Mac OS X. Meta is irrelevant here. 2014-05-16 19:52:28 -04:00
Pietro Gagliardi 5176b0e9dd Added proper Super handling on Windows. Meta isn't used here and the modifiers were already in the correct order. 2014-05-16 18:56:03 -04:00
Pietro Gagliardi ea9b4bdfc2 Added (most of) the Super and Meta changes for GTK+. The Modifiers were already in the correct order. 2014-05-16 18:39:08 -04:00
Pietro Gagliardi 13397f91ee Changed the meaning of the Modifiers keys to be positional, added Super, and pinned down Meta vs. Alt. All but the Meta/Alt one were done after discussion in #go-nuts about how to handle differences in user expectation properly. This is the portable interface only; each platform implementation comes next. 2014-05-16 18:16:25 -04:00
Pietro Gagliardi da2bd70192 Removed Objective-C runtime TODOs from todo.md. 2014-05-16 09:16:44 -04:00
Pietro Gagliardi 3d5aafcf7d Updated the README for the Objective-C change. 2014-05-16 09:16:17 -04:00
Pietro Gagliardi a9717bfb4f Organized the dummyRect declarations/definitions/etc. in the Objective-C files. I think that's it for the Objective-C conversion of the Mac OS X code! 2014-05-16 09:13:11 -04:00
Pietro Gagliardi acc4a54356 Resolved the TODO about one of the functions in sysdata_darwin.m not being properly type-checked: I forgot to include sysdata_darwin.h (it was commented out)! Not a problem anymore, of course... 2014-05-16 06:56:33 -04:00
Pietro Gagliardi ebcbaa129d Combined all the Objective-C headers into objc_darwin.h. 2014-05-16 06:49:29 -04:00
Pietro Gagliardi 402e73c307 Whoops, forgot to add objc_darwin.m to git! 2014-05-16 06:38:18 -04:00
Pietro Gagliardi 14b3696d96 Cleaned up objc_darwin.h and changed all instances of int64_t in the wrapper structs to intptr_t. 2014-05-16 06:37:25 -04:00
Pietro Gagliardi 8084ef53e1 Removed bleh_darwin.m and the initBleh() function that it contained as its only remaining code. 2014-05-16 02:00:21 -04:00
Pietro Gagliardi 08e86ea9b3 Removed the dummy NSEvent code from bleh_darwin.m and rewrote it in Objective-C in delegateuitask_darwin.m. And now to nuke bleh_darwin.m and change all the int64_ts to intptr_ts and merge the .h files... 2014-05-15 23:04:30 -04:00
Pietro Gagliardi 3b4924a156 Removed some residual drawRect: stuff from bleh_darwin.m. So close... 2014-05-15 22:30:19 -04:00
Pietro Gagliardi 524867574b Removed the Area drawing code from bleh_darwin.m and rewrote it in Objective-C in area_darwin.m. 2014-05-15 22:15:54 -04:00
Pietro Gagliardi 31fc77a99d Removed the event point translation from bleh_darwin.m and rewrote it in Objective-C in area_darwin.m. 2014-05-15 21:45:42 -04:00