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.clip_editor_b.set_sensitive(False) 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.middle_notebook.set_current_page(0) # Clear clip selection. movemodes.clear_selection_values() # Set initial edit mode gui.editor_window.tool_selector.set_tool_pixbuf( appconsts.TLINE_TOOL_INSERT) editevent.insert_move_mode_pressed() # 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.clip_editor_b.set_sensitive(False) 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.middle_notebook.set_current_page(0) # Clear clip selection. movemodes.clear_selection_values() # Set initial edit mode gui.editor_window.modes_selector.set_pixbuf(0) editevent.insert_move_mode_pressed() # Create array needed to update compositors after all edits editorstate.current_sequence().restack_compositors() proxyediting.set_menu_to_proxy_state() # Enable edit action GUI updates edit.do_gui_update = True
def handle_insert_move_mode_button_press(self): editevent.insert_move_mode_pressed() self.set_cursor_to_mode()
def do_rendering(): editevent.insert_move_mode_pressed() render.render_timeline()