Commit Graph

2314 Commits

Author SHA1 Message Date
Pietro Gagliardi 9654ca793d Changed the color dialog to edit HSV instead of RGB. This fixes issues with conversion that we had in the previous commit. The real question: will this break entering RGB values? 2016-05-17 13:52:56 -04:00
Pietro Gagliardi d892a8f710 Started making the color dialog editable. I'm going to have to store HSV and alpha instead of RGB and alpha... 2016-05-17 13:44:14 -04:00
Pietro Gagliardi 7c34acc2b7 And an itoutf16() too, because why not. Okay, NOW for updating the labels. 2016-05-17 12:44:43 -04:00
Pietro Gagliardi 8a1fe1f48a And added a proper invalidateRect(). 2016-05-17 12:41:41 -04:00
Pietro Gagliardi 473e0c9b69 Actually first let's do event handling. This adds a ftoutf16() function we can use here. 2016-05-17 12:35:44 -04:00
Pietro Gagliardi 027bb6782b Drew the marker on the color panel. Now for the hue slider. 2016-05-17 12:18:36 -04:00
Pietro Gagliardi 3128e58c5b Started drawing the SV chooser part of the Windows color dialog. 2016-05-16 23:54:28 -04:00
Pietro Gagliardi 2c160bb5eb Started work on the color dialog itself; positioned controls correctly to start. 2016-05-16 19:28:30 -04:00
Pietro Gagliardi 4b4a5c335f Laid out the Windows color dialog. 2016-05-16 17:07:30 -04:00
Pietro Gagliardi 6e7a74928d More TODOs. 2016-05-16 14:00:37 -04:00
Pietro Gagliardi 475326b111 Started implementing uiColorButton on Windows. This implements the color button itself. 2016-05-16 13:59:11 -04:00
Pietro Gagliardi 0ede964a3d TODO updates. 2016-05-16 09:58:16 -04:00
Pietro Gagliardi 695bca9033 Tested the worksWhenModal stuff for NSColorPanel; it works. 2016-05-16 09:40:02 -04:00
Pietro Gagliardi b47689090e Implemented uiColorButton on GTK+. 2016-05-15 23:18:11 -04:00
Pietro Gagliardi a038923060 Added a color well to the histogram example. 2016-05-15 21:02:35 -04:00
Pietro Gagliardi bf411e787e Implemented uiColorButton on OS X. 2016-05-15 20:51:33 -04:00
Pietro Gagliardi 68ad5f53fa Added uiColorButton. Let's implement this on OS X first. 2016-05-15 20:06:57 -04:00
Pietro Gagliardi 2226c54430 Made the font dialog respect our new modality rules on OS X. 2016-05-15 19:56:01 -04:00
Pietro Gagliardi 1db3027619 Finished the re-disabling of all windows on Windows dialogs. 2016-05-15 19:38:45 -04:00
Pietro Gagliardi 6a81921c1a More TODOs. 2016-05-15 19:26:58 -04:00
Pietro Gagliardi 1d08521cb7 Started reimplementing the old dialog helper stuff. Now that we're C++ on Windows, we can do this directly in window.cpp and save time. 2016-05-15 19:22:15 -04:00
Pietro Gagliardi c82942a81b More TODO stuff. 2016-05-15 19:15:00 -04:00
Pietro Gagliardi f855453aab More TODOs. 2016-05-15 19:06:20 -04:00
Pietro Gagliardi 0552e7c4a1 Revert "Made other windows get events when a dialog is running on OS X. Of course I only now realize this creates a recursiion problem..."
This isn't going to work. The only real solution is to disable every window like we're already doing here, make sure it happens on GTK+, and re-add the dialog helper stuff on Windows.

This reverts commit 20994639c0.
2016-05-15 19:04:35 -04:00
Pietro Gagliardi 52fff1520d Disabled page 11 for now. 2016-05-15 16:34:14 -04:00
Pietro Gagliardi 20994639c0 Made other windows get events when a dialog is running on OS X. Of course I only now realize this creates a recursiion problem... 2016-05-15 16:26:43 -04:00
Pietro Gagliardi 2f2db46109 Reverted the uiTab changes to allow NULL. Still debating whether to allow NULL or not. 2016-05-15 13:56:53 -04:00
Pietro Gagliardi 717486b7a2 Fixed some OS X 10.7 build errors. 2016-05-14 23:44:07 -04:00
Pietro Gagliardi 2c692eda36 More TODOs. 2016-05-14 22:10:43 -04:00
Pietro Gagliardi fd9f6cea6a Allowed uiGroups and uiTabs to have no and NULL controls with defined behavior on OS X. Actually added the test code this time. 2016-05-14 22:09:02 -04:00
Pietro Gagliardi 0e785d886b Started tests for truly empty uiGroups and uiTabs; started banning NULL in uiBox. 2016-05-14 21:53:24 -04:00
Pietro Gagliardi 79a522efb3 More TODO resolution. Thanks to someone (mikeash?) in irc.freenode.org/#macdev. 2016-05-14 21:29:44 -04:00
Pietro Gagliardi 232839020f More TODOs. 2016-05-14 11:39:51 -04:00
Pietro Gagliardi f0d6f84083 More TODOs. 2016-05-14 11:18:53 -04:00
Pietro Gagliardi 2f6329adcf Added the _UI_RELEASE macro for turning off debugging. We won't actually turn off debugging just yet. 2016-05-14 11:16:04 -04:00
Pietro Gagliardi 7ebb4cea9a Changed the release flag from NODEBUG to RELEASE. 2016-05-14 11:12:45 -04:00
Pietro Gagliardi aafb27cb2c Finished the complain() migration. 2016-05-13 23:29:41 -04:00
Pietro Gagliardi 8067dc76b7 Got rid of most of Windows's complain()s. 2016-05-13 22:53:56 -04:00
Pietro Gagliardi 6d2d977363 Cleaned up the debugging infrastructure on Windows (we stopped using the strsafe functions so there's no useful failure case anymore) and implemented the new one. 2016-05-13 22:05:02 -04:00
Pietro Gagliardi 15b370bc36 Started migrating out implbug() in the windows backend. I'm gonna need a cstrf() to go along with wstrf(). 2016-05-13 21:07:48 -04:00
Pietro Gagliardi 0205f2e5ca Got rid of complain() on GTK+. 2016-05-13 21:00:12 -04:00
Pietro Gagliardi 59eebb1e48 Cleaned up the debugging functions slightly. Now to convert the other backends. 2016-05-13 20:20:15 -04:00
Pietro Gagliardi d52c92d2f8 Cleaned out complain()s in the OS X backend. Affects everything *except* drawtext.m, which will need its own migration. 2016-05-13 20:14:46 -04:00
Pietro Gagliardi 1fede348ef More complain() migration; common/* handled. 2016-05-13 19:46:59 -04:00
Pietro Gagliardi a4f9d08281 Began replacing complain() with the more appropriate implbug() and userbug(). 2016-05-13 18:27:08 -04:00
Pietro Gagliardi 329fff82f6 Some more fixups and cleanups, especially in the matrix code. 2016-05-13 18:10:43 -04:00
Pietro Gagliardi 94587b660f Some TODO resolution and stale TODO removal. 2016-05-13 17:54:10 -04:00
Pietro Gagliardi 03337f61f1 Fixed Visual Studio 2015 builds. 2016-05-13 15:13:41 -04:00
Pietro Gagliardi 3425963606 Updated the darwin screenshot with our new Auto Layout fixes. 2016-05-13 13:36:27 -04:00
Pietro Gagliardi 8d5442b83f Fixed the last remaining edge cases. We're done! Auto Layout works~ ♫ 2016-05-13 13:28:20 -04:00