home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 November / PCWorld_2007-11_cd.bin / temacd / imtoodownyoutube / download-youtube-video.exe / flvmain.xul < prev    next >
Extensible Markup Language  |  2007-09-06  |  13KB  |  288 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?script href="config.js"?/>
  4. <?script href="globalvar.js"?/>
  5. <?script href="utilfunction.js"?/>
  6. <?script href="taskmanager.js"?/>
  7. <?script href="flvmain.js"?/>
  8. <?script href="regbefore.js"?/>
  9. <?script href="startup.js"?/>
  10.  
  11. <?include href="reg.xul"/>
  12. <?include href="flvmenupopup.xul"?/>
  13. <?include href="settings.xul"?/>
  14. <?include href="fileinfos.xul"?/>
  15. <?include href="newtask.xul"?/>
  16. <?include href="msgnormal.xul"/>
  17. <?include href="msgspec.xul"/>
  18. <?include href="about.xul"/>
  19. <?include href="popupnouse.xul"/>
  20. <?include href="popup.xul"/>
  21. <?include href="droppopup.xul"/>
  22. <?include href="regbefore.xul"/>
  23. <?library href="curveline.dll"?/>
  24.  
  25.  
  26. <window 
  27.     id="MainWindow" 
  28.     title="ImTOO Download YouTube Video" 
  29.     orient="vertical"
  30.     align="stretch" 
  31.     width="605"
  32.     height="501"
  33.     language_prefix="_"
  34.     vMargin="0" 
  35.     hMargin="0"
  36.     center="true"
  37.     resize="false"
  38.     round="true"
  39.     roundx=15
  40.     roundy=15
  41.     IsTop="true"
  42.     bottomisround=true
  43.     min-width=400
  44.     min-height=300
  45.     minimizebox = true
  46.  
  47. >
  48.  
  49.     <!--for package buy menu-->
  50.     <menu id="buymenu">
  51.       <item id="buy1" label="buy1" onclick="GoBuy1(0);"/>
  52.       <item id="buy2" label="buy2" onclick="GoBuy1(1);"/>
  53.       <item id="buy3" label="buy3" onclick="GoBuy1(2);"/>
  54.       <item id="buy4" label="buy4" onclick="GoBuy1(3);"/>
  55.       <item id="buy5" label="buy5" onclick="GoBuy1(4);"/>
  56.     </menu>
  57.  
  58. <titlebar id="title" orient="horizontal"  height="30"  image="titlebar.png" transparent="true" align="top" fillmode="1"  hMargin="0"  vMargin="0" >
  59.     <spacer align="left" width="10"/>
  60.         <vbox height=30 >
  61.                   <spacer height=5/>
  62.                     <static background-image="toipod.png" 
  63.                     height="16" width="16" align=top
  64.                     transparent="true" sizetoimage="true" />
  65.                 
  66.         </vbox>
  67.    <spacer width=5/>
  68.     <vbox height=30>
  69.          <spacer height=6/>
  70.          <static id="maintitle"   text-align="left" align=top  font-color="RGB(0,0,0)"  font-family=Tahoma font-bold="true" font-size=14 width="500" sizetocontent="true"  transparent="true"/>
  71.     </vbox>
  72.     <vbox height=30>
  73.      <spacer height=6/>
  74.      <button align="top"  image="window_min.png" width=20 height=20  onclick="MainWindow_Minimize"/>
  75.     </vbox>
  76.      <spacer width=2 align=right/>
  77.     <vbox height=30>
  78.      <spacer height=6/>
  79.      <button align="top"  image="window_max.png"  width=20 height=20 enable="false" onclick="MainWindow.Maximize()"/>
  80.     </vbox>
  81.     
  82.      <spacer width=2 align=right/>
  83.      <vbox height=30>
  84.      <spacer height=6/>
  85.      <button align="top"  image="window_close.png"  width=20 height=20  onclick="MainWindow_destroy"/>
  86.      </vbox>
  87.      <spacer align="right" width="10"/>
  88.  </titlebar>
  89.  
  90.  <panel image="background_sub.png"  align="stretch"  hMargin="0"  vMargin="0"  >
  91.     <panel image="background1.png"  align="stretch" >
  92.     <panel   align="stretch" width="600" vMargin="0" hMargin="0">
  93.     <panel  style="" height="25" image="" width="605" transparent="true" orient="horizontal" align="top" vMargin="0" hMargin="0">
  94.     <spacer width=10/>
  95.  <menubar id="menubar" orient="horizontal" align="top" width="610" height="25"  transparent="true" font-size="12">
  96.  
  97.      <menu id="menuoffile" label="_flvmain_menu_file">
  98.          <item id="menuofnewtask" label="_flvmain_menu_new_task" onclick="shownewtask"/>
  99.          <item id="menuoffileinfo"   label="_flvmain_menu_file_info"   onclick="getfileinfo"/> 
  100.          <item type="separator"/>
  101.          <item id="menuofexit"   label="_flvmain_menu_exit"   onclick="MainWindow_destroy"/> 
  102.      </menu>
  103.  
  104.      <menu id="menuofedit" label="_flvmain_menu_edit" >
  105.          <item id="menuofselall" label="_flvmain_menu_select_all" onclick="SelectAll"/>
  106.          <item type="separator"/>
  107.          <item id="menuofdeltask" label="_flvmain_menu_delete" onclick="deletetask"/>
  108.          <item id="menuofdelfintask" label="_flvmain_menu_delfinish" onclick="deletefinishtask"/>
  109.      </menu>
  110.      <menu id="menuofaction" label="_flvmain_menu_action">
  111.          <item id="menuofstart" label="_flvmain_menu_start" onclick="startdownload"/>
  112.          <item id="menuofpause" label="_flvmain_menu_pause" onclick="pauseconvert"/>
  113.          <item id="menuofstop"  label="_flvmain_menu_stop"  onclick="stopdownload"/>
  114.          <item type="separator"/>
  115.          <item id="menuofplayvideo" label="_flvmain_menu_play_video" onclick="playvideo"/>
  116.      </menu>     
  117.      <menu id="menuoftools" label="_flvmain_menu_tools">
  118.      <menu id="menuoflanguage" label="_flvmain_menu_language" >
  119.          <item id="menuofenglish" label="_flvmain_menu_eng" width=300 transparent=true onclick="setenglish"/>
  120.          <item id="menuofchinese" label="_flvmain_menu_chs" width=300 transparent=true onclick="setchinese"/>
  121.          <item id="menuofgerman"  label="_flvmain_menu_deu" width=300 transparent=true onclick="setgerman"/>
  122.          <item id="menuofjapan"   label="_flvmain_menu_jpn" width=300 transparent=true onclick="setjapan"/>
  123.      </menu>
  124.      <menu id="menuofchangeskin" label="_flvmain_menu_change_skin">
  125.          <item id="defaultskin" label="_flvmain_menu_skin_red" onclick="setdefaultskin"/>
  126.          <item id="zidingyi"   label="_flvmain_menu_skin_green" onclick="zidingyiskin" />
  127.      </menu>
  128.       <item type="separator"/>
  129.          <item id="menuofplayer" label="_flvmain_menu_player" onclick="showpreview"/>
  130.       <item type="separator"/>
  131.          <item id="menuofsettings" label="_flvmain_menu_setting" onclick="showsettings"/>
  132.      </menu>
  133.      
  134.      <menu id="menuofhelp"  label="_flvmain_menu_help">
  135.          <item id="menuofupodhelp"     label="_flvmain_menu_showhelp" width=200     onclick="OnHelp"/>
  136.          <item type="separator"/>
  137.          <item id="menuofbuyproduct1"   label="_flvmain_menu_buy1" width=200   onclick="onBuy1"/>
  138.          <item id="menuofbuyproduct2" label="_flvmain_menu_buy2"  width=200  onclick="onBuy2"/>
  139.          <item id="menufeed" label="_flvmain_menu_support" width=200  onclick="onSupport"/>
  140.          <item type="separator"/>
  141.          <item id="menuabout" label="_flvmain_menu_about" width=200  onclick="onAbout"/>
  142.      </menu>
  143.  </menubar>
  144.  </panel>
  145.  
  146.    
  147.     <spacer height=4/>
  148.     <panel align="top" height="74" width="600"  orient="horizontal" transparent="true" hMargin="0"  vMargin="0" >
  149.             <hbox transparent="true">
  150.          <spacer width=33/>  
  151.          <vbox height=74 align=top>
  152.              <spacer height=6/>
  153.              <button id="buttonnew" width=40 height=40    image="new.png"  align="top"    tooltip-text="_flvmain_btn_new" onclick="shownewtask(dropstr)"/>
  154.              <static label="_flvmain_btn_new" align=left" height=12 width=40 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  155.          </vbox>
  156.           <spacer width=15/>  
  157.          <vbox height=74>
  158.               <spacer height=16/>
  159.               <static image="getiao.png" width=1 height=33/>
  160.          </vbox>
  161.          <spacer width=15/>
  162.          <vbox height=74 align=top>
  163.              <spacer height=6/>
  164.              <button id="buttonstart" width=40 height=40 text-align="center" image="start.png"  align="top" textposx=30 textposy=45 label="_flvmain_btn_start" font-bold=true font-color="RGB(255,255,255)"  tooltip-text="_flvmain_btn_start" onclick="startdownload"/>
  165.               <static label="_flvmain_btn_start" align=left" height=12 width=45 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  166.          </vbox>
  167.          <spacer width=25/>  
  168.           <vbox height=74 align=top>
  169.              <spacer height=6/>
  170.             <button id="buttonpause" width=40 height=40 text-align="center"  image="pause.png"  align="top" textposx=30 textposy=45 label="_flvmain_btn_pause" font-bold=true font-color="RGB(255,255,255)"  tooltip-text="_flvmain_btn_pause" onclick="pauseconvert"/>
  171.              <static label="_flvmain_btn_pause" align=left" height=12 width=40 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  172.           </vbox>
  173.            <spacer width=25/>  
  174.           <vbox height=74 align=top>
  175.              <spacer height=6/>
  176.              <button id="buttonstop"  width=40 height=40 text-align="center" image="stop.png" align="top" textposx=30 textposy=45 label="_flvmain_btn_stop" font-bold=true font-color="RGB(255,255,255)" tooltip-text="_flvmain_btn_stop" onclick="stopdownload"/>
  177.             <static label="_flvmain_btn_stop" align=left" height=12 width=40 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  178.            </vbox>
  179.             <spacer width=20/>  
  180.          <vbox height=74 align=top>
  181.              <spacer height=6/>
  182.              <hbox>
  183.              <spacer width=8/>
  184.              <button id="buttondelete" width=40 height=40 text-align="center"  image="delete.png"  align="top" textposx=30 textposy=45 label="_flvmain_btn_del_task" font-bold=true font-color="RGB(255,255,255)"  tooltip-text="_flvmain_btn_del_task" onclick="deletetask"/>
  185.             </hbox>
  186.             <static label="_flvmain_btn_del_task" align=left" height=12 width=62 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  187.           </vbox>
  188.            <spacer width=12/>
  189.            <vbox height=74 align=top>
  190.               <spacer height=16/>
  191.               <static image="getiao.png" width=1 height=33/>
  192.          </vbox> 
  193.            
  194.             <spacer width=12/>  
  195.           <vbox height=74 align=top>
  196.              <spacer height=6/>
  197.              <button id="buttonfileinfo" width=40 height=40 text-align="center"  image="fileinfo.png"  align="top"  textposx=10 textposy=45 label="_flvmain_btn_fileinfo" font-bold=true font-color="RGB(255,255,255)" tooltip-text="_flvmain_btn_fileinfo" onclick="getfileinfo"/>
  198.             <static label="_flvmain_btn_fileinfo" align=left" height=12 width=60 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  199.            </vbox>
  200.             <spacer width=20/>  
  201.           <vbox height=74 align=top>
  202.              <spacer height=6/>
  203.              <hbox>
  204.              <spacer width=10/>
  205.              <button id="buttonpre" text-align="center" width=40 height=40 image="playvideo.png" align="top" textposx=10 textposy=45 label="_flvmain_btn_play_video" font-bold=true font-color="RGB(255,255,255)" tooltip-text="_flvmain_btn_play_video" onclick="playvideo"/>
  206.             </hbox>
  207.             <static label="_flvmain_btn_play_video" align=left" height=12 width=70 text-align="center" transparent=true font-family=verdana font-bold=true font-color="RGB(0,0,0)"/>
  208.            </vbox>
  209.          </hbox>
  210.     
  211.     </panel>
  212.  
  213.  
  214.  
  215.             <panel  label="" transparent="true"  align="stretch"  vMargin="0" hMargin="10">
  216.             
  217.                 <listctrl id="listctrlfiles" 
  218.                     image="TableHead.png"
  219.                     headHeight="100" itemHeight="22" 
  220.                     border="false" 
  221.                     
  222.                     font-color="RGB(0,0,0)" 
  223.                     emptyimage="getting start.jpg"
  224.                     listctrl-font-color="RGB(38,38,38)" 
  225.                     listctrl-font-size=10
  226.                     onrightclick="flv_listrclick" 
  227.                     onitemclick="flv_listitemclick" 
  228.                     ondropfile="listctrldropfile"
  229.                     transparent="true"
  230.                     vMargin="0" hMargin=0
  231.                     height=0
  232.                     >
  233.                     <column id="image" label="" 
  234.                         align="center" 
  235.                         width="50"
  236.                         type="image" />
  237.                     <column id="filename" label="_flvmain_list_name" 
  238.                         width="120" align="left"  />
  239.                     <column id="filesize" label="_flvmain_list_size" 
  240.                         width="70" align="center" />
  241.                     <column id="downprocess" label="_flvmain_list_progress" 
  242.                         width="100" align="center" 
  243.                         drawmethod="0" color1="RGB(88,217,101)"
  244.                         bdrawmethod="0" bcolor1="RGB(247,196,57)" 
  245.                         type="progress"  />
  246.                     <column id="path" label="_flvmain_list_location" 
  247.                          width="230" 
  248.                          align="left"/>        
  249.                 </listctrl>
  250.                 
  251.                 <panel id=pel tranparent=true align="stretch" hMargin=0 vMargin=0 ondropfile="ondropfile11" image="getting start.jpg">
  252.                 <spacer height=155/>
  253.                 <hbox height=30>
  254.                     <spacer width=430/>
  255.                     <vbox height=30>
  256.                         <spacer height=28/>
  257.                         <link text="More Information..." transparent="true" url="http://www.imtoo.com/youtube-video-converter.html" link-color=RGB(200,200,0) align=bottom text-align=left font-size=12 font-bold=true font-underline=true width=100/>
  258.                     </vbox>
  259.                 </hbox>
  260.                 <spacer height=63/>
  261.  
  262.                 <hbox height=20>    
  263.                     <spacer width=430/>
  264.                     <vbox height=20>
  265.                     <link text="More Information..." transparent=true url="http://www.imtoo.com/youtube-to-ipod-converter.html" link-color=RGB(200,200,0) align=bottom text-align=left font-size=12 font-bold=true font-underline=true width=100/>
  266.                     </vbox>
  267.                 </hbox>
  268.                 
  269.                 
  270.                 </panel>
  271.         </panel>
  272.             
  273.             <panel style="" height="26" align="bottom" lable="" transparent="true" orient="vertical" >
  274.     
  275.             <hbox align="top">
  276.                 <static id="text" transparent="true"  align="right" label="_flvmain_status" width="140"/>
  277.                 <spacer width="5" align="right"/>
  278.                 <static id="downspeedtext" transparent="true" align="right" label="" width="60"/>
  279.             </hbox>
  280.         
  281.             </panel>
  282.     </panel>    
  283.     </panel>
  284.     
  285.     </panel>
  286.  
  287.  </window>
  288.