diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-08-03 19:49:15 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-08-03 19:49:15 +0200 |
| commit | e6030fa04a8de3fdae1dc19d081bf5feb3d3d73c (patch) | |
| tree | 89f392cd974d1109a203ade305da467bd378ee48 /Samples/ShowCase/ui/Interfaces/Experimental | |
| parent | cad504c62d45952b4651603579f34df0d230841e (diff) | |
sample directory
Diffstat (limited to 'Samples/ShowCase/ui/Interfaces/Experimental')
5 files changed, 134 insertions, 0 deletions
diff --git a/Samples/ShowCase/ui/Interfaces/Experimental/DockWindow.template b/Samples/ShowCase/ui/Interfaces/Experimental/DockWindow.template new file mode 100755 index 00000000..6c91312b --- /dev/null +++ b/Samples/ShowCase/ui/Interfaces/Experimental/DockWindow.template @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<!--<Widget Background="{./Background}"/>--> +<Border BorderWidth="1" Foreground="Black" CornerRadius="{./CornerRadius}" + Background="{./Background}" + MouseEnter="./onBorderMouseEnter" + MouseLeave="./onBorderMouseLeave"> + <VerticalStack Spacing="0"> + <HorizontalStack Height="Fit"> + <Label Text="{./Name}" TextAlignment="Left" Width="Fit" + Foreground="White" /> + <Label Text="{./DockingPosition}" TextAlignment="Left" Width="Fit" + Foreground="White" /> + </HorizontalStack> + <Label Text="{./Width}" TextAlignment="Left" Width="Fit" + Foreground="White" /> + <Label Text="{./Height}" TextAlignment="Left" Width="Fit" + Foreground="White" /> + + <HorizontalStack Visible="{./IsDocked}" Height="Fit" Margin="1" Background="Grey"> + <Label Text="{./Caption}" TextAlignment="Left" Width="Stretched" + Foreground="Jet" /> + <Image Width="8" Height="8" Focusable="true" Margin="0" Path="#Crow.Icons.exit2.svg" + MouseClick="./butQuitPress"/> + </HorizontalStack> + <HorizontalStack Background="vgradient|0:0.5,0.6,0.5,0.5|1:0.2,0.3,0.3,0.7" + Name="hs" Margin="0" Spacing="0" Height="Fit" Visible="{./IsFloating}"> + <Widget Width="5"/> + <Image Margin="1" Width="10" Height="10" Path="{./Icon}"/> + <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Left" Text="{./Caption}" /> + <Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="10" Width="10" + MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}"> + <Image Focusable="true" Name="Image" Margin="0" Path="#Crow.Icons.exit2.svg" + MouseClick="./butQuitPress"/> + </Border> + <Widget Width="5"/> + </HorizontalStack> + <Container Name="Content" MinimumSize="50,50"/> + </VerticalStack> +</Border> diff --git a/Samples/ShowCase/ui/Interfaces/Experimental/testDock.crow b/Samples/ShowCase/ui/Interfaces/Experimental/testDock.crow new file mode 100644 index 00000000..f09552c6 --- /dev/null +++ b/Samples/ShowCase/ui/Interfaces/Experimental/testDock.crow @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<Window Width="Stretched" Height="Stretched" Background="Jet"> + <DockStack Name="mainDock" Background="DarkRed" Margin="20"> + </DockStack> +</Window> +<!--- + <DockWindow Left="450" Top="450" Width="150" Height="150" Background="Maize"/>--> + + +<!--<Group Background="DimGrey" Margin = "0" Focusable="true" > + <Window Top="100" Left="100" Focusable="true" Caption="View 1" Width="300" Height="300"><Widget Background="Green" Focusable="true" MouseEnter="{Background=Grey}" MouseLeave="{Background=Green}"/></Window> + <Window Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></Window> + <Window Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></Window> + <Window Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></Window> +</Group>--> +<!--<Docker > + <DockWindow Resizable = "true" Top="100" Left="100" Caption="View 1" Width="300" Height="300"> + <VerticalStack Background="DarkGreen" Focusable="true"> + <Label Text="{../../Left}" Background="Black" Width="Stretched"/> + <Label Text="{../../Top}" Background="Black"/> + <Label Text="{../../LogicalParent}" Background="Black"/> + </VerticalStack> + </DockWindow> + <DockWindow Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></DockWindow> + <DockWindow Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></DockWindow> + <DockWindow Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></DockWindow> +</Docker>-->
\ No newline at end of file diff --git a/Samples/ShowCase/ui/Interfaces/Experimental/testDock2.crow b/Samples/ShowCase/ui/Interfaces/Experimental/testDock2.crow new file mode 100644 index 00000000..5ff6f704 --- /dev/null +++ b/Samples/ShowCase/ui/Interfaces/Experimental/testDock2.crow @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<Docker > + <DockWindow Left="100" Top="100" Width="150" Height="150" Background="DarkRed"/> + <DockWindow Left="200" Top="200" Width="150" Height="150" Background="DarkGreen"/> + <DockWindow Left="300" Top="300" Width="150" Height="150" Background="Blue"/> + <DockWindow Left="400" Top="400" Width="150" Height="150" Background="DarkYellow"/> + <DockWindow Left="500" Top="500" Width="150" Height="150" Background="Yellow"/> +</Docker> +<!--<Group Background="DimGrey" Margin = "0" Focusable="true" > + <Window Top="100" Left="100" Focusable="true" Caption="View 1" Width="300" Height="300"><Widget Background="Green" Focusable="true" MouseEnter="{Background=Grey}" MouseLeave="{Background=Green}"/></Window> + <Window Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></Window> + <Window Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></Window> + <Window Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></Window> +</Group>--> +<!--<Docker > + <DockWindow Resizable = "true" Top="100" Left="100" Caption="View 1" Width="300" Height="300"> + <VerticalStack Background="DarkGreen" Focusable="true"> + <Label Text="{../../Left}" Background="Black" Width="Stretched"/> + <Label Text="{../../Top}" Background="Black"/> + <Label Text="{../../LogicalParent}" Background="Black"/> + </VerticalStack> + </DockWindow> + <DockWindow Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></DockWindow> + <DockWindow Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></DockWindow> + <DockWindow Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></DockWindow> +</Docker>-->
\ No newline at end of file diff --git a/Samples/ShowCase/ui/Interfaces/Experimental/testStack.crow b/Samples/ShowCase/ui/Interfaces/Experimental/testStack.crow new file mode 100644 index 00000000..0348f0b5 --- /dev/null +++ b/Samples/ShowCase/ui/Interfaces/Experimental/testStack.crow @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<Window Width="600" Height="500"> +<VerticalStack Margin="20" Background="DimGrey" Spacing="10"> + <Widget Height="100" Width="500" Background="Green"/> + <Splitter/> + <HorizontalStack> + <Widget Height="Stretched" Width="100" Background="Red"/> + <Splitter/> + <Widget Height="Stretched" Width="100" Background="DarkRed"/> + </HorizontalStack> + <Splitter/> + <Widget Height="100" Width="500" Background="Green"/> +</VerticalStack> +</Window> +<!--<Group Background="DimGrey" Margin = "0" Focusable="true" > + <Window Top="100" Left="100" Focusable="true" Caption="View 1" Width="300" Height="300"><Widget Background="Green" Focusable="true" MouseEnter="{Background=Grey}" MouseLeave="{Background=Green}"/></Window> + <Window Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></Window> + <Window Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></Window> + <Window Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></Window> +</Group>--> +<!--<Docker > + <DockWindow Resizable = "true" Top="100" Left="100" Caption="View 1" Width="300" Height="300"> + <VerticalStack Background="DarkGreen" Focusable="true"> + <Label Text="{../../Left}" Background="Black" Width="Stretched"/> + <Label Text="{../../Top}" Background="Black"/> + <Label Text="{../../LogicalParent}" Background="Black"/> + </VerticalStack> + </DockWindow> + <DockWindow Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></DockWindow> + <DockWindow Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></DockWindow> + <DockWindow Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></DockWindow> +</Docker>-->
\ No newline at end of file diff --git a/Samples/ShowCase/ui/Interfaces/Experimental/testTypeViewer.goml b/Samples/ShowCase/ui/Interfaces/Experimental/testTypeViewer.goml new file mode 100755 index 00000000..caa454fc --- /dev/null +++ b/Samples/ShowCase/ui/Interfaces/Experimental/testTypeViewer.goml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> + + <VerticalStack Height="Fit" Width="250" Name="hstack" Margin="0" Spacing="0"> + <Border Height="Fit" Width="Stretched" BorderWidth="2" CornerRadius="10" Background="SteelBlue"> + <Label Name="labName" Text="{Name}" Width="Stretched" Height="Fit" Margin="3"/> + </Border> + <ListBox Data="{Members}" Width="Stretched" Height="400" ItemTemplate="Interfaces/tmpMembers.goml" Focusable="true"> + + </ListBox> + </VerticalStack> |