forked from c9/cloud9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.xml
More file actions
94 lines (92 loc) · 4.54 KB
/
Copy pathconsole.xml
File metadata and controls
94 lines (92 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<a:application xmlns:a="http://ajax.org/2005/aml">
<div id="barConsoleHints" class="barConsoleHints"/>
<a:bar id="winDbgConsole" skin="basic" height="41">
<a:vbox height="{winDbgConsole.height}">
<a:tab id="tabConsole" skin="tab_console" flex="1" visible="false">
<a:button skin="btn_icon_only" icon="console_max.png" top="4" right="5" state="true" visible="false"
onprop.value = "
if (event.value) {
document.body.appendChild(winDbgConsole.$ext);
winDbgConsole.$ext.style.position = 'absolute';
winDbgConsole.$ext.style.left = 0;
winDbgConsole.$ext.style.top = 0;
winDbgConsole.$ext.style.right = 0;
winDbgConsole.$ext.style.bottom = 0;
winDbgConsole.$ext.style.width = 'auto';
winDbgConsole.lastHeight = winDbgConsole.height;
winDbgConsole.setAttribute('height', '100%');
winDbgConsole.$ext.style.zIndex = 9999;
}
else {
winDbgConsole.parentNode.$int.appendChild(winDbgConsole.$ext);
winDbgConsole.$ext.style.position = 'relative';
winDbgConsole.$ext.style.width = '1px';
winDbgConsole.setAttribute('height', winDbgConsole.lastHeight);
winDbgConsole.$ext.style.zIndex = 1;
}
"/>
<a:button skin="btn_icon_only" icon="console_clear.png" top="4" right="32"
onclick = "
if (tabConsole.activepagenr == 0)
txtConsole.clear();
else if (tabConsole.activepagenr == 1)
txtOutput.clear();
"/>
<a:divider skin="divider_console" top="2" right="26"></a:divider>
<a:button
skin="btn_icon_only"
icon="console_close_btn.png"
class="dim22-22"
top="3" right="3"
onclick = "require('ext/console/console').disable()"/>
<a:page caption="Console" name="console">
<a:hbox anchors="0 0 0 0">
<a:text id="txtConsole"
margin = "3 0 0 0"
flex = "1"
scrolldown = "true"
textselect = "true"
focussable = "true"
class = "console_text" />
<a:scrollbar
for = "txtConsole"
margin = "0"
skin = "console_scrollbar"
width = "17" />
</a:hbox>
</a:page>
<a:page caption="Output" name="output">
<a:hbox anchors="0 0 0 0">
<a:text id="txtOutput"
margin = "3 0 0 0"
flex = "1"
scrolldown = "true"
textselect = "true"
focussable = "true"
class = "console_text" />
<a:scrollbar
for = "txtOutput"
margin = "0"
skin = "console_scrollbar"
width = "17" />
</a:hbox>
</a:page>
</a:tab>
<a:hbox class="consoleInputBox" edge="1" padding="4">
<a:textbox id="txtConsoleInput"
margin = "4 0 0"
skin = "tb_console"
flex = "1"
onkeydown = "return require('ext/console/console').keydownHandler(event)"
onkeyup = "return require('ext/console/console').keyupHandler(event)" />
<a:button id="btnCollapseConsole" skin="btn_console_open" icon="console-btn.png" state="true" height="38"
value = "{tabConsole.visible}"
onprop.value="
try {
require('ext/console/console')[event.value ? 'enable' : 'disable']();
}catch(e){}
" />
</a:hbox>
</a:vbox>
</a:bar>
</a:application>