aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/common')
-rw-r--r--Samples/common/SampleBase.cs21
-rw-r--r--Samples/common/ui/Interfaces/Divers/testVisibility.crow4
-rw-r--r--Samples/common/ui/Interfaces/Experimental/testDock2.crow26
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/0.crow)0
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow3
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/1.crow3
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/2.crow)0
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow3
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/labels.crow)24
-rw-r--r--Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow29
10 files changed, 58 insertions, 55 deletions
diff --git a/Samples/common/SampleBase.cs b/Samples/common/SampleBase.cs
index 65345be7..bdc6608b 100644
--- a/Samples/common/SampleBase.cs
+++ b/Samples/common/SampleBase.cs
@@ -8,6 +8,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;
using Crow;
+using Glfw;
namespace Crow
{
@@ -261,5 +262,25 @@ namespace Crow
base.OnInitialized ();
}
+ public override bool OnKeyDown (Key key) {
+
+ switch (key) {
+ case Key.F5:
+ Load ("Interfaces/Divers/testFileDialog.crow").DataSource = this;
+ return true;
+ case Key.F6:
+ Load ("Interfaces/Divers/0.crow").DataSource = this;
+ return true;
+ case Key.F7:
+ Load ("Interfaces/Divers/perfMeasures.crow").DataSource = this;
+ return true;
+ case Key.F2:
+ if (IsKeyDown (Key.LeftShift))
+ DbgLogger.Reset ();
+ DbgLogger.Save (this);
+ return true;
+ }
+ return base.OnKeyDown (key);
+ }
}
} \ No newline at end of file
diff --git a/Samples/common/ui/Interfaces/Divers/testVisibility.crow b/Samples/common/ui/Interfaces/Divers/testVisibility.crow
index 9f9464c9..581bab06 100644
--- a/Samples/common/ui/Interfaces/Divers/testVisibility.crow
+++ b/Samples/common/ui/Interfaces/Divers/testVisibility.crow
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<Container Margin="20" Background="Red" >
- <Container Margin="20" Background="Green" MouseDown="{../go1.Visible=True}" >
+ <!--<Container Margin="20" Background="Green" MouseDown="{../go1.Visible=True}" >
<Widget Name="go1" Margin="20" Background="DimGrey" Visible="false" MouseDown="{Visible=false}"
MouseEnter="{Background=Blue}"
MouseLeave="{Background=DimGrey}"/>
- </Container>
+ </Container>-->
</Container>
diff --git a/Samples/common/ui/Interfaces/Experimental/testDock2.crow b/Samples/common/ui/Interfaces/Experimental/testDock2.crow
deleted file mode 100644
index d4eb29ac..00000000
--- a/Samples/common/ui/Interfaces/Experimental/testDock2.crow
+++ /dev/null
@@ -1,26 +0,0 @@
-<?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="Yellow"/>
- <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/common/ui/Interfaces/PerfLabels/0.crow b/Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow
index 14304360..14304360 100644
--- a/Samples/common/ui/Interfaces/PerfLabels/0.crow
+++ b/Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow
diff --git a/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow b/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow
new file mode 100644
index 00000000..4157b6a7
--- /dev/null
+++ b/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<OldLabel Text="no update in this file"/>
+
diff --git a/Samples/common/ui/Interfaces/PerfLabels/1.crow b/Samples/common/ui/Interfaces/PerfLabels/1.crow
deleted file mode 100644
index 155e5188..00000000
--- a/Samples/common/ui/Interfaces/PerfLabels/1.crow
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0"?>
-<TextRun Text="{elapsed}" Fit="true" Background="Onyx"/>
-
diff --git a/Samples/common/ui/Interfaces/PerfLabels/2.crow b/Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow
index 034518cb..034518cb 100644
--- a/Samples/common/ui/Interfaces/PerfLabels/2.crow
+++ b/Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow
diff --git a/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow b/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow
new file mode 100644
index 00000000..1a02ce7e
--- /dev/null
+++ b/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<OldLabel Text="{elapsed}" Fit="true" Background="Onyx"/>
+
diff --git a/Samples/common/ui/Interfaces/PerfLabels/labels.crow b/Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow
index 57c49ad5..8d944f01 100644
--- a/Samples/common/ui/Interfaces/PerfLabels/labels.crow
+++ b/Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow
@@ -24,30 +24,6 @@
<Label Text="{elapsed}" />
<Label Text="{elapsed}" />
</VerticalStack>
- <VerticalStack Width="20%" Height="Fit">
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- </VerticalStack>
- <VerticalStack Width="20%" Height="Fit">
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- <Label Text="{elapsed}" />
- </VerticalStack>
</HorizontalStack>
diff --git a/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow b/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow
new file mode 100644
index 00000000..f55bedc3
--- /dev/null
+++ b/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<HorizontalStack>
+ <VerticalStack Width="20%" Height="Fit">
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ </VerticalStack>
+ <VerticalStack Width="20%" Height="Fit">
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ <OldLabel Text="{elapsed}" />
+ </VerticalStack>
+</HorizontalStack>
+
+