Commit Graph

4196 Commits

Author SHA1 Message Date
Pietro Gagliardi 69b794c0b0 Implemented uiCheckbox on Windows. Fixed build issues in the test program. 2015-04-09 12:32:59 -04:00
Pietro Gagliardi c2d98a8b0e Added uiCheckboxOnToggled(). 2015-04-09 12:26:59 -04:00
Pietro Gagliardi 8d30e1df39 Added a checkbox to the test program. It won't do anything just yet... 2015-04-09 12:14:18 -04:00
Pietro Gagliardi 07fc337324 Implemented the text functions on OS X. 2015-04-09 11:54:02 -04:00
Pietro Gagliardi 8e0d74865d Fixed a runtime parameters bug in the previous commit. 2015-04-09 11:37:29 -04:00
Pietro Gagliardi 880008b716 Implemented the text functions on Windows. 2015-04-09 11:12:01 -04:00
Pietro Gagliardi 2b52563cd9 Split toUTF16() into a new file; other Windows text functions will also be there. 2015-04-09 09:24:08 -04:00
Pietro Gagliardi b6bd0c1c26 Implemented the text routines on the GTK+ backend. They work! 2015-04-09 02:56:51 -04:00
Pietro Gagliardi ba66d7308a Re-enabled the text manipulation code in the test program. 2015-04-09 02:43:49 -04:00
Pietro Gagliardi 27b7089423 Implemented uiEntry on Mac OS X. Now I can get to writing the text and title functions... 2015-04-09 02:35:52 -04:00
Pietro Gagliardi 0097b1badc Implemented uiEntry on Windows. 2015-04-08 23:43:01 -04:00
Pietro Gagliardi 8bafd1f8e0 Implemented uiEntry on GTK+. 2015-04-08 23:28:47 -04:00
Pietro Gagliardi 9f645e3ad3 Decided to call it uiEntry for now. 2015-04-08 23:22:59 -04:00
Pietro Gagliardi 878e3e5e6e Wrote up a new test program that will feature uiEntry when I write it (next). 2015-04-08 21:25:30 -04:00
Pietro Gagliardi fa8389e98a Decided to not call InvalidateRect() in the Windows updateParent(); the Cocoa one doesn't either, and besides, if controls expose something then the parent areas would be invalidated anyway :/ More TODO removal. 2015-04-08 21:08:53 -04:00
Pietro Gagliardi a2d785e22a "Fixed" initial Windows window shows for now (see previous commit). Not yet a clean fix; need to test some things on real Windows first. 2015-04-08 20:53:34 -04:00
Pietro Gagliardi 6faf0d172b Fixed flicker and minimize issues on Windows. Simple mistake; should have used WM_WINDOWPOSCHANGED instead of WM_WINDOWPOSCHANGING. Startup looks wrong; will fix that next. 2015-04-08 20:37:32 -04:00
Pietro Gagliardi b9c38ebd20 More TODO resolution. 2015-04-08 20:14:10 -04:00
Pietro Gagliardi f2537aadd3 More TODO resolution. 2015-04-08 20:01:33 -04:00
Pietro Gagliardi ae31cbc089 Decided not to take the suggestions of some TODOs in ui.h. 2015-04-08 19:53:15 -04:00
Pietro Gagliardi afdce07d61 Removed some stale TODOs. 2015-04-08 19:22:13 -04:00
Pietro Gagliardi 310fbe58fd And implemented proper control showing on Mac OS X. 2015-04-08 19:14:22 -04:00
Pietro Gagliardi f470768a8e Implemented the parent updating logic on GTK+. 2015-04-08 18:58:59 -04:00
Pietro Gagliardi 9d67ec7fa4 More TODOs. 2015-04-08 18:32:32 -04:00
Pietro Gagliardi 2e9ff88561 Fixed initial (and future) window redraw issues on Windows. 2015-04-08 18:04:46 -04:00
Pietro Gagliardi b95975302e More TODO resolution. 2015-04-08 17:19:44 -04:00
Pietro Gagliardi da7aacd4db More TODO resolving. More TODOs. 2015-04-08 17:08:25 -04:00
Pietro Gagliardi dfcbc83ec9 Removed a stale TODO. 2015-04-08 16:35:03 -04:00
Pietro Gagliardi 45d3072672 Decided not to turn new control scrolling parameters into a bitfield. 2015-04-08 16:27:45 -04:00
Pietro Gagliardi 3134440f3d Removed the need for specifying if a GTK+ widget needs to be in a GtkViewport for it to be scrollable; the new control code finds out itself now in the same way newer versions of GTK+ do. 2015-04-08 16:24:11 -04:00
Pietro Gagliardi 7b6a11d36a Cleaned up window_darwin.m's data structure juggling. 2015-04-08 16:04:27 -04:00
Pietro Gagliardi 93ead17eef Built up a better system for handling data cleanup on Mac OS X; thanks to http://stackoverflow.com/questions/29522715/is-there-a-reliable-way-to-destroy-private-data-structures-when-a-standard-nsvie. 2015-04-08 15:53:50 -04:00
Pietro Gagliardi 5a4ce7bd91 More TODOs. 2015-04-08 05:13:38 -04:00
Pietro Gagliardi 894950fb1b Fixed compilation errors. Hm, nothing is still freed... 2015-04-08 04:48:03 -04:00
Pietro Gagliardi 12ff16e994 Cleaned up the uiWindow Darwin implementation. Let's try this again... 2015-04-08 04:38:34 -04:00
Pietro Gagliardi 2214f27cb4 Cleaned out some of that gunk. I can't avoid subclassing the standard controls, but making it so that the uiControl returned by uiDarwinNewControl() can be freed by the caller will help. 2015-04-08 04:35:50 -04:00
Pietro Gagliardi 44d8833a64 Wrote up cleanup gunk on Mac OS X. Really gunk; I don't like what all this does but I don't think there's another way. 2015-04-08 03:38:08 -04:00
Pietro Gagliardi 9e4e11da8c Better monitoring of Objective-C objects (including main GUI objects). 2015-04-08 02:28:42 -04:00
Pietro Gagliardi fc8f9c6719 Cleaned up memory leaks in the GTK+ backend. 2015-04-08 01:16:22 -04:00
Pietro Gagliardi 00e31d0a2b Finished Windows cleanup management. Everything (almost, only parentWindow is still around, but that shouldn't be a uiWindow to begin with) now cleaned! 2015-04-08 00:51:50 -04:00
Pietro Gagliardi df4c5f270c Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows. 2015-04-08 00:43:35 -04:00
Pietro Gagliardi d6bf5d6d48 Added allocation logging to Objective-C objects. Fixed some Mac OS X build issues. 2015-04-08 00:27:03 -04:00
Pietro Gagliardi 33c67baa99 Added an awk script to check for leaks in the memory logging output we just added. 2015-04-07 23:53:10 -04:00
Pietro Gagliardi cdd37793c0 Implemented the memory logging. 2015-04-07 23:40:18 -04:00
Pietro Gagliardi f3e7227739 Decided to remove the logging for now. Will inject it right into the allocation system later. 2015-04-07 22:58:06 -04:00
Pietro Gagliardi a039e12d8a More allocation logging. I wonder if I can just log directly in the allocators themselves... 2015-04-07 22:54:21 -04:00
Pietro Gagliardi 1375b3f21f More TODO cleanup. 2015-04-07 22:48:02 -04:00
Pietro Gagliardi bb10227642 Started working on code to monitor creation and deletion of UI objects correctly. 2015-04-07 22:46:15 -04:00
Pietro Gagliardi a272242052 Added WS_TABSTOP to uiButton on Windows. 2015-04-07 22:23:25 -04:00
Pietro Gagliardi d0fa7b2cb1 Resolved a bunch of TODOs. Added one. 2015-04-07 22:19:24 -04:00