diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-12 03:37:29 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-12 03:37:29 +0200 |
| commit | 80ceca9f199f37928f8c3068d07732b77d45156f (patch) | |
| tree | 23cc31124f141dfc7919581d8cfab381a4ebc977 /Tests/Interfaces/basicTests | |
| parent | 2b62c4b6eefdeaf3ddb4247b6241e87ee2345a6a (diff) | |
* Crow.csproj, Default.style, button.svg, buttest.svg, buttest2.svg, buttest4.svg, 0.crow:
test and divers
* DirectoryView.cs:
SelectedItem property
* GraphicObject.cs:
Style class, EventInfo in styles
* Group.cs:
lock children
* Popper.cs:
alignment = top left, simple unpop on mouse leave, no additional tests
* Spinner.cs:
ctor order
* TabView.cs:
code clean
* Window.cs:
movable
* Style.cs, Interface.cs:
Style class
* StyleReader.cs:
parser exception, debug expression parsing
* Button.crow, Popper.goml, TabItem.crow, CheckBox.goml, Expandable.goml, MessageBox.goml, RadioButton.goml, ScrollingListBox.goml:
templating
* TreeView.crow:
scrollbar
* 1.crow:
showcase
* test.style, Tests.csproj, CheckBox2.imlt:
tests
Diffstat (limited to 'Tests/Interfaces/basicTests')
| -rwxr-xr-x | Tests/Interfaces/basicTests/0.crow | 4 | ||||
| -rwxr-xr-x | Tests/Interfaces/basicTests/1.crow | 146 |
2 files changed, 145 insertions, 5 deletions
diff --git a/Tests/Interfaces/basicTests/0.crow b/Tests/Interfaces/basicTests/0.crow index 9d3948af..d180fa82 100755 --- a/Tests/Interfaces/basicTests/0.crow +++ b/Tests/Interfaces/basicTests/0.crow @@ -1,2 +1,2 @@ -<?xml version="1.0"?> -<CheckBox/>
\ No newline at end of file +<?xml version="1.0" encoding="UTF-8" ?> +<MessageBox/> diff --git a/Tests/Interfaces/basicTests/1.crow b/Tests/Interfaces/basicTests/1.crow index 7d370189..8df18346 100755 --- a/Tests/Interfaces/basicTests/1.crow +++ b/Tests/Interfaces/basicTests/1.crow @@ -1,4 +1,144 @@ <?xml version="1.0"?> -<Container Background="Green" Margin="0"> - <GraphicObject Margin="0" Width="50" Height="50" Background="Red"/> -</Container>
\ No newline at end of file +<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 |