summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2014-04-13Fixed weird Area time label truncation on Windows; more TODOs and future ↵Pietro Gagliardi
plans related to that.
2014-04-11Changed from using image.NRGBA to image.RGBA (premultiplied alpha) in ↵Pietro Gagliardi
Area.Paint() since it'll be easier to work with on Windows after applying what Treeki/Ninjifox suggested I do instead of what I am doing now.
2014-04-10Added bounds checking to NewArea() and Area.SetSize() such that an Area must ↵Pietro Gagliardi
have a valid size.
2014-04-10Removed unnecessary space if the secondaryText argument to MsgBox***() is an ↵Pietro Gagliardi
empty string. This doesn't change much on Mac OS X; it always shows the informational text field, showing an empty string by default. On GTK+ it seems to get rid of the bold over the primary text; I'm going to assume this is intentional (it looks that way on GTK+ 2; the HIG docs have outdated screenshots...).
2014-04-09Added a test for the extremities of the Area's actual drawing area to make ↵Pietro Gagliardi
sure all pixels are shown on all platforms. That seems to be the case right now... Also more TODOs.
2014-04-07Undid the previous change to the keyboard test so that it responds to window ↵Pietro Gagliardi
closes again.
2014-04-07Updated Area's KeyEvent documentation to talk about some window managers on ↵Pietro Gagliardi
Unix intercepting some events; also updated the keyboard test program to make a note of behaviors related to that.
2014-04-06Added (untested; VM issues) code to handle Mac OS X Quit Dock menu items and ↵Pietro Gagliardi
other related stuff that may happen in the future. Will drop the TODO after I can test it.
2014-04-02Added a println() to the main test window to signal that window closing has ↵Pietro Gagliardi
happened. This is used for ensuring that closing programs from a task switcher works as expected (that is, that the appropriate w.Closing event is triggered if an individual window is asked to be closed, and something else if an application as a whole is...).
2014-03-29Added positions of all other keys to the keyboard test. Now ready for the ↵Pietro Gagliardi
Windows port!
2014-03-29Added the numeric keypad and function keys to the keyboard test.Pietro Gagliardi
2014-03-29Updated the GTK+ implementation and test programs to reflect the new ↵Pietro Gagliardi
KeyEvent setup.
2014-03-27Added some of the ExtKeys to the keyboard layout test.Pietro Gagliardi
2014-03-27Added a flag to AreaHandler.Key()/Mouse() to indicate that a repaint is ↵Pietro Gagliardi
needed after that event has been handled. (Having Repaint() as a method deadlocked for the same reason resizing deadlocked before.)
2014-03-27Added code to the keyboard test to draw the modifier keys.Pietro Gagliardi
2014-03-27Added the beginning of a keyboard input test to be written. Also more TODOs.Pietro Gagliardi
2014-03-25Added Area mouse events on Windows. Also more TODOs.Pietro Gagliardi
2014-03-23Fixed the shrinking not working: the Cairo clip rect apparently can fall ↵Pietro Gagliardi
outside the actual size of the widget. (I did notice this before.)
2014-03-23Added Area resizing. Everything mostly works, but not making things smaller...Pietro Gagliardi
2014-03-23Added the GTK+ implementation of Area keyboard events. Seems to work fine ↵Pietro Gagliardi
for now...
2014-03-17Er oh the crash was because I was still using the lock-friendly code. Will ↵Pietro Gagliardi
still apply the change to memory allocation because memory reuse.
2014-03-17Put the Label that changed each second in the main test.Pietro Gagliardi
2014-03-17Removed the mutexes from Labels and Areas because I'm at my wits end about ↵Pietro Gagliardi
settling the deadlock between window resizing and setting a Label's text.
2014-03-16Updated the test program to the new AreaHandler interface. The deadlock ↵Pietro Gagliardi
still happens... just not so easily... so it's elsewhere...
2014-03-16Added a time display to the Area test for testing deadlocks that will happen ↵Pietro Gagliardi
when Area becomes more feature-filled... it appears one has now appeared when resizing the window...
2014-03-15Added a test of the mouse event handling.Pietro Gagliardi
2014-03-15Added a slightly more meaningful test: draw an Image in an area.Pietro Gagliardi
2014-03-14Hacked around the cairo issue for now; hooked everything together and fixed ↵Pietro Gagliardi
a few things. Added the Area test to the test program. Now to just hook up the draw event.
2014-03-12Removed ui.Event(); all event channels are initialized with their objects now.Pietro Gagliardi
2014-03-12Added GTK+ indeterminate ProgressBars.Pietro Gagliardi
2014-03-12Standardized message boxes so they appear similarly on all platforms. This ↵Pietro Gagliardi
shafts Windows because primary/secondary text message boxes were only added in Windows Vista, but at least MSDN provides discourse.
2014-03-11Split NewListbox() into NewListbox() (single-selection) and ↵Pietro Gagliardi
NewMultiSelListbox() (multiple selection); fixed the documentaiton for the Listbox constructor(s) to talk about Listbox and not Combobox, and added some TODOs.
2014-03-11Made Stack.SetStretchy() panic on invalid index, ending that group of ↵Pietro Gagliardi
functions. Also added the tests for those functions who did not have tests already written.
2014-03-11Handle out of range on Listbox.Delete(). The Mac OS X exception behavior I ↵Pietro Gagliardi
previously noted has bene resolved: what happens after exception handling is undefined :|
2014-03-10Fixed compiler errors in the previous few commits.Pietro Gagliardi
2014-03-09Added bounds checks for Listbox.InsertBefore(). This stupid 32-bit Mac bug ↵Pietro Gagliardi
keeps Listbox.Delete() unchecked for now...
2014-03-09Added bounds checks for Combobox.InsertBefore() and Combobox.Delete().Pietro Gagliardi
2014-03-08Added a flag to the test program to evaluate illegal deletions on Mac OS X, ↵Pietro Gagliardi
necessary before I make it panic myself.
2014-03-08Added Combobox/Listbox.Len() and its GTK+ implementation.Pietro Gagliardi
2014-03-07Changed Combobox.Append() and Listbox.Append() to accept multiple strings in ↵Pietro Gagliardi
one call.
2014-03-06Split NewStack() into NewHorizontalStack() and NewVerticalStack(). ↵Pietro Gagliardi
Unexported Orientation and its values accordingly.
2014-03-04Changed the ".." import in the test binary to a proper ↵Pietro Gagliardi
"github.com/andlabs/ui" import. (This means I finally moved my working environment out of a folder src/wingo and into the proper src/github.com/andlabs/ui.)
2014-03-03Added flags to show the auxiliary test windows in the test program, to make ↵Pietro Gagliardi
working with just the main window easier.
2014-03-03Added a Listbox preferredSize test window to the main test program, as it ↵Pietro Gagliardi
appears I'm going to have to change how sysData.preferredSize() works on Mac OS X to acommodate NSTableView, NSScrollView, and NSProgressIndicator...
2014-03-01Major code restructure to allow Cocoa to work correctly. Cocoa requires that ↵Pietro Gagliardi
the application loop run on the very first OS thread created, not just an any ordinary thread. To support this, your code must now be run by the UI init code. Windows and Unix builds still work fine; Mac OS X fails for reasons I now have to debug.