Closed Bug 135607 Opened 23 years ago Closed 21 years ago

Help toolbar needs work

Categories

(SeaMonkey :: Help Documentation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.6alpha

People

(Reporter: kinger, Assigned: rjkeller)

References

Details

Attachments

(3 files, 9 obsolete files)

Build ID: 2002040314 At the very least, I think the following needs to be done: - New icon for Home. That was designed for the personal toolbar in the browser and is smaller that the others, making the toolbar look out of proportion. - Print button moved away from right to beside the Home button - Mozilla logo button (throbber) should go on the right side to make it consistent with other apps in the suite.
Blocks: 67376
Yes, kinger. It does need work. The CSS has lagged behind from inattention, and now that masthead no longer shows up, and the navigation button in the classic skin are having problems, I think because of the image sheet slicing that should not be used.
Status: NEW → ASSIGNED
any thoughts appreciated on this Matthew
[<][>][A] [ ] (( Search )) Where < is Back, > is Forward, and A is Home. Print isn't nearly common enough to deserve its own toolbar button; `File' > `Print...' is quite sufficient for that.
In addition to the lack of color differentiation between the selected tab and the other tabs, this screenshot shows some weird blocking above and below the sloped right side of the tab itself. Above the tab, the background color is too dark to blend with the shadow of the tab, and in the panel, there is some object that is picking up this same light color. Need to import the sidebar.css styles in some better way.
cc'ing hewitt, father of sidebar.css
> ... Print isn't nearly common enough to deserve its own toolbar button; `File' > `Print...' is quite sufficient for that. Are you saying a menubar should be added to the Help window. I don't think there is enough functionality to warrant that.
This makes the Home button look right in the classic theme. I think we need to get something going on this bug.
Attached file Images added (obsolete) —
The home images added.
moving stuff over to an outside-the-firewall email for the time being, looking for people to pick these Help and doc bugs up for me.
Assignee: oeschger → oeschger
Status: ASSIGNED → NEW
--> me
Assignee: oeschger → webmaster
Attachment #129620 - Flags: review?(oeschger)
I'm incorporating these ideas into the new help menu for 1.6a/Firebird/Thunderbird. I currently have the following: [b][f][n][i][d] <-- space --> [p][t] b = Back Button f = Forward Button n = Find Button i = Increase Text Size Button d = Decrease Text Size Button p = Print t = Throbber What do you all think of this layout?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.6alpha
Comment on attachment 129620 [details] [diff] [review] Fixes problem with Home button in classic theme. jag, can you r/sr this? This patch also includes the attached image files zipped up.
Attachment #129620 - Flags: review?(oeschger) → review?(jag)
Attachment #129620 - Flags: superreview?(jag)
Attachment #129620 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #129620 - Flags: review?(jag)
QA Contact: tpreston → stolenclover
Attachment #129620 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 129621 [details] Images added home-act.gif is the wrong size, also the hover effect isn't quite right.
Attachment #129621 - Flags: review-
LET ME DO THE HOME ICON!!! will attach one shortly, depends on how fast I work :-)
Attached image home image
heh, I thought home icons need a lot of work, didn't know it only needs some mnor tweaking...
Comment on attachment 129620 [details] [diff] [review] Fixes problem with Home button in classic theme. Looks good to me. What are the dimensions of each image?
Attachment #129620 - Flags: superreview?(jag)
Attached patch PatchSplinter Review
Patch makes Daniel's images work. Thanks daniel!
Attachment #129620 - Attachment is obsolete: true
Attachment #129621 - Attachment is obsolete: true
Attachment #132611 - Attachment is obsolete: true
Comment on attachment 133043 [details] [diff] [review] Patch Neil, this review should include Daniel's images.
Attachment #133043 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 132611 [details] home image This is the correct image, right? So why was it marked obsolete?
Attachment #132611 - Attachment filename: home2.gif → home.gif
Attachment #132611 - Attachment is obsolete: false
Attachment #132611 - Flags: review+
Attachment #133043 - Flags: review?(neil.parkwaycc.co.uk) → review+
OK, next up is the throbber add-on and maybe a show/hide sidebar button. I'd like it to look somewhat like Firebird Help (http://firebirdhelp.mozdev.org/screenshots.html), but not exactly. Why have a throbber, you say? Because someone could use the Help Viewer to get Help documents online. With the throbber, you could see the status.
the last check-in isn't working. The Home button now has no picture
Daniel: I made a checkin yesterday that fixed the home button. It should be in today's nightlies.
Actually you still got it wrong and I had to fix it. FYI, you need to use cvs add -kb when adding images.
Attached patch Adds a throbber (obsolete) — Splinter Review
Adds the throbber so that Help can be used to access documents on a website. This will be more useful once content packs is in (bug 220561).
question: what happens when the user click the trobber?
Goes to the help home page. Brant told me he thought it'd be better than loading the Navigator home page in Navigator.
Attachment #133534 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 133534 [details] [diff] [review] Adds a throbber >+ if (aStateFlags & >+ aWebProgress.STATE_START && Won't work, STATE_START is defined on nsIWebProgressListener, not nsIWebProgress > onProgressChange : function(aWebProgress, aRequest, aCurSelfProgress, > aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) {}, > onSecurityChange : function(aWebProgress, aRequest, state) {}, onStateChange appears to be missing, could you add it please? >+ init : function() >+ { >+ this.throbberElement = document.getElementById("navigator-throbber"); >+ }, >+ >+ destroy : function() >+ { >+ //this is needed to avoid memory leaks. >+ this.throbberElement = null; >+ }, I don't see where you call these. >+ <button id="navigator-throbber" oncommand="goHome();" tooltiptext="&throbber.tooltip;"/> This tooltip is wrong.
Attachment #133534 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch Adds Throbber v2 (obsolete) — Splinter Review
> onStateChange appears to be missing, could you add it please? Missing? It's the function the throbber code is in! > I don't see where you call these. this.throbberElement is called a lot in the functions. All other comments are in this patch.
Attachment #83737 - Attachment is obsolete: true
Attachment #133534 - Attachment is obsolete: true
Attachment #134086 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 134086 [details] [diff] [review] Adds Throbber v2 >+ const nsIWebProgressHandler = Components.interfaces.nsIWebProgressListener; Use nsIWebProgressListener for consistency (it's confusing to have a const with a different name). >+ >+ init : function() >+ { >+ this.throbberElement = document.getElementById("navigator-throbber"); >+ }, >+ >+ destroy : function() >+ { >+ //this is needed to avoid memory leaks. >+ this.throbberElement = null; >+ }, >+ This won't work as you don't actually call these functions anywhere.
Attachment #134086 - Flags: review?(neil.parkwaycc.co.uk) → review-
> This won't work as you don't actually call these functions anywhere. How does the navigator throbber do this? This is a tough patch for me because I can't debug it (Help is to fast to see if the throbber moves!) I've been trying to copy the navigator throbber as much as possible.
I use those easily identified external links :-) OTOH I think that init() is called before addProgressListener() and destroy() is called after removeProgressListener().
Attached patch Adds throbber v2.1 (obsolete) — Splinter Review
Patch with Neil's comments. The help.dtd file looks a little messed up because it's in the wrong encoding. I think that Neil ran into this problem.
Attachment #134086 - Attachment is obsolete: true
Attachment #134115 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 134115 [details] [diff] [review] Adds throbber v2.1 I thought I had made it clear, but you need to call window.XULBrowserWindow.init(); too. Also can you please reference the memory leak bug number in the comment, thanks.
Attachment #134115 - Flags: review?(neil.parkwaycc.co.uk) → review-
Comment on attachment 134115 [details] [diff] [review] Adds throbber v2.1 >--- resources/content/help.js 16 Oct 2003 08:17:06 -0000 1.48 >+++ resources/content/help.js 25 Oct 2003 16:09:29 -0000 >@@ -321,7 +321,22 @@ > > nsHelpStatusHandler.prototype = > { >- onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) {}, >+ onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) >+ { >+ const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; >+ >+ // Turn on the throbber. >+ if (aStateFlags & >+ nsIWebProgressListener.STATE_START) >+ { >+ this.throbberElement.setAttribute("busy", "true"); >+ } >+ else if (aStateFlags & >+ nsIWebProgressListener.STATE_STOP) >+ { >+ this.throbberElement.renoveAttribute("busy"); >+ } Style nits: please follow the file's bracing style, which happens to be: function foo() { // brace on own line at start of function if (cond) // try and fit cond on a single line bar; // subsequently, no braces here. else if (cond2) baz; // and still no braces } You have plenty of space to put the contents of the if and else if conditions all on one line following even the most stringent column requirements. Fortunately, our requirements are not that stringent (<80 columns) and the 58 and 61 columns required here respectively for the conditions to fit on a single line dictate that they should be.
Attached patch Adds throbber v2.2 (obsolete) — Splinter Review
Attachment #134115 - Attachment is obsolete: true
Attachment #134129 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 134129 [details] [diff] [review] Adds throbber v2.2 >+ //Start the status handler. >+ window.XULBrowserWindow.init(); Although it seems to work I would prefer to see this just after it's created. Actually I think that displayTopic(); should be last, but I'm not too worried about that. >+ this.throbberElement.renoveAttribute("busy"); And fix this typo too.
Attachment #134129 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attached patch Adds throbber v2.2.1 (obsolete) — Splinter Review
Attachment #134129 - Attachment is obsolete: true
Attached patch Adds throbber v2.3 (obsolete) — Splinter Review
phew! If this isn't the final patch, then I don't think one will ever come ;)
Attachment #134131 - Attachment is obsolete: true
BTW, you don't appear to need destroy(), it doesn't actually leak.
Although who's to say that it won't start leaking again in the future ;-)
Attachment #134132 - Attachment is obsolete: true
Attachment #134351 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #134351 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #134351 - Flags: approval1.6a?
Comment on attachment 134351 [details] [diff] [review] Adds throbber - moves init() before adding progress listener We've wrapped up 1.6a. This will have to land when the tree opens for 1.6b.
Attachment #134351 - Flags: approval1.6a? → approval1.6a-
Attachment #134351 - Flags: superreview?(alecf)
Comment on attachment 134351 [details] [diff] [review] Adds throbber - moves init() before adding progress listener sr=alecf
Attachment #134351 - Flags: superreview?(alecf) → superreview+
I hope you don't mind, but I checked in attachment 134351 [details] [diff] [review].
fine with me. Thanks Neil!
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
v
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: