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

« back to all changes in this revision

Viewing changes to chrome/aios.jar!/content/console.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/console.css"?>
5
 
 
6
 
<!-- locale -->
7
 
<!DOCTYPE overlay [
8
 
        <!ENTITY % aiosDTD SYSTEM "chrome://aios/locale/aios.dtd"> %aiosDTD;
9
 
]>
10
 
 
11
 
<overlay id="aios_consoleOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
12
 
 
13
 
        <script type="application/x-javascript" src="chrome://aios/content/_common.js" />
14
 
 
15
 
        <script><![CDATA[
16
 
 
17
 
                window.addEventListener("load", function(e) {
18
 
 
19
 
                        try {
20
 
                                var enable_layout = aios_gPrefBranch.getBoolPref("co.layout");
21
 
                                var enable_layoutall = aios_gPrefBranch.getBoolPref("co.layoutall");
22
 
                                var enable_colors = aios_gPrefBranch.getBoolPref("co.colors");
23
 
                                var enable_slim = aios_gPrefBranch.getBoolPref("co.slim");
24
 
                                
25
 
                                var aios_inSidebar = (top.document.getElementById('sidebar-box')) ? true : false;
26
 
                        }
27
 
                        catch(e) { }
28
 
      
29
 
      // Window-Element ermitteln
30
 
      var conWindow;
31
 
      if(document.getElementById('JSConsoleWindow')) conWindow = document.getElementById('JSConsoleWindow');
32
 
      if(document.getElementById('Console2Window')) conWindow = document.getElementById('Console2Window');
33
 
      if(!conWindow) return;
34
 
      
35
 
                        // Farben aktivieren?
36
 
                        if(enable_colors) conWindow.setAttribute('aiosColors', true);
37
 
                        
38
 
                        // Slim-List aktivieren?
39
 
                        if(enable_slim) conWindow.setAttribute('aiosSlim', true);
40
 
                        
41
 
                        
42
 
                        // Layout-Optimierungen aktivieren?
43
 
                        if((enable_layout && aios_inSidebar) || enable_layoutall) {
44
 
                                
45
 
                                conWindow.setAttribute('aiosLayout', true);
46
 
                                
47
 
                                // Fx-Error-Console
48
 
                                if(conWindow.id == "JSConsoleWindow") {
49
 
                                        // Spacer erzeugen und einfuegen
50
 
                                        var new_spacer = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "spacer");
51
 
                                        new_spacer.setAttribute("flex", 1);
52
 
                                        var theToolbar = document.getElementById('ToolbarMode');
53
 
                                        theToolbar.insertBefore(new_spacer, theToolbar.childNodes[theToolbar.childNodes.length - 2]);
54
 
          
55
 
          // Toolbarbuttons mit Tooltip
56
 
          if(document.getElementById("ToolbarMode")) {
57
 
                        var tbChilds = document.getElementById("ToolbarMode").childNodes;
58
 
                        for(var i = 0; i < tbChilds.length; i++) {
59
 
                                if(tbChilds[i].tagName == "toolbarbutton") tbChilds[i].setAttribute('tooltiptext', tbChilds[i].getAttribute('label'));
60
 
                        }
61
 
                }
62
 
                                }
63
 
                        }
64
 
                        
65
 
                        // Trigger f�r den h�bschen Hintergrund in Fx 3.0 => console.css
66
 
                        if(aios_appVersion.indexOf('3.0') == 0 && conWindow.id == "Console2Window") conWindow.setAttribute('fx', '3');
67
 
                        
68
 
                }, false);
69
 
 
70
 
        ]]></script>
71
 
 
72
 
</overlay>
 
 
b'\\ No newline at end of file'