23 #if defined (HAVE_CONFIG_H)
27 #if defined (HAVE_FLTK)
30 # define WIN32_LEAN_AND_MEAN
34 #include <FL/Fl_File_Chooser.H>
54 #if defined (HAVE_FLTK)
71 int multi_type = Fl_File_Chooser::SINGLE;
76 multi_type = Fl_File_Chooser::MULTI;
77 else if (multi ==
"dir")
79 multi_type = Fl_File_Chooser::DIRECTORY;
80 flabel =
"Directory:";
82 else if (multi ==
"create")
83 multi_type = Fl_File_Chooser::CREATE;
85 Fl_File_Chooser::filename_label = flabel.c_str ();
87 Fl_File_Chooser fc (default_name.c_str (), file_filter.c_str (),
88 multi_type, title.c_str ());
92 if (multi_type == Fl_File_Chooser::CREATE)
102 int file_count = fc.count ();
109 if (file_count == 1 && multi_type != Fl_File_Chooser::DIRECTORY)
112 idx = fname.find_last_of (sep);
113 retval(0) = fname.substr (idx + 1);
117 Cell file_cell =
Cell (file_count, 1);
120 fname = fc.value (n);
121 idx = fname.find_last_of (sep);
122 file_cell(n - 1) = fname.substr (idx + 1);
127 if (multi_type == Fl_File_Chooser::DIRECTORY)
134 retval(2) = fc.filter_value () + 1;
145 octave_unused_parameter (
args);
static std::string native_separator_path(const std::string &path)
#define DEFUN_DLD(name, args_name, nargout_name, doc)
void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string