+
+
+void FormPrint::browse()
+{
+ // Get the filename from the dialog
+ string const filename = fl_get_input(dialog_->input_file);
+
+ string const title = N_("Print to file");
+ string const pattern = "*.ps";
+
+ // Show the file browser dialog
+ string const new_filename =
+ browseFile(filename, title, pattern,
+ make_pair(string(), string()),
+ make_pair(string(), string()));
+
+ // Save the filename to the dialog
+ if (new_filename != filename && !new_filename.empty()) {
+ fl_set_input(dialog_->input_file, new_filename.c_str());
+ input(0, 0);
+ }
+}