Closed
Bug 116855
Opened 24 years ago
Closed 23 years ago
Modify outliner builder syntax to match outliner content model.
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(3 files, 1 obsolete file)
|
55.18 KB,
patch
|
bugzilla
:
review+
bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
|
1.07 KB,
text/plain
|
Details | |
|
285.32 KB,
patch
|
bugzilla
:
review+
hewitt
:
superreview+
|
Details | Diff | Splinter Review |
Plus add the flag "dont-build-content" to the templates "flags" attribute that
says whether or not to build a content model for tree.
There is a better explanation in the bug 113477.
I propose something like this:
<outliner flex="1">
<outlinercols>
<outlinercol id="nameCol" label="Name" flex="1" primary="true"/>
<outlinercol id="urlCol" label="URL" flex="1"/>
</outlinercols>
<outlinerbody flex="1"
datasources="rdf:bookmarks" ref="NC:BookmarksRoot" flags="dont-build-content">
<template>
<rule>
<outlinerchildren>
<outlineritem uri="rdf:*">
<outlinerrow>
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#URL"/>
</outlinerrow>
</outlineritem>
</outlinerchildren>
</rule>
</template>
</outlinerbody>
</outliner>
The "ref" attribute on an <outlinercell> will be optional.
I'm not sure if we should also patch content builder to build content only for
open items.
| Assignee | ||
Comment 1•24 years ago
|
||
I've got a fix for this in my tree. Now testing.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•24 years ago
|
||
This patch includes fix for this bug along with bunch of other fixes for
outliner.
Comment 3•24 years ago
|
||
The changes to nsXULOutlinerBuilder look fine, r=waterson on those. I'll defer
to hyatt on the syntax changes and the changes to the outliner builder: you'll
need to get a separate r= and his sr= for that. Also, you'll want to make sure
you get approval for the mailnews changes, cc'ing sspitzer for that. Finally,
I'm not sure I understand the `dont-build-content' flag: how ought I update my
documentation at
<http://www.mozilla.org/docs/xul/xulnotes/template-outliner.html>.
| Assignee | ||
Comment 4•24 years ago
|
||
mailnews changes:
Seth, I converted folder pane and stuff to new template syntax.
I also removed "ref" attribute which is now optional.
I noticed that we waste some time by parsing a lot of white spaces. These white
spaces are visible in "properties" definition. So I decided to pack the
properties into one line. It's a bit uglier now, but should be faster.
"dont-build-content" flag:
this flag was suggested by hyatt in bug 113447. It says that we don't want to
build outliner content model (children, item, row, ...), instead we want to use
outliner builder view.
So, when this land, we'll have 3 ways of doing things
1. build content model and use builtin content view
2. use builder view (rdfliner)
3. use own view
| Assignee | ||
Comment 5•24 years ago
|
||
and finally, there will be no difference between template syntaxes
| Assignee | ||
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
sr=hyatt
Comment 8•24 years ago
|
||
r=sspitzer on the mailnews parts.
Comment 9•24 years ago
|
||
Comment on attachment 62737 [details] [diff] [review]
patch for review
r=blake
Too bad we have to mirror the old, overly complex tree... (<outlineritem>,
<outlinerchildren>)
Attachment #62737 -
Flags: superreview+
Attachment #62737 -
Flags: review+
| Assignee | ||
Comment 10•24 years ago
|
||
fixed, thanks for reviews!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 11•24 years ago
|
||
I just talked to hyatt about this, I don't think we want to require an
<outlinerchildren> inside of <outlinerbody>. The way that would most mirror the
tree syntax would be to rename everything to <outlinerchildren> and special-case
the outermost <outlinerchildren> to construct a body frame.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 12•24 years ago
|
||
I did it this way because of nested template content.
I'd have to patch content builder or something, but don't know how at the moment.
| Assignee | ||
Comment 13•24 years ago
|
||
ah, ok, now I understand
I'll try to do it this way.
| Assignee | ||
Comment 14•24 years ago
|
||
Duh, this is more involved.
I have some code in my tree, but it'll take more time to get things working.
| Assignee | ||
Comment 15•23 years ago
|
||
I've got it working, but I had to do many critical changes in the code.
Hope it gets a good shape.
New syntax:
<outliner flex="1"
datasources="rdf:bookmarks" ref="NC:BookmarksRoot flags="dont-build-content"
onselect="onSelect()">
<outlinercols>
<outlinercol id="nameCol" label="Name" flex="1" primary="true"/>
<outlinercol id="urlCol" label="URL" flex="1"/>
</outlinercols>
<template>
<rule>
<outlinerchildren>
<outlineritem uri="rdf:*">
<outlinerrow>
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#Name"/>
<outlinercell label="rdf:http://home.netscape.com/NC-rdf#URL"/>
</outlinerrow>
</outlineritem>
</outlinerchildren>
</rule>
</template>
</outliner>
- outermost <outlinerchildren> has "-moz-box-flex: 1" by default
and it actaully replaced <outlinerbody>
- all event handlers moved on <outliner>
- content builder, outliner builder and content view use <outliner> as root
element
- nsIBoxObject has a new attribute "element"
- all pseude CSS rules outlinerbody:foo replaced with outlinerchildren:foo
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 16•23 years ago
|
||
this patch also contains fixes for bugs:
94653, 95730, 112238, 118093, 118113, 118154, 118647, 118660, 119751
Hardware: PC → All
Comment 17•23 years ago
|
||
Comment on attachment 64742 [details] [diff] [review]
big fat patch
sr=hyatt
Attachment #64742 -
Flags: superreview+
Comment 18•23 years ago
|
||
r=waterson for the changes in mozilla/content. I didn't look over the XUL/JS or
outliner frame changes, though.
Comment 19•23 years ago
|
||
r=sspitzer on the mailnews parts.
thanks for taking care of (and testing) the mailnews changes.
| Assignee | ||
Comment 20•23 years ago
|
||
#if defined(XP_MAC)
has to be also changed to
#if defined(XP_MAC) || defined(XP_MACOSX)
nice catch bryner!
| Assignee | ||
Comment 21•23 years ago
|
||
| Assignee | ||
Updated•23 years ago
|
Attachment #64742 -
Attachment is obsolete: true
Comment 22•23 years ago
|
||
Comment on attachment 65033 [details] [diff] [review]
updated patch to the tip, mac defines and fixed DOM inspector
r=blake
make sure refreshSort is no longer needed. It was needed when I added it.
Attachment #65033 -
Flags: review+
Comment 23•23 years ago
|
||
r=bryner on the OutlinerBodyFrame and OutlinerContentView changes, although XBL
select widgets will be horked until bug 120189 is fixed.
Comment 24•23 years ago
|
||
Comment on attachment 65033 [details] [diff] [review]
updated patch to the tip, mac defines and fixed DOM inspector
sr=hewitt
Attachment #65033 -
Flags: superreview+
| Assignee | ||
Comment 25•23 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•