Pietro Gagliardi
|
4045d50f94
|
Checked to see if the previous commit worked after removing the leftover Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well.
|
2014-05-29 04:41:07 -04:00 |
Pietro Gagliardi
|
be56293e9c
|
Found a method in NSArrayController via Stack Overflow which lets me suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension.
|
2014-05-17 12:42:00 -04:00 |
Pietro Gagliardi
|
d4c79539af
|
Fixed Listboxes on Mac OS X having an initial selection.
|
2014-04-12 22:05:34 -04:00 |
Pietro Gagliardi
|
274fa0c292
|
Fixed Comboboxes on Mac OS X having an initial selection. This also lays the groundwork for adding Combobox/Listbox.Select() as a public function...
|
2014-04-12 21:49:41 -04:00 |
Pietro Gagliardi
|
3bf215ae4e
|
Split out the common resizing code into its own function so that it's all in one place. This will also affect what happens if I switch to DeferWindowPos() on Windows.
|
2014-04-07 14:32:25 -04:00 |
Pietro Gagliardi
|
2647d28f2b
|
Removed the initText parameter from sysData.make() and changed all invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
|
2014-04-01 16:43:56 -04:00 |
Pietro Gagliardi
|
dbbabf35c3
|
Changed the cSysData dummy functions to an interface that a dummy sysData instance is tested against to make sure that not only all functions exist, but also that they are all the correct type.
|
2014-04-01 15:34:51 -04:00 |
Pietro Gagliardi
|
a41f582866
|
Added Area resizing. Everything mostly works, but not making things smaller...
|
2014-03-23 20:54:11 -04:00 |
Pietro Gagliardi
|
64d5eb541e
|
Changed the new resizing code so that it uses the same allocated slice per window instead of making a new one to store all the resize requests each time.
|
2014-03-17 21:09:03 -04:00 |
Pietro Gagliardi
|
19227080da
|
Changed window resizes so that the actual Control.setRect() functions appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
|
2014-03-17 20:42:36 -04:00 |
Pietro Gagliardi
|
ae554f10c3
|
Changed Area to use a delegate handler object that implements the new AreaHandler interface for handling events. Also updated the GTK+ backend with this change, and made a few more tweaks to the documentation in area.go.
|
2014-03-16 21:40:33 -04:00 |
Pietro Gagliardi
|
a5a3287696
|
Added portable code for Area's MouseEvent.
|
2014-03-15 21:36:10 -04:00 |
Pietro Gagliardi
|
af7a218b47
|
Added Area support in sysdata.go so the package can compile again. Now to do that big change mentioned in the previous commit: overhaul of the GTK+ signal system.
|
2014-03-14 18:47:18 -04:00 |
Pietro Gagliardi
|
34ce16d586
|
Separated file creation dates from the package comment.
|
2014-03-12 21:55:45 -04:00 |
Pietro Gagliardi
|
26c6b97ce1
|
Removed ui.Event(); all event channels are initialized with their objects now.
|
2014-03-12 21:47:39 -04:00 |
Pietro Gagliardi
|
92fb9efce9
|
Removed error returns from Combobox.Delete(), Listbox.Delete(), and sysData.delete(), since they are no longer used. Updated the TODO file to mark this issue closed.
|
2014-03-11 13:50:02 -04:00 |
Pietro Gagliardi
|
353c949f64
|
Removed error returns from sysData.setText() now that we no longer care.
|
2014-03-10 10:39:08 -04:00 |
Pietro Gagliardi
|
f72d6c9900
|
Removed now-unused error returns from sysData.show() and sysData.hide().
|
2014-03-09 21:56:17 -04:00 |
Pietro Gagliardi
|
45e0779790
|
Split sysData.show() into separate show() and firstShow() to accomodate Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
|
2014-03-09 21:40:14 -04:00 |
Pietro Gagliardi
|
b9f0ad90ec
|
Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() because screw Windows being different.
|
2014-03-09 16:02:17 -04:00 |
Pietro Gagliardi
|
3aa59d4ab9
|
Added Combobox/Listbox.Len() and its GTK+ implementation.
|
2014-03-08 16:42:57 -05:00 |
Pietro Gagliardi
|
962a84e056
|
Fixed Mac OS X control placement flipping. This is done by passing the height of the window around setRect() calls to avoid polling the content view frame each time.
|
2014-03-03 17:44:03 -05:00 |
Pietro Gagliardi
|
06fa3a5174
|
Added password entry fields; they are the alternate mode of LineEdit.
|
2014-02-25 15:06:51 -05:00 |
Pietro Gagliardi
|
bfc9f7e339
|
Added portable parts of ProgressBar.
|
2014-02-25 00:13:47 -05:00 |
Pietro Gagliardi
|
d5ce49c8b0
|
Added the preferred widget size basework and its GTK+ implementation.
|
2014-02-23 20:04:33 -05:00 |
Pietro Gagliardi
|
fb82e651a4
|
Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README.
|
2014-02-19 11:41:10 -05:00 |
Pietro Gagliardi
|
23f6a07c7f
|
Buffered the event channels, as per skelterjohn's suggestion; I thought this would fix the faults I now get, but it doesn't...
|
2014-02-18 10:53:15 -05:00 |
Pietro Gagliardi
|
1f08c874e0
|
Made event dispatch asynchronous to avoid deadlocks; right now events that cannot be dispatched get dropped.
|
2014-02-18 09:57:19 -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
|
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
|
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 |
Pietro Gagliardi
|
0c0bbc29fa
|
Added combobox/listbox selection helper functions.
|
2014-02-15 12:32:12 -05:00 |
Pietro Gagliardi
|
0e2c1d2314
|
Added sysData.insertBefore().
|
2014-02-15 12:06:29 -05:00 |
Pietro Gagliardi
|
88646445b0
|
Added Listboxes. You can't use the results just yet...
|
2014-02-14 16:25:39 -05:00 |
Pietro Gagliardi
|
61d7f285ac
|
Renamed sysData.editable to sysData.alternate in preparation for ListBox.
|
2014-02-14 15:54:56 -05:00 |
Pietro Gagliardi
|
9070eae214
|
Added labels.
|
2014-02-14 15:12:03 -05:00 |
Pietro Gagliardi
|
681afdf0ad
|
Added LineEdit.
|
2014-02-14 15:00:59 -05:00 |
Pietro Gagliardi
|
39442cefeb
|
Added Combobox.
|
2014-02-14 12:16:27 -05:00 |
Pietro Gagliardi
|
8407bfb0cb
|
Changed manual sysData construction to use a helper function instead.
|
2014-02-14 11:02:59 -05:00 |
Pietro Gagliardi
|
44842fea4b
|
Added Checkbox.Checked().
|
2014-02-13 15:14:10 -05:00 |
Pietro Gagliardi
|
f3c77bda6e
|
Added checkboxes. You can't really do anything with them yet, though...
|
2014-02-13 12:26:43 -05:00 |
Pietro Gagliardi
|
5626b9e35c
|
Added sizing of windows and the main window control. It presently deadlocks; I'll need to redo my mutexes...
|
2014-02-13 05:28:26 -05:00 |
Pietro Gagliardi
|
e296398eff
|
Formatting change for cSysData itself.
|
2014-02-12 20:57:30 -05:00 |
Pietro Gagliardi
|
98d56767a3
|
Each control may only need one event, so combine them all into a single channel whose use depends on the sysData itself. Also we won't need to save the parentWindow anymore, as the change to the make() function will take care of that for us.
|
2014-02-12 20:55:05 -05:00 |
Pietro Gagliardi
|
a9ff388944
|
Added Window.SetTitle(). Also oops, forgot to mark the window as created.
|
2014-02-12 18:14:37 -05:00 |
Pietro Gagliardi
|
5f587fbf47
|
Added button events.
|
2014-02-12 11:32:17 -05:00 |
Pietro Gagliardi
|
ddfb5c7603
|
Added buttons.
|
2014-02-12 11:29:20 -05:00 |
Pietro Gagliardi
|
49d0375975
|
Added initial window size and the Window.SetTitle() function.
|
2014-02-12 10:51:27 -05:00 |