# HG changeset patch # User totetm <> # Date 1263483590 -3600 # Node ID 644e3cd48034035c54597e2274a504191db90b9f # Parent 5f8d275750e7b86e867fb1ad21c049894cd796c3 Introduce in Web context diff -r 5f8d275750e7 -r 644e3cd48034 .hgignore --- a/.hgignore Fri Jan 08 11:33:24 2010 +0100 +++ b/.hgignore Thu Jan 14 16:39:50 2010 +0100 @@ -6,3 +6,6 @@ glob:Backup/* glob:_UpgradeReport_Files/* glob:UpgradeLog.XML +glob:Content/* +glob:ClientBin/* +glob:bin/* diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/Iri.Modernisation.Controls.csproj --- a/client/src/Iri.Modernisation.Controls/Iri.Modernisation.Controls.csproj Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/Iri.Modernisation.Controls.csproj Thu Jan 14 16:39:50 2010 +0100 @@ -226,6 +226,11 @@ + + Templates_CommonTemplate.xaml + MSBuild:Compile + Designer + MSBuild:MarkupCompilePass1 Designer diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml.cs Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml.cs Thu Jan 14 16:39:50 2010 +0100 @@ -16,11 +16,12 @@ { // Required to initialize variables InitializeComponent(); - // RectPolemic.Resources.Add("PolemicType", PolemicElementType.Polemic); + //RectPolemic.Resources.Add("PolemicType", PolemicElementType.Polemic); //RectAdhesion.Resources.Add("PolemicType", PolemicElementType.Adhesion); //RectQuestion.Resources.Add("PolemicType", PolemicElementType.Question); //RectReferences.Resources.Add("PolemicType", PolemicElementType.Reference); + } } } \ No newline at end of file diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -7,6 +7,7 @@ xmlns:local="clr-namespace:Iri.Modernisation.Controls.View" x:Class="Iri.Modernisation.Controls.View.ClickMenu" BorderThickness="2,2,0,0" Height="120" Width="152" xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" + Visibility="Collapsed" > diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml.cs Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ClickMenu/ClickMenu.xaml.cs Thu Jan 14 16:39:50 2010 +0100 @@ -29,6 +29,8 @@ public ClickMenu() { // Required to initialize variables + + /**/ InitializeComponent(); /*Animation*/ Commands.PolemicElement.ElementSelected.Executed += new EventHandler(MenuClick_Executed); @@ -47,7 +49,6 @@ _contextualiserPanel._polemicItem.ClickMenuItemSelected += Commands.Action.Execute; _contextualiserPanel._questionItem.ClickMenuItemSelected += Commands.Action.Execute; _contextualiserPanel._referenceItem.ClickMenuItemSelected += Commands.Action.Execute; - _annoterPanel._videoItem.ClickMenuItemSelected += Commands.Action.Execute; _annoterPanel._textItem.ClickMenuItemSelected += Commands.ClickMenu.CreateNewTextualAnnotation.Execute; } @@ -57,11 +58,6 @@ MessageBox.Show("Action - Command:"+((ClickMenuItem)e.Parameter).Title); } - void ClickMenuItemSelected(object sender, ClickMenuItemSelectedEventArgs e) - { - MessageBox.Show("Action"); - } - diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml.cs Thu Jan 14 16:39:50 2010 +0100 @@ -17,15 +17,15 @@ { public ButtonHeaderControl() { - _isMouseInside = false; + InitializeComponent(); } - private bool _isMouseInside; + Point tempPoint = new Point(); private void LayoutRoot_MouseMove(object sender, MouseEventArgs e) { - _isMouseInside = true; + Point p = e.GetPosition(this); tempPoint.X = 1- (p.X / ActualWidth); //tempPoint.Y = p.Y / ActualHeight; @@ -83,13 +83,13 @@ private void LayoutRoot_MouseEnter(object sender, MouseEventArgs e) { - _isMouseInside = true; + animEnter.Begin(); } private void LayoutRoot_MouseLeave(object sender, MouseEventArgs e) { - _isMouseInside = false; + animLeave.Begin(); } diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/NavigationBar/ConsultMenu.xaml --- a/client/src/Iri.Modernisation.Controls/View/NavigationBar/ConsultMenu.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/NavigationBar/ConsultMenu.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -11,8 +11,14 @@ xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" Height="280" > + - + + + + + + diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/NavigationBar/PersonnalChutier.xaml --- a/client/src/Iri.Modernisation.Controls/View/NavigationBar/PersonnalChutier.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/NavigationBar/PersonnalChutier.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -6,6 +6,9 @@ > + + + diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/NavigationBar/ProductionMenu.xaml --- a/client/src/Iri.Modernisation.Controls/View/NavigationBar/ProductionMenu.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/NavigationBar/ProductionMenu.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -11,6 +11,9 @@ + + + diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/NavigationBar/ReferencesChutier.xaml --- a/client/src/Iri.Modernisation.Controls/View/NavigationBar/ReferencesChutier.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/NavigationBar/ReferencesChutier.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -11,7 +11,10 @@ > - + + + + diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml.cs Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml.cs Thu Jan 14 16:39:50 2010 +0100 @@ -25,6 +25,11 @@ { SetValue(TrimLeftProperty, value); ((CustomableVideoElementVM)DataContext).BeginTrim = ((CustomableVideoElementVM)DataContext).BeginTrim.Add(new TimeSpan(0, 0, 0, 0, (int)((value) / ProductionTimeLine.ScaleTime))); + if (((CustomableVideoElementVM)DataContext).Duration < 1) + { + ((CustomableVideoElementVM)DataContext).BeginTrim= ((CustomableVideoElementVM)DataContext).RunTime - ((CustomableVideoElementVM)DataContext).EndTrim - TimeSpan.FromSeconds(1); + + } this.Width = ((CustomableVideoElementVM)DataContext).Duration ; } } @@ -44,7 +49,16 @@ { SetValue(TrimRightProperty, value); ((CustomableVideoElementVM)DataContext).EndTrim = ((CustomableVideoElementVM)DataContext).EndTrim.Add(new TimeSpan(0, 0, 0, 0, (int)((value) / ProductionTimeLine.ScaleTime))); - this.Width = ((CustomableVideoElementVM)DataContext).Duration; + + if (((CustomableVideoElementVM)DataContext).Duration<1) + { + ((CustomableVideoElementVM)DataContext).EndTrim = ((CustomableVideoElementVM)DataContext).RunTime -((CustomableVideoElementVM)DataContext).BeginTrim - TimeSpan.FromSeconds(1); + + } + + + this.Width = ((CustomableVideoElementVM)DataContext).Duration; + } } } diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Thu Jan 14 16:39:50 2010 +0100 @@ -19,10 +19,7 @@ { public static double ScaleTime { - get - ; - - + get; set; } public ProductionTimeLine() @@ -32,7 +29,6 @@ InitializeComponent(); Commands.ProductionTimeLine.EditorPartSelected.Executed += new EventHandler(EditorPartSelected_Executed); Commands.ProductionView.VideoRecordUpdated.Executed += new EventHandler(VideoRecordUpdated_Executed); - Commands.Action.Executed += new EventHandler(Action_Executed); TimeSlider.MouseLeftButtonUp += new MouseButtonEventHandler(TimeSlider_MouseLeftButtonUp); //TimeSlider.ValueChanged += new RoutedPropertyChangedEventHandler(TimeSlider_ValueChanged); TimeSlider.Maximum = TimeSlider.ActualWidth / ProductionTimeLine.ScaleTime; @@ -67,13 +63,8 @@ { UpdateElements(); } - + private double _sumOfLengh=0; - void Action_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) - { - AddSequenceButton.Content = ((MouseEventArgs)e.Parameter).GetPosition(this).X; - } - private double _sumOfLengh=0; public void UpdateElements() { TimeSlider.Maximum = TimeSlider.ActualWidth / ProductionTimeLine.ScaleTime; diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml --- a/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -15,7 +15,7 @@ - + diff -r 5f8d275750e7 -r 644e3cd48034 client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml --- a/client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml Fri Jan 08 11:33:24 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml Thu Jan 14 16:39:50 2010 +0100 @@ -11,11 +11,11 @@ - + - +