Closed Bug 175863 Opened 23 years ago Closed 20 years ago

add Reload All Tabs to tab context menu

Categories

(Camino Graveyard :: Tabbed Browsing, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Camino1.0

People

(Reporter: bugzilla, Assigned: bugzilla-graveyard)

Details

(Keywords: fixed1.8)

Attachments

(2 files, 4 obsolete files)

rfe: add Reload All Tabs to tab context menu. mozilla also has this in its tab context menu.
this sounds like a good idea. it should also be put in the view menu with a shortcut of command-shift-r.
I guess the shortcut part of this bug would be bug 216083
This is a great idea and as previously stated, it's in the Mozilla browser. While I was using Mozilla, I found the "reload all tabs" feature very useful.
Command-shift-R is going to be taken by a reload from server (not from cache), so it won't be used for reload all tabs. I disagree that it should be added to the view menu. Then we have to deal with the issue of whether we should rename the other option "Reload Tab" or have it's name change when more than one tab is open and have the other option disabled by default. Lots of issues there. But, reload all tabs is a good idea. Seems fairly easy, but targeting for 1.2.
Target Milestone: --- → Camino1.2
Oh, please make this more urgent! Throughout the day I'll have somewhere between 3 and 5 discussion groups open in one tabbed window. Reload all tabs would make that so much more convenient! M@
(In reply to comment #4) > Command-shift-R is going to be taken by a reload from server (not from cache), > so it won't be used for reload all tabs. Opt is the standard additional modifier for "all", so Cmd-Opt-R should be good--assuming it's not used elsewhere or stolen globally by the OS.
A contextual menu when clicked in the empty space of the tab bar would be nice too.
(In reply to comment #7) > A contextual menu when clicked in the empty space of the tab bar would be nice too. That's bug 291901 comment 6; this bug is about adding an option to the exiting tab context menu.
Here's the code. Need an opinion on the NIB files -- do we want to put a Reload All Tabs option in the View menu, or just in the tab context menu? cl
Comment on attachment 195836 [details] [diff] [review] Patch for implementation of reloadAllTabs method >Index: src/browser/BrowserWindowController.mm >=================================================================== >RCS file: /cvsroot/mozilla/camino/src/browser/BrowserWindowController.mm,v >retrieving revision 1.208 >diff -u -r1.208 BrowserWindowController.mm >--- src/browser/BrowserWindowController.mm 12 Sep 2005 20:09:00 -0000 1.208 >+++ src/browser/BrowserWindowController.mm 13 Sep 2005 04:20:57 -0000 >@@ -2591,6 +2591,22 @@ > } > } > >+- (IBAction)reloadAllTabs:(id)aSender >+{ >+ unsigned int reloadFlags = NSLoadFlagsNone; >+ NSEnumerator* tabsEnum = [[mTabBrowser tabViewItems] objectEnumerator]; >+ id curTabItem; C++ style declare on usage, please. >+ >+ if (([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask) != 0) >+ reloadFlags = NSLoadFlagsBypassCacheAndProxy; >+ >+ while ((curTabItem = [tabsEnum nextObject])) >+ { >+ if ([curTabItem isKindOfClass:[BrowserTabViewItem class]]) >+ [[[curTabItem view] getBrowserView] reload: reloadFlags]; >+ } >+} Otherwise looks good. And I don't think we want this on the main menus, just the context menu.
(In reply to comment #10) > >+ [[[curTabItem view] getBrowserView] reload: reloadFlags]; No spaces between argument names and arguments, too, IIRC (e.g., this should be [[[curTabItem view] getBrowserView] reload:reloadFlags];).
> >+- (IBAction)reloadAllTabs:(id)aSender > >+{ > >+ unsigned int reloadFlags = NSLoadFlagsNone; > >+ NSEnumerator* tabsEnum = [[mTabBrowser tabViewItems] objectEnumerator]; > >+ id curTabItem; > > C++ style declare on usage, please. By this I mean do this: unsigned int reloadFlags = NSLoadFlagsNone; if (([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask) != 0) reloadFlags = NSLoadFlagsBypassCacheAndProxy; NSEnumerator* tabsEnum = [[mTabBrowser tabViewItems] objectEnumerator]; id curTabItem; while ((curTabItem = [tabsEnum nextObject])) { ...
Fixed. Will upload the patched NIB file in a minute. Nate, the space-before-argument problem is widespread in the file. I've fixed it here, but there are several (like 20 or 30) instances of it elsewhere in BrowserWindowController.mm. Someone should double-check that when this gets checked in. cl
Attachment #195836 - Attachment is obsolete: true
(In reply to comment #14) > Created an attachment (id=195922) [edit] > Zipped-up BrowserWindow.nib file with Reload All Tabs item in it > > Here's the NIB file. > > cl Yeah, I know. Too many cooks, and all that. ;) I think it was talked about a bit in IRC ages ago, though.
OK, for the record, I've been using this patch for about a week or so now, and I *really* want a keyboard shortcut for it. Having to resort to the mouse to reload all tabs in the current window is driving me nucking futs. Are there any particular objections to adding a menu item in the View menu, immediately under "Reload Page"? I'm just not sure what to call it. I can see arguments both for and against "Reload All Tabs," but that's probably my current favourite. cl
Attachment #195921 - Attachment is obsolete: true
Attachment #196743 - Flags: review?
(In reply to comment #16) > Are there any particular objections to adding a menu item in the View menu, > immediately under "Reload Page"? Ideally we'd do this with Cmd-Opt-R and have the "Reload Page" menu item change name and shortcut when Opt is held down, but I think we have to drop 10.2 support first (Wevah has a bug about this somewhere). > I'm just not sure what to call it. I can see arguments both for and against > "Reload All Tabs," but that's probably my current favourite. "Reload Current Tabs" has similar issues, I think. Needless to say, I do think it is useful enough to warrant a keystroke.... (If that gets approved and bug 290520 hasn't been checked in yet, can you put those changes in your nib, too, so there's one less checkin and a better chance of getting it all correct?)
"Reload All Tabs in Window" says what it does perfectly, though it might be a bit too wordy.
-> cl
Assignee: sfraser_bugs → bugzilla
Pong, could we get this before christmas :D I'd really like to have this soon.
Updated to fix CVS merge breakage, asking for r from pink. cl
Attachment #196743 - Attachment is obsolete: true
Attachment #198845 - Flags: review?(mikepinkerton)
Status: NEW → ASSIGNED
Comment on attachment 196743 [details] [diff] [review] New version, fixing a bunch of style errors in the file clearing review flag on obsolete attachment
Attachment #196743 - Flags: review?
please give me a diff -w to ignore all the whitespace changes. too much noise here to review.
Woops. Meant to do this a couple days ago per Simon's note, but forgot. Sorry 'bout that. Here's the new one. cl
Attachment #198845 - Attachment is obsolete: true
Attachment #199037 - Flags: review?(mikepinkerton)
Attachment #198845 - Flags: review?(mikepinkerton)
Also, per comment 18, I agree we should wait on adding a menu item/shortcut in the View menu until we drop 10.2 support and can do it properly. Should I open up a new bug for that once this gets checked in? cl
Comment on attachment 199037 [details] [diff] [review] Whitespace changes ignored looks good to me r=pink
Attachment #199037 - Flags: review?(mikepinkerton) → review+
Bump
Checked into trunk and branch.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Target Milestone: Camino1.2 → Camino1.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: