reduce tabbox from the configuration dialog

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-10 16:17:59 +09:00
parent 4eee5243f6
commit aeae03c58c
2 changed files with 71 additions and 108 deletions

View File

@ -161,8 +161,6 @@ function initTabPane()
'openGroupBookmark-check', 'openGroupBookmark-check',
'openGroupBookmark-deck' 'openGroupBookmark-deck'
); );
setUpTabbox('newTab-tabbox');
} }
function onSyncGroupBookmarkUIToPref() function onSyncGroupBookmarkUIToPref()
@ -419,18 +417,3 @@ RadioSet.prototype = {
return this.radio.value = aValue; return this.radio.value = aValue;
} }
}; };
function setUpTabbox(aID)
{
var tabbox = document.getElementById(aID);
var pref = document.getElementById('extensions.treestyletab.preferences.'+aID+'.selectedIndex')
if (pref.value !== null) tabbox.selectedIndex = pref.value;
tabbox.setAttribute('onselect', 'onTabboxTabSelected("'+aID+'");');
}
function onTabboxTabSelected(aID)
{
var tabbox = document.getElementById(aID);
var pref = document.getElementById('extensions.treestyletab.preferences.'+aID+'.selectedIndex')
pref.valueFromPreferences = tabbox.selectedIndex;
}

View File

@ -277,9 +277,6 @@
<preference id="extensions.treestyletab.show.context-item-bookmarkTabSubtree" <preference id="extensions.treestyletab.show.context-item-bookmarkTabSubtree"
name="extensions.treestyletab.show.context-item-bookmarkTabSubtree" name="extensions.treestyletab.show.context-item-bookmarkTabSubtree"
type="bool"/> type="bool"/>
<preference id="extensions.treestyletab.preferences.newTab-tabbox.selectedIndex"
name="extensions.treestyletab.preferences.newTab-tabbox.selectedIndex"
type="int"/>
</preferences> </preferences>
<vbox> <vbox>
@ -349,94 +346,77 @@
type="bool"/> type="bool"/>
</preferences> </preferences>
<vbox> <groupbox>
<caption label="&config.openGroupBookmark.caption;"/>
<tabbox id="newTab-tabbox" <hbox>
orient="vertical"> <checkbox id="openGroupBookmark-check"
<tabs> label="&config.openGroupBookmark.ask;"
<tab label="&config.tabs.bookmark.tab;"/> oncommand="
<tab label="&config.tabs.dragdrop.tab;"/> gGroupBookmarkRadioSet.onChange(true);
</tabs> gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref();
<tabpanels> "/>
<tabpanel orient="vertical"> </hbox>
<groupbox> <deck id="openGroupBookmark-deck">
<caption label="&config.openGroupBookmark.caption;"/> <spacer flex="1"/>
<hbox> <vbox>
<checkbox id="openGroupBookmark-check" <separator class="hr"/>
label="&config.openGroupBookmark.ask;" <radiogroup id="openGroupBookmark-radiogroup"
oncommand=" orient="vertical"
gGroupBookmarkRadioSet.onChange(true); onsynctopreference="return onSyncGroupBookmarkUIToPref();"
gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref(); onsyncfrompreference="return onSyncGroupBookmarkPrefToUI();"
"/> preference="extensions.treestyletab.openGroupBookmark.behavior">
</hbox> <radio value="0" collapsed="true"/>
<deck id="openGroupBookmark-deck"> <radio value="1" label="&config.openGroupBookmark.subtree;"/>
<spacer flex="1"/> <hbox>
<vbox> <spacer style="width:1em;"/>
<separator class="hr"/> <vbox>
<radiogroup id="openGroupBookmark-radiogroup" <checkbox id="openGroupBookmark.underParent-check"
orient="vertical" label="&config.openGroupBookmark.underParent;"
onsynctopreference="return onSyncGroupBookmarkUIToPref();" oncommand="gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref();"/>
onsyncfrompreference="return onSyncGroupBookmarkPrefToUI();" <hbox align="center">
preference="extensions.treestyletab.openGroupBookmark.behavior"> <label id="openGroupBookmark.subtreeType-before"
<radio value="0" collapsed="true"/> control="openGroupBookmark.subtreeType-menulist"
<radio value="1" label="&config.openGroupBookmark.subtree;"/> value="&config.openGroupBookmark.subtree.type.before;"/>
<hbox> <menulist id="openGroupBookmark.subtreeType-menulist"
<spacer style="width:1em;"/> oncommand="gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref();">
<vbox> <menupopup>
<checkbox id="openGroupBookmark.underParent-check" <menuitem label="&config.openGroupBookmark.subtree.type.restore;" value="false"/>
label="&config.openGroupBookmark.underParent;" <menuitem label="&config.openGroupBookmark.subtree.type.flat;" value="true"/>
oncommand="gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref();"/> </menupopup>
<hbox align="center"> </menulist>
<label id="openGroupBookmark.subtreeType-before" <label id="openGroupBookmark.subtreeType-after"
control="openGroupBookmark.subtreeType-menulist" control="openGroupBookmark.subtreeType-menulist"
value="&config.openGroupBookmark.subtree.type.before;"/> value="&config.openGroupBookmark.subtree.type.after;"/>
<menulist id="openGroupBookmark.subtreeType-menulist" </hbox>
oncommand="gGroupBookmarkRadioSet.pref.value = onSyncGroupBookmarkUIToPref();"> </vbox>
<menupopup> </hbox>
<menuitem label="&config.openGroupBookmark.subtree.type.restore;" value="false"/> <radio value="2" label="&config.openGroupBookmark.flat;"/>
<menuitem label="&config.openGroupBookmark.subtree.type.flat;" value="true"/> <radio value="4" label="&config.openGroupBookmark.replace;"/>
</menupopup> </radiogroup>
</menulist> </vbox>
<label id="openGroupBookmark.subtreeType-after" </deck>
control="openGroupBookmark.subtreeType-menulist" </groupbox>
value="&config.openGroupBookmark.subtree.type.after;"/> <groupbox>
</hbox> <caption label="&config.dropLinksOnTab.caption;"/>
</vbox> <hbox>
</hbox> <checkbox id="dropLinksOnTab-check"
<radio value="2" label="&config.openGroupBookmark.flat;"/> label="&config.dropLinksOnTab.ask;"
<radio value="4" label="&config.openGroupBookmark.replace;"/> oncommand="gDropLinksOnTabRadioSet.onChange();"/>
</radiogroup> </hbox>
</vbox> <deck id="dropLinksOnTab-deck">
</deck> <spacer flex="1"/>
</groupbox> <vbox>
</tabpanel> <separator class="hr"/>
<tabpanel orient="vertical"> <radiogroup id="dropLinksOnTab-radiogroup"
<groupbox> preference="extensions.treestyletab.dropLinksOnTab.behavior"
<caption label="&config.dropLinksOnTab.caption;"/> orient="vertical">
<hbox> <radio value="0" collapsed="true"/>
<checkbox id="dropLinksOnTab-check" <radio value="1" label="&config.dropLinksOnTab.load;"/>
label="&config.dropLinksOnTab.ask;" <radio value="2" label="&config.dropLinksOnTab.newTab;"/>
oncommand="gDropLinksOnTabRadioSet.onChange();"/> </radiogroup>
</hbox> </vbox>
<deck id="dropLinksOnTab-deck"> </deck>
<spacer flex="1"/> </groupbox>
<vbox>
<separator class="hr"/>
<radiogroup id="dropLinksOnTab-radiogroup"
preference="extensions.treestyletab.dropLinksOnTab.behavior"
orient="vertical">
<radio value="0" collapsed="true"/>
<radio value="1" label="&config.dropLinksOnTab.load;"/>
<radio value="2" label="&config.dropLinksOnTab.newTab;"/>
</radiogroup>
</vbox>
</deck>
</groupbox>
</tabpanel>
</tabpanels>
</tabbox>
</vbox>
</prefpane> </prefpane>