~ubuntu-branches/ubuntu/karmic/all-in-one-sidebar/karmic

« back to all changes in this revision

Viewing changes to chrome/aios.jar!/content/etd_downloads.xul

  • Committer: Bazaar Package Importer
  • Author(s): Sveinung Kvilhaugsvik
  • Date: 2009-08-04 19:25:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090804192510-u4bm1ehm9ve4zdne
Tags: 0.7.10-0ubuntu1
* new upstream release (LP: #398535)
* list firefox-3.5 as alternate dependency
* depend on ${misc:Depends} to fix lintian warning
* changed maintainer field do to change in rules
* merged all-in-one-sidebar 0.7.4-0ubuntu2
   + replace current watchfile with the one from it
   + add the change log entry from it
   + discard it's other changes
* bump standards-version to 3.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
 
3
 
<!-- skin -->
4
 
<?xml-stylesheet href="chrome://aios/skin/downloads.css"?>
5
 
 
6
 
<!-- locale -->
7
 
<!DOCTYPE overlay [
8
 
        <!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd"> %downloadManagerDTD;
9
 
        
10
 
        <!ENTITY % libDTD SYSTEM "chrome://aios/locale/lib.dtd"> %libDTD;
11
 
]>
12
 
 
13
 
<overlay id="aios_DownloadsOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
14
 
 
15
 
        <script type="application/x-javascript" src="chrome://aios/content/_common.js" />
16
 
 
17
 
        <script><![CDATA[
18
 
/*
19
 
                // Download-Fenster hier schon schlie�en => sonst geht die Fortschrittsanzeige in der Sidebar nicht
20
 
        //      => !top.document.getElementById('sidebar') => ich bin keine Sidebar
21
 
        //      => top.toString() != "[object Window]" => ich bin kein Tab
22
 
        if(!top.document.getElementById('sidebar') && top.toString() != "[object Window]") {
23
 
                var enable_sidebar = aios_gPrefBranch.getBoolPref("dm.sidebar");
24
 
 
25
 
                // enable_sidebar => Manager soll in der Sidebar ge�ffnet werden
26
 
                // !opener (!aios_WIN.aiosIsWindow) => nicht explizit im Fenster (z.B. durch Shift+Linksklick auf Toolbarbutton)
27
 
                // !aios_WIN.aiosIsWindow weil sonst das Fenster nicht geschlossen w�rde,
28
 
                  // wenn es durch Klick auf das "Downloads-Fertig-Popup" ge�ffnet wurde
29
 
 
30
 
                //if(enable_sidebar && !opener) {
31
 
                if(enable_sidebar && !aios_WIN.aiosIsWindow) {
32
 
                        // wenn die Sidebar nicht schon ge�ffnet ist (z.B. Aufruf durch MR Tech Local Install)
33
 
                        if(!aios_WIN.aios_getBoolean('viewDownloadsSidebar', 'checked')) aios_WIN.toggleSidebar('viewDownloadsSidebar', true);
34
 
                        window.close();
35
 
                }
36
 
        }
37
 
*/
38
 
        //if(top.document.getElementById('sidebar')) window.setTimeout(aios_updateListener, 100);
39
 
        window.setInterval("aios_updateListener()", 1000);
40
 
 
41
 
    /*function aios_updateListener() {
42
 
      //while(gDownloadManager.listener == null) {
43
 
        if(typeof gDownloadManager == "object") {
44
 
          if(gDownloadManager.listener == null) return false;
45
 
          // The DownloadProgressListener (DownloadProgressListener.js) handles progress
46
 
          // notifications.
47
 
          var downloadStrings = document.getElementById("downloadStrings");
48
 
          gDownloadListener = new DownloadProgressListener(document, downloadStrings);
49
 
          gDownloadManager.listener = gDownloadListener;
50
 
        }
51
 
      //}
52
 
      return true;
53
 
    }*/
54
 
    
55
 
    
56
 
    function aios_updateListener() {
57
 
      //while(gDownloadManager.listener == null) {
58
 
        if(gDownloadManager.listener == null && aios_appVersion.indexOf('3.0') != 0) {
59
 
          // The DownloadProgressListener (DownloadProgressListener.js) handles progress
60
 
          // notifications.
61
 
          var downloadStrings = document.getElementById("downloadStrings");
62
 
          gDownloadListener = new DownloadProgressListener(document, downloadStrings);
63
 
          gDownloadManager.listener = gDownloadListener;
64
 
        }
65
 
      //}
66
 
    }
67
 
    
68
 
        ]]></script>
69
 
 
70
 
        <script type="application/x-javascript" src="chrome://aios/content/etd.js" />
71
 
 
72
 
 
73
 
        <hbox id="autodownloadInfo">
74
 
                <label id="downloadFolder" position="1" hidden="true">&dwnl.saved.label;</label>
75
 
        </hbox>
76
 
 
77
 
        <hbox id="commandBar">
78
 
 
79
 
    <button id="aios-toolsButton" type="menu" label="&menu.tools.label;" tooltiptext="&menu.tools.tooltip;">
80
 
 
81
 
        <menupopup id="aios-toolsPopup" onpopupshowing="aios_checkToolsMenu(this);">
82
 
 
83
 
                <menuitem id="menuitem_open" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'open');"
84
 
                        label="&cmd.open.label;" tooltiptext="&cmd.open.label;" accesskey="&cmd.open.accesskey;" default="true"
85
 
                        class="menuitem-iconic" />
86
 
 
87
 
                <menuitem id="menuitem_retry" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'retry');"
88
 
                        label="&cmd.retry.label;" tooltiptext="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
89
 
                        class="menuitem-iconic" />
90
 
 
91
 
                <menuitem id="menuitem_show" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'show');"
92
 
                        label="&cmd.show.label;" tooltiptext="&cmd.show.label;" accesskey="&cmd.show.accesskey;"
93
 
                        class="menuitem-iconic" />
94
 
<!--
95
 
                <menuitem id="menuitem_remove" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'remove');"
96
 
                        label="&cmd.remove.label;" tooltiptext="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
97
 
                        class="menuitem-iconic" />
98
 
 
99
 
            <menuitem id="menuitem_properties" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'properties');"
100
 
                        label="&cmd.properties.label;" tooltiptext="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
101
 
                        class="menuitem-iconic" />
102
 
-->                     
103
 
                <menuitem id="menuitem_properties" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'properties');"
104
 
                        label="&dwnl.props.label;" tooltiptext="&dwnl.props.label;" class="menuitem-iconic" />
105
 
 
106
 
                <menuseparator />
107
 
 
108
 
                <menuitem id="menuitem_Folder" oncommand="onDownloadShowFolder();"
109
 
                        tooltiptext="&showFolder.label;" class="menuitem-iconic" />
110
 
<!--
111
 
                <menuitem id="menuitem_cleanUp" command="cmd_cleanUp" accesskey="&cmd.cleanUp.accesskey;"
112
 
                        label="&cmd.cleanUp.label;" tooltiptext="&cmd.cleanUp.tooltip;" class="menuitem-iconic" />
113
 
-->
114
 
        </menupopup>
115
 
    </button>
116
 
 
117
 
        </hbox>
118
 
 
119
 
        <script><![CDATA[
120
 
 
121
 
                if(typeof aios_init == "function") window.addEventListener("load", function(e) { aios_init(); }, false);
122
 
 
123
 
        ]]></script>
124
 
 
125
 
</overlay>
 
 
b'\\ No newline at end of file'