aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/CrowIDE/ui/DockWindows
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/CrowIDE/ui/DockWindows')
-rw-r--r--Samples/CrowIDE/ui/DockWindows/GTreeExpITemp.crow29
-rwxr-xr-xSamples/CrowIDE/ui/DockWindows/WinSchemaItem.template13
-rw-r--r--Samples/CrowIDE/ui/DockWindows/toolboxBut.template7
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winDesign.crow10
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winEditor.crow6
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winErrors.crow15
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winGTExplorer.crow28
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winProperties.crow7
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winSchema.crow18
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winSolution.crow6
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winStyleView.crow16
-rw-r--r--Samples/CrowIDE/ui/DockWindows/winToolbox.crow18
12 files changed, 173 insertions, 0 deletions
diff --git a/Samples/CrowIDE/ui/DockWindows/GTreeExpITemp.crow b/Samples/CrowIDE/ui/DockWindows/GTreeExpITemp.crow
new file mode 100644
index 00000000..fb044b36
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/GTreeExpITemp.crow
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<Expandable IsExpanded="{²IsExpanded}" MouseDoubleClick="/onClickForExpand">
+ <Template>
+ <VerticalStack>
+ <Border CornerRadius="2" Margin="0" Height="Fit"
+ Foreground="Transparent"
+ MouseEnter="{Foreground=DimGrey}"
+ MouseLeave="{Foreground=Transparent}">
+ <HorizontalStack Spacing="1">
+ <Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
+ Path="{./Image}"
+ Visible="{./IsExpandable}"
+ SvgSub="{./IsExpanded}"
+ MouseEnter="{Background=LightGrey}"
+ MouseLeave="{Background=Transparent}"/>
+ <Border Width="16" Height="16" Foreground="Black" Background="DimGrey">
+ <Image Margin="2" Path="{GetIcon}" />
+ </Border>
+ <Label Text="{DesignName}"/>
+ </HorizontalStack>
+ </Border>
+ <Container Name="Content" Visible="false"/>
+ </VerticalStack>
+ </Template>
+ <HorizontalStack Height="Fit">
+ <Widget Width="8" Height="10"/>
+ <VerticalStack Height="Fit" Name="ItemsContainer"/>
+ </HorizontalStack>
+</Expandable>
diff --git a/Samples/CrowIDE/ui/DockWindows/WinSchemaItem.template b/Samples/CrowIDE/ui/DockWindows/WinSchemaItem.template
new file mode 100755
index 00000000..2832a327
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/WinSchemaItem.template
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<Border BorderWidth="1" Foreground="Black" CornerRadius="10"
+ Background="Grey"
+ MouseEnter="./onBorderMouseEnter"
+ MouseLeave="./onBorderMouseLeave">
+ <VerticalStack Spacing="0">
+ <HorizontalStack Background="MediumSeaGreen" Margin="0" Spacing="0" Height="Fit" Width="Stretched">
+ <Label Width="Stretched" Margin="0" TextAlignment="Center" Text="{./Caption}" />
+ </HorizontalStack>
+ <Widget Background="Black" Height="1"/>
+ <Container Margin="5" Name="Content" Width="Fit"/>
+ </VerticalStack>
+</Border>
diff --git a/Samples/CrowIDE/ui/DockWindows/toolboxBut.template b/Samples/CrowIDE/ui/DockWindows/toolboxBut.template
new file mode 100644
index 00000000..0729a387
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/toolboxBut.template
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<Border Background="{./Background}" Name="Content"
+ Foreground="Transparent" CornerRadius="{./CornerRadius}" BorderWidth="1"
+ MouseDown="{Foreground=vgradient|0:Black|0.05:Grey|0.85:Grey|1:White}"
+ MouseUp="{Foreground=vgradient|0:White|0.2:Grey|0.9:Grey|1:Black}">
+ <Image Path="{./Caption}" Margin="2" Width="20" Height="20" />
+</Border>
diff --git a/Samples/CrowIDE/ui/DockWindows/winDesign.crow b/Samples/CrowIDE/ui/DockWindows/winDesign.crow
new file mode 100644
index 00000000..4b5125b9
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winDesign.crow
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<DockWindow DataSource="{CurrentSolution}" Name="winDesign" Caption="Design" Width="200" Height="50%">
+ <VerticalStack DataSource="{SelectedItemElement}">
+ <ColorPicker SelectedColor="{²Background}"/>
+ <Group Fit="true">
+ <Border Foreground="Black" Left="25" Top="12" Width="34" Height="21" Background="{Background}"/>
+ <Border Foreground="Black" Left="1" Top="1" Width="34" Height="21" Background="{Foreground}"/>
+ </Group>
+ </VerticalStack>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winEditor.crow b/Samples/CrowIDE/ui/DockWindows/winEditor.crow
new file mode 100644
index 00000000..461a2606
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winEditor.crow
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<DockWindow Name="winEditor" Caption="Edit View">
+ <EditPane DataSource="{CurrentSolution}"
+ SelectedItemElement="{²SelectedItemElement}" Data="{OpenedItems}" DataTest="Extension"
+ ItemTemplate="#Crow.Coding.EditPaneItems.template"/>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winErrors.crow b/Samples/CrowIDE/ui/DockWindows/winErrors.crow
new file mode 100644
index 00000000..82ecc170
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winErrors.crow
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<DockWindow DataSource="{CurrentSolution}" Name="winErrors" Caption="Errors" Width="20%">
+ <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>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winGTExplorer.crow b/Samples/CrowIDE/ui/DockWindows/winGTExplorer.crow
new file mode 100644
index 00000000..62c7b9bb
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winGTExplorer.crow
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<DockWindow Name="winGTExplorer" Caption="Edit View" Width="40%" Height="80%">
+ <VerticalStack Name="vstack" DataSource="{CurrentSolution}">
+ <Button Caption="Expand All" MouseClick="../treeView.onExpandAll_MouseClick"/>
+ <TreeView DataSource="{SelectedItem}" IsRoot="true" Name="treeView" Data="{GraphicTree}"
+ SelectedItemChanged="../../vstack.DataSource.GTView_SelectedItemChanged">
+ <ItemTemplate>
+ <Border Width="Stretched" Focusable="true" Foreground="Transparent">
+ <HorizontalStack Spacing="5">
+ <Widget Width="5" Height="5"/>
+ <Border Width="16" Height="16" Foreground="Black" Background="DimGrey">
+ <Image Margin="2" Path="{GetIcon}" />
+ </Border>
+ <Label Text="{DesignName}" Width="Stretched"/>
+ </HorizontalStack>
+ </Border>
+ </ItemTemplate>
+ <ItemTemplate DataType="Crow.Group" Data="GetChildren"
+ Path="#Crow.Coding.ui.DockWindows.GTreeExpITemp.crow"/>
+ <ItemTemplate DataType="Crow.Container" Data="GetChildren"
+ Path="#Crow.Coding.ui.DockWindows.GTreeExpITemp.crow"/>
+ <ItemTemplate DataType="Crow.TemplatedContainer" Data="GetChildren"
+ Path="#Crow.Coding.ui.DockWindows.GTreeExpITemp.crow"/>
+ <ItemTemplate DataType="Crow.TemplatedGroup" Data="GetChildren"
+ Path="#Crow.Coding.ui.DockWindows.GTreeExpITemp.crow"/>
+ </TreeView>
+ </VerticalStack>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winProperties.crow b/Samples/CrowIDE/ui/DockWindows/winProperties.crow
new file mode 100644
index 00000000..2ef5f6e0
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winProperties.crow
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<DockWindow Name="winProperties" Caption="Properties" Width="20%">
+ <MembersView DataSource="{CurrentSolution}" ProjectNode="{SelectedItem}"
+ Instance="{SelectedItemElement}" DataTest="Type"
+ ItemTemplate="#Crow.Coding.MembersItem.template"/>
+</DockWindow>
+
diff --git a/Samples/CrowIDE/ui/DockWindows/winSchema.crow b/Samples/CrowIDE/ui/DockWindows/winSchema.crow
new file mode 100644
index 00000000..cd842490
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winSchema.crow
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<DockWindow DataSource="{CurrentSolution}" Name="winSchema" Caption="IML Schematic View" Height="60%" Width="80%">
+ <ImlSchematicEditor DataSource="{SelectedItem}" Data="{GraphicTree}">
+ <Template>
+ <Group Name="ItemsContainer"/>
+ </Template>
+ <ItemTemplate DataType="Crow.Widget">
+ <Window Style="WinSchema" Caption="{Name}">
+ <Label Text="test"/>
+ </Window>
+ </ItemTemplate>
+ <ItemTemplate DataType="Crow.Container" >
+ <Window Style="WinSchema" Caption="{Name}">
+ <Label Text="test"/>
+ </Window>
+ </ItemTemplate>
+ </ImlSchematicEditor>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winSolution.crow b/Samples/CrowIDE/ui/DockWindows/winSolution.crow
new file mode 100644
index 00000000..e33a2006
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winSolution.crow
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<DockWindow Name="winSolution" Caption="Solution" Width="20%">
+ <TreeView Name="treeview" IsRoot="true" DataSource="{CurrentSolution}"
+ Data="{Projects}" SelectedItemChanged="onSelectedItemChanged"
+ ItemTemplate="#Crow.Coding.ProjectTree.template"/>
+</DockWindow>
diff --git a/Samples/CrowIDE/ui/DockWindows/winStyleView.crow b/Samples/CrowIDE/ui/DockWindows/winStyleView.crow
new file mode 100644
index 00000000..a86343e4
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winStyleView.crow
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<DockWindow DataSource="{CurrentSolution}" Name="winStyle" Caption="Styling" Width="20%">
+ <TreeView Data="{StylingContainers}">
+ <Template>
+ <VerticalStack Name="ItemsContainer" Spacing="1"/>
+ </Template>
+ <ItemTemplate DataType="Crow.Coding.StyleItemContainer">
+ <HorizontalStack Height="Fit" Spacing="1">
+ <Label Background="White" Foreground="Jet" Text="{Name}" Width="40%"/>
+ <Label Background="White" Foreground="Jet" Text="{Value}" Width="Stretched"/>
+ </HorizontalStack>
+ </ItemTemplate>
+ <ItemTemplate Path="#Crow.Coding.ui.CategoryExp.template" DataType="Crow.Coding.StyleContainer" Data="Items"/>
+ </TreeView>
+</DockWindow>
+
diff --git a/Samples/CrowIDE/ui/DockWindows/winToolbox.crow b/Samples/CrowIDE/ui/DockWindows/winToolbox.crow
new file mode 100644
index 00000000..615488e8
--- /dev/null
+++ b/Samples/CrowIDE/ui/DockWindows/winToolbox.crow
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<DockWindow DataSource="{CurrentSolution}" Name="winToolbox" Caption="Toolbox" Width="60">
+ <ListBox Margin="3" Data="{ToolboxItems}" SelectionBackground="SkyBlue">
+ <Template>
+ <Wrapper Name="ItemsContainer" Orientation="Vertical" Spacing="0"/>
+ </Template>
+ <ItemTemplate>
+ <Container Fit="true" Focusable="true" Tooltip="{DisplayName}" Margin="2" AllowDrag="true"
+ StartDrag="onStartDrag" EndDrag="onEndDrag" Drop="onDrop">
+ <Border Foreground="Black" Background="DimGrey" Margin="0" BorderWidth="1"
+ MouseEnter="{Foreground=White}"
+ MouseLeave="{Foreground=Black}">
+ <Image Path="{IconPath}" Margin="3" Width="20" Height="20" />
+ </Border>
+ </Container>
+ </ItemTemplate>
+ </ListBox>
+</DockWindow>