home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 December / PCWDEC07.iso / Software / Freeware / FlashGot 0.6.4 / chrome / flashgot.jar / content / flashgot / flashgotGalleryBuilder.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-08-29  |  7.0 KB  |  171 lines

  1. <?xml version="1.0"?>
  2. <!-- /***** BEGIN LICENSE BLOCK *****
  3.     FlashGot - a Firefox extension for external download managers integration
  4.     Copyright (C) 2004-2006 Giorgio Maone - g.maone@informaction.com
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20. ***** END LICENSE BLOCK *****/-->
  21. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  22.  
  23. <!DOCTYPE overlay [
  24. <!ENTITY % flashgot SYSTEM "chrome://flashgot/locale/flashgot.dtd" >
  25. %flashgot;
  26. <!ENTITY % flashgotFB  SYSTEM "chrome://flashgot/content/en-US/flashgot.dtd" >
  27. %flashgotFB;
  28. ]
  29. >
  30.  
  31. <dialog id="flashgotGalleryBuilder" 
  32.   onload="gFlashGotGB.onload()"
  33.   ondialogaccept="gFlashGotGB.build()"
  34.   title="&flashgotBuildGallery.title;"
  35.     buttons="accept,cancel"
  36.   minwidth="400"
  37.   minheight="400"
  38.   persist="screenX screenY width height"
  39.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  40.   <script type="application/x-javascript" src="flashgotCommon.js"/>
  41.   <script type="application/x-javascript" src="flashgotGalleryBuilder.js"/>
  42.   <commandset>
  43.     <command id="cmd_synchronizeContent" oncommand="gFlashGotGB.synchronizeContent()" />
  44.     <command id="cmd_synchronizePreview" oncommand="gFlashGotGB.synchronizePreview()" />
  45.   </commandset>
  46.   <tabbox flex="1">
  47.   <tabs id="mainTabs">
  48.     <tab id="flashgotGB-url-tab" label="&flashgotGBVariableURLs;"/>
  49.     <tab id="flashgotGB-expr-tab" label="&flashgotGBExpressions;" />
  50.   </tabs>
  51.     <tabpanels flex="1">
  52.       <tabpanel flex="1">
  53.         <vbox flex="1">
  54.           <vbox>
  55.             <description>&flashgotGBSample;</description>
  56.             <description style="font-weight: bold">http://www.xyz.com/gal[080-090;10]/img[1-2].jpg</description>
  57.             <description style="font-weight: bold">http://www.xyz.com/gal[myfunc([1-100])].mpg</description>
  58.             <grid>
  59.               <columns>
  60.                 <column/>
  61.                 <column flex="1"/>
  62.               </columns>
  63.               <rows>
  64.                 <row>
  65.                   <label control="flashgotGB-preview-text" value="&flashgotGBPreview;" width="60px" />
  66.                   <textbox id="flashgotGB-preview-text" 
  67.                     type="autocomplete" autocompletesearch="history,form-history" 
  68.                     maxlength="300" 
  69.                     onchange="gFlashGotGB.validateURLs()"
  70.                     />
  71.                 </row>
  72.                 <row>
  73.                   <spacer />
  74.                   <hbox align="center">
  75.                         <button style="min-width: 0px" image="chrome://global/skin/arrow/arrow-dn-sharp.gif"
  76.                           command="cmd_synchronizeContent" />         
  77.                         <button style="min-width: 0px" image="chrome://global/skin/arrow/arrow-up-sharp.gif"
  78.                           command="cmd_synchronizePreview" />
  79.                          <label value="&flashgotGBSync;"/>
  80.                          <spacer flex="1" />
  81.                   </hbox>
  82.                 </row>
  83.                 <row>
  84.                   <label control="flashgotGB-content-text" value="&flashgotGBContent;" width="60px" />
  85.                   <textbox id="flashgotGB-content-text"
  86.                     type="autocomplete" autocompletesearch="history,form-history" 
  87.                     maxlength="300"
  88.                     onchange="gFlashGotGB.validateURLs()"  
  89.                      />
  90.                 </row>
  91.               </rows>
  92.             </grid>
  93.         
  94.           </vbox>
  95.           <vbox style="padding: 0px; margin: 0px;" flex="1">
  96.         
  97.               <tree id="flashgotGB-urlsTable" aclass="inset" seltype="single"
  98.                  hidecolumnpicker="true"
  99.                  height="136px"
  100.                  minheight="52px"
  101.                  flex="1"
  102.                  onselect="event.target.view.selectionChanged()">
  103.                 >
  104.               <treecols>
  105.                 <treecol id="previewCol" label="&flashgotGBPreview;" flex="1" primary="true" />
  106.                 <splitter class="tree-splitter" />
  107.                 <treecol id="contentCol" label="&flashgotGBContent;" flex="1" primary="true" />
  108.               </treecols>
  109.               <treechildren flex="1"/>
  110.             </tree>
  111.               
  112.               
  113.           
  114.             <splitter style="background: transparent; margin: 0px; border-width: 0px" /> 
  115.            
  116.            <iframe id="flashgotGB-urls-preview"  src="about:blank" 
  117.             style="border: 1px solid ThreeDDarkShadow"
  118.             height="136px"
  119.             minheight="60px"
  120.             flex="1"
  121.             />
  122.            
  123.           </vbox>  
  124.           <separator />
  125.            <vbox >
  126.            <hbox flex="1">
  127.            <label control="flashgotGB-referrer-text" value="&flashgotGBReferrer;" />
  128.               <textbox id="flashgotGB-referrer-text" 
  129.                 type="autocomplete" autocompletesearch="history,form-history"  
  130.                 maxlength="255" flex="1" />
  131.             </hbox>
  132.            </vbox>
  133.         </vbox>
  134.       </tabpanel>
  135.       <tabpanel flex="1">
  136.        <hbox style="margin: 0px; padding: 0px"  flex="1" >
  137.         <listbox id="flashgotGB-expr-list" seltype="single" 
  138.           onselect="gFlashGotGB.exprSelected()" flex="1" 
  139.           style="margin: 0px"
  140.           />
  141.         
  142.        <splitter style="background: transparent; margin: 0px; border-width: 0px" /> 
  143.           
  144.         <vbox flex="2" style="margin: 0px; padding: 0px" >
  145.           <description id="flashgotGB-expr-des" value="function fx( /* array */ arguments ) {" />
  146.           <description style="white-space: nowrap;" >// arguments.length = args number, arguments[0] = 1st arg, ...</description>  
  147.           <textbox id="flashgotGB-expr-text" 
  148.             flex="1"
  149.             multiline="true" 
  150.             onchange="gFlashGotGB.exprChanged()"
  151.             onkeypress="gFlashGotGB.exprChanged()"
  152.             onkeydown="gFlashGotGB.exprChanged()"
  153.             onkeyup="gFlashGotGB.exprChanged()"
  154.             style="background: white; color: red; font-family: monospace;"
  155.             wrap="off"
  156.             />
  157.           <description>}</description>
  158.           
  159.        
  160.           <textbox id="flashgotGB-expr-error-text" 
  161.             multiline="true"
  162.             rows="3" readonly="true"
  163.             style="background: white; color: red"
  164.            />
  165.         </vbox>
  166.       </hbox>
  167.       </tabpanel>
  168.     </tabpanels>
  169.   </tabbox>
  170. </dialog>
  171.