Revision: 21436
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21436
Author:   dingto
Date:     2009-07-08 21:14:32 +0200 (Wed, 08 Jul 2009)

Log Message:
-----------
2.5 Sequencer:

* Replaced some notifiers with proper ones.
* Added "Draw Safe Margin" and "Separate Colors" Features to the menu. 

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/space_sequencer.py
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_space.c

Modified: branches/blender2.5/blender/release/ui/space_sequencer.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_sequencer.py   2009-07-08 
17:49:14 UTC (rev 21435)
+++ branches/blender2.5/blender/release/ui/space_sequencer.py   2009-07-08 
19:14:32 UTC (rev 21436)
@@ -90,6 +90,9 @@
                """
                
                layout.itemR(st, "draw_frames")
+               layout.itemR(st, "draw_safe_margin")
+               if st.display_mode == 'WAVEFORM':
+                       layout.itemR(st, "seperate_color_preview")
                
                """
        if(!sa->full) uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, 
"Maximize Window|Ctrl UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0,0, 
"");

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_space.c      
2009-07-08 17:49:14 UTC (rev 21435)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_space.c      
2009-07-08 19:14:32 UTC (rev 21436)
@@ -734,13 +734,13 @@
        RNA_def_property_enum_sdna(prop, NULL, "mainb");
        RNA_def_property_enum_items(prop, display_mode_items);
        RNA_def_property_ui_text(prop, "Display Mode", "The view mode to use 
for displaying sequencer output.");
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
                
        /* flag's */
        prop= RNA_def_property(srna, "draw_frames", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_DRAWFRAMES);
        RNA_def_property_ui_text(prop, "Draw Frames", "Draw frames rather then 
seconds.");
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
        
        prop= RNA_def_property(srna, "transform_markers", PROP_BOOLEAN, 
PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_MARKER_TRANS);
@@ -748,18 +748,18 @@
        
        prop= RNA_def_property(srna, "seperate_color_preview", PROP_BOOLEAN, 
PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", 
SEQ_DRAW_COLOR_SEPERATED);
-       RNA_def_property_ui_text(prop, "Transform Markers", "Seperate color 
channels in preview.");
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_ui_text(prop, "Seperate Colors", "Seperate color 
channels in preview.");
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
 
        prop= RNA_def_property(srna, "draw_safe_margin", PROP_BOOLEAN, 
PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", 
SEQ_DRAW_SAFE_MARGINS);
        RNA_def_property_ui_text(prop, "Safe Margin", "Draw title safe margins 
in preview.");   
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
        
        prop= RNA_def_property(srna, "use_grease_pencil", PROP_BOOLEAN, 
PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_DRAW_GPENCIL);
        RNA_def_property_ui_text(prop, "Use Grease Pencil", "Display and edit 
the grease pencil freehand annotations overlay.");        
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
        
        /* grease pencil */
        prop= RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE);
@@ -771,13 +771,13 @@
        RNA_def_property_int_sdna(prop, NULL, "chanshown");
        RNA_def_property_ui_text(prop, "Display Channel", "The channel number 
shown in the image preview. 0 is the result of all strips combined.");
        RNA_def_property_range(prop, 0, 32); // MAXSEQ --- todo, move from 
BKE_sequence.h
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
        
        prop= RNA_def_property(srna, "draw_overexposed", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "zebra");
        RNA_def_property_ui_text(prop, "Show Overexposed", "Show overexposed 
areas with zebra stripes.");
        RNA_def_property_range(prop, 0, 110);
-       RNA_def_property_update(prop, ND_SEQUENCER|ND_DISPLAY, NULL); // review 
notifier
+       RNA_def_property_update(prop, ND_SEQUENCER|NC_WINDOW, NULL);
        
        
        /* not sure we need rna access to these but adding anyway */


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to