home *** CD-ROM | disk | FTP | other *** search
/ Clickx 65 / Clickx 65.iso / software / internet / xmarks / xmarks-3.1.1.xpi / chrome / content / foxmarks-dialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2009-05-05  |  14.2 KB  |  322 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.  
  5. Copyright 2005-2008 Foxmarks Inc.
  6.  
  7. foxmarks-dialog.xul: implements the main Foxmarks options dialog.
  8.  
  9. -->
  10.  
  11. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
  12. <?xml-stylesheet href="chrome://foxmarks/skin/foxmarks.css" type="text/css" ?>
  13.  
  14.  
  15. <!DOCTYPE dialog SYSTEM "chrome://foxmarks/locale/foxmarks.dtd">
  16.  
  17. <prefwindow id="foxmarks-settings"
  18.     title="&dialog.title;"
  19.     windowtype="foxmarks:settings"
  20.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  21.     xmlns:html="http://www.w3.org/1999/xhtml"
  22.     buttons="help,accept,cancel"
  23.     ondialogaccept="return dialogMgr.onOK();"
  24.     ondialogcancel="return dialogMgr.onCancel();"
  25.     ondialoghelp="return dialogMgr.onHelp();"
  26.     onload="dialogMgr.onSetup();"
  27.     onunload="dialogMgr.onUnload();"
  28.     persist="screenX screenY" >
  29.     
  30.     
  31.     
  32.     <prefpane id="foxmarks-mainpane" label="&label.status;" flex="1" 
  33.         minheight="400"
  34.             image="chrome://foxmarks/skin/images/pane-selector-general.png">
  35.     
  36.         <preferences>
  37.             <preference id="foxmarks-username" name="extensions.xmarks.username" 
  38.                 instantApply="true" 
  39.                 type="string" onchange="gSettings.ClearCredentials()" />
  40.             <preference id="foxmarks-autosync" name="extensions.xmarks.synchOnTimer"
  41.                 type="bool" />
  42.             <preference id="foxmarks-rememberpassword"
  43.                 name="extensions.xmarks.rememberPassword" type="bool" 
  44.                 instantApply="true" />
  45.         </preferences>
  46.         
  47.         <deck selectedIndex="0" id="foxmarks-statusdeck" >
  48.         <vbox>
  49.             <image id="ping" height="1" width="1" />
  50.             <groupbox>
  51.                 <caption label="&label.current.status;" />
  52.                 <vbox flex="1" id="statusbox">
  53.                     <hbox>
  54.                         <image id="status-image" width="36" height="28" />
  55.                         <label id="status-text"  
  56.                             style="font-size: 22px;font-family:arial,sans-serif;"/>
  57.                     </hbox>
  58.                 </vbox>
  59.                 <hbox align="center">
  60.                     <label value="&dialog.label.lastsync;" />
  61.                     <label id="lastSynchDate" />
  62.                     <spacer flex="1" />
  63.                     <button label="&dialog.label.syncNow;" 
  64.                         class="mainpane-button"
  65.                         oncommand="dialogMgr.synchronizeNow();" />
  66.                 </hbox>
  67.  
  68.             </groupbox>
  69.             <groupbox>
  70.                 <caption label="&label.account;" />
  71.                 <grid>
  72.                     <columns> <column /><column /></columns>
  73.                     <rows>
  74.                         <row align="center">
  75.                             <label control="username" 
  76.                                 value="&dialog.label.username;" />
  77.                             <textbox id="username" size="32"
  78.                                 preference="foxmarks-username" />
  79.                         </row>
  80.                         <row align="center">
  81.                             <label control="password" 
  82.                                 value="&dialog.label.password;" />
  83.                             <textbox id="password" type="password" size="32"/>
  84.                         </row>
  85.                         <row align="center">
  86.                             <spacer flex="1" />
  87.                             <checkbox id="rememberpw"
  88.                                 label="&dialog.label.rememberPassword;"
  89.                                 preference="foxmarks-rememberpassword" />
  90.                         </row>
  91.                         <row align="center">
  92.                             <spacer flex="1" />
  93.                             <hbox>
  94.                                 <label class="text-link"
  95.                                     onclick='dialogMgr.panes.general.forgotPassword()'                                value="&dialog.label.forgotPassword;" />
  96.                                 <spacer flex="1" />
  97.                             </hbox>
  98.                         </row>
  99.                     </rows>
  100.                 </grid>
  101.                 <hbox >
  102.                     <spacer flex="1" />
  103.                     <button label="&dialog.label.runWizard;" class="mainpane-button"
  104.                         oncommand="dialogMgr.runSetupWizard();" />
  105.                 </hbox>
  106.             </groupbox>
  107.             <vbox  flex="1" align="end">
  108.                 <label id="version" />
  109.             </vbox>
  110.         </vbox>
  111.         <vbox>
  112.             <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;font-size: 14px;">
  113.                 &label.syncdisabled;
  114.             </description>
  115.             <hbox>
  116.                 <spacer flex="1"/>
  117.                 <button flex="0" 
  118.                     label="&dialog.label.runWizard;" class="mainpane-button"
  119.                     oncommand="dialogMgr.runSetupWizard();" />
  120.             </hbox>
  121.         </vbox>
  122.     </deck>
  123.     </prefpane>
  124.         
  125.     <prefpane id="foxmarks-syncpane" label="&label.sync;" flex="1"
  126.         image="chrome://foxmarks/skin/images/pane-selector-types.png">
  127.         <preferences>
  128.             <preference id="foxmarks-synconshutdown"
  129.                 name="extensions.xmarks.syncOnShutdown" type="int" />
  130.             <preference id="foxmarks-askfirst" type="bool"
  131.                 name="extensions.xmarks.syncOnShutdownAsk" />
  132.         </preferences>
  133.         <vbox style="padding-bottom: 8em;">
  134.             <groupbox flex="1">
  135.                     <caption label="&label.sync.caption;" />
  136.                     <checkbox id="sync-bookmarks" label="&label.sync.bookmarks;"
  137.                         oncommand="dialogMgr.panes.sync.handleBookmarkSync();" />
  138.                     <hbox>
  139.                     <checkbox id="sync-passwords" label="&label.sync.passwords;"
  140.                         oncommand="dialogMgr.panes.sync.handlePasswordSync();" />
  141.                         <button id="sync-resetpin"  
  142.                             label="&label.sync.resetpin;" 
  143.                             oncommand="dialogMgr.panes.sync.doResetPIN();" />
  144.                         <button id="sync-deletepasswords"  
  145.                             label="&label.sync.deletepasswords;" 
  146.                             oncommand="dialogMgr.panes.sync.doDeletePasswords();" />
  147.                     </hbox>
  148.                     <label id="onlyFF3" value="&label.sync.onlyff3;" />
  149.             </groupbox>
  150.             <groupbox flex="1">
  151.                 <caption label="&label.synchronization;" />
  152.                 <hbox align="center">
  153.                     <checkbox id="autosync" label="&dialog.label.ontimer;"
  154.                             preference="foxmarks-autosync" />
  155.                     <spacer flex="1" />
  156.                 </hbox>
  157.                 <checkbox id="synconshutdown" 
  158.                     label="&dialog.label.synconshutdown;"
  159.                     onsynctopreference="return dialogMgr.panes.general.syncOnShutdownToPreference();"
  160.                     oncommand="dialogMgr.panes.general.syncOnShutdownChanged()"
  161.                     preference="foxmarks-synconshutdown" />
  162.                 <hbox align="center">
  163.                     <spacer style="width: 1.4em" />
  164.                     <checkbox id="askfirst" label="&dialog.label.askfirst;" 
  165.                             preference="foxmarks-askfirst" />
  166.                 </hbox>
  167.             </groupbox>
  168.         </vbox>
  169.     </prefpane>
  170.  
  171.     <prefpane id="foxmarks-profilepane" label="&label.profiles;" flex="1"
  172.         image="chrome://foxmarks/skin/images/pane-selector-profiles_TEMP.png">
  173.         <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  174.             &desc.profile;
  175.         </description>
  176.         <hbox style="padding-bottom: 8em;">
  177.             <groupbox flex="1">
  178.                 <hbox align="center">
  179.                     <label value="&label.manageprofiles;" />
  180.                     <spacer flex="1" />
  181.                     <button id="launchMyProfiles" class="manage-profile-button"
  182.                         label="&label.profile.my;" oncommand="dialogMgr.panes.profile.myFoxmarks();" />
  183.                 </hbox>
  184.                 <hbox align="center">
  185.                     <label value="&label.profilechoice;" />
  186.                     <label id="profileName" /> 
  187.                     <spacer flex="1" />
  188.                     <button id="profileChangeButton" 
  189.                         class="manage-profile-button"
  190.                         label="&label.profile.change;" 
  191.                         oncommand="dialogMgr.panes.profile.changeProfile();" />
  192.                 </hbox>
  193.             </groupbox>
  194.         </hbox>
  195.     </prefpane>
  196.  
  197.     <prefpane id="foxmarks-discoverypane" label="&label.discovery;" flex="1"
  198.         image="chrome://foxmarks/skin/images/pane-selector-discovery.png">
  199.         <description style="width: 30em;"> 
  200.             &desc.discover;
  201.         </description>
  202.         <groupbox style="height: 280px;">
  203.             <hbox align="center">
  204.                 <vbox>
  205.                     <checkbox id="searchboost"
  206.                         label="&label.searchboost;"
  207.                         oncommand="dialogMgr.panes.discover.onSearchBoostChanged()" />
  208.  
  209.                     <description style="padding-left: 22px; width: 25;">
  210.                         &desc.searchboost;
  211.                     </description>
  212.                     <groupbox style="margin-left: 22px;">
  213.                         <radiogroup id="serp.countgroup">
  214.                             <radio id="serp.top3" label="&label.serp.top3;"
  215.                             oncommand="dialogMgr.panes.discover.onOK();" />
  216.                             <radio id="serp.all" label="&label.serp.all;"
  217.                                 style="padding-bottom: 4px;"
  218.                                 oncommand="dialogMgr.panes.discover.onOK();"/>
  219.                         </radiogroup>
  220.                     </groupbox>
  221.                     <checkbox id="siteboost"  
  222.                         oncommand="dialogMgr.panes.discover.onOK();"
  223.                         label="&label.siteboost;" />
  224.                     <description style="padding-left: 22px; width: 25em;">
  225.                         &desc.siteboost;
  226.                     </description>
  227.                     <checkbox id="tagsuggest"
  228.                         oncommand="dialogMgr.panes.discover.onOK();"
  229.                         label="&label.tagboost;" />
  230.                     <description style="padding-left: 22px; width: 25em;">
  231.                         &desc.tagboost;
  232.                     </description>
  233.                 </vbox>
  234.             </hbox>
  235.         </groupbox>
  236.     </prefpane>
  237.  
  238.     <prefpane id="foxmarks-advpane" label="&label.advanced;" flex="1" 
  239.             image="chrome://foxmarks/skin/images/pane-selector-advanced.png">
  240.         <preferences>
  241.             <preference id="foxmarks-encrypt" name="extensions.xmarks.securityLevel" 
  242.                 type="int" instantApply="true" />
  243.             <preference id="foxmarks-enablelogging"
  244.                 name="extensions.xmarks.enableLogging" type="bool" />
  245.             <preference id="foxmarks-useownserver"
  246.                 name="extensions.xmarks.useOwnServer" type="bool"
  247.                 onchange="dialogMgr.panes.advanced.useOwnServerChanged()" />
  248.             <preference id="foxmarks-url" name="extensions.xmarks.url-bookmarks" 
  249.                 instantApply="true" type="string" />
  250.             <preference id="foxmarks-passwordurl" name="extensions.xmarks.url-passwords" 
  251.                 instantApply="true" type="string" />
  252.         </preferences>
  253.         <groupbox>
  254.             <caption label="&label.security;" />
  255.             <hbox align="center">
  256.                 <label control="encrypt" value="&label.encrypt;" />
  257.                 <menulist id="encrypt" preference="foxmarks-encrypt" >
  258.                     <menupopup>
  259.                         <menuitem label="&label.noencrypt;" value="-1" />
  260.                         <menuitem label="&label.passwordonly;" value="0" />
  261.                         <menuitem label="&label.encryptall;" value="1" />
  262.                     </menupopup>
  263.                 </menulist>
  264.             </hbox>
  265.         </groupbox>
  266.         <groupbox>
  267.             <caption label="&label.manualoverwrite;" />
  268.             <hbox align="center">
  269.                 <label value="&label.forceoverwriteserver;" />
  270.                 <spacer flex="1" />
  271.                 <button label="&label.upload;" class="manual-overwrite-button" 
  272.                     oncommand="dialogMgr.uploadNow();" flex="0" id="upload" />
  273.             </hbox>
  274.             <hbox align="center">
  275.                 <label value="&label.forceoverwritelocal;" />
  276.                 <spacer flex="1" />
  277.                 <button label="&label.download;" class="manual-overwrite-button"
  278.                     oncommand="dialogMgr.downloadNow();" flex="0" />
  279.             </hbox>
  280.         </groupbox>
  281.         <groupbox flex="1">
  282.             <caption label="&label.logging;" />
  283.             <hbox align="center">
  284.                 <checkbox label="&label.enablelogging;"
  285.                     preference="foxmarks-enablelogging" />
  286.                 <spacer flex="1" />
  287.                 <button label="&label.showlogfile;" 
  288.                     oncommand="dialogMgr.panes.advanced.displayLogFile()" />
  289.             </hbox>
  290.         </groupbox>
  291.         <groupbox>
  292.             <caption label="&label.server;" />
  293.             <hbox align="center">
  294.                 <checkbox id="useown" label="&label.useownserver;"
  295.                     oncommand="return dialogMgr.panes.advanced.useOwnServer();"
  296.                     preference="foxmarks-useownserver" />
  297.             </hbox>
  298.             <hbox align="center">
  299.                 <spacer style="width: 1.275em" />
  300.                 <label id="useown-url-label" value="&label.url;" />
  301.                 <textbox id="url" flex="1" preference="foxmarks-url" />
  302.             </hbox>
  303.             <hbox align="center">
  304.                 <spacer style="width: 1.275em" />
  305.                 <label id="useown-passwordurl-label" value="&label.passwordurl;" />
  306.                 <textbox id="passwordurl" flex="1" preference="foxmarks-passwordurl" />
  307.             </hbox>
  308.             <vbox align="left">
  309.                 <label class="text-link" style="padding-left: 16px;"
  310.                     onclick='dialogMgr.panes.advanced.moreOwnServer();'
  311.                     value="&label.ownserver.moreinfo;" />
  312.             </vbox>
  313.         </groupbox>
  314.         <label value="" />
  315.     </prefpane>
  316.  
  317.     <script src="foxmarks-dialog.js" />
  318.     <script src="foxmarks-settings.js" />
  319.     <script src="foxmarks-uitools.js" />
  320.  
  321. </prefwindow>
  322.