From 7915e1717183abe90344f03037c8cf0fb3299ee3 Mon Sep 17 00:00:00 2001 From: "maolson%earthlink.net" Date: Wed, 18 Apr 2001 06:59:04 +0000 Subject: [PATCH] bug 70810 [XUL Syntax] Change tab syntax - another of the XUL 1.0 changes r=ben, sr=hyatt --- content/shared/public/nsXULAtomList.h | 7 +- editor/ui/composer/content/editor.js | 4 +- editor/ui/composer/content/editor.xul | 6 +- editor/ui/dialogs/content/EdAdvancedEdit.xul | 12 +- editor/ui/dialogs/content/EdTableProps.js | 12 +- editor/ui/dialogs/content/EdTableProps.xul | 12 +- extensions/help/resources/content/help.xul | 12 +- .../resources/content/prefs/prefs.xul | 8 +- .../resources/content/sidebar/sidebar.xul | 12 +- extensions/irc/xul/content/chatzilla.xul | 8 +- extensions/irc/xul/skin/chatzilla.css | 4 +- .../vixen/resources/content/vfdScratch.xul | 13 +- .../wallet/cookieviewer/CookieViewer.js | 2 +- .../wallet/cookieviewer/CookieViewer.xul | 12 +- .../wallet/signonviewer/SignonViewer.xul | 12 +- .../resources/content/abCardOverlay.xul | 12 +- .../base/resources/content/folderProps.js | 6 +- .../resources/content/imapFolderProps.xul | 12 +- themes/blue/global/tabcontrol.css | 0 themes/classic/editor/mac/EditModeTabs.css | 22 +- themes/classic/editor/win/EditModeTabs.css | 22 +- themes/classic/global/mac/classicBindings.xml | 2 +- themes/classic/global/mac/tabcontrol.css | 26 +-- themes/classic/global/win/tabBindings.xml | 8 +- themes/classic/global/win/tabcontrol.css | 90 ++++---- themes/modern/communicator/button.css | 20 +- themes/modern/global/box.css | 2 +- themes/modern/global/globalBindings.xml | 10 +- themes/modern/global/tabcontrol.css | 38 +-- xpfe/browser/resources/content/pageInfo.js | 6 +- xpfe/browser/resources/content/pageInfo.xul | 12 +- xpfe/browser/samples/tab.xul | 12 +- .../bookmarks/resources/bm-props.xul | 12 +- xpfe/components/search/resources/search.xul | 10 +- xpfe/global/resources/content/about.xul | 12 +- xpfe/global/resources/content/tabBindings.xml | 216 ------------------ xpfe/global/resources/content/xul.css | 12 +- 37 files changed, 240 insertions(+), 458 deletions(-) create mode 100644 themes/blue/global/tabcontrol.css diff --git a/content/shared/public/nsXULAtomList.h b/content/shared/public/nsXULAtomList.h index 9c36314bee1..2c44e57c23d 100644 --- a/content/shared/public/nsXULAtomList.h +++ b/content/shared/public/nsXULAtomList.h @@ -151,11 +151,10 @@ XUL_ATOM(titledboxContentPseudo, ":titledbox-content") XUL_ATOM(stack, "stack") XUL_ATOM(deck, "deck") -XUL_ATOM(tabcontrol, "tabcontrol") -XUL_ATOM(tab, "tab") -XUL_ATOM(tabpanel, "tabpanel") -XUL_ATOM(tabpage, "tabpage") XUL_ATOM(tabbox, "tabbox") +XUL_ATOM(tab, "tab") +XUL_ATOM(tabpanels, "tabpanels") +XUL_ATOM(tabpanel, "tabpanel") XUL_ATOM(index, "index") XUL_ATOM(maxpos, "maxpos") XUL_ATOM(curpos, "curpos") diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index cbf60503eb0..a8797d234e5 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -162,7 +162,7 @@ function EditorStartup(editorType, editorElement) gPreviewModeButton = document.getElementById("PreviewModeButton"); // mark first tab as selected - document.getElementById("EditModeTabbox").selectedTab = gNormalModeButton; + document.getElementById("EditModeTabs").selectedTab = gNormalModeButton; // XUL elements we use when switching from normal editor to edit source gContentWindowDeck = document.getElementById("ContentWindowDeck"); @@ -1200,7 +1200,7 @@ function SetDisplayMode(mode) if (mode == DisplayModeAllTags) selectedTab = gTagModeButton; if (mode == DisplayModeSource) selectedTab = gSourceModeButton; if (selectedTab) - document.getElementById("EditModeTabbox").selectedTab = selectedTab; + document.getElementById("EditModeTabs").selectedTab = selectedTab; if (mode == DisplayModeSource) { diff --git a/editor/ui/composer/content/editor.xul b/editor/ui/composer/content/editor.xul index 6867aba67df..37fe1e60045 100644 --- a/editor/ui/composer/content/editor.xul +++ b/editor/ui/composer/content/editor.xul @@ -239,12 +239,12 @@ diff --git a/editor/ui/dialogs/content/EdAdvancedEdit.xul b/editor/ui/dialogs/content/EdAdvancedEdit.xul index 3077fc5b7d9..668bd520eb1 100644 --- a/editor/ui/dialogs/content/EdAdvancedEdit.xul +++ b/editor/ui/dialogs/content/EdAdvancedEdit.xul @@ -64,13 +64,13 @@ - - + + - - + + @@ -191,8 +191,8 @@ - - + + diff --git a/editor/ui/dialogs/content/EdTableProps.js b/editor/ui/dialogs/content/EdTableProps.js index c78be751cac..da074bca8f6 100644 --- a/editor/ui/dialogs/content/EdTableProps.js +++ b/editor/ui/dialogs/content/EdTableProps.js @@ -26,7 +26,7 @@ var tagname = "table" var TableElement; var CellElement; var TableCaptionElement; -var TabPanel; +var TabPanels; var dialog; var globalCellElement; var globalTableElement @@ -142,7 +142,7 @@ function Startup() dialog.TextWrapCheckbox = document.getElementById("TextWrapCheckbox"); dialog.CellColorCheckbox = document.getElementById("CellColorCheckbox"); - TabPanel = document.getElementById("TabPanel"); + TabPanels = document.getElementById("TabPanels"); var TableTab = document.getElementById("TableTab"); var CellTab = document.getElementById("CellTab"); @@ -195,8 +195,8 @@ function Startup() { currentPanel = CellPanel; - //Set index for starting panel on the element - TabPanel.setAttribute("index", CellPanel); + //Set index for starting panel on the element + TabPanels.setAttribute("index", CellPanel); // Trigger setting of style for the tab widgets CellTab.setAttribute("selected", "true"); @@ -771,8 +771,8 @@ function SwitchToValidatePanel() { if (currentPanel != validatePanel) { - //Set index for starting panel on the element - TabPanel.setAttribute("index", validatePanel); + //Set index for starting panel on the element + TabPanels.setAttribute("index", validatePanel); if (validatePanel == CellPanel) { // Trigger setting of style for the tab widgets diff --git a/editor/ui/dialogs/content/EdTableProps.xul b/editor/ui/dialogs/content/EdTableProps.xul index 4a5a29806af..16816e7d21a 100644 --- a/editor/ui/dialogs/content/EdTableProps.xul +++ b/editor/ui/dialogs/content/EdTableProps.xul @@ -46,12 +46,12 @@ - - + + - - + + @@ -271,7 +271,7 @@ - + @@ -279,5 +279,5 @@