Open Bug 152289 Opened 22 years ago Updated 2 years ago

new Filepicker filters for Nvu

Categories

(Firefox :: File Handling, enhancement)

enhancement

Tracking

()

People

(Reporter: glazou, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

It is impossible in the client to choose Open File and filter audio files in the
filepicker... We should have a new file picker filter called "Audio Files"
filtering *.au *.wav *.aiff *.mp3 ...
Useful for picking a sound in prefs, opening a music in a plug-in, and so on.
Comment on attachment 87924 [details] [diff] [review]
patch v1.0

r=bryner
Attachment #87924 - Flags: review+
Comment on attachment 87924 [details] [diff] [review]
patch v1.0

sr=jst
Attachment #87924 - Flags: superreview+
Component: Browser-General → File Handling
QA Contact: imajes-qa → sairuh
QA Contact: sairuh → petersen
Depends on: 125216
glazou?
yes, sorry, that r/sr was in the middle on my layoff process at Netscape and
I missed it. I'm going to revive this asap. Thanks for the wake-up call.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7beta
I am keeping this bug in my fridge a few days since I need another filter
extension for Nvu html templates.
Updating summary
Blocks: 255016
Summary: FilePicker does not allow to filter audio files → new Filepicker filters for Nvu
Comment on attachment 87924 [details] [diff] [review]
patch v1.0

patch is obsolete
Attachment #87924 - Attachment is obsolete: true
Attached patch fix #1Splinter Review
Implements nsIFilePicker.filterSounds and nsIFilePicker.nsIFilePicker for Nvu.
The latter can be ifdef'd on MOZ_STANDALONE_COMPOSER if needed.
s/nsIFilePicker.nsIFilePicker/nsIFilePicker.filterHTMLTemplates
sorry for spam...
Comment on attachment 155680 [details] [diff] [review]
fix #1

the my documents change feels out of place. i think i'd rather see that near a
directory service provider. and the order of sound file types is a bit odd.
could you favor the ones likelt to be encountered/used?
Attachment #155680 - Flags: review+
+  const long filterHTMLTemplates = 0x80;           // HTML templates

hrm... why not use appendFilter in the caller? I'm not sure the filepicker
should know about html templates.
Comment on attachment 155680 [details] [diff] [review]
fix #1

>+#ifdef LINSPIRE
>+    sfile.initWithPath(homeDir.path + "/My Documents");
>+#else
>     sfile.initWithPath(homeDir.path);
>+#endif
What the??? And in xpfe, too!
Neil: oops, forgot to remove that
Christian: because HTML template don't use the *.html extension but *.mzt ?
(In reply to comment #14)
> Christian: because HTML template don't use the *.html extension but *.mzt ?

appendFilter("HTML Template", "*.mzt"); ?
QA Contact: chrispetersen → file-handling
Product: Core → Firefox
Target Milestone: mozilla1.7beta → ---
Version: Trunk → unspecified
Blocks: 1552599

Wrong bug number in PR. Should have been 1552289.

No longer blocks: 1552599
Attachment #9065766 - Attachment is obsolete: true

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: daniel → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: