mail/app/profile/extensions/tbtestpilot@labs.mozilla.com/content/feedback-browser.xul
author Mark Banner <bugzilla@standard8.plus.com>
Thu, 10 Nov 2011 13:29:01 +0000
changeset 9347 97e4f01d55faff0562d5487d8a0a6bb4d7cd5797
parent 9258 bfdcd57f0ad1d0ddaac5cde01d73c2c8ca8c4dd9
child 9350 931721d54ec9e38282edddc56e920ecfbdfc6673
permissions -rw-r--r--
Bug 700947 - Really hide the feedback button this time. r=protz,a=Standard8

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://testpilot/content/browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://testpilot-os/skin/feedback.css" type="text/css"?>

<!DOCTYPE overlay [
  <!ENTITY % testpilotDTD SYSTEM "chrome://testpilot/locale/main.dtd">
    %testpilotDTD;
]>

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<menupopup id="menu_ToolsPopup">
  <menu id="pilot-menu" insertafter="menu_openAddons" />
</menupopup>
<menupopup id="taskPopup">
  <menu id="pilot-menu" insertafter="addonsManager" />
</menupopup>

<toolbar id="nav-bar">
  <panel id="pilot-notification-popup"/>
</toolbar>
<!-- XXX Disabled until we're ready for the feedback button.
<toolbar id="mail-bar3">
  <panel id="pilot-notification-popup"/>
</toolbar>
-->


<panel id="pilot-notification-popup" hidden="true" noautofocus="true"
  level="parent" position="after_start">
  <vbox class="pilot-notification-popup-container">
    <hbox class="pilot-notification-toprow">
      <image id="pilot-notification-icon" />
      <vbox pack="center">
        <label id="pilot-notification-title" class="pilot-title" />
      </vbox>
      <spacer flex="1" />
      <vbox pack="start">
        <image id="pilot-notification-close"
          tooltiptext="&testpilot.notification.close.tooltip;" />
      </vbox>
    </hbox>
    <description id="pilot-notification-text" />
    <hbox align="right"><label id="pilot-notification-link" /></hbox>
    <hbox>
      <checkbox id="pilot-notification-always-submit-checkbox"
        label="&testpilot.settings.alwaysSubmitData.shortLabel;" />
      <spacer flex="1" />
    </hbox>
    <hbox align="right">
      <button id="pilot-notification-submit" />
    </hbox>
  </vbox>
</panel>

<menu id="pilot-menu" class="menu-iconic"
      label="&testpilot.feedbackbutton.label;"
      insertafter="addonsManager">
  <menupopup id="pilot-menu-popup"
             onpopupshowing="TestPilotMenuUtils.onPopupShowing(event);"
             onpopuphiding="TestPilotMenuUtils.onPopupHiding(event);">
    <menuitem id="feedback-menu-happy-button"
              class="menuitem-iconic"
              image="chrome://testpilot-os/skin/feedback-smile-16x16.png"
              label="&testpilot.happy.label;"
              thunderbirdLabel="&testpilot.happy.thunderbirdLabel;"
              oncommand="TestPilotWindowUtils.openFeedbackPage('happy');"/>
    <menuitem id="feedback-menu-sad-button"
              class="menuitem-iconic"
              image="chrome://testpilot-os/skin/feedback-frown-16x16.png"
              label="&testpilot.sad.label;"
              thunderbirdLabel="&testpilot.sad.thunderbirdLabel;"
              oncommand="TestPilotWindowUtils.openFeedbackPage('sad');"/>
    <menuseparator/>
    <menuitem id="feedback-menu-show-studies"
              label="&testpilot.allYourStudies.label;"
              oncommand="TestPilotWindowUtils.openAllStudiesWindow();"/>
    <menuitem id="feedback-menu-enable-studies" 
              label="&testpilot.enable.label;"
              oncommand="TestPilotMenuUtils.togglePref('runStudies');"/>
  </menupopup>
</menu>
</overlay>