Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_buttons.c4
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c72
-rw-r--r--source/blender/editors/space_sequencer/sequencer_intern.h2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_ops.c2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_scopes.c2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_select.c10
-rw-r--r--source/blender/editors/space_sequencer/space_sequencer.c11
9 files changed, 47 insertions, 60 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c
index 566abaa18c3..bae4467e40c 100644
--- a/source/blender/editors/space_sequencer/sequencer_add.c
+++ b/source/blender/editors/space_sequencer/sequencer_add.c
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
diff --git a/source/blender/editors/space_sequencer/sequencer_buttons.c b/source/blender/editors/space_sequencer/sequencer_buttons.c
index 70f3cc955b8..d6b52e83090 100644
--- a/source/blender/editors/space_sequencer/sequencer_buttons.c
+++ b/source/blender/editors/space_sequencer/sequencer_buttons.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2009 by Blender Foundation
* All rights reserved.
@@ -122,7 +122,7 @@ void SEQUENCER_OT_properties(wmOperatorType *ot)
{
ot->name= "Properties";
ot->idname= "SEQUENCER_OT_properties";
- ot->description= "Open sequencer properties panel.";
+ ot->description= "Open sequencer properties panel";
ot->exec= sequencer_properties;
ot->poll= ED_operator_sequencer_active;
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 0955652c30f..8ac2cc96f7a 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 11bdbcb5314..0fe074a4012 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
@@ -791,34 +791,12 @@ static void recurs_del_seq_flag(Scene *scene, ListBase *lb, short flag, short de
static Sequence *dupli_seq(struct Scene *scene, Sequence *seq)
{
Sequence *seqn = MEM_dupallocN(seq);
- // XXX animato: ID *id;
seq->tmp = seqn;
-
seqn->strip= MEM_dupallocN(seq->strip);
- // XXX animato
-#if 0
- if (seqn->ipo) {
- if (U.dupflag & USER_DUP_IPO) {
- id= (ID *)seqn->ipo;
- seqn->ipo= copy_ipo(seqn->ipo);
- /* we don't need to decrease the number
- * of the ipo because we never increase it,
- * for example, adduplicate need decrease
- * the number but only because copy_object
- * call id_us_plus for the ipo block and
- * single_ipo_users only work if id->us > 1.
- *
- * need call ipo_idnew here, for drivers ??
- * - Diego
- */
- }
- else
- seqn->ipo->id.us++;
- }
-#endif
-
+ // XXX: add F-Curve duplication stuff?
+
seqn->strip->tstripdata = 0;
seqn->strip->tstripdata_startstill = 0;
seqn->strip->tstripdata_endstill = 0;
@@ -1385,7 +1363,7 @@ void SEQUENCER_OT_snap(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Snap strips";
ot->idname= "SEQUENCER_OT_snap";
- ot->description="Frame where selected strips will be snapped.";
+ ot->description="Frame where selected strips will be snapped";
/* api callbacks */
ot->invoke= sequencer_snap_invoke;
@@ -1436,7 +1414,7 @@ void SEQUENCER_OT_mute(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Mute Strips";
ot->idname= "SEQUENCER_OT_mute";
- ot->description="Mute selected strips.";
+ ot->description="Mute selected strips";
/* api callbacks */
ot->exec= sequencer_mute_exec;
@@ -1487,7 +1465,7 @@ void SEQUENCER_OT_unmute(struct wmOperatorType *ot)
/* identifiers */
ot->name= "UnMute Strips";
ot->idname= "SEQUENCER_OT_unmute";
- ot->description="UnMute unselected rather than selected strips.";
+ ot->description="UnMute unselected rather than selected strips";
/* api callbacks */
ot->exec= sequencer_unmute_exec;
@@ -1527,7 +1505,7 @@ void SEQUENCER_OT_lock(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Lock Strips";
ot->idname= "SEQUENCER_OT_lock";
- ot->description="Lock the active strip so that it can't be transformed.";
+ ot->description="Lock the active strip so that it can't be transformed";
/* api callbacks */
ot->exec= sequencer_lock_exec;
@@ -1564,7 +1542,7 @@ void SEQUENCER_OT_unlock(struct wmOperatorType *ot)
/* identifiers */
ot->name= "UnLock Strips";
ot->idname= "SEQUENCER_OT_unlock";
- ot->description="Unlock the active strip so that it can't be transformed.";
+ ot->description="Unlock the active strip so that it can't be transformed";
/* api callbacks */
ot->exec= sequencer_unlock_exec;
@@ -1601,7 +1579,7 @@ void SEQUENCER_OT_reload(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Reload Strips";
ot->idname= "SEQUENCER_OT_reload";
- ot->description="Reload strips in the sequencer.";
+ ot->description="Reload strips in the sequencer";
/* api callbacks */
ot->exec= sequencer_reload_exec;
@@ -1633,7 +1611,7 @@ void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Refresh Sequencer";
ot->idname= "SEQUENCER_OT_refresh_all";
- ot->description="Refresh the sequencer editor.";
+ ot->description="Refresh the sequencer editor";
/* api callbacks */
ot->exec= sequencer_refresh_all_exec;
@@ -1729,7 +1707,7 @@ void SEQUENCER_OT_cut(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Cut Strips";
ot->idname= "SEQUENCER_OT_cut";
- ot->description="Cut the selected strips.";
+ ot->description="Cut the selected strips";
/* api callbacks */
ot->invoke= sequencer_cut_invoke;
@@ -1780,7 +1758,7 @@ void SEQUENCER_OT_duplicate(wmOperatorType *ot)
/* identifiers */
ot->name= "Duplicate";
ot->idname= "SEQUENCER_OT_duplicate";
- ot->description="Duplicate the selected strips.";
+ ot->description="Duplicate the selected strips";
/* api callbacks */
ot->invoke= sequencer_add_duplicate_invoke;
@@ -1862,7 +1840,7 @@ void SEQUENCER_OT_delete(wmOperatorType *ot)
/* identifiers */
ot->name= "Erase Strips";
ot->idname= "SEQUENCER_OT_delete";
- ot->description="Erase selected strips from the sequencer.";
+ ot->description="Erase selected strips from the sequencer";
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -1954,7 +1932,7 @@ void SEQUENCER_OT_images_separate(wmOperatorType *ot)
/* identifiers */
ot->name= "Separate Images";
ot->idname= "SEQUENCER_OT_images_separate";
- ot->description="On image sequences strips, it return a strip for each image.";
+ ot->description="On image sequences strips, it return a strip for each image";
/* api callbacks */
ot->invoke= WM_operator_props_popup;
@@ -2031,7 +2009,7 @@ void SEQUENCER_OT_meta_toggle(wmOperatorType *ot)
/* identifiers */
ot->name= "Toggle Meta Strip";
ot->idname= "SEQUENCER_OT_meta_toggle";
- ot->description="Toggle a metastrip (to edit enclosed strips).";
+ ot->description="Toggle a metastrip (to edit enclosed strips)";
/* api callbacks */
ot->exec= sequencer_meta_toggle_exec;
@@ -2103,7 +2081,7 @@ void SEQUENCER_OT_meta_make(wmOperatorType *ot)
/* identifiers */
ot->name= "Make Meta Strip";
ot->idname= "SEQUENCER_OT_meta_make";
- ot->description="Group selected strips into a metastrip.";
+ ot->description="Group selected strips into a metastrip";
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -2175,7 +2153,7 @@ void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
/* identifiers */
ot->name= "UnMeta Strip";
ot->idname= "SEQUENCER_OT_meta_separate";
- ot->description="Put the contents of a metastrip back in the sequencer.";
+ ot->description="Put the contents of a metastrip back in the sequencer";
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -2209,7 +2187,7 @@ void SEQUENCER_OT_view_all(wmOperatorType *ot)
/* identifiers */
ot->name= "View All";
ot->idname= "SEQUENCER_OT_view_all";
- ot->description="View all the strips in the sequencer.";
+ ot->description="View all the strips in the sequencer";
/* api callbacks */
ot->exec= sequencer_view_all_exec;
@@ -2276,7 +2254,7 @@ void SEQUENCER_OT_view_all_preview(wmOperatorType *ot)
/* identifiers */
ot->name= "View All";
ot->idname= "SEQUENCER_OT_view_all_preview";
- ot->description="Zoom preview to fit in the area.";
+ ot->description="Zoom preview to fit in the area";
/* api callbacks */
ot->exec= sequencer_view_all_preview_exec;
@@ -2313,7 +2291,7 @@ void SEQUENCER_OT_view_toggle(wmOperatorType *ot)
/* identifiers */
ot->name= "View Toggle";
ot->idname= "SEQUENCER_OT_view_toggle";
- ot->description="Toggle between sequencer views (sequence, preview, both).";
+ ot->description="Toggle between sequencer views (sequence, preview, both)";
/* api callbacks */
ot->exec= sequencer_view_toggle_exec;
@@ -2393,7 +2371,7 @@ void SEQUENCER_OT_view_selected(wmOperatorType *ot)
/* identifiers */
ot->name= "View Selected";
ot->idname= "SEQUENCER_OT_view_selected";
- ot->description="Zoom the sequencer on the selected strips.";
+ ot->description="Zoom the sequencer on the selected strips";
/* api callbacks */
ot->exec= sequencer_view_selected_exec;
@@ -2479,7 +2457,7 @@ void SEQUENCER_OT_next_edit(wmOperatorType *ot)
/* identifiers */
ot->name= "Next Edit";
ot->idname= "SEQUENCER_OT_next_edit";
- ot->description="Move frame to next edit point.";
+ ot->description="Move frame to next edit point";
/* api callbacks */
ot->exec= sequencer_next_edit_exec;
@@ -2509,7 +2487,7 @@ void SEQUENCER_OT_previous_edit(wmOperatorType *ot)
/* identifiers */
ot->name= "Previous Edit";
ot->idname= "SEQUENCER_OT_previous_edit";
- ot->description="Move frame to previous edit point.";
+ ot->description="Move frame to previous edit point";
/* api callbacks */
ot->exec= sequencer_previous_edit_exec;
@@ -2614,7 +2592,7 @@ void SEQUENCER_OT_swap(wmOperatorType *ot)
/* identifiers */
ot->name= "Swap Strip";
ot->idname= "SEQUENCER_OT_swap";
- ot->description="Swap active strip with strip to the left.";
+ ot->description="Swap active strip with strip to the left";
/* api callbacks */
ot->exec= sequencer_swap_exec;
@@ -2664,7 +2642,7 @@ void SEQUENCER_OT_rendersize(wmOperatorType *ot)
/* identifiers */
ot->name= "Set Render Size";
ot->idname= "SEQUENCER_OT_rendersize";
- ot->description="Set render size and aspect from active sequence.";
+ ot->description="Set render size and aspect from active sequence";
/* api callbacks */
ot->exec= sequencer_rendersize_exec;
diff --git a/source/blender/editors/space_sequencer/sequencer_intern.h b/source/blender/editors/space_sequencer/sequencer_intern.h
index 40e9a37f8b6..e9f7da95a81 100644
--- a/source/blender/editors/space_sequencer/sequencer_intern.h
+++ b/source/blender/editors/space_sequencer/sequencer_intern.h
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2008 Blender Foundation.
* All rights reserved.
diff --git a/source/blender/editors/space_sequencer/sequencer_ops.c b/source/blender/editors/space_sequencer/sequencer_ops.c
index 7e7b45e623f..787d5712640 100644
--- a/source/blender/editors/space_sequencer/sequencer_ops.c
+++ b/source/blender/editors/space_sequencer/sequencer_ops.c
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2008 Blender Foundation.
* All rights reserved.
diff --git a/source/blender/editors/space_sequencer/sequencer_scopes.c b/source/blender/editors/space_sequencer/sequencer_scopes.c
index e26f445ae44..0257ea5d9ca 100644
--- a/source/blender/editors/space_sequencer/sequencer_scopes.c
+++ b/source/blender/editors/space_sequencer/sequencer_scopes.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Author: Peter Schlaile < peter [at] schlaile [dot] de >
*
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index 69ce2c7c681..437871c7fe8 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
@@ -267,7 +267,7 @@ void SEQUENCER_OT_select_all_toggle(struct wmOperatorType *ot)
/* identifiers */
ot->name= "(De)Select All";
ot->idname= "SEQUENCER_OT_select_all_toggle";
- ot->description="Select or deselect all strips.";
+ ot->description="Select or deselect all strips";
/* api callbacks */
ot->exec= sequencer_deselect_exec;
@@ -309,7 +309,7 @@ void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot)
/* identifiers */
ot->name= "Select Inverse";
ot->idname= "SEQUENCER_OT_select_inverse";
- ot->description="Select unselected strips.";
+ ot->description="Select unselected strips";
/* api callbacks */
ot->exec= sequencer_select_inverse_exec;
@@ -521,7 +521,7 @@ void SEQUENCER_OT_select(wmOperatorType *ot)
/* identifiers */
ot->name= "Activate/Select";
ot->idname= "SEQUENCER_OT_select";
- ot->description="Select a strip (last selected becomes the \"active strip\").";
+ ot->description="Select a strip (last selected becomes the \"active strip\")";
/* api callbacks */
ot->invoke= sequencer_select_invoke;
@@ -884,7 +884,7 @@ void SEQUENCER_OT_select_border(wmOperatorType *ot)
/* identifiers */
ot->name= "Border Select";
ot->idname= "SEQUENCER_OT_select_border";
- ot->description="Enable border select mode.";
+ ot->description="Enable border select mode";
/* api callbacks */
ot->invoke= WM_border_select_invoke;
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 99492272340..ba405f74ba6 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2008 Blender Foundation.
* All rights reserved.
@@ -320,6 +320,14 @@ static int movie_drop_poll(bContext *C, wmDrag *drag, wmEvent *event)
return 0;
}
+static int sound_drop_poll(bContext *C, wmDrag *drag, wmEvent *event)
+{
+ if(drag->type==WM_DRAG_PATH)
+ if(ELEM(drag->icon, ICON_FILE_SOUND, ICON_FILE_BLANK)) /* rule might not work? */
+ return 1;
+ return 0;
+}
+
static void sequencer_drop_copy(wmDrag *drag, wmDropBox *drop)
{
/* copy drag path to properties */
@@ -333,6 +341,7 @@ static void sequencer_dropboxes(void)
WM_dropbox_add(lb, "SEQUENCER_OT_image_strip_add", image_drop_poll, sequencer_drop_copy);
WM_dropbox_add(lb, "SEQUENCER_OT_movie_strip_add", movie_drop_poll, sequencer_drop_copy);
+ WM_dropbox_add(lb, "SEQUENCER_OT_sound_strip_add", sound_drop_poll, sequencer_drop_copy);
}
/* ************* end drop *********** */