File:  [mozdev] / bookmarkshome / src / bookmarksHomePrefsWindow.xul
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Wed Nov 17 20:58:03 2004 UTC (12 years, 11 months ago) by jagrboom
Branches: MAIN
CVS tags: HEAD
1.2.4

<?xml version="1.0"?>
<!--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is mozilla.org view-source front end.
-
- The Initial Developer of the Original Code is mozilla.org.
- Portions created by the Initial Developer are Copyright (C) 2002
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-   Jeroen Groenenboom <jagrboom@zonnet.nl> (Original Author)
-
- Alternatively, the contents of this file may be used under the
- terms of the GNU General Public License Version 2 or later (the
- "GPL"), in which case the provisions of the GPL are applicable 
- instead of those above.  If you wish to allow use of your 
- version of this file only under the terms of the GPL and not to
- allow others to use your version of this file under the MPL,
- indicate your decision by deleting the provisions above and
- replace them with the notice and other provisions required by
- the GPL.  If you do not delete the provisions above, a recipient
- may use your version of this file under either the MPL or the
- GPL.
-->

<?xml-stylesheet href="chrome://bookmarkshome/content/bookmarksHomePrefsWindow.css" type="text/css"?>

<!--
id's of elements in document are equal to corresponding preferences
-->
<window id="bookmarksHomePrefsWindow"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    title="BookmarksHome Options" 
    onload="if( bMHPrefsWindow == null ) bMHPrefsWindow = new BMHPrefsWindow();" 
    onunload="bMHPrefsWindow.close();">

    <script type="application/x-javascript" src="chrome://bookmarkshome/content/bookmarksHomePrefsWindow.js"/>
    <script type="application/x-javascript" src="chrome://bookmarkshome/content/bookmarksHomePrefs.js"/>

    <popupset>
	<popup id="AddAsPopup">
	    <textbox size="15"/>
	</popup>
    </popupset>

    <tabbox flex="20">
	<tabs >
	    <tab label="General"/>
	    <tab label="Style"/>
	    <tab label="Folders"/>
	</tabs>
	<tabpanels id="prefsPanels" flex="1">
	    <tabpanel id="generalTab" orient="vertical">
		<groupbox flex="1">
		    <grid flex="1">
			<columns></columns>
			<rows>
			    <row>
				<!--
				<label value="Hide search engines:"/>
				-->
				<checkbox id="hideSearchEngines" oncommand="bMHPrefsWindow.hideEngines()" label="Hide Search engines"/>
			    </row>
			    <row id="engineRow">
				<label value="Default:"/>
				<menulist id="engine" oncommand="bMHPrefsWindow.showDefaultEngine( this.selectedIndex )">
				    <menupopup id="enginePopup"/>
				</menulist>
			    </row>
			    <!--
			    <spacer flex="1"/>
			    <row>
				<label value="Main table cellpadding:"/>
				<hbox>
				    <textbox id="table_main_cellpadding" size="3"/>
				    <spacer flex="1"/>
				</hbox>
			    </row>
			    <spacer flex="1"/>
			    <row>
				<label value="Column table cellspacing:"/>
				<hbox>
				    <textbox id="table_column_cellspacing" size="3"/>
				    <spacer flex="1"/>
				</hbox>
			    </row>
			    -->
			    <spacer flex="1"/>
			    <row>
				<label value="Number of columns:"/>
				<hbox>
				    <textbox id="nrOfColumns" size="3"/>
				    <spacer flex="1"/>
				</hbox>
			    </row>
			    <spacer flex="1"/>
			    <row>
				<label value="Maximum name length:"/>
				<hbox>
				    <textbox id="maxNameLength" size="3"/>
				    <spacer flex="1"/>
				</hbox>
			    </row>
			    <spacer flex="1"/>
			    <row>
				<label value="Maximum header lines:"/>
				<hbox>
				    <textbox id="maxHeaderLines" size="3"/>
				    <spacer flex="1"/>
				</hbox>
			    </row>
			    <spacer flex="1"/>
			    <row id="iconsRow">
				<label value="Display icons:"/>
				<menulist id="iconDisplay" oncommand="bMHPrefsWindow.setIconDisplay( this.selectedIndex )">
				    <menupopup id="iconDisplayPopup">
					<menuitem label="All"/>
					<menuitem label="Livemarks"/>
					<menuitem label="None"/>
				    </menupopup>
				</menulist>
			    </row>
			    <spacer flex="1"/>
			    <row>
				<label value="Open folder in:"/>
				<radiogroup id="openFolderIn" orient="horizontal">
				    <radio label="tabs"/>
				    <radio label="windows"/>
				</radiogroup>
			    </row>
			    <spacer flex="1"/>
			</rows>
		    </grid>
		</groupbox>
	    </tabpanel>
	    <tabpanel id="styleTab" orient="vertical">
		<hbox id="styleUpperHbox">
		    <colorpicker type="button" onchange="bMHPrefsWindow.showColor( this.color )"/>
		    <textbox id="hexColor" size="9" readonly="true"/>
		    <spacer flex="1"/>
		    <menulist id="styles" oncommand="bMHPrefsWindow.changeStyle()"> 
			<menupopup id="sheetNames"></menupopup>
		    </menulist>
		    <spacer flex="1"/>
		    <toolbarbutton type="menu" label=" Style ">
			<menupopup>
			    <menuitem label="New" oncommand="bMHPrefsWindow.newPrompt()"/>
			    <menuitem label="Save As..." oncommand="bMHPrefsWindow.saveAsPrompt()"/>
			    <menuitem label="Delete" oncommand="bMHPrefsWindow.deletePrompt()"/>
			</menupopup>
		    </toolbarbutton>
		</hbox>
		<textbox id="stylesheet" multiline="true" flex="1" oninput="bMHPrefsWindow.updateStyle( this.action )"/>
	    </tabpanel>
	    <tabpanel id="foldersTab" orient="vertical">
		<groupbox>
		    <hbox>
			<spacer flex="1"/>
			<menulist id="excludeIndex">
			    <menupopup>
				<menuitem label="Exclude"/>
				<menuitem label="Include"/>
			    </menupopup>
			</menulist>
			<spacer flex="1"/>
			<checkbox id="subfolderCheckbox" label="(un)check subfolders" checked="false"/>
			<spacer flex="1"/>
		    </hbox>
		</groupbox>
		<command id="folderCheckBoxCommand" oncommand="alert('check')"/>
		<iframe id="folderFrame" src="bmhFolderPage.xul" flex="1"/>
	    </tabpanel>
	</tabpanels>
    </tabbox>
    <spacer style="height" flex="1"/>
    <hbox align="baseline">
	<spacer flex="1"/>
	<button label="Close" oncommand="window.close();"/>
	<button label="Apply" oncommand="bMHPrefsWindow.apply()"/>
    </hbox>
</window>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>