SeaMonkey:Toolkit Transition:PrefwindowPanes:HowTo: Difference between revisions

Line 17: Line 17:


==== 1. Tree items ====
==== 1. Tree items ====
Edit ''/suite/common/pref/preferences.xul'' (or the respective overlay, if eg. you're migrating a MailNews panel) and set the following attributes on the respective <treeitem>:
Edit [http://mxr.mozilla.org/seamonkey/source/suite/common/pref/preferences.xul /suite/common/pref/preferences.xul] (or the respective overlay, if eg. you're migrating a MailNews panel) and set the following attributes on the respective <treeitem>:


  <treeitem container="true"
  <treeitem container="true"
Line 29: Line 29:
* Keep the ''label'' of the old panel.
* Keep the ''label'' of the old panel.
* The ''prefpane'' attribute should adhere to the "xxx_pane" meme. This will be the ''id'' of the preference panel to be reached by this <treeitem> (see below).
* The ''prefpane'' attribute should adhere to the "xxx_pane" meme. This will be the ''id'' of the preference panel to be reached by this <treeitem> (see below).
* Set the ''helpTopic'' attribute to the respective help identifier (see below).
* Set the ''helpTopic'' attribute to the respective help identifier from [http://mxr.mozilla.org/seamonkey/source/suite/common/pref/pref-help.js /suite/common/pref/pref-help.js] (that file will go, too, once all panels are migrated).
* Set the ''url'' attribute to the chrome URI of the panel to be reached by this <treeitem>.
* Set the ''url'' attribute to the chrome URI of the panel to be reached by this <treeitem>.


235

edits