aboutsummaryrefslogtreecommitdiffstatsci
path: root/ui/winLog.crow
blob: 666d7e9b06e0c1246cb5aafc4f55cf8de72c9a04 (plain)
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
<?xml version="1.0"?>
<Window Caption="Log" Width="Stretched" Height="40%" VerticalAlignment="Top" >
	<Template>
		<Border Name="SizeHandle" Style="winBorder" CornerRadius="{./CornerRadius}" Background="{./Background}" >
			<Group>
				<Group Margin="2" Height="Fit" VerticalAlignment="Top">
					<Label Font="serif, 18" Name="MoveHandle" Width="90%" Foreground="${WindowTitleBarForeground" Margin="1" TextAlignment="Center" Text="{./Caption}" />
					<ListBox Data="{./Commands}" Fit="true" HorizontalAlignment="Right" VerticalAlignment="Top">
						<Template>
							<HorizontalStack Name="ItemsContainer" />
						</Template>
						<ItemTemplate Path="#Crow.WindowButton.template"/>
					</ListBox>
				</Group>
				<Container Name="Content" MinimumSize="0,0" Height="95%" VerticalAlignment="Bottom" />
			</Group>
		</Border>	
	</Template>
	<VerticalStack RootDataLevel="true" >
		<HorizontalStack Height="Fit">
			<CheckBox MinimumSize = "80,20" Caption="Scroll on Output" IsChecked="{²../../log.ScrollOnOutput}"/>
		</HorizontalStack>
		<HorizontalStack Spacing="0">
			<LogViewerWidget Name="log" Lines="{MainLog}" Font="${LogFont}" MaxScrollX="1000" ContextCommands="{LogContextMenu}"/>
			<ScrollBar Name="scrollbarY" Value="{²../log.ScrollY}" CursorRatio="{../log.ChildHeightRatio}" Maximum="{../log.MaxScrollY}" />
		</HorizontalStack>
		<ScrollBar Style="HScrollBar" Name="scrollbarX" Value="{²../log.ScrollX}" Maximum="{../log.MaxScrollX}" SmallIncrement="30"/>
	</VerticalStack>
</Window>