ツリー全体を復元するかどうかの設定UI
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5679 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
21480636b5
commit
ee71505b0f
@ -238,10 +238,20 @@ function onTabbarTransparencyScaleChange()
|
||||
}
|
||||
|
||||
|
||||
var gUndoCloseTabSetRadioSet;
|
||||
|
||||
function initTreePane()
|
||||
{
|
||||
updateCloseRootBehaviorCheck();
|
||||
|
||||
gUndoCloseTabSetRadioSet = new RadioSet(
|
||||
'extensions.treestyletab.undoCloseTabSet.behavior',
|
||||
'undoCloseTabSet-radiogroup',
|
||||
'undoCloseTabSet-check',
|
||||
'undoCloseTabSet-deck',
|
||||
1
|
||||
);
|
||||
|
||||
var focusMode = document.getElementById('extensions.treestyletab.focusMode-check');
|
||||
var focusModePref = document.getElementById('extensions.treestyletab.focusMode');
|
||||
if (focusModePref.value != focusModePref.defaultValue)
|
||||
@ -331,15 +341,16 @@ ScaleSet.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
function RadioSet(aPref, aRadio, aCheck, aDeck)
|
||||
function RadioSet(aPref, aRadio, aCheck, aDeck, aAskFlag)
|
||||
{
|
||||
this.pref = document.getElementById(aPref);
|
||||
this.radio = document.getElementById(aRadio);
|
||||
this.check = document.getElementById(aCheck);
|
||||
this.deck = document.getElementById(aDeck);
|
||||
this.backup = this.value || 1;
|
||||
this.askValue = aAskFlag;
|
||||
|
||||
if (this.value == 0) {
|
||||
if (this.askValue ? this.value & this.askValue : this.value == 0 ) {
|
||||
this.check.checked = true;
|
||||
this.deck.selectedIndex = 0;
|
||||
}
|
||||
@ -354,11 +365,19 @@ RadioSet.prototype = {
|
||||
if (this.checked) {
|
||||
this.backup = this.value;
|
||||
this.deck.selectedIndex = 0;
|
||||
this.value = 0;
|
||||
if (this.askValue) {
|
||||
this.value |= this.askValue;
|
||||
}
|
||||
else {
|
||||
this.value = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.deck.selectedIndex = 1;
|
||||
this.value = this.backup;
|
||||
if (this.askValue && this.value & this.askValue) {
|
||||
this.value ^= this.askValue;
|
||||
}
|
||||
}
|
||||
if (!aDontUpdatePref)
|
||||
this.pref.value = this.value;
|
||||
|
@ -656,6 +656,9 @@
|
||||
<preference id="extensions.treestyletab.insertNewChildAt"
|
||||
name="extensions.treestyletab.insertNewChildAt"
|
||||
type="int"/>
|
||||
<preference id="extensions.treestyletab.undoCloseTabSet.behavior"
|
||||
name="extensions.treestyletab.undoCloseTabSet.behavior"
|
||||
type="int"/>
|
||||
</preferences>
|
||||
|
||||
<checkbox id="extensions.treestyletab.autoCollapseExpandSubtreeOnSelect-check"
|
||||
@ -702,11 +705,31 @@
|
||||
<caption label="&config.insertNewChildAt.caption;"/>
|
||||
<radiogroup id="extensions.treestyletab.insertNewChildAt-radiogroup"
|
||||
preference="extensions.treestyletab.insertNewChildAt"
|
||||
orient="vertical">
|
||||
orient="horizontal">
|
||||
<radio value="0" label="&config.insertNewChildAt.first;"/>
|
||||
<radio value="1" label="&config.insertNewChildAt.last;"/>
|
||||
</radiogroup>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&config.undoCloseTabSet.caption;"/>
|
||||
<hbox>
|
||||
<checkbox id="undoCloseTabSet-check"
|
||||
label="&config.undoCloseTabSet.ask;"
|
||||
oncommand="gUndoCloseTabSetRadioSet.onChange();"/>
|
||||
</hbox>
|
||||
<deck id="undoCloseTabSet-deck">
|
||||
<spacer flex="1"/>
|
||||
<vbox>
|
||||
<separator class="hr"/>
|
||||
<radiogroup id="undoCloseTabSet-radiogroup"
|
||||
preference="extensions.treestyletab.undoCloseTabSet.behavior"
|
||||
orient="horizontal">
|
||||
<radio value="2" label="&config.undoCloseTabSet.set;"/>
|
||||
<radio value="0" label="&config.undoCloseTabSet.separate;"/>
|
||||
</radiogroup>
|
||||
</vbox>
|
||||
</deck>
|
||||
</groupbox>
|
||||
|
||||
</prefpane>
|
||||
|
||||
|
@ -115,7 +115,7 @@ pref("extensions.treestyletab.createSubtree.underParent", true);
|
||||
2 = reopen all tabs of the tree if a member of tree is reopened.
|
||||
256 = don't reopen tree if some tabs are overflowed and lost from the history.
|
||||
*/
|
||||
pref("extensions.treestyletab.undoCloseTabSet.behavior", 1);
|
||||
pref("extensions.treestyletab.undoCloseTabSet.behavior", 3);
|
||||
|
||||
|
||||
pref("browser.link.open_newwindow.restriction.override", 0);
|
||||
|
@ -137,6 +137,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "Oben im Zweig einfügen">
|
||||
<!ENTITY config.insertNewChildAt.last "Unten im Zweig einfügen">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "Erweitert">
|
||||
|
||||
|
@ -136,6 +136,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "Insert to the top of the tree, as the first child">
|
||||
<!ENTITY config.insertNewChildAt.last "Append to the last of the tree">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "Advanced">
|
||||
|
||||
|
@ -140,6 +140,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "Insertar arriba del todo en el árbol">
|
||||
<!ENTITY config.insertNewChildAt.last "Insertar abajo del todo en el árbol">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "Avanzado">
|
||||
|
||||
|
@ -140,6 +140,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "Inserisci all'inizio del sottoalbero, come prima sottoscheda">
|
||||
<!ENTITY config.insertNewChildAt.last "Accoda all'ultimo sottoalbero">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "Avanzate">
|
||||
|
||||
|
@ -137,6 +137,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "ツリーの最初の位置に挿入する">
|
||||
<!ENTITY config.insertNewChildAt.last "ツリーの末尾に追加する">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "「閉じたタブを元に戻す」でツリーを構成していたタブが開き直された時">
|
||||
<!ENTITY config.undoCloseTabSet.ask "どうするか毎回尋ねる">
|
||||
<!ENTITY config.undoCloseTabSet.set "ツリー全体を開き直す">
|
||||
<!ENTITY config.undoCloseTabSet.separate "そのタブだけを開き直す(Firefox初期状態)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "詳細">
|
||||
|
||||
|
@ -138,6 +138,11 @@ When a tab gets focus, expand his tree and collapse others automatically
|
||||
<!ENTITY config.insertNewChildAt.first "Wstaw jako pierwszą na górze drzewa">
|
||||
<!ENTITY config.insertNewChildAt.last "Wstaw na końcu drzewa">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "Zaawansowane">
|
||||
|
||||
|
@ -140,6 +140,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "Вставлять первой в начало поддерева">
|
||||
<!ENTITY config.insertNewChildAt.last "Добавлять в конце поддерева">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
<!ENTITY config.tabs.advanced "Дополнительно">
|
||||
|
||||
<!ENTITY config.animation.enabled "Использование эффектов анимации">
|
||||
|
@ -136,6 +136,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "插入到子树顶部,成为首个子标签">
|
||||
<!ENTITY config.insertNewChildAt.last "添加到子树的最后">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "高级">
|
||||
|
||||
|
@ -139,6 +139,11 @@
|
||||
<!ENTITY config.insertNewChildAt.first "插入到子樹的開端">
|
||||
<!ENTITY config.insertNewChildAt.last "新增到子樹的末端">
|
||||
|
||||
<!ENTITY config.undoCloseTabSet.caption "When a member of a tree is restored by "Undo Close Tab"">
|
||||
<!ENTITY config.undoCloseTabSet.ask "Ask me always">
|
||||
<!ENTITY config.undoCloseTabSet.set "Restore whole of the tree">
|
||||
<!ENTITY config.undoCloseTabSet.separate "Restore only one tab (Firefox default)">
|
||||
|
||||
|
||||
<!ENTITY config.tabs.advanced "進階">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user