summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-02Forced Common Controls version 6 on Windows by embedding the needed manifest in.Pietro Gagliardi
2014-04-02Switched to calling the Windows MulDiv() function instead of reimplementing ↵Pietro Gagliardi
it ourselves in prefsize_windows.go.
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-04-02Not using PostThreadMessage() (a few commits back) seems to fix the weird ↵Pietro Gagliardi
Invalid thread ID. error that happens when running package ui-based programs in wine for the first time (I assume that issue is related to the one that led to the PostThreadMessage() fix).
2014-04-02Fixed odd Listbox sizing on Windows. (Windows by default sizes List Box ↵Pietro Gagliardi
controls so that partial items are not visible.)
2014-04-01Control candidates document updates.Pietro Gagliardi
2014-04-01Changed the font loading on Windows to always load the control font unless a ↵Pietro Gagliardi
flag to not load any font is set; when menus and statusbars are added, they need special casing. This also means the preferred size calculations reads controlFont directly (it will need the same change).
2014-04-01Fixed Windows control sizing: turns out simply calling GetTextMetrics() was ↵Pietro Gagliardi
not enough, as the GetDC() functions don't load the control font into the DC; we have to do it ourselves with SelectObject() (according to GetTextMetrics()'s docs on MSDN). Upon re-evaluation, the only things that need custom fonts are menus and statusbars; I don't know if menus can be done with the standard contorls and statusbars change the font of all controls inside... so how fonts are handled in classData needs to change now.
2014-04-01More TODOs.Pietro Gagliardi
2014-04-01Remove TODO about GTK+ and Cocoa errors since we're just assuming errors are ↵Pietro Gagliardi
mistakes I made in the implementation because at this point that's really what we're left with since on Cocoa doing manual exception handling is discouraged... or something like that.
2014-04-01Fixed the Windows stalling when scrolling an Area problem: messages were ↵Pietro Gagliardi
getting lost because (I assume) scrolling is done in a modal event loop. Alas, we have to change to using a dummy window to handle events. Also altered the respective TODO to document bugs now exposed by this fix.
2014-04-01Separated initial text from sysData.make() on the Mac OS X backend, ↵Pietro Gagliardi
completing that set of commits.
2014-04-01Made the sysData.make() change from the previous commit on the Windows backend.Pietro Gagliardi
2014-04-01Removed the initText parameter from sysData.make() and changed all ↵Pietro Gagliardi
invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
2014-04-01Got rid of gtkWidget and changed to using *C.GtkWidget everywhere. This gets ↵Pietro Gagliardi
rid of some of the casting functions and invocations of said functions, and only adds sysdata_unix.go to the cgo list.
2014-04-01Removed winerrors.md because I screwed it ages ago.Pietro Gagliardi
2014-04-01Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that ↵Pietro Gagliardi
file a bit.
2014-04-01More TODOs.Pietro Gagliardi
2014-04-01Changed the cSysData dummy functions to an interface that a dummy sysData ↵Pietro Gagliardi
instance is tested against to make sure that not only all functions exist, but also that they are all the correct type.
2014-04-01Removed a stray TODO comment whose purpose is long forgotten.Pietro Gagliardi
2014-04-01Reordered each part of the Windows uitask so that it does things in the same ↵Pietro Gagliardi
order and with the same goroutine setup as the other platforms; this gets rid of a few channels. Also panics on more errors (gets rid of a few more channels) and removed some stray TODOs.
2014-04-01Added another row to the open/save dialog test table.Pietro Gagliardi
2014-04-01Added more stuff about file dialogs. Now mostly complete.Pietro Gagliardi
2014-03-31Added (incomplete) stuff about file dialogs to controlcandidates.md.Pietro Gagliardi
2014-03-30Another name in events_darwin.go (see previous commit).Pietro Gagliardi
2014-03-30Added right Command to events_darwin.go.Pietro Gagliardi
2014-03-30Marked Windows MouseEvent.Held as not done; oops.Pietro Gagliardi
2014-03-30Updated the documentation: Area now works on all platforms, Modifiers ↵Pietro Gagliardi
behavior on both left and right keys simultaneously is undefined for now, and the way to create custom Controls no longer involves embedding Area.
2014-03-30Added key events to Mac OS X Areas. Now Area is feature-complete (but buggy) ↵Pietro Gagliardi
on all platforms :D Also more TODOs.
2014-03-30Implemented Area mouse events on Mac OS X. Also fixed a few other things ↵Pietro Gagliardi
left behind in the previous commits. Also more TODOs.
2014-03-30Fixed flaky redraw in Mac OS X Areas.Pietro Gagliardi
2014-03-30Implement Mac OS X AreaHandler.Paint().Pietro Gagliardi
2014-03-30Fixed Mac OS X Area setAreaSize() not working: I was using the NSWindow ↵Pietro Gagliardi
setFrame:display: selector instead of sending the two NSView setFrame: and display methods separately.
2014-03-30When we created our delegate and view classes on Mac OS X, it turned out we ↵Pietro Gagliardi
were accidentally subclassing the metaclass (of NSObject and NSView, respectively), not the actual superclass itself. Fixed tha. This also fixed that mysterious objc_new()/[object init] not working on the delegate class problem.
2014-03-30Attempted to add the Area bare bones and resizing code to the Mac OS X ↵Pietro Gagliardi
backend. It complains that initWithFrame: is not implemented...
2014-03-29Added the beginning of the Mac OS X Area implementation. Also fixed the ↵Pietro Gagliardi
long-broken Mac OS X build.
2014-03-29More TODOs.Pietro Gagliardi
2014-03-29Added Alt+[key] and F10 handling to Windows Area key events. Also more TODOs.Pietro Gagliardi
2014-03-29Documented that the clip area in AreaHandler.Paint() more properly and ↵Pietro Gagliardi
indicate that it is cleared on each AreaHandler.Paint() call; (try to) implement that on Windows (GTK+ does it for us; noted that as well).
2014-03-29More TODOs.Pietro Gagliardi
2014-03-29Implemented Area.SetSize() on Windows.Pietro Gagliardi
2014-03-29Added repaint after Area event on Windows.Pietro Gagliardi
2014-03-29Added part of keyboard input on Windows. Need to repaint the window on event ↵Pietro Gagliardi
return and handle area sizes now...
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-29More TODOs.Pietro Gagliardi
2014-03-29Finished re-adding the numeric keypad keys and fixing up the GTK+ Area ↵Pietro Gagliardi
implementation to handle the new KeyEvent. Everything seems to work on this end...
2014-03-29Re-added the numeric keypad keys to ExtKey and removed predefkeys in ↵Pietro Gagliardi
area_unix.go since all are now being handled.
2014-03-29Added the proper provision for numeric keypad entry.Pietro Gagliardi
2014-03-29Added numeric keypad question to Area planning document; also reformatted it ↵Pietro Gagliardi
a bit.