Commit Graph

52 Commits

Author SHA1 Message Date
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
Pietro Gagliardi 30eb8fa142 Added loading of the standard user32.dll class replacements to comctl32_windows.c. 2015-04-07 22:01:42 -04:00
Pietro Gagliardi 5be4572302 Decided to remove containerShow() and containerHide() for now. 2015-04-07 21:05:47 -04:00
Pietro Gagliardi 05a1cc535a Implemented new control preferredSize() on Mac OS X. Now that Stack works everywhere, I can resolve TODOs. 2015-04-07 20:28:28 -04:00
Pietro Gagliardi a6f175767e Changed the GTK+ new control system from using g_object_newv() to using g_object_new_valist() due to weird crashes. 2015-04-07 19:47:44 -04:00
Pietro Gagliardi 84c55e185d Fixed compiler warnings. Stack works! 2015-04-07 19:36:46 -04:00
Pietro Gagliardi 78aa64f7ca Implemented uiButton.preferredSize() on Windows. This includes adding a function to get the width of text in a control. 2015-04-07 19:32:16 -04:00
Pietro Gagliardi f1fe0b70e7 Wrote in the Stack test. The only thing left is to implement uiButton.preferredSize()... 2015-04-07 19:11:21 -04:00
Pietro Gagliardi a63ed525c9 Fixed compilation errors. 2015-04-07 19:08:39 -04:00
Pietro Gagliardi 3b1e5148d9 Unified the allocators across all platforms so that everyone uses uiAlloc() and friends. 2015-04-07 19:04:09 -04:00
Pietro Gagliardi 6370c7d063 Added uiStack. Not yet tested; need to do a few things first. 2015-04-07 18:53:09 -04:00
Pietro Gagliardi e4d30e3860 More TODOs. 2015-04-07 16:59:23 -04:00
Pietro Gagliardi 28adb7fee5 Fixed compiler errors and bugs. uiButton on Mac OS X works! 2015-04-07 16:38:51 -04:00
Pietro Gagliardi 2b40ad90ad Implemented uiButton on Mac OS X. Now to fix build issues and test... 2015-04-07 16:12:28 -04:00
Pietro Gagliardi e53ec76fb5 Added the Mac OS X uiContainer. Added it to uiWindow. Added the Mac OS X coordinate system mirroring to the new control logic. Renamed *_darwin.c to *_darwin.m. 2015-04-07 15:45:56 -04:00
Pietro Gagliardi 35342e44e7 Added the uiDarwinControl logic. 2015-04-07 14:42:52 -04:00
Pietro Gagliardi 596ab2e413 Fixed button showing on GTK+. GTK+ uiButton done! 2015-04-07 14:13:42 -04:00
Pietro Gagliardi d88a727799 Implemented uiButton on GTK+. All we need to do is get it to show up... 2015-04-07 13:58:50 -04:00
Pietro Gagliardi 880f052282 Fixed compilation issues. Now to implement uiButton on GTK+. 2015-04-07 13:37:03 -04:00
Pietro Gagliardi ce232fdc7e Tied everything together. Now to fix build issues. 2015-04-07 13:22:46 -04:00
Pietro Gagliardi 79d1877202 Added uiContainer, the GtkFixed equivalent for use by the GTK+ backend. Fixed up formatting of the uipriv_*.h files. 2015-04-07 12:59:01 -04:00
Pietro Gagliardi 4b13f93dbe Added the new native control code to the GTK+ backend. Fixed some missing statics in the Windows one too. 2015-04-07 12:17:05 -04:00
Pietro Gagliardi 5db89a524b Moved Windows container functions from util_windows.c to container_windows.c. 2015-04-07 11:39:15 -04:00
Pietro Gagliardi 85e711e54c _snprintf_s() is not supported on Windows XP... 2015-04-07 04:22:30 -04:00
Pietro Gagliardi 978e9b5e94 Added uiControlHandle() and fixed other uiButton issues. 2015-04-07 04:12:03 -04:00
Pietro Gagliardi 5b36956ecb Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works! 2015-04-07 04:02:21 -04:00
Pietro Gagliardi fecb7caa14 Hooked up resizing. Now to make a control that uses this. 2015-04-07 03:39:47 -04:00
Pietro Gagliardi a09430113f Fixed build issues. Now I just need to hook resizing into uiWindow and implement a control and we'll be set... 2015-04-07 03:12:34 -04:00
Pietro Gagliardi 54259ed98b Hooked everything else together (initialParent, ui_windows.h in uipriv_windows.h). Now to fix build issues... (like a missing const in const char * fixed here too). 2015-04-07 03:02:07 -04:00
Pietro Gagliardi 300c86b590 Hooked up the WM_COMMAND and WM_NOTIFY bouncers. 2015-04-07 02:55:33 -04:00
Pietro Gagliardi 9e26519338 Added subclassing, which finishes off newcontrol_windows.c. 2015-04-07 02:46:27 -04:00
Pietro Gagliardi 0d3e64a44d Added Common Controls code again (because we're going to need the subclassing functions now). 2015-04-07 02:11:31 -04:00
Pietro Gagliardi 9579a57501 More Windows control work. 2015-04-07 01:51:17 -04:00
Pietro Gagliardi 249cc1f2f0 More work on the Windows control hooking. 2015-04-07 01:33:26 -04:00
Pietro Gagliardi 9742cc02df Added a public API for creating raw Windows controls. Removed include guards from uipriv_*.h. 2015-04-07 00:56:06 -04:00
Pietro Gagliardi 9298bc9e37 Changed ui_*.h to uipriv_*.h pending a public non-portable API. 2015-04-07 00:26:27 -04:00
Pietro Gagliardi 20061b8e78 Decided to start with the parenting stuff now. 2015-04-07 00:23:01 -04:00
Pietro Gagliardi 2c680dfa75 Started writing code for handling single-HWND controls on Windows. Similar code will exist for single-GtkWidget controls on GTK+ and single-NSView controls on Cocoa. 2015-04-06 22:26:53 -04:00
Pietro Gagliardi 58da9ce2bd Started working on uiControl. 2015-04-06 21:53:31 -04:00
Pietro Gagliardi e08a9c0492 Fixed initial Mac OS X code. 2015-04-06 20:01:14 -04:00
Pietro Gagliardi ba4967f00b Started writing the same but for Mac OS X. This time it's not tested yet; will test now. 2015-04-06 19:04:13 -04:00
Pietro Gagliardi 4d89e6ae71 Implemented what we have so far, but on Windows. 2015-04-06 17:41:33 -04:00
Pietro Gagliardi 83a49618f9 Added wintable's debugging printers to the new UI code. 2015-04-06 12:41:02 -04:00
Pietro Gagliardi 683d46cdf8 Renamed some files. More TODOs. 2015-04-06 12:26:17 -04:00
Pietro Gagliardi 1a5d6a0f49 More precise cleanup in GTK+ uiInitErrorFree(). 2015-04-06 12:25:16 -04:00