タブバーの位置を変えるサブメニューをタブのコンテキストメニューから削除

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5007 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-25 16:48:10 +00:00
parent 82989564d9
commit c8271cf59e
12 changed files with 1 additions and 49 deletions

View File

@ -232,9 +232,6 @@
<preference id="extensions.treestyletab.show.context-item-toggleFixed"
name="extensions.treestyletab.show.context-item-toggleFixed"
type="bool"/>
<preference id="extensions.treestyletab.show.context-menu-tabbarPosition"
name="extensions.treestyletab.show.context-menu-tabbarPosition"
type="bool"/>
<preference id="extensions.treestyletab.show.context-item-bookmarkTabSubTree"
name="extensions.treestyletab.show.context-item-bookmarkTabSubTree"
type="bool"/>
@ -275,9 +272,6 @@
<checkbox id="extensions.treestyletab.show.context-item-toggleFixed-check"
preference="extensions.treestyletab.show.context-item-toggleFixed"
label="&context.toggleFixed.label;"/>
<checkbox id="extensions.treestyletab.show.context-menu-tabbarPosition-check"
preference="extensions.treestyletab.show.context-menu-tabbarPosition"
label="&context.tabbarPosition.label;"/>
</hbox>
<hbox align="center">
<checkbox id="extensions.treestyletab.show.context-item-bookmarkTabSubTree-check"

View File

@ -143,21 +143,6 @@
type="checkbox"
autocheck="false"
oncommand="TreeStyleTabService.toggleFixed();"/>
<menu id="context-menu-tabbarPosition"
label="&context.tabbarPosition.label;"
accesskey="&context.tabbarPosition.accesskey;">
<menupopup oncommand="TreeStyleTabService.changeTabbarPosition(event.target.getAttribute('value'));">
<menuitem label="&config.tabbar.position.left;"
type="radio" value="left"/>
<menuitem label="&config.tabbar.position.right;"
type="radio" value="right"/>
<menuseparator/>
<menuitem label="&config.tabbar.position.top;"
type="radio" value="top"/>
<menuitem label="&config.tabbar.position.bottom;"
type="radio" value="bottom"/>
</menupopup>
</menu>
</menupopup>
</popupset>

View File

@ -15,7 +15,6 @@ TreeStyleTabBrowser.prototype = {
kMENUITEM_AUTOHIDE_SEPARATOR : 'context-separator-toggleAutoHide',
kMENUITEM_AUTOHIDE : 'context-item-toggleAutoHide',
kMENUITEM_FIXED : 'context-item-toggleFixed',
kMENUITEM_POSITION : 'context-menu-tabbarPosition',
kMENUITEM_BOOKMARKSUBTREE : 'context-item-bookmarkTabSubTree',
mTabBrowser : null,
@ -498,7 +497,6 @@ TreeStyleTabBrowser.prototype = {
aSelf.kMENUITEM_AUTOHIDE_SEPARATOR,
aSelf.kMENUITEM_AUTOHIDE,
aSelf.kMENUITEM_FIXED,
aSelf.kMENUITEM_POSITION,
aSelf.kMENUITEM_BOOKMARKSUBTREE
].forEach(function(aID) {
let item = document.getElementById(aID).cloneNode(true);
@ -2188,7 +2186,6 @@ TreeStyleTabBrowser.prototype = {
this.kMENUITEM_EXPAND,
this.kMENUITEM_AUTOHIDE,
this.kMENUITEM_FIXED,
this.kMENUITEM_POSITION,
this.kMENUITEM_BOOKMARKSUBTREE
].forEach(function(aID) {
let item = this.evaluateXPath(
@ -2282,19 +2279,13 @@ TreeStyleTabBrowser.prototype = {
else
fixed.removeAttribute('checked');
// position
let position = items[this.kMENUITEM_POSITION];
let pos = b.getAttribute(this.kTABBAR_POSITION);
position.getElementsByAttribute('value', pos)[0].setAttribute('checked', true);
sep = this.evaluateXPath(
'descendant::xul:menuseparator[starts-with(@id, "'+this.kMENUITEM_AUTOHIDE_SEPARATOR+'")]',
aEvent.currentTarget,
XPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue;
if (autohide.getAttribute('hidden') != 'true' ||
fixed.getAttribute('hidden') != 'true' ||
position.getAttribute('hidden') != 'true') {
fixed.getAttribute('hidden') != 'true') {
sep.removeAttribute('hidden');
}
else {

View File

@ -174,8 +174,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Feste Position und Höhe der Tableiste">
<!ENTITY context.toggleFixed.label.vertical "Feste Position und Breite der Tableiste">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "Position">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "Zweig als Lesezeichen speichern">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -173,8 +173,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Fix position and height of tab bar">
<!ENTITY context.toggleFixed.label.vertical "Fix position and width of tab bar">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "Position">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "Bookmark this Tree...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -177,8 +177,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Fix position and height of tab bar">
<!ENTITY context.toggleFixed.label.vertical "Anclar la barra de pestañas">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "Posición">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "Añadir a marcadores este árbol...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -177,8 +177,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Fix position and height of tab bar">
<!ENTITY context.toggleFixed.label.vertical "Blocca larghezza della barra delle schede">
<!ENTITY context.toggleFixed.accesskey "h">
<!ENTITY context.tabbarPosition.label "Posiziona">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "Questo sottoalbero nei segnalibri...">
<!ENTITY context.bookmarkTabSubTree.accesskey "l">

View File

@ -173,8 +173,6 @@
<!ENTITY context.toggleFixed.label.horizontal "タブバーの位置と高さを固定">
<!ENTITY context.toggleFixed.label.vertical "タブバーの位置と幅を固定">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "タブバーの位置">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "このツリーをブックマーク...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -176,8 +176,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Fix position and height of tab bar">
<!ENTITY context.toggleFixed.label.vertical "Stała szerokość paska kart">
<!ENTITY context.toggleFixed.accesskey "S">
<!ENTITY context.tabbarPosition.label "Położenie paska kart">
<!ENTITY context.tabbarPosition.accesskey "E">
<!ENTITY context.bookmarkTabSubTree.label "Dodaj zakładki do tego drzewa…">
<!ENTITY context.bookmarkTabSubTree.accesskey "A">

View File

@ -177,8 +177,6 @@
<!ENTITY context.toggleFixed.label.horizontal "Fix position and height of tab bar">
<!ENTITY context.toggleFixed.label.vertical "Зафиксировать ширину панели вкладок">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "Позиция">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "Добавить это дерево в закладки...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -177,8 +177,6 @@
<!ENTITY context.toggleFixed.label.horizontal "固定标签栏位置/高度">
<!ENTITY context.toggleFixed.label.vertical "固定标签栏位置/宽度">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "标签栏位置">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "将此树加入书签...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">

View File

@ -173,8 +173,6 @@
<!ENTITY context.toggleFixed.label.horizontal "固定分頁工具列的位置/高度">
<!ENTITY context.toggleFixed.label.vertical "固定分頁工具列的位置/寬度">
<!ENTITY context.toggleFixed.accesskey "f">
<!ENTITY context.tabbarPosition.label "分頁工具列的位置">
<!ENTITY context.tabbarPosition.accesskey "p">
<!ENTITY context.bookmarkTabSubTree.label "此樹加入書籤...">
<!ENTITY context.bookmarkTabSubTree.accesskey "t">