Commit Graph

67 Commits

Author SHA1 Message Date
Pietro Gagliardi ae8bb69385 More uiWindow work. 2015-04-27 20:02:33 -04:00
Pietro Gagliardi 4f99fdd90f Started working on the new uiWindow. 2015-04-27 18:04:41 -04:00
Pietro Gagliardi 28a632c5b6 Wrote up a Bin for the Windows backend. Minor changes in uiBox too. 2015-04-27 11:50:22 -04:00
Pietro Gagliardi 36789edde5 More uiContainer work on Windows. This might actually do it for that file for now! 2015-04-27 10:41:48 -04:00
Pietro Gagliardi 81a526017a Revert "Decided to remove uiControlVisible(). No idea why I had it there in the first place; if it was for testing then the actual tests do a good enough job of that."
Oh right I needed it for uiBox.

This reverts commit 9de44c1346.
2015-04-27 10:39:21 -04:00
Pietro Gagliardi 9de44c1346 Decided to remove uiControlVisible(). No idea why I had it there in the first place; if it was for testing then the actual tests do a good enough job of that. 2015-04-27 10:38:10 -04:00
Pietro Gagliardi 68b801fa92 More container work on Windows. 2015-04-27 10:37:37 -04:00
Pietro Gagliardi 14a720fb7c More Windows uiContainer work. 2015-04-27 01:27:07 -04:00
Pietro Gagliardi 85fd178057 More ui.idl work. 2015-04-27 01:08:29 -04:00
Pietro Gagliardi 7b8964d87d More Windows uiContainer work. 2015-04-27 01:07:46 -04:00
Pietro Gagliardi 664d6d7dd0 I realized that overriding uiControlResize() isn't going to work because we need to be able to call that directly AND have that called by the container widget implementation. Therefore, added uiContainerResizeChildren(). 2015-04-27 00:57:44 -04:00
Pietro Gagliardi 3907efcc2f Fixed destruction order in box.c. 2015-04-26 23:41:18 -04:00
Pietro Gagliardi 45ec5f4125 Removed code from windows/OLDcontainer.c that was migrated to windows/container.c. 2015-04-26 23:38:04 -04:00
Pietro Gagliardi cf916f0681 Started writing new container code. I still have no idea what I'm doing! 2015-04-26 23:33:08 -04:00
Pietro Gagliardi 1ab8684799 Changed box.c so that children are adde to the uiBox's uiContainer, not the parent's. 2015-04-26 23:12:38 -04:00
Pietro Gagliardi 54f16419ea Started implementing the changes in dilemma.md. Migrated box.c; did most of ui.idl as well. 2015-04-26 23:01:00 -04:00
Pietro Gagliardi 2ef8e4b912 More dilemma planning and TODOs.... 2015-04-26 19:48:12 -04:00
Pietro Gagliardi b50719fae1 More dilemma stuff. 2015-04-26 11:39:25 -04:00
Pietro Gagliardi f30cc471a6 Added a dilemma document which explains what I've been struggling with. 2015-04-26 11:34:28 -04:00
Pietro Gagliardi 8a10f90336 Added a lifeline to keep my sanity about lifetimes. Not sure if this will stay or not... 2015-04-25 18:33:36 -04:00
Pietro Gagliardi 335bfe8b1a Revert "Nuked uiParent/uiOSContainer, replacing it with the older uintptr_t/Update() method. I'm not sure if I'm happy with *this* design either... I really have no idea what's clean or elegant here ^^' Fixed initial title/size setting not taking effect on the GTK+ Window bckend."
I have no idea what I'm doing or thinking but the other way makes things harder on Windows...

This reverts commit 9e18ee03e6.
2015-04-25 18:28:49 -04:00
Pietro Gagliardi 9e18ee03e6 Nuked uiParent/uiOSContainer, replacing it with the older uintptr_t/Update() method. I'm not sure if I'm happy with *this* design either... I really have no idea what's clean or elegant here ^^' Fixed initial title/size setting not taking effect on the GTK+ Window bckend. 2015-04-25 13:00:11 -04:00
Pietro Gagliardi d0e213fb04 More TODOs. 2015-04-24 15:59:38 -04:00
Pietro Gagliardi 333d610b0e Hooked up menu events on Windows. We're done! 2015-04-24 15:54:37 -04:00
Pietro Gagliardi 7a1634a387 Made menu IDs on Windows global across all menus. This is what we actually intended... 2015-04-24 15:45:58 -04:00
Pietro Gagliardi 88bbdc4805 Wrote up the actual HMENU creation code on Windows. That just leaves the event handling. 2015-04-24 15:44:29 -04:00
Pietro Gagliardi d28d5c8d3e More TODOs. 2015-04-24 15:29:57 -04:00
Pietro Gagliardi a80f1936f8 Wrote the code that builds menu data structures. That just leaves the code to create the menus in the windows themselves. 2015-04-24 15:26:37 -04:00
Pietro Gagliardi 962b71d773 Added a stub menu creation function (for linking), turned off test program menu generation temporarily, and fixed another Windows build issue. 2015-04-24 14:16:37 -04:00
Pietro Gagliardi c97f95ef10 Fixed some Windows Makefile issues. 2015-04-24 14:11:23 -04:00
Pietro Gagliardi c42b9399cd More Windows stuff. Ugh this is what I was trying to AVOID but oh well 2015-04-24 14:09:48 -04:00
Pietro Gagliardi 3ea84f9bf5 More Windows work. This will just be a flat import for now. I really want to figure something out about uiOSContainers... 2015-04-24 13:59:49 -04:00
Pietro Gagliardi e8adc2a969 More TODOs. 2015-04-23 23:37:27 -04:00
Pietro Gagliardi e4e2c1232f Started readding the Windows backend. Still not too sure about uiOSContainer... 2015-04-23 22:32:58 -04:00
Pietro Gagliardi 34df4b9343 Added initial menu state test for disabled state. 2015-04-23 20:41:25 -04:00
Pietro Gagliardi 92e0ac02b4 Added tests for uiMenuItemSetChecked(). It all works! 2015-04-23 20:37:10 -04:00
Pietro Gagliardi 11ad023f78 Fixed pointer abuse in unix/menu.c. Almost there now... 2015-04-23 20:15:21 -04:00
Pietro Gagliardi 58444b0ea2 Fixed premature ::activate emission in unix/menu.c. Christ Almighty. 2015-04-23 20:07:42 -04:00
Pietro Gagliardi 663a2c84bb Removed the commented-out GTK+ menu deletion functions. I have no idea how I'm going to clean up after package ui. 2015-04-23 19:37:55 -04:00
Pietro Gagliardi 9592affb18 Removed unused fields from the GTK+ menu code. 2015-04-23 19:36:53 -04:00
Pietro Gagliardi b9f855eaec Expanded the menu test. GTK+ is really starting to get on my nerves. 2015-04-23 19:23:14 -04:00
Pietro Gagliardi f416b32477 Cleaned up the GTK+ menu checkbox code. 2015-04-23 19:11:53 -04:00
Pietro Gagliardi 250cda3cad Added skeleton code to test duplicate menu state. 2015-04-23 19:06:52 -04:00
Pietro Gagliardi 26e42bc1ba Hooked menus up to windows on the GTK+ backend. 2015-04-23 18:48:01 -04:00
Pietro Gagliardi e18727cff6 Added menus to the test program. 2015-04-23 18:22:06 -04:00
Pietro Gagliardi 25bd081f71 Thanks to hergertme in irc.gimp.net/#gtk+, we can connect to ::clicked instead of ::toggled for check buttons and check items. This avoids playing the signal blocking game. 2015-04-23 16:48:35 -04:00
Pietro Gagliardi 2688cd48d1 More Unix menu work. 2015-04-23 16:00:34 -04:00
Pietro Gagliardi 1ceb07dcbb More GTK+ menu work. 2015-04-23 15:30:37 -04:00
Pietro Gagliardi cfc4dfb787 Started writing the GTK+ menu code. 2015-04-23 13:11:36 -04:00
Pietro Gagliardi 7618dd6237 Set up menu events. 2015-04-23 12:15:27 -04:00