aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-04-11 14:51:23 +0200
committerjcid <devnull@localhost>2008-04-11 14:51:23 +0200
commit375f81c82e1dc8b7084d686d1da02fe8266c4388 (patch)
tree7759b5504bd38d7df8650c5bdb0fa1e769f8b0b1 /src/dialog.cc
parentfd1460fdb6afff36990cdaddd0d7a3bc72dbc2b9 (diff)
- Implemented the file input control for forms (work in progress).
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dialog.cc b/src/dialog.cc
index d75fdf07..ae3a4418 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -81,6 +81,21 @@ const char *a_Dialog_save_file(const char *msg,
return file_chooser(msg, pattern, fname);
}
+/*
+ * Show the select file dialog.
+ *
+ * Return: pointer to chosen filename, or NULL on Cancel.
+ */
+const char *a_Dialog_select_file(const char *msg,
+ const char *pattern, const char *fname)
+{
+ /*
+ * FileChooser::type(MULTI) appears to allow multiple files to be selected,
+ * but just follow save_file's path for now.
+ */
+ return a_Dialog_save_file(msg, pattern, fname);
+}
+
//#include <fltk/FileIcon.h>
/*
* Show the open file dialog.