aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/editors/SourceEditor.crow
blob: 6255c96afa9cbe46fd18349fe739b5884bd3eb4b (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
31
32
33
34
<?xml version="1.0" encoding="UTF-8" ?>
<VerticalStack>
	<HorizontalStack >
		<SourceEditor Focusable="true" Name="editor" Font="monospace, 12" VerticalAlignment="Top" Margin="10"
				CurrentLine="{²CurrentLine}" CurrentColumn="{²CurrentColumn}"
				Foreground="Jet" Background="White" Width="Stretched" Height="Stretched"
				ProjectNode="{}"  KeyDown="textView_KeyDown"/>
		<ScrollBar Name="scrollbarY" Value="{²../editor.ScrollY}"
				   LargeIncrement="{../editor.VisibleLines}"
				   CursorSize="{../editor.ChildHeightRatio}"
			Maximum="{../editor.MaxScrollY}" Orientation="Vertical"
			Width="14" />
	</HorizontalStack>
	<ScrollBar Style="HScrollBar" Name="scrollbarX" Value="{²../editor.ScrollX}"
			Maximum="{../editor.MaxScrollX}" Orientation="Horizontal"
			LargeIncrement="{../editor.VisibleColumns}"
			CursorSize="{../editor.ChildWidthRatio}"
			Height="14" />			
	<HorizontalStack Height="Fit">
		<Label Text="{../../editor.HoverError}" Width="Stretched"/>
		<GraphicObject Background="Red" Width="5" Height="5" Visible="{IsDirty}"/>
		<Label Text="Hover Line:" Foreground="Gray"/>
		<Label Text="{../../editor.HoverLine}"/>
		<GraphicObject Height="5" Width="10"/>
		<Label Text="Line:" Foreground="Gray"/>
		<Label Text="{CurrentLine}"/>
		<GraphicObject Height="5" Width="10"/>
		<Label Text="column:" Foreground="Gray"/>
		<Label Text="{CurrentColumn}"/>
		<GraphicObject Height="5" Width="10"/>
		<Label Text="ScrollX:" Foreground="Gray"/>
		<Label Text="{../../editor.ScrollX}"/>
	</HorizontalStack>
</VerticalStack>