summaryrefslogtreecommitdiff
path: root/redo/dialog.go
diff options
context:
space:
mode:
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()
+}