Commit Graph

1153 Commits

Author SHA1 Message Date
Pietro Gagliardi 05828236ec Migrated uitask_windows.go to the new string handling. 2014-06-03 10:48:21 -04:00
Pietro Gagliardi c5df1b1afc Removed a stray function from common_windows.go that both was not used and went against what we're trying to do with strings in Windows. 2014-06-03 10:42:26 -04:00
Pietro Gagliardi 25d8aeb993 Converted comctl_windows.go to use the new string wrapper functions. 2014-06-03 03:37:48 -04:00
Pietro Gagliardi 3058927f2e More TODOs. 2014-06-03 03:22:02 -04:00
Pietro Gagliardi 38800f027f Converted sysdata_windows.go to use the new string conversion setup from the previous commit. This has to be first, otherwise a few other things will fail to compile... 2014-06-03 03:20:04 -04:00
Pietro Gagliardi d8ee23ff74 Added convenience functions to the Windows backend for UTF-16 string handling. I'll convert the existing code to use it shortly. 2014-06-03 02:06:11 -04:00
Pietro Gagliardi fb8e64cb5a Removed a TODO from area_windows.go after verifying that what it flagged (GetKeyState() vs. GetAsyncKeyState()) is indeed what we want to do (the former). 2014-06-03 00:53:24 -04:00
Pietro Gagliardi 4ede7d497d Removed a policy TODO in area_windows.go; decided to keep the redundant entries in the Modifiers table table just to be safe. 2014-06-03 00:48:11 -04:00
Pietro Gagliardi b62fd3279f Removed a leftover TODO note in area_unix.go. 2014-06-02 22:10:23 -04:00
Pietro Gagliardi 99059483a7 Resolved TODOs in callbacks_unix.go. (For the returning FALSE TODO, I decided it would be safest to let event handlers propagate, as I did with Areas earlier.) 2014-06-02 22:07:50 -04:00
Pietro Gagliardi f170780324 Resolved command-line handling in the GTK+ backend by not doing it and documenting that we don't do it. 2014-06-02 21:25:28 -04:00
Pietro Gagliardi 74c851754c Gave message boxes on Windows the MB_TASKMODAL style, which does event modality to the other windows in the program. Does not affect resizes. 2014-06-02 17:12:10 -04:00
Pietro Gagliardi a1150fb9ea Added a test of MsgBox() event modality to the standard Area test. 2014-06-02 17:04:39 -04:00
Pietro Gagliardi 15c10b63de Removed leftover TODO about left-justifying labels in GTK+. 2014-06-02 15:24:01 -04:00
Pietro Gagliardi 9903fd624c Properly left-aligned Labels in GTK+. Also added a note to decide on/document/verify vertical alignment of Labels. 2014-06-02 15:22:31 -04:00
Pietro Gagliardi 812d547a5a Moved the GtkLayout transparency style to the new init-time style code in gtkcalls_unix.go. 2014-06-02 13:39:27 -04:00
Pietro Gagliardi 986bb201d9 Moved the GTK+ ProgressBar style stuff to the Go side and to gtk_init(). 2014-06-02 13:32:43 -04:00
Pietro Gagliardi 726f047655 Null-terminated the GtkLayout stylesheet string. This will be handy for consolidating all the GTK+ stylesheet stuff into a single Go-side init function. (Thanks to mischief, nsf, and dsal in irc.badnik.net/#go-nuts for confirming that this is valid.) 2014-06-02 13:13:16 -04:00
Pietro Gagliardi e28dff429d Made the GTK+ ProgressBar arbitrary resize a program-global style. 2014-06-02 13:01:36 -04:00
Pietro Gagliardi 09a5a859a0 Applied the Area events change to the Mac OS X backend, restructuring a few function signatures in the process. 2014-06-02 12:27:23 -04:00
Pietro Gagliardi c82949b8d2 Removed some more commented-out code from ages ago from area_unix.go. 2014-06-02 12:03:37 -04:00
Pietro Gagliardi 475e232ea1 Applied the new Area event behavior to the GTK+ backend. Yay, loads of TODOs resolved in one fell swoop! 2014-06-02 12:02:29 -04:00
Pietro Gagliardi 351177bc23 Implemented the new Area event handling on Windows. 2014-06-02 11:32:19 -04:00
Pietro Gagliardi a9ecc296ef Documented the changed event handling of Area. 2014-06-02 11:27:37 -04:00
Pietro Gagliardi 370649ec51 Decided to drop the whole handled thing with Area events and just continue the event chain if needed. Same for MousEvent; will have to document that. This is just the test program for now. 2014-06-01 23:34:26 -04:00
Pietro Gagliardi 7e5a810e51 Verified the previous commit. 2014-06-01 00:22:15 -04:00
Pietro Gagliardi e1f322dce0 Changed Unix Area WM_ACTIVATE equivalent handling to use enter-notify-event and leave-notify-event instead of focus-in-event and focus-out-event as suggested by tristan in irc.gimp.net/#gtk+. 2014-06-01 00:16:57 -04:00
Pietro Gagliardi cb3a421a25 Removed kVK_ANSI_KeypadClear from events_darwin.go; this is a holdover from early Mac keyboards that had a Clear key where Num Lock is on an IBM keyboard (for example, http://upload.wikimedia.org/wikipedia/commons/4/4e/Apple_Macintosh_Plus_Extended_Keyboard.jpg (via Psy| in irc.freenode.net/#macdev)) and is irrelevant to our usage. 2014-05-31 23:49:57 -04:00
Pietro Gagliardi 00fa09945d Decided not to rename Stack to Box because Box means a lot of different things; described problems with that in futureplans.md. 2014-05-31 21:09:07 -04:00
Pietro Gagliardi f93fc522cc Removed the future plan about not generating window classes on Windows for each new Window/Area now that we did that. 2014-05-30 23:44:57 -04:00
Pietro Gagliardi 2ec0460ac6 Removed TODOs about the sysData not being initialized at message time in area_windows.go; we have now solved that problem. 2014-05-30 23:41:35 -04:00
Pietro Gagliardi b13453ad9e Changed storeSysData() on Windows to write the HWND to the sysData structure there. This will be important for removing some of the TODOs from areaWndProc(). 2014-05-30 23:28:41 -04:00
Pietro Gagliardi 09f5c7764e Cleaned up the classType struct and sysData.make() in sysdata_windows.go to remove unused fields and the window class registration code now that we no longer register window classes on the fly for each new Window/Area. 2014-05-30 23:07:19 -04:00
Pietro Gagliardi 2e0914e575 Changed Areas on WIndows so that they all use the same window class, rather than having one per Area. 2014-05-30 23:02:15 -04:00
Pietro Gagliardi 855a09656a Changed Areas on Windows to store their sysData inside the window memory instead of being given it via a closure. Actually having only one window class for all Areas comes next. 2014-05-30 22:14:55 -04:00
Pietro Gagliardi a3e27bfbd0 Converted the standard Windows window class (for Window) to be a single class, rather than having a new one for each Window. Now for Area. 2014-05-30 21:49:55 -04:00
Pietro Gagliardi e5ec4bb159 Some quick formatting changes to stdwndclass_windows.go. 2014-05-30 18:03:57 -04:00
Pietro Gagliardi 4a66f1467b Moved the standard window class (for Window) on Windows to get the sysData pointer from CreateWindowEx() and store it in the window memory instead of being given it via a closure. This will lead to having only one window class for all Windows, which will come next. Also fixed an error in windowsconstgen's output related to GetWindowLongPtr()/SetWindowLongPtr(). 2014-05-30 17:59:29 -04:00
Pietro Gagliardi c543f5639b Normalized DefWindowProc() handling across the Windows files; the syscall.LazyProc now has the normalized name _defWindowProc and defWindowProc() is a convenience function that calls _defWindowProc properly. This will also be important for the switch to a single window class per Window/Area. 2014-05-30 14:15:32 -04:00
Pietro Gagliardi 78c909cc9b Added GetWindowLongPtr()/SetWindowLongPtr() generation to the windowsconstgen tool and the pregenerated files. This will be needed for when we get rid of creating a new window class for each Window/Area. Also did some minor cleanup to the windowsconstgen tool. 2014-05-30 14:02:57 -04:00
Pietro Gagliardi 029465e814 Decided not to use SendMessage() in the Windows uitask() as we're already waiting for an event return anyway. Decided not to move the message-only window to an init file, as the message-only window is for uitask(). 2014-05-29 19:36:33 -04:00
Pietro Gagliardi b648af160b Added new Modifiers code for Mac OS X. Also fixed some comment typos and added more TODOs. 2014-05-29 14:26:45 -04:00
Pietro Gagliardi 4bb028b976 More TODOs. Also preemptively removed the Modifiers TODO; I'll be implementing it on Mac OS X now. 2014-05-29 13:41:17 -04:00
Pietro Gagliardi 055cd36b20 Added the new Modifiers handling to the Windows backend. 2014-05-29 12:17:02 -04:00
Pietro Gagliardi 20a7e4fb62 Implemented the new Modifiers behavior on the GTK+ backend. In addition, removed some code commented out long ago and restructured a few functions for the change. 2014-05-29 11:49:59 -04:00
Pietro Gagliardi 1b23de9c78 Changed the Modifiers behavior in KeyEvent to more properly handle modifier keys. This is just the public interface for now; next comes all the backends. 2014-05-29 11:42:17 -04:00
Pietro Gagliardi 4045d50f94 Checked to see if the previous commit worked after removing the leftover Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well. 2014-05-29 04:41:07 -04:00
Pietro Gagliardi 4baa9397e6 Merged back combobox_darwin.m, rewrote it to use boundListboxArray() instead of creating a whole new object, and implemented what appears to be a fix for NSPopUpButton selection. Will delete the unneeded select(-1) code later and test again... 2014-05-28 23:46:33 -04:00
Pietro Gagliardi e3edc7e0c3 Added the CL and some notes to the README since it won't land in Go 1.3. I should probably retool this README... 2014-05-28 12:19:22 -04:00
Pietro Gagliardi a016114bdf Removed commented-out checkbox stuff from controls_windows.go since we'll be sending messages directly to the checkbox instead. We still have to worry about radio buttons, so I'm not merging controls_windows.go into common_windows.go just yet. 2014-05-26 22:39:30 -04:00