def init_editor_state(): """ Called after project load or changing current sequence to initalize editor state. """ render.fill_out_profile_widgets() gui.media_view_filter_selector.set_pixbuf(editorstate.media_view_filter) gui.editor_window.window.set_title(editorstate.project.name + " - Flowblade") gui.editor_window.uimanager.get_widget( "/MenuBar/FileMenu/Save").set_sensitive(False) gui.editor_window.uimanager.get_widget( "/MenuBar/EditMenu/Undo").set_sensitive(False) gui.editor_window.uimanager.get_widget( "/MenuBar/EditMenu/Redo").set_sensitive(False) # Center tracks vertical display and init some listeners to # new value and repaint tracks column. tlinewidgets.set_ref_line_y(gui.tline_canvas.widget.get_allocation()) gui.tline_column.init_listeners() gui.tline_column.widget.queue_draw() # Clear editors clipeffectseditor.clear_clip() compositeeditor.clear_compositor() # Show first pages on notebooks gui.editor_window.notebook.set_current_page(0) # Clear clip selection. movemodes.clear_selection_values() # Set initial edit mode modesetting.set_default_edit_mode() # Create array needed to update compositors after all edits editorstate.current_sequence().restack_compositors() proxyediting.set_menu_to_proxy_state() undo.clear_undos() # Enable edit action GUI updates edit.do_gui_update = True
def init_editor_state(): """ Called after project load or changing current sequence to initalize editor state. """ render.fill_out_profile_widgets() gui.media_view_filter_selector.set_pixbuf(editorstate.media_view_filter) gui.editor_window.window.set_title(editorstate.project.name + " - Flowblade") gui.editor_window.uimanager.get_widget("/MenuBar/FileMenu/Save").set_sensitive(False) gui.editor_window.uimanager.get_widget("/MenuBar/EditMenu/Undo").set_sensitive(False) gui.editor_window.uimanager.get_widget("/MenuBar/EditMenu/Redo").set_sensitive(False) # Center tracks vertical display and init some listeners to # new value and repaint tracks column. tlinewidgets.set_ref_line_y(gui.tline_canvas.widget.get_allocation()) gui.tline_column.init_listeners() gui.tline_column.widget.queue_draw() # Clear editors clipeffectseditor.clear_clip() clipeffectseditor.effect_selection_changed() # to get No Clip text compositeeditor.clear_compositor() # Show first pages on notebooks gui.middle_notebook.set_current_page(0) # Clear clip selection. movemodes.clear_selection_values() # Set initial edit mode modesetting.set_default_edit_mode() # Create array needed to update compositors after all edits editorstate.current_sequence().restack_compositors() proxyediting.set_menu_to_proxy_state() undo.clear_undos() # Enable edit action GUI updates edit.do_gui_update = True
def clear_clip_from_editors(clip): if clipeffectseditor.clip == clip: clipeffectseditor.clear_clip()
def clear_kf_editor(): clipeffectseditor.clear_clip()
def clear_clip_from_editors(clip): if clipeffectseditor.clip_is_being_edited(clip): clipeffectseditor.clear_clip()
def clear_effects_editor_clip(): clipeffectseditor.clear_clip()