summaryrefslogtreecommitdiff
path: root/redo/dialog.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-18 19:01:56 -0400
committerPietro Gagliardi <[email protected]>2014-08-18 19:01:56 -0400
commitcb4d28cc1cb0e29990e0081fe1245620f3aab955 (patch)
treeb92a366a823c24a38bd3bb2f0722ed627ccbc15c /redo/dialog.go
parentb6bf7402abe8d0d88b9db9ccf581425dfe118b2f (diff)
Added OpenFile(), the first dialog to be added, and implemented it on Windows... mostly.
Diffstat (limited to 'redo/dialog.go')
-rw-r--r--redo/dialog.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/redo/dialog.go b/redo/dialog.go
new file mode 100644
index 0000000..f6a041f
--- /dev/null
+++ b/redo/dialog.go
@@ -0,0 +1,10 @@
+// 18 august 2014
+
+package ui
+
+// OpenFile opens a dialog box that asks the user to choose a file.
+// It returns the selected filename, or an empty string if no file was chosen.
+// All events stop while OpenFile is executing. (TODO move to doc.go)
+func OpenFile() (filename string) {
+ return openFile()
+}