23 #if defined (HAVE_CONFIG_H) 27 #if defined (HAVE_FLTK) 30 # define WIN32_LEAN_AND_MEAN 36 #include <FL/Fl_File_Chooser.H> 60 #if defined (HAVE_FLTK) 75 Matrix pos = args(3).matrix_value ();
77 int multi_type = Fl_File_Chooser::SINGLE;
82 multi_type = Fl_File_Chooser::MULTI;
83 else if (multi ==
"dir")
85 multi_type = Fl_File_Chooser::DIRECTORY;
86 flabel =
"Directory:";
88 else if (multi ==
"create")
89 multi_type = Fl_File_Chooser::CREATE;
91 Fl_File_Chooser::filename_label = flabel.c_str ();
93 Fl_File_Chooser fc (default_name.c_str (), file_filter.c_str (),
94 multi_type, title.c_str ());
98 if (multi_type == Fl_File_Chooser::CREATE)
108 int file_count = fc.count ();
115 if (file_count == 1 && multi_type != Fl_File_Chooser::DIRECTORY)
118 idx =
fname.find_last_of (sep);
123 Cell file_cell =
Cell (file_count, 1);
126 fname = fc.value (n);
127 idx =
fname.find_last_of (sep);
128 file_cell(n - 1) =
fname.substr (idx + 1);
133 if (multi_type == Fl_File_Chooser::DIRECTORY)
140 retval(2) = fc.filter_value () + 1;
151 octave_unused_parameter (args);
std::string native_separator_path(const std::string &path)
#define DEFUN_DLD(name, args_name, nargout_name, doc)
Macro to define an at run time dynamically loadable builtin function.
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