summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-02-05 18:26:21 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-02-05 18:26:21 +0000
commit3124794f1fe6e7a5e0e201f6a3e773ed58ad1e5e (patch)
tree90a66029117cc35558a438ee695f2c78e1132f64 /src/Fl_File_Chooser.fl
parentb601fdc3bc4b5b9a9d1a356dd458cfdd3213fa16 (diff)
Fl_File_Chooser was slow with large directories (STR #654)
FL/Fl_File_Browser.H: - Don't reload the directory view unless asked to. FL/Fl_File_Chooser.H: - Rebuilt using current FLUID. src/Fl_File_Browser.cxx: - Don't reload the directory view unless asked to. src/Fl_File_Chooser.cxx: - Fl_File_Chooser::show() calls rescan(). src/Fl_File_Chooser.fl: - Fl_File_Chooser::show() calls rescan(). src/Fl_File_Chooser2.cxx: - Only call rescan() when chooser is shown. src/Fl_File_Icon.cxx: - Add optimization for Windows - filenames with trailing slash are directories. test/file_chooser.cxx: - Only call show() once... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 7c3744546..fed85b594 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -1,5 +1,5 @@
# data file for the Fltk User Interface Designer (fluid)
-version 1.0105
+version 1.0107
header_name {../FL/Fl_File_Chooser.H}
code_name {.cxx}
class FL_EXPORT Fl_File_Chooser {open
@@ -107,7 +107,7 @@ window->hide();} open
if (callback_)
(*callback_)(this, data_);
-window->hide();} selected
+window->hide();}
private xywh {300 345 85 25}
code0 {\#include <FL/fl_ask.H>}
code1 {okButton->label(fl_ok);}
@@ -245,11 +245,13 @@ showChoiceCB();} {}
}
decl {void rescan();} {public
}
- Function {show()} {return_type void
+ Function {show()} {open return_type void
} {
code {window->hotspot(fileList);
window->show();
-fileName->take_focus();} {}
+rescan();
+fileName->take_focus();} {selected
+ }
}
Function {shown()} {return_type int
} {