diff options
Diffstat (limited to 'Tests/Interfaces/basicTests')
| -rwxr-xr-x | Tests/Interfaces/basicTests/0.crow | 10 | ||||
| -rwxr-xr-x | Tests/Interfaces/basicTests/1.crow | 159 | ||||
| -rwxr-xr-x | Tests/Interfaces/basicTests/2.crow | 16 | ||||
| -rwxr-xr-x | Tests/Interfaces/basicTests/5.crow | 40 | ||||
| -rwxr-xr-x | Tests/Interfaces/basicTests/7.crow | 186 |
5 files changed, 210 insertions, 201 deletions
diff --git a/Tests/Interfaces/basicTests/0.crow b/Tests/Interfaces/basicTests/0.crow index d180fa82..42930b0a 100755 --- a/Tests/Interfaces/basicTests/0.crow +++ b/Tests/Interfaces/basicTests/0.crow @@ -1,2 +1,8 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<MessageBox/> +<?xml version="1.0"?> +<CheckBox/> +<!--<Group Background="SeaGreen" Fit="true" Margin="1"> +<Border Foreground="White" Margin="2" CornerRadius="20" Width="Fit" Height="Fit" Background="DarkRed" BorderWidth="1"> + <TextBox Multiline="true" Font="mono, 12" Margin="0" + Text="this is a test of double click\n and here a second line of text\n and again a third one"/> +</Border> +</Group>-->
\ No newline at end of file diff --git a/Tests/Interfaces/basicTests/1.crow b/Tests/Interfaces/basicTests/1.crow index 8df18346..eaee99e8 100755 --- a/Tests/Interfaces/basicTests/1.crow +++ b/Tests/Interfaces/basicTests/1.crow @@ -1,144 +1,17 @@ <?xml version="1.0"?> -<Window Title="Showcase" Height="90%" Width="90%"> - <HorizontalStack > - <VerticalStack Width="33%" Margin="5"> - <GroupBox Caption="Performance" Height="Fit"> - <VerticalStack Width="90%" Height="Fit" Spacing="2" > - <HorizontalStack Height="Fit"> - <Label Text="Fps:" Style="FpsLabel"/> - <Label Text="{fps}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Min:" Style="FpsLabel"/> - <Label Text="{fpsMin}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Max:" Style="FpsLabel"/> - <Label Text="{fpsMax}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Update:" Style="FpsLabel"/> - <Label Text="{update}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Layouting:" Style="FpsLabel"/> - <Label Text="{layouting}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Clipping:" Style="FpsLabel"/> - <Label Text="{clipping}" Style="FpsDisp"/> - </HorizontalStack> - <HorizontalStack Height="Fit"> - <Label Text="Drawing:" Style="FpsLabel"/> - <Label Text="{drawing}" Style="FpsDisp"/> - </HorizontalStack> - </VerticalStack> - </GroupBox> - <Label Width="Stretched" Margin="3" Background="Onyx"/> - <TextBox Text="TextBox" Multiline="true" Margin="3"/> - <HorizontalStack Height="Fit" Margin="5" Background="Onyx" CornerRadius="10"> - <VerticalStack Spacing="5" Width="50%"> - <CheckBox Fit="true"/> - <CheckBox Fit="true"/> - <CheckBox Fit="true"/> - <CheckBox Fit="true"/> - </VerticalStack> - <VerticalStack Spacing="5" Width="50%"> - <RadioButton Fit="true"/> - <RadioButton Fit="true"/> - <RadioButton Fit="true"/> - <RadioButton Fit="true"/> - </VerticalStack> - </HorizontalStack> - <HorizontalStack Height="Fit" Margin="5"> - <Label Text="MouseEvents" Width="50%" Margin="3" - Background="Onyx" - Foreground="DimGray" - TextAlignment="Center" - MouseEnter="{Foreground=White}" - MouseLeave="{Foreground=DimGray}" - MouseDown="{Background=DarkRed}" - MouseUp="{Background=Onyx}"/> - <Label Text="MouseEvents" Width="50%" Margin="3" - Background="Onyx" - Foreground="DimGray" - TextAlignment="Center" - MouseEnter="{Foreground=White}" - MouseLeave="{Foreground=DimGray}" - MouseDown="{Background=Mantis}" - MouseUp="{Background=Onyx}"/> - </HorizontalStack> - <GroupBox Caption="Templated controls" Height="Fit" Margin="5"> - <HorizontalStack Height="Fit"> - <VerticalStack Width="50%"> - <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> - <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> - <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> - <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> - </VerticalStack> - <Splitter/> - <VerticalStack Width="50%"> - <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> - <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> - <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> - <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> - </VerticalStack> - </HorizontalStack> - </GroupBox> - <Spinner Fit="true"/> - </VerticalStack> - <VerticalStack Width="33%" Margin="5" Spacing="5"> - <Expandable Background="DimGray"> - <Image Path="#Crow.Images.Icons.crow.svg"/> - </Expandable> - <Popper Background="DimGray" PopDirection="Bottom"> - <Border Fit="True" Background="DimGray" CornerRadius="0" BorderWidth="1"> - <Image Path="#Crow.Images.Icons.crow.svg" Width="100" Height="100" Margin="10" - MouseEnter="{Background=LightGray}" - MouseLeave="{Background=Transparent}"/> - </Border> - </Popper> - <Slider Height="10" Width="90%"/> - <Container Height="Fit" Background="Onyx" Margin="2" CornerRadius="5"> - <ProgressBar Background="DimGray" Height="10" Value="50"/> - </Container> - <Image Path="#Crow.Images.Icons.crow.svg" Width="60" Height="60" Background="LightGray" /> - <TabView Name="tabview1" - Height="120" Orientation="Horizontal" Spacing="15"> - <TabItem Name="TabItem1" Caption="Tab 1" Margin="0"> - <VerticalStack Fit="true"> - <CheckBox/> - <CheckBox/> - <CheckBox/> - <CheckBox/> - </VerticalStack> - </TabItem> - <TabItem Name="TabItem2" Caption="Tab 2" Background="Gray"> - <VerticalStack Fit="true"> - <RadioButton/> - <RadioButton/> - <RadioButton/> - <RadioButton/> - </VerticalStack> - </TabItem> - <TabItem Name="TabItem2" Caption="Tab 3" Background="Gray"> - <Container Margin="5" CornerRadius="2"> - <TextBox Height="Stretched" Margin="5" Multiline="true" TextAlignment="TopLeft"/> - </Container> - </TabItem> - </TabView> - <MessageBox Movable="false"/> - </VerticalStack> - <VerticalStack Width="33%" Margin="5"> - <Border Margin="5" Background="Onyx" Height="Fit"> - <Label Width="Stretched" Margin="1" Text="{../../dv.SelectedItem}"/> - </Border> - <Border Margin="5" Background="Onyx" Height="50%"> - <DirectoryView Name="dv" Root="./" Margin="1"/> - </Border> - <ListBox Data="{TestList}" Background="Onyx" Margin="5" - ItemTemplate="#Tests.Interfaces.colorItem.crow" - Template="#Crow.Templates.ScrollingListBox.goml"/> - </VerticalStack> - </HorizontalStack> -</Window>
\ No newline at end of file +<ListBox Data="{TestList}"> + <Template> + <Scroller Name="scroller1" Height="{./HeightPolicy}" Width="{./WidthPolicy}" + Margin="2" VerticalScrolling="true" + ValueChanged="../../../_scroller_ValueChanged"> + <Wrapper Width="{./WidthPolicy}" Height="Fit" MinimumSize="10,10" + Name="List" Margin="0" + VerticalAlignment="Top" + HorizontalAlignment="Left" + LayoutChanged="./_list_LayoutChanged"/> + </Scroller> + </Template> + <ItemTemplate> + <GraphicObject Height="4" Width="4" Background="{}" Margin="0" CornerRadius="1"/> + </ItemTemplate> +</ListBox>
\ No newline at end of file diff --git a/Tests/Interfaces/basicTests/2.crow b/Tests/Interfaces/basicTests/2.crow index ce9448c7..4fa1cd9a 100755 --- a/Tests/Interfaces/basicTests/2.crow +++ b/Tests/Interfaces/basicTests/2.crow @@ -1,4 +1,14 @@ <?xml version="1.0"?> -<Container Background="Green" Margin="0"> - <GraphicObject Margin="0" Width="90" Height="90%" Background="Red"/> -</Container>
\ No newline at end of file +<Window Width="50%" Height="50%"> + <Wrapper Orientation="Horizontal" Height="Fit" Width="Fit" Margin="5" Background="Teal" Spacing="1" > + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50%" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + <GraphicObject Width="50" Height="50%" Background="Mantis"/> + <GraphicObject Width="50" Height="50" Background="Mantis"/> + </Wrapper> +</Window>
\ No newline at end of file diff --git a/Tests/Interfaces/basicTests/5.crow b/Tests/Interfaces/basicTests/5.crow index 4922474a..356f50e6 100755 --- a/Tests/Interfaces/basicTests/5.crow +++ b/Tests/Interfaces/basicTests/5.crow @@ -1,10 +1,32 @@ <?xml version="1.0"?> -<HorizontalStack Width="Stretched" Height="Fit" Margin="5" Background="Mantis"> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> - <GraphicObject Background="Carmine" Width="Stretched" Height="20"/> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> - <GraphicObject Background="Carmine" Width="10%" Height="20"/> -</HorizontalStack> +<Window Width="50%" Height="50%"> + <VerticalStack> + <ListBox Data="{TestList}"> + <Template> + <Border BorderWidth="1" Height="{./HeightPolicy}" Width="{./WidthPolicy}"> + <HorizontalStack Margin="1" Height="{./HeightPolicy}" Width="{./WidthPolicy}" > + <Scroller Name="scroller1" Height="{./HeightPolicy}" Width="{./WidthPolicy}" + Margin="2" VerticalScrolling="true" ScrollY="{../scrollbar1.Value}" + ValueChanged="../../../_scroller_ValueChanged"> + <Wrapper Width="{./WidthPolicy}" Height="Fit" MinimumSize="10,10" + Name="List" Margin="0" + VerticalAlignment="Top" + HorizontalAlignment="Left" + LayoutChanged="./_list_LayoutChanged"/> + </Scroller> + <ScrollBar Name="scrollbar1" Value="{../scroller1.ScrollY}" + Maximum="{../scroller1.MaximumScroll}" Orientation="Vertical" + Width="14" Height="{./HeightPolicy}" /> + </HorizontalStack> + </Border> + </Template> + <ItemTemplate> + <GraphicObject Height="4" Width="4" Background="{}" Margin="0" CornerRadius="1"/> + </ItemTemplate> + </ListBox> + <HorizontalStack Fit="true" HorizontalAlignment="Right"> + <Button Caption="Load" MouseClick="OnLoadList"/> + <Button Caption="Clear" MouseClick="OnClear"/> + </HorizontalStack> + </VerticalStack> +</Window>
\ No newline at end of file diff --git a/Tests/Interfaces/basicTests/7.crow b/Tests/Interfaces/basicTests/7.crow index 293c4d8f..8df18346 100755 --- a/Tests/Interfaces/basicTests/7.crow +++ b/Tests/Interfaces/basicTests/7.crow @@ -1,46 +1,144 @@ <?xml version="1.0"?> -<VerticalStack Height="Fit" Width="Fit"> - <Label Width="Stretched"/> - <Expandable Width="Fit" Background="Gray"> - <Expandable Background="LightBlue"> - <Expandable Background="Green"> - <Expandable Background="LimeGreen"> - <Expandable Background="DimGray"> - <Expandable Width="Stretched" Background="Yellow"> - <Expandable Background="NavyBlue"> - <Expandable Width="Stretched" Background="Blue"> - <Expandable Width="Stretched" Background="BlueCrayola"> - <Expandable Width="Stretched" Background="Green"> - <Label Background="Red"/> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> +<Window Title="Showcase" Height="90%" Width="90%"> + <HorizontalStack > + <VerticalStack Width="33%" Margin="5"> + <GroupBox Caption="Performance" Height="Fit"> + <VerticalStack Width="90%" Height="Fit" Spacing="2" > + <HorizontalStack Height="Fit"> + <Label Text="Fps:" Style="FpsLabel"/> + <Label Text="{fps}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Min:" Style="FpsLabel"/> + <Label Text="{fpsMin}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Max:" Style="FpsLabel"/> + <Label Text="{fpsMax}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Update:" Style="FpsLabel"/> + <Label Text="{update}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Layouting:" Style="FpsLabel"/> + <Label Text="{layouting}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Clipping:" Style="FpsLabel"/> + <Label Text="{clipping}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Drawing:" Style="FpsLabel"/> + <Label Text="{drawing}" Style="FpsDisp"/> + </HorizontalStack> + </VerticalStack> + </GroupBox> + <Label Width="Stretched" Margin="3" Background="Onyx"/> + <TextBox Text="TextBox" Multiline="true" Margin="3"/> + <HorizontalStack Height="Fit" Margin="5" Background="Onyx" CornerRadius="10"> + <VerticalStack Spacing="5" Width="50%"> + <CheckBox Fit="true"/> + <CheckBox Fit="true"/> + <CheckBox Fit="true"/> + <CheckBox Fit="true"/> + </VerticalStack> + <VerticalStack Spacing="5" Width="50%"> + <RadioButton Fit="true"/> + <RadioButton Fit="true"/> + <RadioButton Fit="true"/> + <RadioButton Fit="true"/> + </VerticalStack> + </HorizontalStack> + <HorizontalStack Height="Fit" Margin="5"> + <Label Text="MouseEvents" Width="50%" Margin="3" + Background="Onyx" + Foreground="DimGray" + TextAlignment="Center" + MouseEnter="{Foreground=White}" + MouseLeave="{Foreground=DimGray}" + MouseDown="{Background=DarkRed}" + MouseUp="{Background=Onyx}"/> + <Label Text="MouseEvents" Width="50%" Margin="3" + Background="Onyx" + Foreground="DimGray" + TextAlignment="Center" + MouseEnter="{Foreground=White}" + MouseLeave="{Foreground=DimGray}" + MouseDown="{Background=Mantis}" + MouseUp="{Background=Onyx}"/> + </HorizontalStack> + <GroupBox Caption="Templated controls" Height="Fit" Margin="5"> + <HorizontalStack Height="Fit"> + <VerticalStack Width="50%"> + <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> + <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> + <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> + <CheckBox Template="#Tests.Interfaces.CheckBox2.imlt" Style="CheckBox2"/> + </VerticalStack> + <Splitter/> + <VerticalStack Width="50%"> + <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> + <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> + <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> + <RadioButton Template="#Tests.Interfaces.CheckBox2.imlt" Style="RadioButton2"/> + </VerticalStack> + </HorizontalStack> + </GroupBox> + <Spinner Fit="true"/> + </VerticalStack> + <VerticalStack Width="33%" Margin="5" Spacing="5"> + <Expandable Background="DimGray"> + <Image Path="#Crow.Images.Icons.crow.svg"/> </Expandable> - </Expandable> - </Expandable> - <Expandable Width="Stretched" Background="Gray"> - <Expandable Width="Stretched" Background="LightBlue"> - <Expandable Width="Stretched" Background="Green"> - <Expandable Width="Stretched" Background="LimeGreen"> - <Expandable Width="Stretched" Background="DimGray"> - <Expandable Width="Stretched" Background="Yellow"> - <Expandable Width="Stretched" Background="NavyBlue"> - <Expandable Width="Stretched" Background="Blue"> - <Expandable Width="Stretched" Background="BlueCrayola"> - <Expandable Width="Stretched" Background="Green"> - <Label Background="Red"/> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> - </Expandable> -</VerticalStack> + <Popper Background="DimGray" PopDirection="Bottom"> + <Border Fit="True" Background="DimGray" CornerRadius="0" BorderWidth="1"> + <Image Path="#Crow.Images.Icons.crow.svg" Width="100" Height="100" Margin="10" + MouseEnter="{Background=LightGray}" + MouseLeave="{Background=Transparent}"/> + </Border> + </Popper> + <Slider Height="10" Width="90%"/> + <Container Height="Fit" Background="Onyx" Margin="2" CornerRadius="5"> + <ProgressBar Background="DimGray" Height="10" Value="50"/> + </Container> + <Image Path="#Crow.Images.Icons.crow.svg" Width="60" Height="60" Background="LightGray" /> + <TabView Name="tabview1" + Height="120" Orientation="Horizontal" Spacing="15"> + <TabItem Name="TabItem1" Caption="Tab 1" Margin="0"> + <VerticalStack Fit="true"> + <CheckBox/> + <CheckBox/> + <CheckBox/> + <CheckBox/> + </VerticalStack> + </TabItem> + <TabItem Name="TabItem2" Caption="Tab 2" Background="Gray"> + <VerticalStack Fit="true"> + <RadioButton/> + <RadioButton/> + <RadioButton/> + <RadioButton/> + </VerticalStack> + </TabItem> + <TabItem Name="TabItem2" Caption="Tab 3" Background="Gray"> + <Container Margin="5" CornerRadius="2"> + <TextBox Height="Stretched" Margin="5" Multiline="true" TextAlignment="TopLeft"/> + </Container> + </TabItem> + </TabView> + <MessageBox Movable="false"/> + </VerticalStack> + <VerticalStack Width="33%" Margin="5"> + <Border Margin="5" Background="Onyx" Height="Fit"> + <Label Width="Stretched" Margin="1" Text="{../../dv.SelectedItem}"/> + </Border> + <Border Margin="5" Background="Onyx" Height="50%"> + <DirectoryView Name="dv" Root="./" Margin="1"/> + </Border> + <ListBox Data="{TestList}" Background="Onyx" Margin="5" + ItemTemplate="#Tests.Interfaces.colorItem.crow" + Template="#Crow.Templates.ScrollingListBox.goml"/> + </VerticalStack> + </HorizontalStack> +</Window>
\ No newline at end of file |