~ubuntu-branches/debian/stretch/all-in-one-sidebar/stretch

« back to all changes in this revision

Viewing changes to content/addons.xml

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2013-09-09 19:59:25 UTC
  • mfrom: (1.1.5) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130909195925-8dtwzmf4o662becs
Tags: 0.7.20-1
* Team upload
* Imported Upstream version 0.7.20
* Remove now useless DMUA
* Remove now useless version in Build-Depends
* Update Vcs to canonical URI
* Bump standards version to 3.9.4
* Add Breaks for xul-ext
* Remove now useless Replaces
* Update copyright, convert it to format 1.0
* Add upstream changelog
* No phone home on install and upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
 
3
 
<!DOCTYPE page [
4
 
    <!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd"> %extensionsDTD;
5
 
]>
6
 
 
7
 
<bindings xmlns="http://www.mozilla.org/xbl"
8
 
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
9
 
          xmlns:xbl="http://www.mozilla.org/xbl">
10
 
 
11
 
    <binding id="richlistitem" extends="chrome://mozapps/content/extensions/extensions.xml#addon-generic">
12
 
        <content>
13
 
            <xul:hbox anonid="warning-container" align="center"
14
 
                class="warning">
15
 
                <xul:image class="warning-icon"/>
16
 
                <xul:label anonid="warning" flex="1"/>
17
 
                <xul:label anonid="warning-link" class="text-link"/>
18
 
                <xul:button anonid="warning-btn" class="button-link"/>
19
 
 
20
 
                <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
21
 
            </xul:hbox>
22
 
            <xul:hbox anonid="error-container" align="center"
23
 
                class="error">
24
 
                <xul:image class="error-icon"/>
25
 
                <xul:label anonid="error" flex="1"/>
26
 
                <xul:label anonid="error-link" class="text-link"/>
27
 
                <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
28
 
            </xul:hbox>
29
 
 
30
 
            <xul:hbox anonid="pending-container" align="left"
31
 
                class="pending">
32
 
                <xul:image class="pending-icon"/>
33
 
                <xul:label anonid="pending" flex="1"/>
34
 
                <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
35
 
                <xul:vbox align="end">
36
 
                    <xul:button anonid="restart-btn" class="button-link"
37
 
                        label="&addon.restartNow.label;"
38
 
                        oncommand="document.getBindingParent(this).restart();"/>
39
 
                    <xul:button anonid="undo-btn" class="button-link"
40
 
                        label="&addon.undoAction.label;"
41
 
                        tooltipText="&addon.undoAction.tooltip;"
42
 
                        oncommand="document.getBindingParent(this).undo(); /*AiOS_Addons.hideNotification();*/"/>
43
 
                </xul:vbox>
44
 
            </xul:hbox>
45
 
 
46
 
            <xul:hbox>
47
 
 
48
 
                <xul:vbox align="center" pack="start" class="icon-container">
49
 
                    <xul:image anonid="icon" class="icon"/>
50
 
                </xul:vbox>
51
 
                <xul:vbox flex="1">
52
 
                    <xul:hbox align="start">
53
 
                        <xul:vbox flex="1">
54
 
                            <xul:hbox class="name-container">
55
 
                                <xul:label anonid="name" class="name" crop="end" flex="1"
56
 
                           xbl:inherits="value=name,tooltiptext=name"/>
57
 
                                <xul:label anonid="version" class="version"/>
58
 
 
59
 
                                <xul:label class="disabled-postfix" value="&addon.disabled.postfix;"/>
60
 
                                <xul:label class="update-postfix" value="&addon.update.postfix;"/>
61
 
                                <xul:spacer flex="5000"/> <!-- Necessary to make the name crop -->
62
 
                            </xul:hbox>
63
 
                            <xul:hbox>
64
 
                                <xul:label anonid="creator" class="creator"/>
65
 
                                <xul:spacer flex="1" />
66
 
                                <xul:label anonid="date-updated" class="date-updated" unknown="&addon.unknownDate;"  />
67
 
                            </xul:hbox>
68
 
                        </xul:vbox>
69
 
                    </xul:hbox>
70
 
 
71
 
                    <xul:hbox flex="1" orient="vertical" class="aios-container">
72
 
                        <xul:vbox flex="1">
73
 
                            <xul:hbox align="center" class="description-container">
74
 
                                <xul:label flex="1" anonid="description" class="description" crop="end"/>
75
 
                                <xul:button anonid="details-btn" class="details button-link"
76
 
                            label="&addon.details.label;"
77
 
                            tooltiptext="&addon.details.tooltip;"
78
 
                            oncommand="document.getBindingParent(this).showInDetailView();"/>
79
 
                                <xul:spacer flex="5000"/> <!-- Necessary to make the description crop -->
80
 
                            </xul:hbox>
81
 
                            <xul:vbox anonid="relnotes-container" class="relnotes-container">
82
 
 
83
 
                                <xul:label class="relnotes-header" value="&addon.releaseNotes.label;"/>
84
 
                                <xul:label anonid="relnotes-loading" value="&addon.loadingReleaseNotes.label;"/>
85
 
                                <xul:label anonid="relnotes-error" hidden="true"
86
 
                           value="&addon.errorLoadingReleaseNotes.label;"/>
87
 
                                <xul:vbox anonid="relnotes" class="relnotes"/>
88
 
                            </xul:vbox>
89
 
                            <xul:hbox pack="start">
90
 
                                <xul:button anonid="relnotes-toggle-btn" class="relnotes-toggle"
91
 
                            hidden="true" label="&cmd.showReleaseNotes.label;"
92
 
                            tooltiptext="&cmd.showReleaseNotes.tooltip;"
93
 
                            showlabel="&cmd.showReleaseNotes.label;"
94
 
                            showtooltip="&cmd.showReleaseNotes.tooltip;"
95
 
                            hidelabel="&cmd.hideReleaseNotes.label;"
96
 
                            hidetooltip="&cmd.hideReleaseNotes.tooltip;"
97
 
                            oncommand="document.getBindingParent(this).toggleReleaseNotes();"/>
98
 
                            </xul:hbox>
99
 
                        </xul:vbox>
100
 
 
101
 
                        <xul:vbox>
102
 
                            <xul:hbox class="status-container" pack="end">
103
 
                                <xul:hbox anonid="checking-update" hidden="true">
104
 
                                    <xul:image class="spinner"/>
105
 
                                    <xul:label value="&addon.checkingForUpdates.label;"/>
106
 
                                </xul:hbox>
107
 
                                <xul:vbox anonid="update-available" class="update-available"
108
 
                          hidden="true" align="end">
109
 
                                    <xul:checkbox anonid="include-update" class="include-update"
110
 
                                label="&addon.includeUpdate.label;" checked="true"
111
 
                                oncommand="document.getBindingParent(this).onIncludeUpdateChanged();"/>
112
 
                                    <xul:hbox align="center">
113
 
 
114
 
                                        <xul:label class="update-available-notice"
115
 
                               value="&addon.updateAvailable.label;"/>
116
 
                                        <xul:button anonid="update-btn" class="addon-control update"
117
 
                                label="&addon.updateNow.label;"
118
 
                                tooltiptext="&addon.updateNow.tooltip;"
119
 
                                oncommand="document.getBindingParent(this).upgrade();"/>
120
 
                                    </xul:hbox>
121
 
                                </xul:vbox>
122
 
                                <xul:hbox anonid="install-status" class="install-status"
123
 
                          hidden="true"/>
124
 
                            </xul:hbox>
125
 
                            <xul:hbox anonid="control-container" class="control-container"
126
 
                        pack="end">
127
 
                                <xul:button anonid="preferences-btn"
128
 
                            class="addon-control preferences"
129
 
                            label="&cmd.showPreferencesWin.label;"
130
 
                            tooltiptext="&cmd.showPreferencesWin.tooltip;"
131
 
                            oncommand="document.getBindingParent(this).showPreferences();"/>
132
 
                                <xul:button anonid="enable-btn"  class="addon-control enable"
133
 
                            label="&cmd.enableAddon.label;"
134
 
                            oncommand="document.getBindingParent(this).userDisabled = false;"/>
135
 
 
136
 
                                <xul:button anonid="disable-btn" class="addon-control disable"
137
 
                            label="&cmd.disableAddon.label;"
138
 
                            oncommand="document.getBindingParent(this).userDisabled = true;"/>
139
 
                                <xul:button anonid="remove-btn" class="addon-control remove"
140
 
                            label="&cmd.uninstallAddon.label;"
141
 
                            oncommand="document.getBindingParent(this).uninstall();"/>
142
 
                            </xul:hbox>
143
 
                        </xul:vbox>
144
 
                    </xul:hbox>
145
 
                </xul:vbox>
146
 
            </xul:hbox>
147
 
        </content>
148
 
 
149
 
    <!-- Datum im kurzen Format ohne Tag am Anfang -->
150
 
        <implementation>
151
 
            <method name="_updateDates">
152
 
                <body><![CDATA[
153
 
          function formatDate(aDate) {
154
 
            return Cc["@mozilla.org/intl/scriptabledateformat;1"]
155
 
                     .getService(Ci.nsIScriptableDateFormat)
156
 
                     .FormatDate("",
157
 
                                 Ci.nsIScriptableDateFormat.dateFormatShort,
158
 
                                 aDate.getFullYear(),
159
 
                                 aDate.getMonth() + 1,
160
 
                                 aDate.getDate()
161
 
                                 );
162
 
          }
163
 
 
164
 
          if (this.mAddon.updateDate)
165
 
            this._dateUpdated.value = formatDate(this.mAddon.updateDate);
166
 
          else
167
 
            this._dateUpdated.value = this._dateUpdated.getAttribute("unknown");
168
 
        ]]>
169
 
                </body>
170
 
            </method>
171
 
 
172
 
            <method name="showInDetailView">
173
 
                <parameter name="aEvent"/>
174
 
                <body><![CDATA[
175
 
          if(this.getAttribute("aiosOpenPrefs")) this.removeAttribute("aiosOpenPrefs");
176
 
          else gViewController.loadView("addons://detail/" + encodeURIComponent(this.mAddon.id));
177
 
        ]]>
178
 
                </body>
179
 
            </method>
180
 
        </implementation>
181
 
 
182
 
        <handlers>
183
 
            <handler event="click" button="0"><![CDATA[
184
 
        switch (event.detail) {
185
 
        case 2:
186
 
          this.setAttribute("aiosOpenPrefs", true);
187
 
          this.showPreferences();
188
 
          break;
189
 
        }
190
 
      ]]>
191
 
            </handler>
192
 
        </handlers>
193
 
 
194
 
    </binding>
195
 
 
196
 
 
197
 
    <binding id="textlink" extends="chrome://global/content/bindings/text.xml#text-link">
198
 
    
199
 
        <implementation implements="nsIAccessibleProvider">
200
 
            <method name="open">
201
 
                <parameter name="aEvent"/>
202
 
                <body>
203
 
        <![CDATA[
204
 
            top.gBrowser.loadOneTab(this.href);
205
 
            aEvent.preventDefault();
206
 
        ]]>
207
 
                </body>
208
 
            </method>
209
 
        </implementation>
210
 
 
211
 
    </binding>
212
 
 
213
 
</bindings>
 
 
b'\\ No newline at end of file'