← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 604: Added 2 new animation presets: Zoom In 75% to 100% (which is more gradual than the previous optio...

 

------------------------------------------------------------
revno: 604
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Mon 2012-01-02 00:53:25 -0600
message:
  Added 2 new animation presets: Zoom In 75% to 100% (which is more gradual than the previous options), and Zoom Out 100% to 75% (which is more gradual also).
modified:
  openshot/windows/MainGTK.py
  openshot/windows/ui/Main_animate_menu.ui


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/MainGTK.py'
--- openshot/windows/MainGTK.py	2011-09-29 16:04:35 +0000
+++ openshot/windows/MainGTK.py	2012-01-02 06:53:25 +0000
@@ -3363,6 +3363,14 @@
 			start.set_all(50.0, 50.0, 25.0, 25.0, None)
 			end.set_all(100.0, 100.0, 0.0, 0.0, None)
 
+		elif animation_name == _("Zoom In (75% to 100%)"):
+			start.set_all(75.0, 75.0, 12.5, 12.5, None)
+			end.set_all(100.0, 100.0, 0.0, 0.0, None)
+
+		elif animation_name == _("Zoom Out (100% to 75%)"):
+			start.set_all(100.0, 100.0, 0.0, 0.0, None)
+			end.set_all(75.0, 75.0, 12.5, 12.5, None)
+
 		elif animation_name == _("Zoom Out (100% to 50%)"):
 			start.set_all(100.0, 100.0, 0.0, 0.0, None)
 			end.set_all(50.0, 50.0, 25.0, 25.0, None)

=== modified file 'openshot/windows/ui/Main_animate_menu.ui'
--- openshot/windows/ui/Main_animate_menu.ui	2010-08-29 03:42:32 +0000
+++ openshot/windows/ui/Main_animate_menu.ui	2012-01-02 06:53:25 +0000
@@ -22,6 +22,26 @@
       </object>
     </child>
     <child>
+      <object class="GtkImageMenuItem" id="mnu_zoom_in_50_100">
+        <property name="label" translatable="yes">Zoom In (50% to 100%)</property>
+        <property name="visible">True</property>
+        <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
+        <property name="use_stock">False</property>
+        <property name="accel_group">accelgroup1</property>
+        <signal name="activate" handler="on_mnuAnimate_activate"/>
+      </object>
+    </child>
+    <child>
+      <object class="GtkImageMenuItem" id="mnu_zoom_in_75_100">
+        <property name="label" translatable="yes">Zoom In (75% to 100%)</property>
+        <property name="visible">True</property>
+        <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
+        <property name="use_stock">False</property>
+        <property name="accel_group">accelgroup1</property>
+        <signal name="activate" handler="on_mnuAnimate_activate"/>
+      </object>
+    </child>
+    <child>
       <object class="GtkImageMenuItem" id="mnu_zoom_in_100_150">
         <property name="label" translatable="yes">Zoom In (100% to 150%)</property>
         <property name="visible">True</property>
@@ -32,8 +52,8 @@
       </object>
     </child>
     <child>
-      <object class="GtkImageMenuItem" id="mnu_zoom_in_50_100">
-        <property name="label" translatable="yes">Zoom In (50% to 100%)</property>
+      <object class="GtkImageMenuItem" id="mnu_zoom_out_100_75">
+        <property name="label" translatable="yes">Zoom Out (100% to 75%)</property>
         <property name="visible">True</property>
         <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
         <property name="use_stock">False</property>