aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/CrowIDE.crow
blob: 9e2694f99deaed4657c818730fffa45eeaba1039 (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
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
<?xml version="1.0"?>
<Window Height="Stretched" Width="Stretched" >
	<VerticalStack>
		<Menu>
			<MenuItem Caption="File" Width="Fit" PopWidth="120">
				<MenuItem Command="{CMDNew}" />
				<MenuItem Command="{CMDOpen}" />
				<MenuItem Command="{CMDSave}" />
				<MenuItem Command="{CMDSaveAs}" />
				<MenuItem Command="{CMDQuit}" />
			</MenuItem>
			<MenuItem Caption="Edit" Name="edit" Width="Fit" PopWidth="100">
				<MenuItem Command="{CMDUndo}" />
				<MenuItem Command="{CMDRedo}" />
				<MenuItem Command="{CMDCut}" />
				<MenuItem Command="{CMDCopy}" />
				<MenuItem Command="{CMDPaste}" />
				<MenuItem Command="{CMDOptions}"/>
			</MenuItem>
			<MenuItem Caption="View" Fit="true" PopWidth="150">
				<MenuItem Command="{CMDViewGTExp}"/>
				<MenuItem Command="{CMDViewProps}"/>
				<MenuItem Command="{CMDViewProj}"/>
			</MenuItem>
			<MenuItem Caption="Project" Fit="true" PopWidth="120">
				<MenuItem Command="{CMDCompile}"/>
				<MenuItem Command="{CMDViewProjProps}"/>
			</MenuItem>
			<MenuItem Caption="Help" Width="Fit" PopWidth="60">
				<MenuItem Caption="About"/>
				<MenuItem Command="{CMDHelp}"/>
			</MenuItem>
		</Menu>
		<VerticalStack DataSource="{CurrentSolution}">
			<Label Background="Gray" Text="{SelectedItem}" Width="Stretched" TextAlignment="Left"/>
			<HorizontalStack Height="80%">
				<EditPane SelectedItem="{SelectedItem}" SelectedItemElement="{²SelectedItemElement}" Data="{OpenedItems}" DataTest="Extension"
					ItemTemplate="#Crow.Coding.ui.EditPaneItems.template"/>
				<Splitter/>
				<VerticalStack Width="30%">
					<TreeView Name="treeview" Height="50%" IsRoot="true"
						Data="{Projects}" SelectedItemChanged="onSelectedItemChanged"
						ItemTemplate="#Crow.Coding.ui.ProjectTree.template"/>
					<Splitter/>
					<MembersView ProjectNode="{SelectedItem}"
						Instance="{SelectedItemElement}" DataTest="Type"
						ItemTemplate="#Crow.Coding.ui.MembersItem.template"/>
				</VerticalStack>
			</HorizontalStack>
			<Splitter/>
			<ListBox Width="Stretched" Data="{CompilerErrors}">
				<ItemTemplate>
					<HorizontalStack Height="Fit" Margin="0" Focusable="true" Spacing="10"
							MouseEnter="{Background=SteelBlue}"
							MouseLeave="{Background=Transparent}">						
						<Image Width="10" Height="10" Path="#Crow.Icons.compiler_error.svg" SvgSub="{IsWarning}"/>
						<Label Text="{Line}" Width="25" TextAlignment="Right"/>
						<Label Text="{ErrorText}" Width="60%"/>
						<Label Text="{FileName}" Width="Fit"/>
					</HorizontalStack>
				</ItemTemplate>
			</ListBox>
		</VerticalStack>
		
	</VerticalStack>
</Window>