toolkit/components/passwordmgr/content/passwordManager.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/passwordmgr/content/passwordManager.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil -*- -->
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.10 +<?xml-stylesheet href="chrome://global/skin/passwordmgr.css" type="text/css"?>
    1.11 +
    1.12 +<!DOCTYPE dialog SYSTEM "chrome://passwordmgr/locale/passwordManager.dtd" >
    1.13 +
    1.14 +<window id="SignonViewerDialog"
    1.15 +        windowtype="Toolkit:PasswordManager"
    1.16 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.17 +        onload="Startup(); SignonsStartup();"
    1.18 +        onunload="Shutdown();"
    1.19 +        title="&savedPasswords.title;"
    1.20 +        persist="width height screenX screenY">
    1.21 +
    1.22 +  <script type="application/javascript" src="chrome://passwordmgr/content/passwordManagerCommon.js"/>
    1.23 +  <script type="application/javascript" src="chrome://passwordmgr/content/passwordManager.js"/>
    1.24 +
    1.25 +  <stringbundle id="signonBundle"
    1.26 +                src="chrome://passwordmgr/locale/passwordmgr.properties"/>
    1.27 +
    1.28 +  <keyset>
    1.29 +    <key keycode="VK_ESCAPE" oncommand="window.close();"/>
    1.30 +    <key key="&windowClose.key;" modifiers="accel" oncommand="window.close();"/>
    1.31 +    <key key="&focusSearch1.key;" modifiers="accel" oncommand="FocusFilterBox();"/>
    1.32 +    <key key="&focusSearch2.key;" modifiers="accel" oncommand="FocusFilterBox();"/>
    1.33 +  </keyset>
    1.34 +
    1.35 +  <popupset id="signonsTreeContextSet">
    1.36 +    <menupopup id="signonsTreeContextMenu"
    1.37 +           onpopupshowing="UpdateCopyPassword()">
    1.38 +      <menuitem id="context-copyusername"
    1.39 +                label="&copyUsernameCmd.label;"
    1.40 +                oncommand="CopyUsername()"/>
    1.41 +      <menuitem id="context-copypassword"
    1.42 +                label="&copyPasswordCmd.label;"
    1.43 +                accesskey="&copyPasswordCmd.accesskey;"
    1.44 +                oncommand="CopyPassword()"/>
    1.45 +    </menupopup>
    1.46 +  </popupset>
    1.47 +
    1.48 +  <!-- saved signons -->
    1.49 +  <vbox id="savedsignons" class="contentPane" flex="1">
    1.50 +    <!-- filter -->
    1.51 +    <hbox align="center">
    1.52 +      <label accesskey="&filter.accesskey;" control="filter">&filter.label;</label>
    1.53 +      <textbox id="filter" flex="1" type="search"
    1.54 +               aria-controls="signonsTree"
    1.55 +               oncommand="_filterPasswords();"/>
    1.56 +    </hbox>
    1.57 +
    1.58 +    <label control="signonsTree" id="signonsIntro"/>
    1.59 +    <separator class="thin"/>
    1.60 +    <tree id="signonsTree" flex="1" style="height: 20em;" hidecolumnpicker="true"
    1.61 +          onkeypress="HandleSignonKeyPress(event)"
    1.62 +          onselect="SignonSelected();"
    1.63 +          context="signonsTreeContextMenu">
    1.64 +      <treecols>
    1.65 +        <treecol id="siteCol" label="&treehead.site.label;" flex="5"
    1.66 +                 onclick="SignonColumnSort('hostname');" persist="width"
    1.67 +                 sortDirection="ascending"/>
    1.68 +        <splitter class="tree-splitter"/>
    1.69 +        <treecol id="userCol" label="&treehead.username.label;" flex="2"
    1.70 +                 onclick="SignonColumnSort('username');" persist="width"/>
    1.71 +        <splitter class="tree-splitter"/>
    1.72 +        <treecol id="passwordCol" label="&treehead.password.label;" flex="2"
    1.73 +                 onclick="SignonColumnSort('password');" persist="width"
    1.74 +                 hidden="true"/>
    1.75 +      </treecols>
    1.76 +      <treechildren/>
    1.77 +    </tree>
    1.78 +    <separator class="thin"/>
    1.79 +    <hbox id="SignonViewerButtons">
    1.80 +      <button id="removeSignon" disabled="true" icon="remove"
    1.81 +              label="&remove.label;" accesskey="&remove.accesskey;"
    1.82 +              oncommand="DeleteSignon();"/>
    1.83 +      <button id="removeAllSignons" icon="clear"
    1.84 +              label="&removeall.label;" accesskey="&removeall.accesskey;"
    1.85 +              oncommand="DeleteAllSignons();"/>
    1.86 +      <spacer flex="1"/>
    1.87 +      <button id="togglePasswords"
    1.88 +              oncommand="TogglePasswordVisible();"/>
    1.89 +    </hbox>
    1.90 +  </vbox>
    1.91 +  <hbox align="end">
    1.92 +    <hbox class="actionButtons" flex="1">
    1.93 +      <spacer flex="1"/>
    1.94 +#ifndef XP_MACOSX
    1.95 +      <button oncommand="close();" icon="close"
    1.96 +              label="&closebutton.label;" accesskey="&closebutton.accesskey;"/>
    1.97 +#endif
    1.98 +    </hbox>
    1.99 +    <resizer type="window" dir="bottomend"/>
   1.100 +  </hbox>
   1.101 +</window>

mercurial