Commit Graph

1984 Commits

Author SHA1 Message Date
Pietro Gagliardi 969700f790 Removed WindowHandler. 2014-07-01 09:33:49 -04:00
Pietro Gagliardi f4963e909b Made Button.Clicked a callback. 2014-07-01 08:51:19 -04:00
Pietro Gagliardi 3565889e15 Made Window.Closing a callback closure. 2014-06-30 23:48:08 -04:00
Pietro Gagliardi ffa1bbe0b9 Restored the previous new API. I'm going to change it so that events are callbacks rather than using a window handler, but other than that... yeah. 2014-06-30 22:48:12 -04:00
Pietro Gagliardi 990d50e9a1 Rolled back all those changes; I'm stupid. 2014-06-30 22:42:48 -04:00
Pietro Gagliardi e8a7dd0b87 Converted the Mac OS X backend to use uitask() instead of uitask chan func(). 2014-06-30 21:21:55 -04:00
Pietro Gagliardi 46ba0049cb Converted the Windows backend to make uitask a function that runs the func() passed into it, rather than a channel that sends the function to another dispatcher. Windows lets us, since SendMessage() will switch threads if called form another thread. This gets rid of one goroutine and makes things cleaner. Mac OS X has the same optimization avaialble (performSelectorOnMainThread:); GTK+... doesn't seem to... 2014-06-30 20:55:42 -04:00
Pietro Gagliardi 496df12751 Disabled MsgBox() on Windows for the time being; I'm going to restructure uitask to avoid needing to deal with channels and it's the only thing using uimsg now. 2014-06-30 20:36:30 -04:00
Pietro Gagliardi 33155f7496 Reverted everything back to the old API. 2014-06-30 09:57:44 -04:00
Pietro Gagliardi e032807546 Copied all the handler-based stuff to a ZIP file as I'm rolling it all back. 2014-06-30 09:56:48 -04:00
Pietro Gagliardi d73a82af38 More TODOs. 2014-06-29 23:21:16 -04:00
Pietro Gagliardi ccbe01e49e Made the "Title and Text" message box parented like it should have been. This will also allow me to evaluate what happens if message boxes that are parented are closed in non-reverse order. 2014-06-29 17:36:37 -04:00
Pietro Gagliardi 6c913bd3e6 More TODOs. 2014-06-29 15:46:06 -04:00
Pietro Gagliardi 3ade409dde FIxed compilation errors in the Mac OS X build. It works, but I still need to fix dialogs before I can push anything. 2014-06-29 14:08:01 -04:00
Pietro Gagliardi 580b06638f More of the same conversion. 2014-06-29 10:45:46 -04:00
Pietro Gagliardi bc50405364 More dialog_darwin.go/.m conversion. 2014-06-29 10:44:03 -04:00
Pietro Gagliardi 7e0a0db492 Did most of the conversion of dialog_darwin.go/.m to the new API. 2014-06-29 10:41:02 -04:00
Pietro Gagliardi f4677247f1 Removed stable.md (it is no longer relevant) and moved redoproposal.md to olddocs/ since it's now being implemented. 2014-06-29 09:33:00 -04:00
Pietro Gagliardi ed989a9d9f Migrated sysdata_darwin.go and uitask_darwin.go to the new API. Now to just wait for the answer to my Stack Overflow question so I can migrate dialog_darwin.go... 2014-06-29 09:07:14 -04:00
Pietro Gagliardi dff7ed3321 Migrated the Mac OS X delegate code to the new API. 2014-06-29 03:09:01 -04:00
Pietro Gagliardi c807771092 More TODOs. 2014-06-28 21:42:54 -04:00
Pietro Gagliardi 385993792f Migrated the GTK+ backend to the new API. 2014-06-28 21:40:44 -04:00
Pietro Gagliardi affc65a5a4 Fixed the build. New API works on Windows! Also removed TODO on dialogs in Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it. 2014-06-28 16:37:55 -04:00
Pietro Gagliardi 02d6a03ba3 Decided to make dialogs code-modal; will figure out how to get the behavior I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works... 2014-06-28 16:02:50 -04:00
Pietro Gagliardi cd116033a3 Adjusted window.go to make safe functions actually safe. 2014-06-28 15:40:06 -04:00
Pietro Gagliardi 7a1331c04c Converted most of the rest of the test program. Now I just need to figure out what I'm going to do about dialog modality... ugh. 2014-06-28 11:36:55 -04:00
Pietro Gagliardi 35b2c6fa53 Converted most of the rest of the test program to the new API. 2014-06-28 11:08:24 -04:00
Pietro Gagliardi cb10c0fc17 Migrated the keyboard test to the new API. 2014-06-28 10:56:12 -04:00
Pietro Gagliardi 98e701cd3b Migrated uitask_windows.go to the new API. 2014-06-28 10:49:23 -04:00
Pietro Gagliardi f7438c0e10 Migrated init.go to the new API. This should probably be renamed now. 2014-06-28 10:15:24 -04:00
Pietro Gagliardi 3fbf746682 Added rewrite of most of the dialog system for the new API. The Windows API is, however, getting in the way... 2014-06-28 09:37:31 -04:00
Pietro Gagliardi 9134189f52 Migrated controlsize_windows.go and stdwndclass_windows.go to the new API. 2014-06-28 07:25:42 -04:00
Pietro Gagliardi 2e7f3d299e Migrated sysdata_windows.go to the new API. Also more TODOs. 2014-06-28 02:55:15 -04:00
Pietro Gagliardi a894c3fc6d Documented the new Window.Closing behavior. 2014-06-28 02:16:52 -04:00
Pietro Gagliardi c8ae74cf26 Implemented the new events in the portable code. 2014-06-28 01:57:07 -04:00
Pietro Gagliardi d13e398e90 Migrated window.go and sysdata.go to the new API. Controls will need to be migrated as well. 2014-06-28 01:22:40 -04:00
Pietro Gagliardi ea6200a432 Began the migration to the new API. Removed locks from the public control APIs; they won't be needed anymore. 2014-06-28 01:05:06 -04:00
Pietro Gagliardi 05ffc6511a Added propsoal for the API rewrite. 2014-06-27 21:51:44 -04:00
Pietro Gagliardi b5fdadda37 Updated README. 2014-06-27 17:32:40 -04:00
Pietro Gagliardi bab7cfd23b Fixed README and removed Checkbox.SetChecked() from the future plans. 2014-06-26 22:04:01 -04:00
Pietro Gagliardi 20821c26eb Implemented Checkbox.SetChecked() on Mac OS X and updated the README. 2014-06-26 21:54:14 -04:00
Pietro Gagliardi ebbd76716f Implemented Checkbox.SetChecked() on Windows. 2014-06-26 21:40:23 -04:00
Pietro Gagliardi 098beef996 Added Checkbox.SetChecked() and implemented it on GTK+. 2014-06-26 21:36:46 -04:00
Pietro Gagliardi 5c002e3d0f Allowed tab stops on Windows; see http://blogs.msdn.com/b/oldnewthing/archive/2003/10/21/55384.aspx. Fixes #13 2014-06-26 20:20:00 -04:00
Pietro Gagliardi 700fef758b Removed the special-casing of GtkLayout to have transparent frames: this breaks the Ubuntu GTK+ 3 themes (Ambianace and Radiance) with their correct renderer (see https://github.com/andlabs/ui/pull/19#issuecomment-47273597), and the KDE bug has now been fixed. 2014-06-26 17:04:56 -04:00
Pietro Gagliardi 2e9e2732e7 Fixed README and removed padding/spacing from future plans. 2014-06-26 16:01:22 -04:00
Pietro Gagliardi 2c13236bf8 Updated README. 2014-06-26 15:59:13 -04:00
Pietro Gagliardi c401617637 Merge pull request #21 from boppreh/master
Fix layout.go in regard to new padding and margin
2014-06-26 15:51:34 -04:00
BoppreH 85f759ea5f Remove padding and margin from layout.go 2014-06-26 15:37:19 -03:00
Pietro Gagliardi 999e669aa4 Merge branch 'master' of github.com:andlabs/ui 2014-06-26 14:24:16 -04:00