<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://undoclosedtabsbutton/skin/overlay.css" type="text/css"?>
 
<!DOCTYPE prefwindow SYSTEM "chrome://undoclosedtabsbutton/locale/prefwindow.dtd">

<prefwindow id="undoclosedtabsbutton-options"
     title="&undo.desc;"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/x-javascript" 
          src="chrome://undoclosedtabsbutton/content/undo.js" />
 
<prefpane id="options" label="Options">
<preferences>
      <preference id="howmany" name="browser.sessionstore.max_tabs_undo" type="int"/>
      <preference id="extensions.undoclosedtabsbutton.removetabbutton" name="extensions.undoclosedtabsbutton.removetabbutton" type="bool" instantApply="true"/>
      <preference id="extensions.undoclosedtabsbutton.removedroparrow" name="extensions.undoclosedtabsbutton.removedroparrow" type="bool" instantApply="true"/>
      <preference id="extensions.undoclosedtabsbutton.removecontextentry" name="extensions.undoclosedtabsbutton.removecontextentry" type="bool" instantApply="true"/>
    </preferences>
   <vbox align="left">
     <hbox align="center">
        <label control="textintpref">&howmany.label;</label><textbox id="textintpref" preference="howmany" maxlength="2" size="2"/>
     </hbox>
        <checkbox id="removetabbutton" preference="extensions.undoclosedtabsbutton.removetabbutton" label="&removetabbutton.label;"/>
        <checkbox id="removedroparrow" preference="extensions.undoclosedtabsbutton.removedroparrow" label="&removedroparrow.label;"/>
        <checkbox id="removecontextentry" preference="extensions.undoclosedtabsbutton.removecontextentry" label="&removecontextentry.label;"/>
    </vbox>
</prefpane>
<hbox flex="1">
    <spacer flex="1"/>
    <groupbox id="restart-box"> 
      <caption label="&restart.label;" style="font-weight: bold;"/>
      <hbox>
        <spacer flex="1"/>
        <button label="&restartFX.label;" oncommand="if (canQuitApplication()) acceptDialog();undoClosedButt.restartFX();"/>
        <spacer flex="1"/>
	<button dlgType="accept" label="&save.label;" id="ff_btnok" default="true" oncommand="acceptDialog();"/>
	<button dlgType="cancel" label="&cancel.label;" id="ff_btncancel" oncommand="window.close();"/>
      </hbox>
    </groupbox>
    <spacer flex="1"/>
  </hbox>
</prefwindow>