home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 July & August
/
PCWorld_2005-07-08_cd.bin
/
komunikace
/
netscape
/
nsb-install-8-0.exe
/
chrome
/
toolkit.jar
/
content
/
global
/
customizeToolbar.xul
< prev
next >
Wrap
Extensible Markup Language
|
2005-05-01
|
9KB
|
204 lines
<?xml version="1.0"?>
<!--
-->
<!DOCTYPE dialog [
<!ENTITY % customizeToolbarDTD SYSTEM "chrome://global/locale/customizeToolbar.dtd">
%customizeToolbarDTD;
]>
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/spui.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/webmail.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/content/customizeToolbar.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/customizeToolbar.css" type="text/css"?>
<window id="CustomizeToolbarWindow"
title="&dialog.title;"
onload="onLoad();"
onunload="onUnload();"
onclose="onAccept(); return false;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="chrome://global/content/customizeToolbar.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
<stringbundle id="stringBundle" src="chrome://global/locale/customizeToolbar.properties"/>
<keyset>
<key id="cmd_close_sheet" keycode="VK_ESCAPE" oncommand="onAccept();" />
<key id="cmd_close_sheet" keycode="VK_RETURN" oncommand="onAccept();" />
<key id="cmd_close_sheet" keycode="VK_ENTER" oncommand="onAccept();" />
</keyset>
<vbox id="main-box" flex="1" collapsed="true">
<hbox>
<vbox flex="2">
<hbox>
<tabbox id="palette-tab-box" style="max-width: 600px; max-height: 300px; overflow: hidden;" flex="1">
<tabs>
<tab label="Personal"/>
<tab label="Headline"/>
<tab label="Navigational"/>
<tab label="Functional"/>
</tabs>
<tabpanels>
<tabpanel id="personaltab" orient="vertical">
<description id="instructions">
&instructions.description;
</description>
<grid flex="1" id="personal-palette-box" height="200" style="max-height: 200px;"
ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
<columns>
<column flex="1"/>
<column flex="1"/>
</columns>
<rows id="personal-palette-box-grid"/>
</grid>
</tabpanel>
<tabpanel id="headlinetab" orient="vertical">
<description id="instructions">
&instructions.description;
</description>
<grid flex="1" id="headline-palette-box" height="200" style="max-height: 200px;"
ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
<columns>
<column flex="1"/>
<column flex="1"/>
</columns>
<rows id="headline-palette-box-grid"/>
</grid>
</tabpanel>
<tabpanel id="navigationaltab" orient="vertical">
<description id="instructions">
&instructions.description;
</description>
<grid flex="1" id="palette-box" height="200" style="max-height: 200px;"
ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
<columns>
<column flex="1"/>
<column flex="1"/>
<column flex="1"/>
<column flex="1"/>
</columns>
<rows id="palette-box-grid"/>
</grid>
</tabpanel>
<tabpanel id="functionaltab" orient="vertical">
<description id="instructions">
&instructions.description;
</description>
<grid flex="1" id="functional-palette-box" height="200" style="max-height: 200px;"
ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
<columns>
<column flex="1"/>
<column flex="1"/>
<column flex="1"/>
<column flex="1"/>
</columns>
<rows id="functional-palette-box-grid"/>
</grid>
</tabpanel>
</tabpanels>
</tabbox>
</hbox>
</vbox>
<separator class="groove"/>
<hbox align="stretch" pack="center">
<vbox flex="1">
<label class="boldLabels">Toolbars: </label>
<hbox pack="stretch" flex="1">
<tree flex="1" hidecolumnpicker="true" id="toolbartree" label="Toolbars: (drag to rearrange)" onselect="updateToolbarSelected(this);">
<treecols>
<treecol id="toolbartree-name" flex="1" primary="true" hideheader="true"/>
</treecols>
<treechildren id="toolbarItemParent"/>
<!-- <treeitem ondraggesture="nsDragAndDrop.startDrag(event, treeDragObserver);"
ondragover="nsDragAndDrop.dragOver(event, treeDragObserver);"
ondragdrop="nsDragAndDrop.drop(event, treeDragObserver);">
<treerow>
<treecell label="DragMe"/>
</treerow>
</treeitem>
</treechildren>-->
</tree>
<vbox align="center" pack="center">
<button label="↑" id="moveUpToolbarButton" oncommand="moveToolbarUp();" style="max-width: 24px;"/>
<button label="↓" id="moveDownToolbarButton" oncommand="moveToolbarDown();" style="max-width: 24px;"/>
</vbox>
</hbox>
<hbox>
<vbox>
<groupbox align="stretch" pack="start" orient="vertical">
<caption id="settingsBoxCaption" label="Settings"/>
<hbox align="center">
<label>Name: </label>
<textbox rows="1" id="toolbarname" style="width: 100px;"/>
<button oncommand="renameToolbar(document.getElementById('toolbarname').value);" label="Set" style="max-width: 50px; max-height: 24px;"/>
</hbox>
<hbox>
<label value="&show.label;"/>
<menulist id="modelist" value="icons-large" oncommand="updateIconSize(this.value.substr(this.value.indexOf('-') + 1, this.value.length)); updateToolbarMode(this.value.substr(0,this.value.indexOf('-'))); ">
<menupopup>
<menuitem value="full-large" modevalue="full" sizevalue="large" label="&iconsAndTextLarge.label;"/>
<menuitem value="full-small" modevalue="full" sizevalue="small" label="&iconsAndTextSmall.label;"/>
<separator/>
<menuitem value="icons-large" modevalue="icons" sizevalue="large" label="&iconsLarge.label;"/>
<menuitem value="icons-small" modevalue="icons" sizevalue="small" label="&iconsSmall.label;"/>
<separator/>
<menuitem value="text-large" modevalue="text" sizevalue="large" label="&text.label;"/>
</menupopup>
</menulist>
</hbox>
<!-- <checkbox id="smallicons" oncommand="updateIconSize(this.checked);" label="&useSmallIcons.label;"/> -->
</groupbox>
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row>
<button class="toolbarSettingButtons" label="Add Toolbar" id="newToolbarButton" oncommand="addNewToolbar();"/>
<button class="toolbarSettingButtons" label="Add Multibar" id="newMultiButton" oncommand="addNewMulti();"/>
</row>
<row>
<button class="toolbarSettingButtons" label="Add Tray" id="newTrayButton" disabled="false" oncommand="addNewTray();"/>
<button class="toolbarSettingButtons" label="Remove" id="removeButton" oncommand="removeToolbar();"/>
</row>
</rows>
</grid>
</vbox>
<spacer style="width: 24px;"/>
</hbox>
</vbox>
<!--
<box align="stretch" pack="start" orient="vertical" style="margin-left: 10px;" flex="1">
</box> -->
</hbox>
</hbox>
<!-- <checkbox id="menuInTitlebar" label="Show main menu in the title bar" flex="1"/> -->
<separator class="groove"/>
<hbox align="center" pack="stretch">
<button label="Reset All to Default" id="resetButton" oncommand="if(confirmRestoreDefaultSet()) restoreDefaultSet();"/><!-- oncommand="if(confirmRestoreDefaultSet()) restoreDefaultSet();" -->
<spacer flex="1"/>
<button label="&saveChanges.label;" oncommand="onAccept();" default="true"/>
</hbox>
</vbox>
</window>