fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

Fl_File_Chooser.cxx
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2015 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 // =======================================================================
19 // DO NOT EDIT FL/Fl_File_Chooser.H and src/Fl_File_Chooser.cxx !!!
20 // =======================================================================
21 // Please use fluid to change src/Fl_File_Chooser.fl interactively
22 // and then use fluid to "write code" or edit and use fluid -c .
23 // =======================================================================
24 //
25 
26 // generated by Fast Light User Interface Designer (fluid) version 1.0305
27 
28 #include "../FL/Fl_File_Chooser.H"
29 #include <FL/fl_draw.H>
30 
32  fileName->value("");
35 window->hide();
36 }
38  ((Fl_File_Chooser*)(o->user_data()))->cb_window_i(o,v);
39 }
40 
42  showChoiceCB();
43 }
45  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_showChoice_i(o,v);
46 }
47 
50 }
52  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favoritesButton_i(o,v);
53 }
54 
56  newdir();
57 }
59  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_newButton_i(o,v);
60 }
61 
62 #include <FL/Fl_Bitmap.H>
63 static const unsigned char idata_new[] =
64 {0,0,120,0,132,0,2,1,1,254,1,128,49,128,49,128,253,128,253,128,49,128,49,
65 128,1,128,1,128,255,255,0,0};
66 static Fl_Image *image_new() {
67  static Fl_Image *image = new Fl_Bitmap(idata_new, 16, 16);
68  return image;
69 }
70 
73 }
74 void Fl_File_Chooser::cb_(Fl_Tile* o, void* v) {
75  ((Fl_File_Chooser*)(o->parent()->user_data()))->cb__i(o,v);
76 }
77 
79  fileListCB();
80 }
82  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_fileList_i(o,v);
83 }
84 
87 }
89  ((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_previewButton_i(o,v);
90 }
91 
94 }
96  ((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_showHiddenButton_i(o,v);
97 }
98 
100  fileNameCB();
101 }
103  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_fileName_i(o,v);
104 }
105 
107  window->hide();
108 
109 // Do any callback that is registered...
110 if (callback_)
111  (*callback_)(this, data_);
112 }
114  ((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_okButton_i(o,v);
115 }
116 
118  fileName->value("");
119 fileList->deselect();
121 window->hide();
122 }
124  ((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_cancelButton_i(o,v);
125 }
126 
129 }
131  ((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favList_i(o,v);
132 }
133 
136 }
138  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favUpButton_i(o,v);
139 }
140 
143 }
145  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favDeleteButton_i(o,v);
146 }
147 
150 }
152  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favDownButton_i(o,v);
153 }
154 
156  favWindow->hide();
157 }
159  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favCancelButton_i(o,v);
160 }
161 
164 }
166  ((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favOkButton_i(o,v);
167 }
168 
169 Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char *title) {
170  if (!prefs_) {
171  prefs_ = new Fl_Preferences(Fl_Preferences::USER, "fltk.org", "filechooser");
172  }
173  Fl_Group *prev_current = Fl_Group::current();
174  { window = new Fl_Double_Window(490, 380, "Choose File");
175  window->callback((Fl_Callback*)cb_window, (void*)(this));
176  { Fl_Group* o = new Fl_Group(10, 10, 470, 25);
177  { showChoice = new Fl_Choice(65, 10, 215, 25, "Show:");
179  showChoice->labelfont(1);
183  } // Fl_Choice* showChoice
184  { favoritesButton = new Fl_Menu_Button(290, 10, 155, 25, "Favorites");
189  } // Fl_Menu_Button* favoritesButton
190  { Fl_Button* o = newButton = new Fl_Button(455, 10, 25, 25);
191  newButton->image( image_new() );
192  newButton->labelsize(8);
195  } // Fl_Button* newButton
196  o->end();
197  } // Fl_Group* o
198  { Fl_Tile* o = new Fl_Tile(10, 45, 470, 225);
199  o->callback((Fl_Callback*)cb_);
200  { fileList = new Fl_File_Browser(10, 45, 295, 225);
201  fileList->type(2);
204  } // Fl_File_Browser* fileList
205  { previewBox = new Fl_Box(305, 45, 175, 225, "?");
207  previewBox->labelsize(100);
209  } // Fl_Box* previewBox
210  o->end();
212  } // Fl_Tile* o
213  { Fl_Group* o = new Fl_Group(10, 275, 470, 95);
214  { Fl_Group* o = new Fl_Group(10, 275, 470, 20);
215  { previewButton = new Fl_Check_Button(10, 275, 73, 20, "Preview");
216  previewButton->shortcut(0x80070);
218  previewButton->value(1);
221  } // Fl_Check_Button* previewButton
222  { showHiddenButton = new Fl_Check_Button(115, 275, 165, 20, "Show hidden files");
226  } // Fl_Check_Button* showHiddenButton
227  { Fl_Box* o = new Fl_Box(115, 275, 365, 20);
229  } // Fl_Box* o
230  o->end();
231  } // Fl_Group* o
232  { fileName = new Fl_File_Input(115, 300, 365, 35);
233  fileName->labelfont(1);
238  } // Fl_File_Input* fileName
239  { Fl_Box* o = new Fl_Box(10, 310, 105, 25, "Filename:");
240  o->labelfont(1);
242  o->label(filename_label);
243  } // Fl_Box* o
244  { Fl_Group* o = new Fl_Group(10, 345, 470, 25);
245  { okButton = new Fl_Return_Button(313, 345, 85, 25, "OK");
247  okButton->label(fl_ok);
248  } // Fl_Return_Button* okButton
249  { Fl_Button* o = cancelButton = new Fl_Button(408, 345, 72, 25, "Cancel");
251  o->label(fl_cancel);
252  } // Fl_Button* cancelButton
253  { Fl_Box* o = new Fl_Box(10, 345, 30, 25);
255  } // Fl_Box* o
256  o->end();
257  } // Fl_Group* o
258  o->end();
259  } // Fl_Group* o
260  if (title) window->label(title);
261  window->set_modal();
262  window->end();
263  } // Fl_Double_Window* window
264  { favWindow = new Fl_Double_Window(355, 150, "Manage Favorites");
265  favWindow->user_data((void*)(this));
266  { favList = new Fl_File_Browser(10, 10, 300, 95);
267  favList->type(2);
270  } // Fl_File_Browser* favList
271  { Fl_Group* o = new Fl_Group(320, 10, 25, 95);
272  { favUpButton = new Fl_Button(320, 10, 25, 25, "@8>");
274  } // Fl_Button* favUpButton
275  { favDeleteButton = new Fl_Button(320, 45, 25, 25, "X");
279  } // Fl_Button* favDeleteButton
280  { favDownButton = new Fl_Button(320, 80, 25, 25, "@2>");
282  } // Fl_Button* favDownButton
283  o->end();
284  } // Fl_Group* o
285  { Fl_Group* o = new Fl_Group(10, 113, 335, 29);
286  { favCancelButton = new Fl_Button(273, 115, 72, 25, "Cancel");
289  } // Fl_Button* favCancelButton
290  { favOkButton = new Fl_Return_Button(181, 115, 79, 25, "Save");
293  } // Fl_Return_Button* favOkButton
294  { Fl_Box* o = new Fl_Box(10, 115, 161, 25);
296  } // Fl_Box* o
297  o->end();
298  } // Fl_Group* o
300  favWindow->set_modal();
301  favWindow->size_range(181, 150);
302  favWindow->end();
303  } // Fl_Double_Window* favWindow
304  callback_ = 0;
305  data_ = 0;
306  directory_[0] = 0;
307  window->size_range(window->w(), window->h(), Fl::w(), Fl::h());
308  type(t);
309  filter(p);
311  value(d);
312  type(t);
313  int e;
314  prefs_->get("preview", e, 1);
315  preview(e);
316  Fl_Group::current(prev_current);
317  ext_group=(Fl_Widget*)0;
318 }
319 
323  delete window;
324  delete favWindow;
325 }
326 
327 void Fl_File_Chooser::callback(void (*cb)(Fl_File_Chooser *, void *), void *d ) {
328  callback_ = cb;
329  data_ = d;
330 }
331 
333  fileList->color(c);
334 }
335 
337  return (fileList->color());
338 }
339 
341  return directory_;
342 }
343 
344 const char * Fl_File_Chooser::filter() {
345  return (fileList->filter());
346 }
347 
349  return showChoice->value();
350 }
351 
353  showChoice->value(f);
354  showChoiceCB();
355 }
356 
358  window->hide();
359 }
360 
362  fileList->iconsize(s);
363 }
364 
366  return (fileList->iconsize());
367 }
368 
369 void Fl_File_Chooser::label(const char *l) {
370  window->label(l);
371 }
372 
373 const char * Fl_File_Chooser::label() {
374  return (window->label());
375 }
376 
377 void Fl_File_Chooser::ok_label(const char *l) {
378  if (l) okButton->label(l);
379  int w=0, h=0;
380  okButton->measure_label(w, h);
381  okButton->resize(cancelButton->x() - 50 - w, cancelButton->y(),
382  w + 40, 25);
383  okButton->parent()->init_sizes();
384 }
385 
387  return (okButton->label());
388 }
389 
391  return window->shown();
392 }
393 
395  fileList->textcolor(c);
396 }
397 
399  return (fileList->textcolor());
400 }
401 
403  fileList->textfont(f);
404 }
405 
407  return (fileList->textfont());
408 }
409 
411  fileList->textsize(s);
412 }
413 
415  return (fileList->textsize());
416 }
417 
419  type_ = t;
420  if (t & MULTI)
422  else
424  if (t & CREATE)
425  newButton->activate();
426  else
428  if (t & DIRECTORY)
430  else
432 }
433 
435  return (type_);
436 }
437 
439  return (data_);
440 }
441 
443  data_ = d;
444 }
445 
447  return window->visible();
448 }
449 
451  Fl_Widget* ret=ext_group;
452  if (gr==ext_group) {
453  return ret;
454  }
455  if (ext_group) {
456  int sh=ext_group->h()+4;
457  Fl_Widget* svres=window->resizable();
459  window->size(window->w(),window->h()-sh);
461  ext_group=NULL;
462  window->resizable(svres);
463  }
464  if (gr) {
465  int nh=window->h()+gr->h()+4;
466  Fl_Widget* svres=window->resizable();
468  window->size(window->w(),nh);
469  gr->position(2,okButton->y()+okButton->h()+2);
470  window->add(gr);
471  ext_group=gr;
472  window->resizable(svres);
473  }
474  return ret;
475 }
476 
477 //
478 // End of "$Id$".
479 //
FL_HOLD_BROWSER
#define FL_HOLD_BROWSER
Definition: Fl_Browser_.H:35
FL_ALIGN_LEFT
const Fl_Align FL_ALIGN_LEFT
Definition: Enumerations.H:839
Fl_Choice
A button that is used to pop up a menu.
Definition: Fl_Choice.H:83
Fl_Bitmap.H
Fl_Widget::activate
void activate()
Definition: Fl_Widget.cxx:241
Fl_Widget::align
Fl_Align align() const
Definition: Fl_Widget.H:348
Fl_File_Chooser::showChoice
Fl_Choice * showChoice
Definition: Fl_File_Chooser.H:74
Fl_Button::value
int value(int v)
Definition: Fl_Button.cxx:41
Fl_File_Chooser::cb_newButton
static void cb_newButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:58
Fl_File_Chooser::cb_favUpButton_i
void cb_favUpButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:134
Fl_File_Chooser::preview
int preview() const
Definition: Fl_File_Chooser.H:149
Fl_Color
unsigned int Fl_Color
Definition: Enumerations.H:934
Fl_File_Chooser::user_data
void * user_data() const
Definition: Fl_File_Chooser.cxx:438
Fl_File_Chooser::directory_
char directory_[2048]
Definition: Fl_File_Chooser.H:55
Fl_File_Chooser::ok_label
const char * ok_label()
Definition: Fl_File_Chooser.cxx:386
Fl_Group::end
void end()
Definition: Fl_Group.cxx:75
Fl_File_Chooser::textcolor
Fl_Color textcolor()
Definition: Fl_File_Chooser.cxx:398
Fl_File_Chooser::cb_favDeleteButton_i
void cb_favDeleteButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:141
Fl_File_Chooser::favDeleteButton
Fl_Button * favDeleteButton
Definition: Fl_File_Chooser.H:117
Fl_Button::down_box
Fl_Boxtype down_box() const
Definition: Fl_Button.H:152
Fl_File_Chooser::fileName
Fl_File_Input * fileName
Definition: Fl_File_Chooser.H:101
Fl_File_Chooser::cb__i
void cb__i(Fl_Tile *, void *)
Definition: Fl_File_Chooser.cxx:71
Fl_Image
Base class for image caching and drawing.
Definition: Fl_Image.H:55
Fl_Window::hotspot
void hotspot(int x, int y, int offscreen=0)
Definition: Fl_Window_hotspot.cxx:24
Fl_File_Chooser::cb_fileList_i
void cb_fileList_i(Fl_File_Browser *, void *)
Definition: Fl_File_Chooser.cxx:78
Fl_File_Chooser::cb_window_i
void cb_window_i(Fl_Double_Window *, void *)
Definition: Fl_File_Chooser.cxx:31
Fl_File_Chooser::CREATE
Definition: Fl_File_Chooser.H:50
Fl_Preferences::USER
Preferences apply only to the current user.
Definition: Fl_Preferences.H:68
Fl_Button::shortcut
int shortcut() const
Definition: Fl_Button.H:125
Fl_File_Chooser::hidden_label
static const char * hidden_label
Definition: Fl_File_Chooser.H:226
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition: Fl_Button.H:79
Fl_Widget::window
Fl_Window * window() const
Definition: Fl_Window.cxx:118
Fl_Widget::labelfont
Fl_Font labelfont() const
Definition: Fl_Widget.H:487
Fl_File_Chooser::favoritesButtonCB
void favoritesButtonCB()
Definition: Fl_File_Chooser2.cxx:533
Fl_File_Chooser::cb_previewButton
static void cb_previewButton(Fl_Check_Button *, void *)
Definition: Fl_File_Chooser.cxx:88
Fl_File_Chooser::cb_favoritesButton_i
void cb_favoritesButton_i(Fl_Menu_Button *, void *)
Definition: Fl_File_Chooser.cxx:48
Fl_File_Chooser::cancelButton
Fl_Button * cancelButton
Definition: Fl_File_Chooser.H:107
Fl_File_Chooser::favoritesCB
void favoritesCB(Fl_Widget *w)
Definition: Fl_File_Chooser2.cxx:576
Fl_File_Input
This widget displays a pathname in a text input field.
Definition: Fl_File_Input.H:47
NULL
#define NULL
Definition: forms.H:34
Fl_File_Chooser::cb_favoritesButton
static void cb_favoritesButton(Fl_Menu_Button *, void *)
Definition: Fl_File_Chooser.cxx:51
Fl_File_Chooser::filter
const char * filter()
Definition: Fl_File_Chooser.cxx:344
Fl_Widget::when
Fl_When when() const
Definition: Fl_Widget.H:621
Fl_File_Input::value
int value(const char *str)
Definition: Fl_File_Input.cxx:153
Fl_File_Chooser::value
const char * value(int f=1)
Definition: Fl_File_Chooser2.cxx:1477
Fl_File_Chooser::newButton
Fl_Button * newButton
Definition: Fl_File_Chooser.H:81
Fl_File_Chooser::cb_
static void cb_(Fl_Tile *, void *)
Definition: Fl_File_Chooser.cxx:74
Fl_Widget::user_data
void * user_data() const
Definition: Fl_Widget.H:593
Fl_File_Chooser::callback
void callback(void(*cb)(Fl_File_Chooser *, void *), void *d=0)
Definition: Fl_File_Chooser.cxx:327
Fl_Callback
void() Fl_Callback(Fl_Widget *, void *)
Definition: Fl_Widget.H:49
Fl_File_Browser::filetype
int filetype() const
Definition: Fl_File_Browser.H:97
Fl_File_Chooser::fileNameCB
void fileNameCB()
Definition: Fl_File_Chooser2.cxx:800
Fl::h
static int h()
Definition: Fl_win32.cxx:571
Fl_File_Chooser::new_directory_tooltip
static const char * new_directory_tooltip
Definition: Fl_File_Chooser.H:210
Fl_Browser_::deselect
int deselect(int docallbacks=0)
Definition: Fl_Browser_.cxx:650
Fl_File_Chooser::cb_previewButton_i
void cb_previewButton_i(Fl_Check_Button *, void *)
Definition: Fl_File_Chooser.cxx:85
FL_ALIGN_INSIDE
const Fl_Align FL_ALIGN_INSIDE
Definition: Enumerations.H:843
Fl_File_Browser::textsize
Fl_Fontsize textsize() const
Definition: Fl_File_Browser.H:88
Fl_File_Browser
Definition: Fl_File_Browser.H:39
Fl_Bitmap
Definition: Fl_Bitmap.H:33
Fl_Widget::color
Fl_Color color() const
Definition: Fl_Widget.H:378
Fl_File_Chooser::save_label
static const char * save_label
Definition: Fl_File_Chooser.H:218
Fl_File_Chooser::cb_fileName
static void cb_fileName(Fl_File_Input *, void *)
Definition: Fl_File_Chooser.cxx:102
p
static menustate * p
Definition: Fl_Menu.cxx:606
FL_WHEN_CHANGED
Do the callback only when the widget value changes.
Definition: Enumerations.H:441
Fl_File_Chooser::cb_favUpButton
static void cb_favUpButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:137
Fl_Widget::position
void position(int X, int Y)
Definition: Fl_Widget.H:332
Fl_Widget::w
void w(int v)
Definition: Fl_Widget.H:143
Fl_File_Chooser::favDownButton
Fl_Button * favDownButton
Definition: Fl_File_Chooser.H:120
Fl_File_Chooser::cb_favOkButton_i
void cb_favOkButton_i(Fl_Return_Button *, void *)
Definition: Fl_File_Chooser.cxx:162
Fl_File_Chooser::cb_favCancelButton_i
void cb_favCancelButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:155
Fl_Widget::x
void x(int v)
Definition: Fl_Widget.H:139
Fl_File_Chooser::previewButton
Fl_Check_Button * previewButton
Definition: Fl_File_Chooser.H:92
Fl_File_Chooser::cb_newButton_i
void cb_newButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:55
Fl_File_Chooser::favCancelButton
Fl_Button * favCancelButton
Definition: Fl_File_Chooser.H:123
FL_MULTI_BROWSER
#define FL_MULTI_BROWSER
Definition: Fl_Browser_.H:36
Fl_File_Chooser::favWindow
Fl_Double_Window * favWindow
Definition: Fl_File_Chooser.H:110
Fl_File_Chooser::label
const char * label()
Definition: Fl_File_Chooser.cxx:373
Fl_File_Chooser::add_extra
Fl_Widget * add_extra(Fl_Widget *gr)
Definition: Fl_File_Chooser.cxx:450
Fl_File_Chooser::favoritesButton
Fl_Menu_Button * favoritesButton
Definition: Fl_File_Chooser.H:77
fl_draw.H
utility header to pull drawing functions together
Fl_File_Browser::iconsize
uchar iconsize() const
Definition: Fl_File_Browser.H:62
Fl_File_Chooser::cb_favList_i
void cb_favList_i(Fl_File_Browser *, void *)
Definition: Fl_File_Chooser.cxx:127
FL_DOWN_BOX
see figure 1
Definition: Enumerations.H:608
Fl_File_Chooser::filter_value
int filter_value()
Definition: Fl_File_Chooser.cxx:348
FL_WHEN_ENTER_KEY_ALWAYS
Do the callback when the user presses the ENTER key, even if the value doesn't change.
Definition: Enumerations.H:446
Fl_File_Chooser::hide
void hide()
Definition: Fl_File_Chooser.cxx:357
Fl_Window::set_modal
void set_modal()
Definition: Fl_Window.H:289
Fl_File_Chooser::Fl_File_Chooser
Fl_File_Chooser(const char *d, const char *p, int t, const char *title)
Definition: Fl_File_Chooser.cxx:169
Fl_File_Chooser::update_preview
void update_preview()
Definition: Fl_File_Chooser2.cxx:1304
Fl_Preferences::get
char get(const char *entry, int &value, int defaultValue)
Definition: Fl_Preferences.cxx:509
Fl_File_Browser::FILES
Definition: Fl_File_Browser.H:53
Fl_Window::size_range
void size_range(int minw, int minh, int maxw=0, int maxh=0, int dw=0, int dh=0, int aspect=0)
Definition: Fl_Window.H:438
Fl_Widget::visible
unsigned int visible() const
Definition: Fl_Widget.H:660
Fl_File_Chooser::shown
int shown()
Definition: Fl_File_Chooser.cxx:390
Fl_Choice::value
int value() const
Definition: Fl_Choice.H:95
fl_ok
const char * fl_ok
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:273
Fl_Return_Button
Definition: Fl_Return_Button.H:33
Fl_Double_Window::hide
void hide()
Definition: Fl_Double_Window.cxx:505
Fl_File_Chooser::cb_favCancelButton
static void cb_favCancelButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:158
FL_BORDER_BOX
see figure 1
Definition: Enumerations.H:619
Fl_Menu_::down_box
Fl_Boxtype down_box() const
Definition: Fl_Menu_.H:173
Fl_File_Chooser::cb_showHiddenButton
static void cb_showHiddenButton(Fl_Check_Button *, void *)
Definition: Fl_File_Chooser.cxx:95
Fl_Fontsize
int Fl_Fontsize
Definition: Enumerations.H:906
cb
static void cb(Fl_Widget *, void *v)
Definition: factory.cxx:937
Fl::remove_timeout
static void remove_timeout(Fl_Timeout_Handler, void *=0)
Definition: Fl.cxx:368
Fl_File_Chooser::textfont
Fl_Font textfont()
Definition: Fl_File_Chooser.cxx:406
Fl_Widget::measure_label
void measure_label(int &ww, int &hh) const
Definition: Fl_Widget.H:957
Fl_Menu_Button
Definition: Fl_Menu_Button.H:58
Fl_Widget
Definition: Fl_Widget.H:101
Fl_File_Chooser::type
int type()
Definition: Fl_File_Chooser.cxx:434
Fl_Widget::deactivate
void deactivate()
Definition: Fl_Widget.cxx:253
Fl_Group
Definition: Fl_Group.H:41
Fl_Group::current
static Fl_Group * current()
Definition: Fl_Group.cxx:84
Fl_Group::add
void add(Fl_Widget &)
Definition: Fl_Group.cxx:491
Fl_Widget::box
Fl_Boxtype box() const
Definition: Fl_Widget.H:363
Fl_File_Chooser::type_
int type_
Definition: Fl_File_Chooser.H:58
Fl_Window::shown
int shown()
Definition: Fl_Window.H:485
Fl_File_Chooser::cb_fileName_i
void cb_fileName_i(Fl_File_Input *, void *)
Definition: Fl_File_Chooser.cxx:99
Fl_File_Chooser::cb_favList
static void cb_favList(Fl_File_Browser *, void *)
Definition: Fl_File_Chooser.cxx:130
Fl_Group::init_sizes
void init_sizes()
Definition: Fl_Group.cxx:572
Fl_File_Chooser::DIRECTORY
Definition: Fl_File_Chooser.H:50
Fl_File_Chooser::callback_
void(* callback_)(Fl_File_Chooser *, void *)
Definition: Fl_File_Chooser.H:53
Fl_Widget::h
void h(int v)
Definition: Fl_Widget.H:145
Fl_File_Chooser::update_favorites
void update_favorites()
Definition: Fl_File_Chooser2.cxx:1264
Fl_Widget::label
const char * label() const
Definition: Fl_Widget.H:421
Fl_File_Chooser::favList
Fl_File_Browser * favList
Definition: Fl_File_Chooser.H:111
Fl_File_Chooser::window
Fl_Double_Window * window
Definition: Fl_File_Chooser.H:71
Fl_File_Chooser
Definition: Fl_File_Chooser.H:48
Fl_Window::label
const char * label() const
Definition: Fl_Window.H:450
Fl_File_Chooser::previewBox
Fl_Box * previewBox
Definition: Fl_File_Chooser.H:90
Fl_Widget::y
void y(int v)
Definition: Fl_Widget.H:141
Fl_Box
Definition: Fl_Box.H:34
Fl_File_Chooser::cb_showChoice
static void cb_showChoice(Fl_Choice *, void *)
Definition: Fl_File_Chooser.cxx:44
Fl_File_Chooser::cb_okButton_i
void cb_okButton_i(Fl_Return_Button *, void *)
Definition: Fl_File_Chooser.cxx:106
Fl_File_Chooser::cb_favDeleteButton
static void cb_favDeleteButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:144
Fl_File_Chooser::cb_favDownButton
static void cb_favDownButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:151
Fl_Widget::size
void size(int W, int H)
Definition: Fl_Widget.H:341
Fl_File_Chooser::ext_group
Fl_Widget * ext_group
Definition: Fl_File_Chooser.H:233
Fl_Widget::callback
Fl_Callback_p callback() const
Definition: Fl_Widget.H:561
Fl_Font
int Fl_Font
Definition: Enumerations.H:877
Fl_File_Chooser::color
Fl_Color color()
Definition: Fl_File_Chooser.cxx:336
Fl_File_Chooser::data_
void * data_
Definition: Fl_File_Chooser.H:54
Fl_File_Chooser::previewCB
static void previewCB(Fl_File_Chooser *fc)
Definition: Fl_File_Chooser2.cxx:1130
Fl_Double_Window
Definition: Fl_Double_Window.H:40
Fl_File_Chooser::cb_favOkButton
static void cb_favOkButton(Fl_Return_Button *, void *)
Definition: Fl_File_Chooser.cxx:165
Fl_File_Chooser::filename_label
static const char * filename_label
Definition: Fl_File_Chooser.H:194
Fl_Widget::tooltip
const char * tooltip() const
Definition: Fl_Widget.H:552
Fl_Preferences
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:60
Fl_File_Chooser::iconsize
uchar iconsize()
Definition: Fl_File_Chooser.cxx:365
idata_new
static const unsigned char idata_new[]
Definition: Fl_File_Chooser.cxx:63
image_new
static Fl_Image * image_new()
Definition: Fl_File_Chooser.cxx:66
Fl_File_Chooser::showChoiceCB
void showChoiceCB()
Definition: Fl_File_Chooser2.cxx:1225
Fl_Widget::type
uchar type() const
Definition: Fl_Widget.H:274
Fl_Tile
Definition: Fl_Tile.H:29
Fl_File_Chooser::okButton
Fl_Return_Button * okButton
Definition: Fl_File_Chooser.H:104
f
Fl_Box_Draw_F * f
Definition: fl_boxtype.cxx:285
Fl_Widget::parent
Fl_Group * parent() const
Definition: Fl_Widget.H:254
Fl_Timeout_Handler
void(* Fl_Timeout_Handler)(void *data)
Definition: Fl.H:92
Fl_File_Browser::filter
void filter(const char *pattern)
Definition: Fl_File_Browser.cxx:723
fl_cancel
const char * fl_cancel
string pointer used in common dialogs, you can change it to another language
Definition: fl_ask.cxx:274
Fl_File_Browser::DIRECTORIES
Definition: Fl_File_Browser.H:53
Fl_Browser_::textfont
Fl_Font textfont() const
Definition: Fl_Browser_.H:292
Fl_File_Chooser::newdir
void newdir()
Definition: Fl_File_Chooser2.cxx:1058
title
static const char * title
Definition: Fl_arg.cxx:55
Fl_File_Chooser::prefs_
static Fl_Preferences * prefs_
Definition: Fl_File_Chooser.H:52
Fl_Group::remove
void remove(int index)
Definition: Fl_Group.cxx:503
Fl_File_Chooser::cb_showChoice_i
void cb_showChoice_i(Fl_Choice *, void *)
Definition: Fl_File_Chooser.cxx:41
Fl_Widget::resize
virtual void resize(int x, int y, int w, int h)
Definition: Fl_Widget.cxx:150
Fl::w
static int w()
Definition: Fl_win32.cxx:579
Fl_File_Chooser::manage_favorites_label
static const char * manage_favorites_label
Definition: Fl_File_Chooser.H:202
Fl_File_Chooser::textsize
Fl_Fontsize textsize()
Definition: Fl_File_Chooser.cxx:414
FL_ALIGN_RIGHT
const Fl_Align FL_ALIGN_RIGHT
Definition: Enumerations.H:841
Fl_File_Chooser::MULTI
Definition: Fl_File_Chooser.H:50
Fl_File_Chooser::cb_favDownButton_i
void cb_favDownButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:148
Fl_Widget::labelsize
Fl_Fontsize labelsize() const
Definition: Fl_Widget.H:502
Fl_File_Chooser::~Fl_File_Chooser
~Fl_File_Chooser()
Definition: Fl_File_Chooser.cxx:320
Fl_Align
unsigned Fl_Align
Definition: Enumerations.H:828
Fl_File_Chooser::visible
int visible()
Definition: Fl_File_Chooser.cxx:446
Fl_File_Chooser::preview_label
static const char * preview_label
Definition: Fl_File_Chooser.H:214
Fl_File_Chooser::fileList
Fl_File_Browser * fileList
Definition: Fl_File_Chooser.H:87
uchar
unsigned char uchar
Definition: fl_types.h:30
Fl_File_Chooser::show_label
static const char * show_label
Definition: Fl_File_Chooser.H:222
Fl_File_Chooser::cb_window
static void cb_window(Fl_Double_Window *, void *)
Definition: Fl_File_Chooser.cxx:37
Fl_Browser_::textcolor
Fl_Color textcolor() const
Definition: Fl_Browser_.H:310
Fl_File_Chooser::showHidden
void showHidden(int e)
Definition: Fl_File_Chooser2.cxx:1611
Fl_File_Chooser::favorites_label
static const char * favorites_label
Definition: Fl_File_Chooser.H:190
Fl_Check_Button
A button with a "checkmark" to show its status.
Definition: Fl_Check_Button.H:30
Fl_File_Chooser::fileListCB
void fileListCB()
Definition: Fl_File_Chooser2.cxx:700
Fl_File_Chooser::cb_showHiddenButton_i
void cb_showHiddenButton_i(Fl_Check_Button *, void *)
Definition: Fl_File_Chooser.cxx:92
Fl_File_Chooser::showHiddenButton
Fl_Check_Button * showHiddenButton
Definition: Fl_File_Chooser.H:97
Fl_File_Chooser::cb_okButton
static void cb_okButton(Fl_Return_Button *, void *)
Definition: Fl_File_Chooser.cxx:113
Fl_File_Chooser::cb_cancelButton_i
void cb_cancelButton_i(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:117
Fl_File_Chooser::favUpButton
Fl_Button * favUpButton
Definition: Fl_File_Chooser.H:114
Fl_Widget::image
Fl_Image * image()
Definition: Fl_Widget.H:514
Fl_Group::resizable
void resizable(Fl_Widget &o)
Definition: Fl_Group.H:117
FL_ALIGN_CLIP
const Fl_Align FL_ALIGN_CLIP
Definition: Enumerations.H:849
Fl_File_Chooser::cb_cancelButton
static void cb_cancelButton(Fl_Button *, void *)
Definition: Fl_File_Chooser.cxx:123
Fl_File_Chooser::directory
char * directory()
Definition: Fl_File_Chooser.cxx:340
Fl_File_Chooser::cb_fileList
static void cb_fileList(Fl_File_Browser *, void *)
Definition: Fl_File_Chooser.cxx:81
Fl_File_Chooser::favOkButton
Fl_Return_Button * favOkButton
Definition: Fl_File_Chooser.H:126
FL_WHEN_ENTER_KEY
Do the callback when the user presses the ENTER key and the value changes.
Definition: Enumerations.H:445