aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/IMLEdit.itemp
blob: 221cbe07c58877782630d8672d7c6367e70758c5 (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
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8" ?>
<TabItem Caption="{DisplayName}" QueryClose="OnQueryClose">
	<VerticalStack>
		<Label Width="Stretched" Margin="1" Text="{HoverWidget}"/>
		<ImlVisualEditor Height="60%" Margin="0" MinimumSize="10,10" Foreground="SkyBlue"					
			ProjectNode="{}" SelectedItem="{²SelectedItem}"
			Name="crowContainer" Background="Onyx"/>
		<Splitter/>
		<HorizontalStack Height="Stretched" >
			<SourceEditor Focusable="true" Name="editor" Font="monospace, 12" VerticalAlignment="Top" Margin="4"
					Foreground="Jet" Background="White" Width="Stretched" Height="Stretched"
					CurrentLine="{²CurrentLine}" CurrentColumn="{²CurrentColumn}"
					PrintLineNumbers="true"
					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 Name="scrollbarX" Value="{²../editor.ScrollX}"
				Maximum="{../editor.MaxScrollX}" Orientation="Horizontal"
				Height="14" />
		<Label DataSource="{../../crowContainer.IMLError}" Text="{Message}"
			Visible="{../../crowContainer.HasError}"
			Height="Fit" Width="Stretched" Background="DarkRed" Foreground="White"
			TextAlignment="TopLeft" Multiline="true"/>			
		<HorizontalStack Height="Fit">				
			<GraphicObject Height="5" Width="Stretched"/>
			<GraphicObject Background="Red" Width="5" Height="5" Visible="{IsDirty}"/>
			<Label Text="column:"/>
			<Label Text="{CurrentColumn}" Font="droid bold, 10"/>
			<Label Text="line:"/>
			<Label Text="{CurrentLine}" Font="droid bold, 10"/>
			<Label Text="ScrollX:"/>
			<Label Text="{../../editor.ScrollX}"/>
		</HorizontalStack>
	</VerticalStack>
</TabItem>