26 #ifndef Fl_File_Chooser_H 27 #define Fl_File_Chooser_H 29 #include <FL/Fl_Double_Window.H> 33 #include <FL/Fl_Group.H> 34 #include <FL/Fl_Choice.H> 35 #include <FL/Fl_Menu_Button.H> 36 #include <FL/Fl_Button.H> 37 #include <FL/Fl_Preferences.H> 38 #include <FL/Fl_Tile.H> 39 #include <FL/Fl_File_Browser.H> 40 #include <FL/Fl_Box.H> 41 #include <FL/Fl_Check_Button.H> 42 #include <FL/Fl_File_Input.H> 43 #include <FL/Fl_Return_Button.H> 48 enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 };
55 char preview_text_[2048];
57 void favoritesButtonCB();
64 void update_favorites();
65 void update_preview();
67 Fl_File_Chooser(
const char *d,
const char *p,
int t,
const char *title);
73 inline void cb_showChoice_i(
Fl_Choice*,
void*);
74 static void cb_showChoice(
Fl_Choice*,
void*);
81 inline void cb_newButton_i(
Fl_Button*,
void*);
82 static void cb_newButton(
Fl_Button*,
void*);
83 inline void cb__i(
Fl_Tile*,
void*);
84 static void cb_(
Fl_Tile*,
void*);
107 inline void cb_cancelButton_i(
Fl_Button*,
void*);
108 static void cb_cancelButton(
Fl_Button*,
void*);
114 inline void cb_favUpButton_i(
Fl_Button*,
void*);
115 static void cb_favUpButton(
Fl_Button*,
void*);
117 inline void cb_favDeleteButton_i(
Fl_Button*,
void*);
118 static void cb_favDeleteButton(
Fl_Button*,
void*);
120 inline void cb_favDownButton_i(
Fl_Button*,
void*);
121 static void cb_favDownButton(
Fl_Button*,
void*);
123 inline void cb_favCancelButton_i(
Fl_Button*,
void*);
124 static void cb_favCancelButton(
Fl_Button*,
void*);
134 void directory(
const char *d);
136 void filter(
const char *p);
137 const char * filter();
139 void filter_value(
int f);
141 void iconsize(
uchar s);
143 void label(
const char *l);
144 const char * label();
145 void ok_label(
const char *l);
146 const char * ok_label();
150 void showHidden(
int e);
151 void remove_hidden_files();
154 void rescan_keep_filename();
165 void * user_data()
const;
166 void user_data(
void *d);
167 const char *value(
int f = 1);
168 void value(
const char *filename);
236 void show_error_box(
int val);
238 FL_EXPORT
char *fl_dir_chooser(
const char *message,
const char *fname,
int relative=0);
239 FL_EXPORT
char *fl_file_chooser(
const char *message,
const char *pat,
const char *fname,
int relative=0);
240 FL_EXPORT
void fl_file_chooser_callback(
void (*cb)(
const char*));
241 FL_EXPORT
void fl_file_chooser_ok_label(
const char*l);
static const char * new_directory_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:205
The Fl_Tile class lets you resize its children by dragging the border between them.
Definition: Fl_Tile.H:27
static const char * show_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:221
static const char * save_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:217
Fl_Check_Button * previewButton
The "preview" button is exported so that application developers can control the appearance and use...
Definition: Fl_File_Chooser.H:91
static const char * favorites_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:189
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:38
The Fl_File_Browser widget displays a list of filenames, optionally with file-specific icons...
Definition: Fl_File_Browser.H:37
This widget simply draws its box, and possibly its label.
Definition: Fl_Box.H:32
static const char * all_files_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:177
static const char * hidden_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:225
Fl_Button * newButton
The "new directory" button is exported so that application developers can control the appearance and ...
Definition: Fl_File_Chooser.H:79
The Fl_File_Chooser widget displays a standard file selection dialog that supports various selection ...
Definition: Fl_File_Chooser.H:46
static const char * add_favorites_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:173
static const char * new_directory_tooltip
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:209
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:63
#define FL_PATH_MAX
all path buffers should use this length
Definition: filename.H:31
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1014
Fl_Check_Button * showHiddenButton
When checked, hidden files (i.e., filename begins with dot) are displayed.
Definition: Fl_File_Chooser.H:96
static const char * manage_favorites_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:201
A button that is used to pop up a menu.
Definition: Fl_Choice.H:103
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
static const char * preview_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:213
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:985
static Fl_File_Sort_F * sort
the sort function that is used when loading the contents of a directory.
Definition: Fl_File_Chooser.H:230
static const char * custom_filter_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:181
static const char * filesystems_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:197
static const char * filename_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:193
int preview() const
Returns the current state of the preview box.
Definition: Fl_File_Chooser.H:148
static const char * existing_file_label
[standard text may be customized at run-time]
Definition: Fl_File_Chooser.H:185
int() Fl_File_Sort_F(struct dirent **, struct dirent **)
File sorting function.
Definition: filename.H:79
unsigned char uchar
unsigned char
Definition: fl_types.h:28