view chrome/content/screenshot/screenshot.xul @ 2:472a16863ecc

expanded nightly.jar
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 02 Dec 2008 20:38:20 +0900
parents
children
line wrap: on
line source

<?xml version="1.0"?>

<!DOCTYPE window SYSTEM "chrome://nightly/locale/screenshot.dtd">

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://nightly/skin/screenshot/screenshot.css" type="text/css"?>

<window title="&screenshot.window.title;" id="NightlyScreenshot"
        persist="width height screenX screenY sizemode"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script src="screenshot.js" type="application/x-javascript"/>
  <script src="providers.js" type="application/x-javascript"/>
  
  <stringbundleset>
    <stringbundle id="bundle" src="chrome://nightly/locale/screenshot.properties"/>
  </stringbundleset>
  
  <toolbox>
    <toolbar>
      <toolbarbutton label="&screenshot.save.label;" oncommand="saveScreenshot()"/>
      <toolbarbutton label="&screenshot.copy.label;" oncommand="copyScreenshot()"/>
      <toolbarbutton id="imgsubmit" hidden="true" label="&screenshot.submit.label;" oncommand="submitScreenshot(); window.close();"/>
      <toolbaritem align="center">
        <label control="winlist" value="&screenshot.window.label;"/>
        <menulist id="winlist">
          <menupopup id="winpopup">
          </menupopup>
        </menulist>
      </toolbaritem>
      <toolbarbutton label="&screenshot.redraw.label;" oncommand="drawScreenshot();"/>
      <toolbarbutton id="timerbtn" label="&screenshot.timer.label;" oncommand="timedCapture();"/>
    </toolbar>
  </toolbox>
  
  <scrollbox flex="1" style="overflow: auto" align="start" pack="start" id="container">
    <xhtml:img id="previewImage"/>
  </scrollbox>

  <vbox height="0" style="overflow: hidden">
    <xhtml:canvas id="canvas" style="visibility: hidden"/>
  </vbox>

</window>