skinnable bookmark properties dialog

This commit is contained in:
ben%netscape.com 2000-05-13 02:23:59 +00:00
Родитель 0a0acdcf76
Коммит 182900d710
5 изменённых файлов: 53 добавлений и 65 удалений

Просмотреть файл

@ -84,6 +84,6 @@ tabpanel {
border-bottom: 1px solid #666666;
border-left: 1px solid white;
border-right: 1px solid #666666;
padding: 0px;
padding: 5px;
}

Просмотреть файл

@ -54,7 +54,7 @@ function Init()
bookmark_url = window.arguments[0];
// set up action buttons
doSetOKCancel(Commit, Cancel);
doSetOKCancel(Commit);
// Initialize the properties panel by copying the values from the
// RDF graph into the fields on screen.
@ -414,18 +414,3 @@ function updateAttribute(prop, oldvalue, newvalue)
return(changed);
}
function Cancel()
{
// Ignore any changes.
window.close();
}
function switchTab( aPageIndex )
{
var deck = document.getElementById( "Deck" );
if (deck) deck.setAttribute( "index", aPageIndex );
}

Просмотреть файл

@ -33,48 +33,48 @@
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&bookmarks.windowtitle.label;"
onload="Init()"
class="dialog" align="vertical">
onload="Init()" style="width: 25em;"
class="dialog" orient="vertical">
<html:script language="Javascript" src="chrome://global/content/globalOverlay.js"/>
<html:script language="JavaScript" src="chrome://global/content/strres.js" />
<html:script language="JavaScript" src="chrome://communicator/content/bookmarks/bm-props.js" />
<script language="Javascript" src="chrome://global/content/globalOverlay.js"></script>
<script language="JavaScript" src="chrome://global/content/strres.js"></script>
<script language="JavaScript" src="chrome://communicator/content/bookmarks/bm-props.js"></script>
<box id="Tabs" align="horizontal">
<titledbutton class="push" value="General Information" onclick="return switchTab(0)" />
<titledbutton id="ScheduleTab" class="push" value="Schedule" onclick="return switchTab(1)" />
</box>
<keyset id="keyset"/>
<tabcontrol orient="vertical">
<tabbox>
<tab value="&generalInfo.label;" accesskey="&generalInfo.accesskey;"/>
<tab value="&schedule.label;" accesskey="&schedule.accesskey;"/>
</tabbox>
<tabpanel>
<box orient="vertical">
<box id="nameBox" orient="vertical">
<text class="label" value="&bookmarks.name.label;" />
<textfield id="name" />
</box>
<box id="locationBox" orient="vertical">
<text class="label" value="&bookmarks.location.label;" />
<textfield id="url" />
</box>
<box id="shortcutBox" orient="vertical">
<text class="label" value="&bookmarks.shortcut.label;" />
<textfield id="shortcut" />
</box>
<box id="descriptionBox" orient="vertical" flex="1">
<text class="label" value="&bookmarks.description.label;" />
<textfield multiline="true" id="description" flex="1"/>
</box>
</box>
<deck id="Deck">
<titledbox orient="vertical" class="deckouterbox">
<title><text value="&bookmarks.information.label;" /></title>
<box id="nameBox" align="vertical">
<text value="&bookmarks.name.label;" />
<textfield id="name" />
</box>
<box id="locationBox" align="vertical">
<text value="&bookmarks.location.label;" />
<textfield id="url" />
</box>
<box id="shortcutBox" align="vertical">
<text value="&bookmarks.shortcut.label;" />
<textfield id="shortcut" />
</box>
<box id="descriptionBox" align="vertical">
<text value="&bookmarks.description.label;" />
<textfield multiline="true" id="description" />
</box>
</titledbox>
<titledbox orient="vertical" class="deckouterbox">
<titledbox orient="vertical">
<title><text value="&checkforupdates.legend.label;" /></title>
<box align="horizontal">
<text value="&when.label;" />
<box autostretch="never">
<text class="label" value="&when.label;" />
<menulist id="dayRange">
<menupopup>
<menuitem data="" value="&checknever.label;"/>
@ -92,7 +92,7 @@
</menupopup>
</menulist>
<spring align="horizontal" flex="1" />
<text value="&from.label;" />
<text class="label" value="&from.label;" />
<menulist id="startHourRange">
<menupopup>
<menuitem data="0" value="&midnight.label;"/>
@ -154,11 +154,11 @@
</menupopup>
</menulist>
</box>
<box align="horizontal">
<box autostretch="never">
<spring align="horizontal" flex="1" />
<text value="&every.label;" />
<text class="label" value="&every.label;" />
<textfield id="duration" style="width:4em;" value="60" />
<text value="&minutes.label;" />
<text class="label" value="&minutes.label;" />
</box>
<titledbox orient="vertical">
@ -170,11 +170,9 @@
<checkbox id="playSound" value="&notification.sound.label;" />
</titledbox>
</titledbox>
</deck>
<box autostretch="never">
<spring flex="1"/>
<box id="okCancelButtons"/>
</box>
</tabpanel>
</tabcontrol>
<box id="okCancelButtonsRight"/>
</window>

Просмотреть файл

@ -34,7 +34,7 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:web="http://home.netscape.com/WEB-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="630" height="400" x="20" y="20" persist="width height x y" align="vertical"
width="630" height="400" x="20" y="20" persist="width height x y" orient="vertical"
onload="Init();"
ondraggesture="return TopLevelDrag(event);"
windowtype="bookmarks:manager"

Просмотреть файл

@ -22,6 +22,11 @@
<!ENTITY bookmarks.windowtitle.label "Properties">
<!ENTITY generalInfo.label "General Information">
<!ENTITY generalInfo.accesskey "g">
<!ENTITY schedule.label "Schedule">
<!ENTITY schedule.accesskey "s">
<!ENTITY bookmarks.information.label "Information:">
<!ENTITY bookmarks.name.label "Name:">
<!ENTITY bookmarks.location.label "Location:">