diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-02-06 07:51:27 +0100 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2020-05-10 00:50:02 +0200 |
| commit | a58f28741bf91be4d0fc077a6088bd8864e12c1f (patch) | |
| tree | 2c522ce056c6c34722ec8c78cc2b009709f3ab45 /Samples/common | |
| parent | c4e776610e3e8d37b608ebd2b40690d5dd4e3bbd (diff) | |
update with msbuild
Diffstat (limited to 'Samples/common')
| -rw-r--r-- | Samples/common/ui/Interfaces/Group/5.crow | 7 | ||||
| -rw-r--r-- | Samples/common/ui/templates/CheckBox2.imlt | 7 | ||||
| -rw-r--r-- | Samples/common/ui/templates/TabItem.template | 24 | ||||
| -rw-r--r-- | Samples/common/ui/templates/TmpExpandable.goml | 12 | ||||
| -rw-r--r-- | Samples/common/ui/templates/colorItem.crow | 10 | ||||
| -rw-r--r-- | Samples/common/ui/templates/colorItem2.crow | 10 | ||||
| -rw-r--r-- | Samples/common/ui/templates/itemTmp.goml | 8 | ||||
| -rw-r--r-- | Samples/common/ui/templates/log.xml | 21 | ||||
| -rw-r--r-- | Samples/common/ui/templates/perfMsr.crow | 38 | ||||
| -rw-r--r-- | Samples/common/ui/templates/test.style | 49 | ||||
| -rw-r--r-- | Samples/common/ui/templates/testMeter.goml | 2 | ||||
| -rw-r--r-- | Samples/common/ui/templates/testWindow.goml.sav | 26 | ||||
| -rw-r--r-- | Samples/common/ui/templates/tmpDirItem.goml | 11 | ||||
| -rw-r--r-- | Samples/common/ui/templates/tmpMembers.goml | 9 | ||||
| -rw-r--r-- | Samples/common/ui/templates/treeList.crow | 2 |
15 files changed, 236 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/Group/5.crow b/Samples/common/ui/Interfaces/Group/5.crow new file mode 100644 index 00000000..b344bc6c --- /dev/null +++ b/Samples/common/ui/Interfaces/Group/5.crow @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<VerticalStack Background="DimGrey" Margin="10" Fit="true" MinimumSize="200,20"> + <Label Font="droid bold,20" Text="Label1" Margin="5" Width="Stretched" Height="Fit" Background="Jet"/> + <Label Font="droid bold,20" Text="Label1" Margin="5" Width="Stretched" Height="Fit" Background="Jet"/> + <Label Font="droid bold,20" Text="Label1" Margin="5" Width="Stretched" Height="Fit" Background="Jet"/> + <Label Font="droid bold,20" Text="Label1" Margin="5" Width="Stretched" Height="Fit" Background="Jet"/> +</VerticalStack>
\ No newline at end of file diff --git a/Samples/common/ui/templates/CheckBox2.imlt b/Samples/common/ui/templates/CheckBox2.imlt new file mode 100644 index 00000000..c2bfe8da --- /dev/null +++ b/Samples/common/ui/templates/CheckBox2.imlt @@ -0,0 +1,7 @@ +<Label Font="{./Font}" Text="{./Caption}" Height="{./HeightPolicy}" Width="{./WidthPolicy}" + Margin="3" + Background="{./Background}" + Foreground="DimGrey" + TextAlignment="Center" + MouseEnter="{Foreground=White}" + MouseLeave="{Foreground=DimGrey}"/>
\ No newline at end of file diff --git a/Samples/common/ui/templates/TabItem.template b/Samples/common/ui/templates/TabItem.template new file mode 100644 index 00000000..fd0f310d --- /dev/null +++ b/Samples/common/ui/templates/TabItem.template @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<GenericStack Orientation="Vertical" Spacing="0" + Background="{./Background}" + MouseEnter="{/caption.Foreground=White}" + MouseLeave="{/caption.Foreground=Grey}"> + <HorizontalStack Left="{./TabOffset}" + Name="TabTitle" + HorizontalAlignment="Left" + Height="{./TabHeight}" + Width="{./TabWidth}"> + <Label Name="caption" Text="{./Caption}" Foreground="Grey" Width="Stretched"/> + <Label Text="{./ViewIndex}" Foreground="Green"/> + <Label Text="{./TabOffset}" Foreground="Red"/> + <Border CornerRadius="5" BorderWidth="1" Foreground="Transparent" Height="12" Width="12" + MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}"> + <Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Icons.exit2.svg" + MouseClick="./butCloseTabClick"/> + </Border> + </HorizontalStack> + <Container Margin="20"> + <Container Background="DimGrey" Name="Content"/> + </Container> +</GenericStack> + diff --git a/Samples/common/ui/templates/TmpExpandable.goml b/Samples/common/ui/templates/TmpExpandable.goml new file mode 100644 index 00000000..9dddcebb --- /dev/null +++ b/Samples/common/ui/templates/TmpExpandable.goml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!--<VerticalStack Height="{../HeightPolicy}" Width="{../WidthPolicy}" MouseClick="../onMouseClick"> + <Label Text="{../../Caption}" Width="{../../WidthPolicy}"/> + <Container Name="Content" Visible="false" Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"/> +</VerticalStack>--> +<Group BorderWidth="1" Foreground="LightGray" + MouseClick="../onMouseClick"> + <VerticalStack> + <Label Text="{../../../Caption}"/> + <Container Name="Content" Visible="false"/> + </VerticalStack> +</Group>
\ No newline at end of file diff --git a/Samples/common/ui/templates/colorItem.crow b/Samples/common/ui/templates/colorItem.crow new file mode 100644 index 00000000..30bfe3d3 --- /dev/null +++ b/Samples/common/ui/templates/colorItem.crow @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Border Foreground="Transparent" Focusable="true" HorizontalAlignment="Left" Height="Fit" Width="200"> + <HorizontalStack Margin="0" + MouseEnter="{Background=hgradient|0:DarkRed|1:Transparent}" + MouseLeave="{Background=Transparent}"> + <Widget Height="12" Width="20" Background="{}" Margin="0" CornerRadius="3"/> + <Label Text="{}" Margin="0" Width="Stretched"/> + </HorizontalStack> +</Border> + diff --git a/Samples/common/ui/templates/colorItem2.crow b/Samples/common/ui/templates/colorItem2.crow new file mode 100644 index 00000000..83239b32 --- /dev/null +++ b/Samples/common/ui/templates/colorItem2.crow @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Border Foreground="Transparent" Focusable="true" HorizontalAlignment="Left" Height="Fit"> + <HorizontalStack Margin="0" + MouseEnter="{Background=CornflowerBlue}" + MouseLeave="{Background=Transparent}"> + <Widget Height="8" Width="14" Background="{}" Margin="0" CornerRadius="2"/> + <Label Text="{}" Margin="0" Width="Stretched" Font="mono, 8"/> + </HorizontalStack> +</Border> + diff --git a/Samples/common/ui/templates/itemTmp.goml b/Samples/common/ui/templates/itemTmp.goml new file mode 100644 index 00000000..fadf5e63 --- /dev/null +++ b/Samples/common/ui/templates/itemTmp.goml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Border BorderWidth="3"> + <Label Text="{Name}" Focusable="true" Width="Stretched" Height="Fit" Margin="0" + MouseEnter="{Background=Red}" + MouseLeave="{Background=Transparent}" + /> +</Border> + diff --git a/Samples/common/ui/templates/log.xml b/Samples/common/ui/templates/log.xml new file mode 100644 index 00000000..1039f7be --- /dev/null +++ b/Samples/common/ui/templates/log.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<Container Name="topContainer" HorizontalAlignment="Center" VerticalAlignment="Top" + Margin="2" + Width="600" Height="-1"> + <Border Margin="2" BorderWidth="1" Background="0,6;0,6;0,6;0,6" Height="-1"> + <Group Width="0" Name="logs"> + <VerticalStack Name="VerticalStack" Width="0" Focusable="False"> + <Label Name="line1" Width="0" Text="Line1" Margin="0"/> + <Label Name="line2" Width="0" Text="Line2" Margin="0"/> + <Label Name="line3" Width="0" Text="Line3" Margin="0"/> + <Label Name="line4" Width="0" Text="Line4" Margin="0"/> + </VerticalStack> + <Button Name="btOk" Background="Gray" Fit="True" + HorizontalAlignment="Right" VerticalAlignment="Bottom" + MouseClick="BtOk_MouseClick"> + <Label Text="Ok" Margin="3" Foreground="White" /> + </Button> + </Group> + </Border> +</Container> + diff --git a/Samples/common/ui/templates/perfMsr.crow b/Samples/common/ui/templates/perfMsr.crow new file mode 100644 index 00000000..06f7ae3c --- /dev/null +++ b/Samples/common/ui/templates/perfMsr.crow @@ -0,0 +1,38 @@ +<?xml version="1.0"?> + + <VerticalStack Spacing="1" Height="Fit" Width="Stretched"> + <HorizontalStack Background="DarkSlateGrey"> + <Label Text="{Name}" Width="Stretched" Font="doid bold, 10" Margin="2"/> + <Button Caption="Reset" MouseClick="onResetClick" Height="Fit"/> + </HorizontalStack> + <HorizontalStack Height="Fit" Width="Fit" HorizontalAlignment="Left"> + <HorizontalStack Style="HStackMeasure"> + <Label Text="Cur:" Style="FpsLabel"/> + <Label Text="{current}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Style="HStackMeasure"> + <Label Text="Min:" Style="FpsLabel"/> + <Label Text="{minimum}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Style="HStackMeasure"> + <Label Text="Mean:" Style="FpsLabel"/> + <Label Text="{mean}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Style="HStackMeasure"> + <Label Text="Max:" Style="FpsLabel"/> + <Label Text="{maximum}" Style="FpsDisp"/> + </HorizontalStack> + </HorizontalStack> + <Border Foreground="White" Width="Stretched" Height="60"> + <Trend Background="Black" NewValue="{current}" Minimum="{minimum}" Maximum="{maximum}"/> + </Border> +<!-- <HorizontalStack> + <Label Text="Total:" Style="FpsLabel"/> + <Label Text="{total}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack> + <Label Text="Cpt:" Style="FpsLabel"/> + <Label Text="{cptMeasures}" Style="FpsDisp"/> + </HorizontalStack>--> + </VerticalStack> + diff --git a/Samples/common/ui/templates/test.style b/Samples/common/ui/templates/test.style new file mode 100644 index 00000000..6f5dc8fb --- /dev/null +++ b/Samples/common/ui/templates/test.style @@ -0,0 +1,49 @@ +FpsLabel { + Width = "30"; + Font = "droid, 10"; + Margin = "0"; + TextAlignment = "Center"; +} +FpsDisp { + Font = "droid bold, 10"; + Width = "60"; + Margin = "0"; + CornerRadius = "3"; + TextAlignment = "Center"; + Background = "MediumSeaGreen"; +} +HStackMeasure { + Margin = "2"; + Width = "Fit"; + Height = "Fit"; + Background = "DimGrey"; +} +CheckBox2 { + Template= "Interfaces/CheckBox2.imlt"; + Background = "Jet"; + Checked="{Background=MediumSeaGreen}"; + Unchecked = "{Background=Jet}"; +} +RadioButton2 { + Template="Interfaces/CheckBox2.imlt"; + Background = "Jet"; + Checked = "{Background=MediumSeaGreen}"; + Unchecked = "{Background=Jet}"; +} +labPerf { + Font = "droid, 8"; + Width = "50%"; +} +labPerfVal{ + Font = "droid, 8"; + Width = "50%"; +} +DbgLogViewer{ + Background = "Onyx"; + Font = "mono, 8"; + Foreground = "LightGrey"; + Focusable = "true"; +} +DockWindow{ + Background = "0.1,0.1,0.1,0.5"; +} diff --git a/Samples/common/ui/templates/testMeter.goml b/Samples/common/ui/templates/testMeter.goml new file mode 100644 index 00000000..2c840a8e --- /dev/null +++ b/Samples/common/ui/templates/testMeter.goml @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<AnalogMeter Width="Fit" Height="Fit" Background="White" Foreground="Black" Value="{fps}" Minimum="Stretched" Maximum="100"/>
\ No newline at end of file diff --git a/Samples/common/ui/templates/testWindow.goml.sav b/Samples/common/ui/templates/testWindow.goml.sav new file mode 100644 index 00000000..42b4b744 --- /dev/null +++ b/Samples/common/ui/templates/testWindow.goml.sav @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!--<Group>--> +<Window Name="window1" Left="10" Top="10" Title="Test window" + Width="250" Height="300" > + <VerticalStack Name="contentVSStack" Margin="10" Spacing="10"> + <Slider Name="slider" Height="10" Width="0"/> + + <HorizontalStack Width="0" Height="-1" Margin="10" Background="BlueCrayola"> + <Checkbox Height="-1" Width="80"/> + <GraphicObject Width="0"/> + <Checkbox Height="-1" Width="80"/> + </HorizontalStack> + <Groupbox Text="test" Height="-1" Width="-1" Margin="5"> + <VerticalStack Height="-1" Width="0" > + <RadioButton Caption="Radio 1" Background="Red" /> + <RadioButton Caption="Radio 2" IsChecked="true" /> + <RadioButton Caption="Radio 3" /> + </VerticalStack> + </Groupbox> +<!-- <Checkbox Height="-1" Width="-1" Background="Red" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>--> + </VerticalStack> +</Window> +<!--</Group>--> +<!-- <Label Text="{fps}" Background="DarkRed"/> + <Label Text="{fpsMin}" /> + <Label Text="{fpsMax}" />-->
\ No newline at end of file diff --git a/Samples/common/ui/templates/tmpDirItem.goml b/Samples/common/ui/templates/tmpDirItem.goml new file mode 100644 index 00000000..41665d13 --- /dev/null +++ b/Samples/common/ui/templates/tmpDirItem.goml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> + <HorizontalStack Width="Fit" Height="Fit" Focusable="true" + HorizontalAlignment="Left" + MouseEnter="{Background=RoyalBlue}" + MouseLeave="{Background=Transparent}"> + <Image Width="16" Height="16" Path="#Tests.image.folder1.svg" SvgSub="{Attributes}"/> + <Label Text="{Name}" Width="Fit" Height="Fit" Margin="0"/> + <Label Text="{Attributes}" Width="Fit" Height="Fit" Margin="0"/> + <Label Text="{Extension}" Width="Fit" Height="Fit" Margin="0"/> + </HorizontalStack> + diff --git a/Samples/common/ui/templates/tmpMembers.goml b/Samples/common/ui/templates/tmpMembers.goml new file mode 100644 index 00000000..f48d8d68 --- /dev/null +++ b/Samples/common/ui/templates/tmpMembers.goml @@ -0,0 +1,9 @@ +<?xml version="1.0"?> + <HorizontalStack Width="Stretched" Height="Fit" Focusable="true" + MouseEnter="{Background=SkyBlue}" + MouseLeave="{Background=Transparent}"> + <Image Width="8" Height="8" Path="#Crow.Images.Icons.member.svg" SvgSub="{GetIcon}"/> + <Label Text="{Name}" Width="Stretched" Height="Fit" Margin="1"/> + <Label Text="{MemberType}" Width="Fit" Height="Fit" Margin="0"/> + </HorizontalStack> + diff --git a/Samples/common/ui/templates/treeList.crow b/Samples/common/ui/templates/treeList.crow new file mode 100644 index 00000000..ca59c17f --- /dev/null +++ b/Samples/common/ui/templates/treeList.crow @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<VerticalStack Height="Fit" Name="List"/>
\ No newline at end of file |