Commit Graph

1398 Commits

Author SHA1 Message Date
Pietro Gagliardi 316e5e9db4 Split out the dialog functions into portable and non-portable code to keep the package documentation in the portable code only. 2014-02-17 02:34:58 -05:00
Pietro Gagliardi 56923d0bda Added scrollbars to the Listbox GtkTreeViews. 2014-02-17 02:29:49 -05:00
Pietro Gagliardi 7617fe6d42 Okay, fixed item showing; the GtkTableView column just needed the text attribute. Now I need scrollbars... 2014-02-17 02:18:42 -05:00
Pietro Gagliardi a018dabde9 Fixed GTK+ listboxes to create item cells and not show headers; still not displaying item text... 2014-02-17 02:16:33 -05:00
Pietro Gagliardi 0595135d9a Fixed the GTK+ crashes (I think) by making resizes synchronous. Since all control resizes happen on the UI thread anyway, we don't need to dispatch back; just call the resizing functions directly. Windows gets this fix too for consistency (and also because it gets rid of the only asynchronous oddity in the system). 2014-02-17 01:40:53 -05:00
Pietro Gagliardi 0856e953be Added GTK+ listboxes... sort of. This whole thing is so broken it's funny. 2014-02-16 23:50:54 -05:00
Pietro Gagliardi 919e89ca7e Added GTK+ Labels. 2014-02-16 22:03:14 -05:00
Pietro Gagliardi d7f9d3807d Fixed layout failure... for now. 2014-02-16 21:50:55 -05:00
Pietro Gagliardi 6bf0b00aa3 Added GTK+ LineEdit. It appears there's something weird happening now... 2014-02-16 21:40:59 -05:00
Pietro Gagliardi bce4c19fdd Added alternate control style building... mostly... 2014-02-16 20:27:16 -05:00
Pietro Gagliardi a302590ee0 Added crash guard for making alternates (to get editable comboboxes). 2014-02-16 20:09:51 -05:00
Pietro Gagliardi 5ac0af8d79 ...derp, it was my crash guard failing. 2014-02-16 20:07:10 -05:00
Pietro Gagliardi ee23690f79 Added GTK+ comboboxes. ...and THESE aren't being positioned properly, sigh... 2014-02-16 19:50:52 -05:00
Pietro Gagliardi 13d4e1d258 Added the GTK+ equivalent of Window.Title() and Button.Text() in preparation for adding the GTK+ implementation of Combobox. 2014-02-16 18:57:50 -05:00
Pietro Gagliardi 161e874d8a More GTK+ weird behavior TODOs. 2014-02-16 18:42:18 -05:00
Pietro Gagliardi 4fc3cb1d00 Added Checkbox to GTK+. Also added a TODO about crashes. 2014-02-16 18:41:29 -05:00
Pietro Gagliardi b8f7f4aa6e Removed some debugging prints. 2014-02-16 18:06:45 -05:00
Pietro Gagliardi 622d7b1569 Added window (and thus control) resizing. Other bugs have been fixed along the way. 2014-02-16 18:04:57 -05:00
Pietro Gagliardi 7c365b3920 [GTK+] Added buttons. Things aren't quite being positioned properly yet though... 2014-02-16 17:30:58 -05:00
Pietro Gagliardi 1bcbce4142 Cleaned up the idle callback code. 2014-02-16 17:09:58 -05:00
Pietro Gagliardi f5652737eb More TODOs. 2014-02-16 16:56:25 -05:00
Pietro Gagliardi efbd52848b Added version compatibility notes to plan.md. 2014-02-16 16:55:48 -05:00
Pietro Gagliardi 7a99d42d65 Added cgo-safe callback code for GTK+ signals. GTK+ signals work! 2014-02-16 16:43:48 -05:00
Pietro Gagliardi c40b7b5599 Added basic signal connection. I'm going to need to build a different callback system, though... 2014-02-16 16:23:49 -05:00
Pietro Gagliardi 21c1ec6f83 Added the beginning of the Unix (GTK+) implementation. 2014-02-16 15:55:51 -05:00
Pietro Gagliardi 3a99ee6569 Removed stray TODO left over from copy/paste. 2014-02-15 18:43:49 -05:00
Pietro Gagliardi 992d43ac7b Added Listbox.Selection() and Listbox.SelectedIndices(). Also fixed a bug involving sysData.selectedIndices() with nothing selected. 2014-02-15 18:36:42 -05:00
Pietro Gagliardi 2d97a24463 Added Combobox.SelectedIndex(). 2014-02-15 18:27:34 -05:00
Pietro Gagliardi 8be17f087b More TODOs 2014-02-15 18:15:24 -05:00
Pietro Gagliardi 14aaad6be3 Added Combobox.Delete() and Listbox.Delete() and added some TODOs. 2014-02-15 18:14:43 -05:00
Pietro Gagliardi 3c25b58652 Added Listbox.Append() and Listbox.InsertBefore(). 2014-02-15 17:59:12 -05:00
Pietro Gagliardi ca1c513159 Added vertical scroll bars to Combobox. 2014-02-15 17:55:15 -05:00
Pietro Gagliardi 8c30cae462 Added Combobox.Append() and Combobox.InsertBefore(). 2014-02-15 17:52:33 -05:00
Pietro Gagliardi 430eac563a Added a TODO related to the previous commit. 2014-02-15 16:30:44 -05:00
Pietro Gagliardi e70c6f10c5 Fixed a build error in the previous commit. 2014-02-15 16:27:47 -05:00
Pietro Gagliardi 16e561c1e3 Added message boxes and adjusted init() accordingly to display one on failure. 2014-02-15 16:27:07 -05:00
Pietro Gagliardi 0e41eddf54 Removed a TODO regarding Windows Common Controls because I'm not going to be using those constants (and if I ever add more controls I will need to use comctl anyway). 2014-02-15 15:59:02 -05:00
Pietro Gagliardi 558c618fbf Gave all relevant controls matching SetText()/Text() pairs. Also added a TODO for Checkbox related to checked state. 2014-02-15 15:51:06 -05:00
Pietro Gagliardi c20e3a2611 More TODO reduction. 2014-02-15 15:41:50 -05:00
Pietro Gagliardi 1bb2371e8d More TODO reduction. 2014-02-15 15:38:41 -05:00
Pietro Gagliardi 900ec4e715 More TODOs. 2014-02-15 14:26:37 -05:00
Pietro Gagliardi 355016de05 More error/TODO reduction. 2014-02-15 14:11:54 -05:00
Pietro Gagliardi c67191094f Made sure sysData.selectedIndices() returns an empty slice if nothing was selected in a single-selection listbox. 2014-02-15 14:05:10 -05:00
Pietro Gagliardi 063293456d More error handling reduction. 2014-02-15 14:03:46 -05:00
Pietro Gagliardi d1768f2787 Reduced the number of unnecessary error returns based on MSDN. The TODOs that used to be there have been moved to a new file; similar files for Mac and Linux will also be made. 2014-02-15 13:36:24 -05:00
Pietro Gagliardi dce24dae3f Resolved some more TODOs... though resolving the rest in this file is going to be fun... 2014-02-15 13:16:17 -05:00
Pietro Gagliardi 1be9c1a105 Removed another TODO in window.go related to resizing. Also a note I forgot to say a few commits ago: setWindowSize() also keeps the OS-decided window position. 2014-02-15 13:12:46 -05:00
Pietro Gagliardi 532a8f7a16 More TODOs. 2014-02-15 13:12:40 -05:00
Pietro Gagliardi 99feed7628 Removed setting the initial width and height in sysData.make() (this gets rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly. 2014-02-15 13:07:46 -05:00
Pietro Gagliardi 32e70f6414 Added sysData.setWindowSize(), which will simplify a few things in Window.Open() and Control.make(). 2014-02-15 13:02:10 -05:00