/
console.xml
91 lines (88 loc) · 4.39 KB
/
console.xml
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
<a:application xmlns:a="http://ajax.org/2005/aml">
<a:bar id="winDbgConsole" height="30" zindex="1000">
<a:vbox anchors="0 0 0 0">
<a:tab id="tabConsole" skin="tab_console" flex="1" visible="false" render2="runtime" buttons="scale,order"
onclose="return require('ext/console/console').checkIfPageCanClose(event)">
<a:hbox pack="end" top="2" right="3" height="24" align="center" padding="0">
<a:button id="btnConsoleClear" skin="btn_icon_only" icon="console_clear.png" margin="2 2 0 0"
onclick = "require('ext/console/console').clear()" />
<a:button id="btnConsoleSettings" skin="btn_icon_only"
icon = "console_settings.png"
margin = "2 4 0 0"
submenu = "mnuConsoleSettings" />
<a:button id="btnConsoleMax" skin="btn_icon_only" icon="console_max.png" state="true" margin="2 2 0 0"
onclick = "
var console = require('ext/console/console');
if (this.value)
console.maximizeConsoleHeight();
else
console.restoreConsoleHeight();
"/>
<a:divider skin="divider_console"></a:divider>
<a:button
skin="btn_icon_only"
icon="console_close_btn.png"
class="dim22-22"
margin="1 0 0 1"
onclick="require('ext/console/console').hide()"/>
</a:hbox>
<a:page id="pgConsole" caption="Console" name="console">
<a:text id="txtConsole"
margin = "3 0 0 0"
anchors = "0 17 0 0"
flex = "1"
scrolldown = "true"
focussable = "true"
textselect = "true"
class = "console_text" />
<a:scrollbar
for = "txtConsole"
right = "0"
top = "0"
bottom = "0"
skin = "console_scrollbar"
width = "17" />
</a:page>
<a:page id="pgOutput" caption="Output" name="output">
<a:text id="txtOutput"
margin = "3 0 0 0"
anchors = "0 17 0 0"
flex = "1"
scrolldown = "true"
focussable = "true"
textselect = "true"
class = "console_text" />
<a:scrollbar
for = "txtOutput"
right = "0"
top = "0"
bottom = "0"
skin = "console_scrollbar"
width = "17" />
</a:page>
</a:tab>
<a:menu id="mnuConsoleSettings">
<a:item type="check"
checked = "[{require('core/settings').model}::auto/console/@autoshow]"
caption = "Auto-show console when running" />
<!--a:item type="check"
checked = "[{require('core/settings').model}::auto/console/@clearonrun]"
caption = "Clear output on run" /-->
</a:menu>
<a:hbox id="cliBox" class="consoleInputBox" edge="1 1 2 1" padding="4" pack="end" visible="false">
<a:text id="txtConsolePrompt"
class="txt_console_prompt"
visible="false"
value="" />
<a:codebox id="txtConsoleInput"
initial-message = 'Type "help" to get a list of commands'
margin = "2 1 1 5"
skin = "tb_console"
flex = "1" />
<a:button id="btnCollapseConsole" skin="btn_console_open" icon="switch.png" state="true" height="27"
value = "{!!tabConsole.visible}"
onprop.value="try { require('ext/console/console')[event.value ? 'show' : 'hide'](); } catch(e) {} " />
</a:hbox>
</a:vbox>
</a:bar>
</a:application>