#824 closed defect (fixed)
file dialog needs directory mode
Reported by: | Juergen Spitzmueller | Owned by: | Juergen Spitzmueller |
---|---|---|---|
Priority: | high | Milestone: | 1.3.0 |
Component: | dialogs | Version: | 1.3.0cvs |
Severity: | normal | Keywords: | ui patch VERIFIED |
Cc: |
Description
In both frontends, you cannot choose a directory (directly) with the file
dialog. I.e., in pref->paths, the user can select files but no directories,
while the opposite is necessary.
We need something like a browseDir function in controllers/helper_funcs.C. In
qt, switching to "Mode OnlyDirectory" is rather trivial. Is there something
similar for xforms?
Attachments (3)
Change History (9)
comment:1 by , 21 years ago
Keywords: | ui added |
---|---|
Milestone: | → 1.3.0 |
comment:2 by , 21 years ago
Thanks, John, that helped a lot. I will upload the patch which implements
opendir in qt. Works fine. Please review.
However, I have not an inkling how to implement this in xforms (I just don't
understand xforms' file dialog).
Angus?
btw. since opendir is not implemented in xforms, it should not break (though I
have not compliled it with xforms).
comment:4 by , 21 years ago
Status: | new → assigned |
---|
OK, here's what you should need :
1) change frontends/FileDialog.h to add a new method :
2) implement opendir in qt2/FileDialog.C to set the necessary flag
3) implement opendir in xforms (dunno what to set if needed)
4) add browseDir in controllers/helper_funcs.C that calls this version
5) change the needed browseFiles to browseDirs
Does that help ?