Closed Bug 295412 Opened 19 years ago Closed 19 years ago

rename internal names for tooltip objects

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: mostafah)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: trunk

The internal names for the tool tip objects defined in calendar.xul are misleading:
  eventTooltip
  taskTooltip
  eventTreeListTooltip

"eventTooltip" sounds as if it should be used for events anywhere (WRONG).
"taskTooltip" sounds as if it should be used for tasks anywhere (WRONG).
These two names sound as if they work in similar/parallel ways (WRONG).

However, in fact the tool tips are specialized for each parent window and the
methods used to fill the data, not for the contents.  

The "eventTooltip" is actually used for all the grid views, and should be used
when mousing over any occurrence box of an event or task in any grid view.
Therefore, rename
  eventTooltip --> gridOccurrenceTooltip

The "taskTooltip" is used only for the task tree, and the "eventTreeListToolTip"
is used only for the event tree.  These two are similar/parallel, so should have
similar names.  So rename

  taskToolTip          --> taskTreeToolTip
  eventTreeListToolTip --> eventTreeToolTip

(May want to change the purpose of the trees in the future.
 For example, there have been requests to be able to view tasks and events
together in a sorted list.   So the two may become the "current" tree and the
"filter" tree.  But that's for the future, this is about naming them for what
they do now.)

Reproducible: Always
Attached patch rename tooltips patch — — Splinter Review
(patch -l -p 2 -i file.patch)

Rename tooltips internally
  eventTooltip --> gridOccurrenceTooltip
  taskTooltip	       --> taskTreeTooltip
  eventTreeListTooltip --> eventTreeTooltip
Blocks: 295418
Comment on attachment 184447 [details] [diff] [review]
rename tooltips patch

(split from bug 295146 as suggested.  thanks for reviews!)
Attachment #184447 - Flags: first-review?(mvl)
Comment on attachment 184447 [details] [diff] [review]
rename tooltips patch

r=mvl
Attachment #184447 - Flags: first-review?(mvl) → first-review+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: