83#ifndef FL_NATIVE_FILE_CHOOSER_H
84#define FL_NATIVE_FILE_CHOOSER_H
101#include <FL/filename.H>
106#if ! defined(__APPLE__) && !defined(WIN32)
107#include <FL/Fl_File_Chooser.H>
191 void title(
const char *);
192 const char*
title()
const;
193 const char *
filter()
const;
194 void filter(
const char *);
200 const char *
errmsg()
const;
220 void errmsg(
const char *msg);
222 void clear_pathnames();
223 void set_single_pathname(
const char *s);
224 void add_pathname(
const char *s);
226 void FreePIDL(ITEMIDLIST *pidl);
229 void Win2Unix(
char *s);
230 void Unix2Win(
char *s);
232 static int CALLBACK Dir_CB(HWND win, UINT msg, LPARAM param, LPARAM data);
235 void parse_filter(
const char *);
236 void clear_filters();
237 void add_filter(
const char *,
const char *);
257 char *_filt_patt[MAXFILTERS];
267 void errmsg(
const char *msg);
268 void clear_pathnames();
269 void set_single_pathname(
const char *s);
270 int get_saveas_basename(
void);
271 void clear_filters();
272 void add_filter(
const char *,
const char *);
273 void parse_filter(
const char *from);
277#if ! defined(__APPLE__) && !defined(WIN32)
292 void errmsg(
const char *msg);
293 int type_fl_file(
int);
The Fl_File_Chooser widget displays a standard file selection dialog that supports various selection ...
Definition Fl_File_Chooser.H:50
static const char * file_exists_message
Localizable message.
Definition Fl_Native_File_Chooser.H:175
const char * filter() const
Returns the filter string last set.
Definition Fl_Native_File_Chooser_FLTK.cxx:300
void directory(const char *val)
Preset the directory the browser will show when opened.
Definition Fl_Native_File_Chooser_FLTK.cxx:352
const char * errmsg() const
Returns a system dependent error message for the last method that failed.
Definition Fl_Native_File_Chooser_FLTK.cxx:220
void type(int)
Sets the current Fl_Native_File_Chooser::Type of browser.
Definition Fl_Native_File_Chooser_FLTK.cxx:112
void options(int)
Sets the platform specific chooser options to val.
Definition Fl_Native_File_Chooser_FLTK.cxx:137
const char * filename() const
Return the filename the user choose.
Definition Fl_Native_File_Chooser_FLTK.cxx:230
void preset_file(const char *)
Sets the default filename for the chooser.
Definition Fl_Native_File_Chooser_FLTK.cxx:443
Fl_Native_File_Chooser(int val=BROWSE_FILE)
The constructor.
Definition Fl_Native_File_Chooser_FLTK.cxx:45
int filters() const
Gets how many filters were available, not including "All Files".
Definition Fl_Native_File_Chooser_FLTK.cxx:307
Type
Definition Fl_Native_File_Chooser.H:160
@ BROWSE_DIRECTORY
browse directories (lets user choose one directory)
Definition Fl_Native_File_Chooser.H:162
@ BROWSE_MULTI_FILE
browse files (lets user choose multiple files)
Definition Fl_Native_File_Chooser.H:163
@ BROWSE_SAVE_FILE
browse to save a file
Definition Fl_Native_File_Chooser.H:165
@ BROWSE_SAVE_DIRECTORY
browse to save a directory
Definition Fl_Native_File_Chooser.H:166
@ BROWSE_MULTI_DIRECTORY
browse directories (lets user choose multiple directories)
Definition Fl_Native_File_Chooser.H:164
@ BROWSE_FILE
browse files (lets user choose one file)
Definition Fl_Native_File_Chooser.H:161
int show()
Post the chooser's dialog.
Definition Fl_Native_File_Chooser_FLTK.cxx:155
Option
Definition Fl_Native_File_Chooser.H:168
@ NEW_FOLDER
Show 'New Folder' icon (if supported)
Definition Fl_Native_File_Chooser.H:171
@ NO_OPTIONS
no options enabled
Definition Fl_Native_File_Chooser.H:169
@ PREVIEW
enable preview mode
Definition Fl_Native_File_Chooser.H:172
@ SAVEAS_CONFIRM
Show native 'Save As' overwrite confirm dialog (if supported)
Definition Fl_Native_File_Chooser.H:170
void filter_value(int i)
Sets which filter will be initially selected.
Definition Fl_Native_File_Chooser_FLTK.cxx:318
void title(const char *)
Set the title of the file chooser's dialog window.
Definition Fl_Native_File_Chooser_FLTK.cxx:260
int count() const
Returns the number of filenames (or directory names) the user selected.
Definition Fl_Native_File_Chooser_FLTK.cxx:343