Closed
Bug 276883
Opened 20 years ago
Closed 17 years ago
Allow downloaded files to be dragged and dropped from the download manager
Categories
(Camino Graveyard :: Downloading, enhancement, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino1.6
People
(Reporter: mozilla, Assigned: stuart.morgan+bugzilla)
References
Details
(Keywords: fixed1.8.1.10)
Attachments
(2 files, 4 obsolete files)
5.51 KB,
patch
|
froodian
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
6.04 KB,
application/octet-stream
|
Details |
(This text is from the third part of bug 230320, which I'm spinning off into this separate bug to keep the different issues separate). A way to *drag* a file from the download manager (once it's downloaded, of course) so I could either drag it to some folder or drag it to some application in the Dock (for example). Opening isn't always what I want. (Original reporter Paul Guyot, cc'ed on this bug).
Reporter | ||
Comment 1•20 years ago
|
||
Moving this to the future milestone, that bug 230320 was targetted for; its not likely to happen any time soon unless someone steps up to the plate to implement it.
Target Milestone: --- → Future
Comment 2•20 years ago
|
||
we did talk about this, the problem is that it disrupts the selection method of the row in the table. If the interaction can be done correctly, I'd be all for it as I think it's a good idea.
Updated•19 years ago
|
Priority: -- → P4
Assignee: mikepinkerton → nobody
QA Contact: downloading
Comment 3•17 years ago
|
||
Targeting at 1.2 with the rest of our DL manager bugs. We need to look at this stuff pretty soon.
Target Milestone: Future → Camino1.2
Comment 4•17 years ago
|
||
I am quite sure that I would never use this. The operations mentioned are the province of the finder, and our re-implementing these functions are going to founder on the question of whether a drag means copy or move (at the very least) "Dragging to some folder" => Use 'Reveal in Finder' and then the Finder to do file-related operations. "Open with..." => Use 'Reveal in Finder' and then the Finder to do file-related operations. I would support giving the icon in the Download window the same rights and responsibilities as a Proxy icon.
Mass un-setting milestone per 1.6 roadmap. Filter on RemoveRedonkulousBuglist to remove bugspam. Developers: if you have a patch in hand for one of these bugs, you may pull the bug back to 1.6 *at that point*.
Target Milestone: Camino1.6 → ---
Assignee | ||
Comment 7•17 years ago
|
||
This bug hit my "annoyed me too many times in a short period" threshold, so taking. The patch turns the icon for a completed download that is still locatable into a drag source.
Assignee: nobody → stuart.morgan
Status: NEW → ASSIGNED
Attachment #285622 -
Flags: review?(froodian)
Assignee | ||
Updated•17 years ago
|
Target Milestone: --- → Camino1.6
Comment 8•17 years ago
|
||
Comment on attachment 285622 [details] [diff] [review] fix Looking at the code I'm not sure why, but double-click on the icon itself always drags instead of opens (even though you're checking for that first). Also not sure why looking at the code, but these drags seem to always be copies (ie you can't actually move the file this way)
Attachment #285622 -
Flags: review?(froodian) → review-
Assignee | ||
Comment 9•17 years ago
|
||
Fixes the click issue, which unfortunately means implementing all the drag and pasteboard logic. Finder just doesn't seem to believe in moves though, no matter what flag combos I tried, but this will at least allow drag-to-open and the like.
Attachment #285622 -
Attachment is obsolete: true
Attachment #286422 -
Flags: review?(froodian)
Assignee | ||
Comment 10•17 years ago
|
||
Now with correct member variable naming.
Attachment #286422 -
Attachment is obsolete: true
Attachment #286424 -
Flags: review?(froodian)
Attachment #286422 -
Flags: review?(froodian)
Comment 11•17 years ago
|
||
Moves work fine for me if I have |draggingSourceOperationMaskForLocal| return (NSDragOperationMove | NSDragOperationCopy | NSDragOperationGeneric | NSDragOperationLink | NSDragOperationDelete); This opens up a can of worms about what to do with the progress view item though, since we'll have lost track of the actual file after we move it. Perhaps just remove it like you're doing w/ deletes already? Also, drags won't work if the click starts when Camino is in the background. Not sure. Not sure why codewise...
Assignee | ||
Comment 12•17 years ago
|
||
Handles moving. I don't think dragging from the background is something we really care about.
Attachment #286424 -
Attachment is obsolete: true
Attachment #286429 -
Flags: review?(froodian)
Attachment #286424 -
Flags: review?(froodian)
Comment 13•17 years ago
|
||
Comment on attachment 286429 [details] [diff] [review] v4 > ProgressViewController* mProgressController; // WEAK reference >+ NSEvent* mFileIconMouseDownEvent; // strong ref nit: make these two ref-type comments match in style >+- (void)dealloc { nit: method-scope { on new line Since we test the drag against whether a file with that name exists, not whether the manager knows about the file, we can get a weird situation where we'll drag files that have been lost-track-of, but which still exist (or when files of the same name as a deleted file exist). Also, the doesn't-work-from-background thing is kinda a problem, since it holds true even if Camino is frontmost, but the downloads window isn't. Also, behavior OS-wide is for drags to work regardless of whether their window is frontmost. Maybe it just needs a mouseDown call to be passed down from ProgressDlgController under certain situations?
Attachment #286429 -
Flags: review?(froodian) → review-
Assignee | ||
Comment 14•17 years ago
|
||
Trying one more time; comments addressed. This time there's a nib as well, since constantly looking up the icon view by tag seemed silly.
Attachment #286429 -
Attachment is obsolete: true
Attachment #286484 -
Flags: review?(froodian)
Assignee | ||
Comment 15•17 years ago
|
||
Comment 16•17 years ago
|
||
Comment on attachment 286484 [details] [diff] [review] v5 Looks great. r=me
Attachment #286484 -
Flags: superreview?(mikepinkerton)
Attachment #286484 -
Flags: review?(froodian)
Attachment #286484 -
Flags: review+
Comment 17•17 years ago
|
||
Comment on attachment 286484 [details] [diff] [review] v5 sr=pink
Attachment #286484 -
Flags: superreview?(mikepinkerton) → superreview+
Assignee | ||
Comment 18•17 years ago
|
||
Landed on trunk and MOZILLA_1_8_BRANCH.
You need to log in
before you can comment on or make changes to this bug.
Description
•