Closed Bug 348504 Opened 18 years ago Closed 18 years ago

Extensions Should Be Able to Add and Handle Columns

Categories

(Thunderbird :: Mail Window Front End, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nachmore, Assigned: nachmore)

References

Details

(Keywords: fixed1.8.1)

Attachments

(3 files, 3 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 It is currently extremely difficult (and slow) for extensions to add or control columns in the mail window. Reproducible: Always Expected Results: A native interface should exist allowing extensions to add and modify columns in the mail window.
I am currently working on this - via the SoC program.
Attached patch Adds custom column handler functionality (obsolete) (deleted) — Splinter Review
This basically implements a number of files that can be accessed via javascript allowing an extension to easily add column handlers. See (patched) nsIMsgDBView.idl:338 for more information.
Attached patch more wip (deleted) — Splinter Review
Attachment #233578 - Attachment is obsolete: true
Attached patch Update to Columns (obsolete) (deleted) — Splinter Review
Added support for: 1. isString() 2. colHandler is now passed into GetCollationKey and GetLongField - this stops it being looked up once per email.
Attached patch Added an id to treecols (obsolete) (deleted) — Splinter Review
This small patch adds an id to the treecols tag in mail/base/messenger.xul, allowing easy appending of columns to the previous columns. The previous patches are basically useless without this.
Attachment #235655 - Attachment is obsolete: true
Attachment #236074 - Attachment is obsolete: true
Attached patch All inclusive patch (deleted) — Splinter Review
Previous patch missed the changes to the mail/ directory (commandglue.js), rendering them quite unusable. This patch includes: 1. commandglue properly handles custom columns 2. messenger.xul has the extra id required to allow for easy column appending 3. Fixed crashes (reference counters) and linking errors (dbienvenu)
re-assigning to Oren - I'm going to start landing parts of this, sr=me...
Assignee: mscott → nachmore
Status: UNCONFIRMED → NEW
Ever confirmed: true
Is this feature really TB-specific or should the bug be recategorized as Core?
Attached patch patch checked in (deleted) — Splinter Review
this is the patch as checked in - I made some tweaks to the previous patch: 1. Cleaned up some braces 2. Got rid of one of the overloaded GetLongField/GetCollationKey methods, and used a default nsIMsgCustomColumnHandler = nsnull instead. 3. Added a license header to the new nsIMsgCustomColumnHandler.idl 4. Fixed a windows compile error - windows doesn't like variables defined in the cases of switch statements, w/o surrounding {}
Attachment #236551 - Flags: superreview+
This broke all columns :( Something wrong in check-in?
I just did a clobber build and all the columns work fine for me. What system are you on? And are you running any other type of patch? Small note: the checked in patch misses the small update to messenger.xul which allows easy addition of columns. Not sure if I am missing some way of adding columns or not though...
Status: NEW → ASSIGNED
Sorry, after full rebuild it seems to work.
fix checked into trunk and branch. Thanks, Oren!
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
(In reply to comment #13) > fix checked into trunk and branch. Thanks, Oren! > is it possible to get the change to messenger.xul checked in as well? Without it attaching columns to the existing set is problematic...
Depends on: 351464
Blocks: TB2SM
No longer blocks: TB2SM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: