summaryrefslogtreecommitdiff
path: root/dialog.go
AgeCommit message (Collapse)Author
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-08-30...in with the new.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer).
2014-07-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-28Fixed the build. New API works on Windows! Also removed TODO on dialogs in ↵Pietro Gagliardi
Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
2014-06-28Decided to make dialogs code-modal; will figure out how to get the behavior ↵Pietro Gagliardi
I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works...
2014-06-28Added rewrite of most of the dialog system for the new API. The Windows API ↵Pietro Gagliardi
is, however, getting in the way...
2014-06-10More go fmt.Pietro Gagliardi
2014-06-08Made the application-modal sentinel in dialog.go non-nil to prevent weird ↵Pietro Gagliardi
behavior on nil Windows in program code. Thanks to xtg in the Gopher Academy Slack for corroborating.
2014-06-08Cleaned up dialog documentation.Pietro Gagliardi
2014-06-08Implemented the new MsgBox()/MsgBoxError() behavior on Windows.Pietro Gagliardi
2014-06-08Woo yeah it's another API change to MsgBox()! This splits parent out and ↵Pietro Gagliardi
makes it a receiver of MsgBox() and MsgBoxError() for the case when you want to show modal to a specific window only. These will eventually return channels, but first I'll need to igure out how to get this working...
2014-06-05Figured out what happens if a message box is created for an invisible ↵Pietro Gagliardi
window, documented it was undefined (Windows and GTK+ behave reasonably but at least Windows is not documented here; Mac OS X shows a sheet attached to invisible where the titlebar should be and then considers the window closed), and added the panic() checks for uncreated Windows.
2014-06-05Verified resize differences on MsgBox() with a parent.Pietro Gagliardi
2014-06-04More TODOs.Pietro Gagliardi
2014-06-04Added the concept of transience to MsgBox() and MsgBoxError(). Individual ↵Pietro Gagliardi
implementations will come next.
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-03-12Separated file creation dates from the package comment.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-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-17Split out the dialog functions into portable and non-portable code to keep ↵Pietro Gagliardi
the package documentation in the portable code only.