Put back sequencer type icons, and moved the type menu, separating it from the menus.

This commit is contained in:
William Reynish
2009-08-12 14:39:57 +00:00
parent 7ffbaa6631
commit 7ca23e0ef6
2 changed files with 9 additions and 9 deletions

View File

@@ -18,10 +18,9 @@ class SEQUENCER_HT_header(bpy.types.Header):
if context.area.show_menus:
row = layout.row()
row.itemR(st, "display_mode", text="")
row.itemM("SEQUENCER_MT_view")
row.itemR(st, "display_mode")
layout.itemS()
if st.display_mode == 'SEQUENCER':
@@ -32,11 +31,11 @@ class SEQUENCER_HT_header(bpy.types.Header):
layout.itemS()
row.itemO("sequencer.reload")
else:
row.itemR(st, "display_channel") # text="Chan"
row.itemR(st, "display_channel", text=" Channel")
class SEQUENCER_MT_view(bpy.types.Menu):
__space_type__ = "SEQUENCE_EDITOR"
__label__ = "View (TODO)"
__label__ = "View"
def draw(self, context):
layout = self.layout
@@ -76,6 +75,7 @@ class SEQUENCER_MT_view(bpy.types.Menu):
layout.itemO("sequencer.view_all")
layout.itemO("sequencer.view_selected")
layout.itemS()
layout.itemO("screen.screen_full_area", text="Toggle Full Screen")
"""

View File

@@ -836,11 +836,11 @@ static void rna_def_space_sequencer(BlenderRNA *brna)
PropertyRNA *prop;
static EnumPropertyItem display_mode_items[] = {
{SEQ_DRAW_SEQUENCE, "SEQUENCER", 0, "Sequencer", ""},
{SEQ_DRAW_IMG_IMBUF, "IMAGE", 0, "Image Preview", ""},
{SEQ_DRAW_IMG_WAVEFORM, "WAVEFORM", 0, "Luma Waveform", ""},
{SEQ_DRAW_IMG_VECTORSCOPE, "VECTOR_SCOPE", 0, "Chroma Vectorscope", ""},
{SEQ_DRAW_IMG_HISTOGRAM, "HISTOGRAM", 0, "Histogram", ""},
{SEQ_DRAW_SEQUENCE, "SEQUENCER", ICON_SEQ_SEQUENCER, "Sequencer", ""},
{SEQ_DRAW_IMG_IMBUF, "IMAGE", ICON_SEQ_PREVIEW, "Image Preview", ""},
{SEQ_DRAW_IMG_WAVEFORM, "WAVEFORM", ICON_SEQ_LUMA_WAVEFORM, "Luma Waveform", ""},
{SEQ_DRAW_IMG_VECTORSCOPE, "VECTOR_SCOPE", ICON_SEQ_CHROMA_SCOPE, "Chroma Vectorscope", ""},
{SEQ_DRAW_IMG_HISTOGRAM, "HISTOGRAM", ICON_SEQ_HISTOGRAM, "Histogram", ""},
{0, NULL, 0, NULL, NULL}};
srna= RNA_def_struct(brna, "SpaceSequenceEditor", "Space");