def __init__(self): Gtk.Dialog.__init__( self, _("Welcome To Flowblade 2"), None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT, (_("Select Preset Workflow and Continue").encode('utf-8'), Gtk.ResponseType.ACCEPT)) self.DEFAULT_SELECTION = 1 info_label_text_1 = _( "To audio sync clips you need move action origin clip by " ) # + str(data.clip_tline_media_offset - data.media_offset_frames) + _(" frames.") info_label_1 = Gtk.Label(info_label_text_1) info_label_text_2 = _( "To audio sync clips you need move action origin clip by " ) # + str(data.clip_tline_media_offset - data.media_offset_frames) + _(" frames.") info_label_2 = Gtk.Label(info_label_text_2) preset_workflow_text_1 = _( "workflow 1 " ) # + str(data.clip_tline_media_offset - data.media_offset_frames) + _(" frames.") workflow_select_item_1 = self.get_workflow_select_item( 1, preset_workflow_text_1) preset_workflow_text_2 = _( "workflow 2 " ) # + str(data.clip_tline_media_offset - data.media_offset_frames) + _(" frames.") workflow_select_item_2 = self.get_workflow_select_item( 2, preset_workflow_text_1) panel_vbox = Gtk.VBox(False, 2) panel_vbox.pack_start(guiutils.get_pad_label(24, 12), False, False, 0) panel_vbox.pack_start(guiutils.get_left_justified_box([info_label_1]), False, False, 0) panel_vbox.pack_start(workflow_select_item_1, False, False, 0) panel_vbox.pack_start(workflow_select_item_2, False, False, 0) panel_vbox.pack_start(info_label_2, False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 24), False, False, 0) alignment = dialogutils.get_alignment2(panel_vbox) self.vbox.pack_start(alignment, True, True, 0) dialogutils.set_outer_margins(self.vbox) dialogs._default_behaviour(self) self.connect('response', self.done) self.show_all()
def __init__(self): Gtk.Dialog.__init__( self, _("Workflow First Run Wizard"), gui.editor_window.window, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT, (_("Select Preset Workflow and Continue"), Gtk.ResponseType.ACCEPT)) self.selection = STANDARD_PRESET info_label_text_1 = _("<b>Welcome to Flowblade 2.4</b>") info_label_1 = Gtk.Label(info_label_text_1) info_label_1.set_use_markup(True) info_label_text_2 = _( "<b>Flowblade 2.4</b> comes with a configurable workflow.") info_label_2 = Gtk.Label(info_label_text_2) info_label_2.set_use_markup(True) INDENT = " " info_label_text_6 = INDENT + "\u2022" + _(" You can select which <b>tools</b> you want to use.\n") + \ INDENT + "\u2022" + _(" Many timeline edit <b>behaviours</b> are configurable.\n") info_label_6 = Gtk.Label(info_label_text_6) info_label_6.set_use_markup(True) info_label_text_3 = _("<b>Select Workflow Preset</b>") info_label_3 = Gtk.Label(info_label_text_3) info_label_3.set_use_markup(True) guiutils.set_margins(info_label_3, 0, 4, 0, 0) info_label_text_7 = _( "You can change and configure individual tools and behaviours <b>anytime</b>" ) info_label_7 = Gtk.Label(info_label_text_7) info_label_7.set_use_markup(True) info_label_text_4 = _(" by pressing ") info_label_4 = Gtk.Label(info_label_text_4) info_label_4.set_use_markup(True) icon = Gtk.Image.new_from_file(respaths.IMAGE_PATH + "workflow.png") info_label_text_5 = _(" icon.") info_label_5 = Gtk.Label(info_label_text_5) workflow_name = _("<b>Standard</b>") stadard_preset_workflow_text_1 = _( "Standard workflow has the <b>Move</b> tool as default tool\nand presents a workflow\nsimilar to most video editors." ) workflow_select_item_1 = self.get_workflow_select_item( STANDARD_PRESET, workflow_name, stadard_preset_workflow_text_1) workflow_name = _("<b>Film Style</b>") filmstyle_preset_workflow_text_2 = _( "Film Style workflow has the <b>Insert</b> tool as default tool\nand employs insert style editing.\nThis was the workflow in previous versions of the application." ) workflow_select_item_2 = self.get_workflow_select_item( FILM_STYLE_PRESET, workflow_name, filmstyle_preset_workflow_text_2) workflow_name = _("<b>Keep Existing Worflow</b>") keep_workflow_text_2 = _( "Select this if you have installed new version and wish to keep your existing workflow." ) workflow_select_item_3 = self.get_workflow_select_item( KEEP_EXISTING, workflow_name, keep_workflow_text_2) self.workflow_items = [ workflow_select_item_1, workflow_select_item_2, workflow_select_item_3 ] panel_vbox = Gtk.VBox(False, 2) panel_vbox.pack_start(guiutils.get_pad_label(24, 12), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_1]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 12), False, False, 0) panel_vbox.pack_start(guiutils.get_left_justified_box([info_label_2]), False, False, 0) panel_vbox.pack_start(guiutils.get_left_justified_box([info_label_6]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 24), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_3]), False, False, 0) panel_vbox.pack_start(workflow_select_item_1, False, False, 0) panel_vbox.pack_start(workflow_select_item_2, False, False, 0) panel_vbox.pack_start(workflow_select_item_3, False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 48), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_7]), False, False, 0) panel_vbox.pack_start( guiutils.get_centered_box([info_label_4, icon, info_label_5]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 24), False, False, 0) alignment = dialogutils.get_alignment2(panel_vbox) self.vbox.pack_start(alignment, True, True, 0) dialogutils.set_outer_margins(self.vbox) dialogs._default_behaviour(self) self.connect('response', self.done) self.show_all()
def __init__(self): Gtk.Dialog.__init__(self, _("Workflow First Run Wizard"), gui.editor_window.window, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT, (_("Select Preset Workflow and Continue").encode('utf-8'), Gtk.ResponseType.ACCEPT)) self.selection = STANDARD_PRESET info_label_text_1 = _("<b>Welcome to Flowblade 2.0</b>") info_label_1 = Gtk.Label(info_label_text_1) info_label_1.set_use_markup(True) info_label_text_2 = _("<b>Flowblade 2.0</b> comes with a configurable workflow.") info_label_2 = Gtk.Label(info_label_text_2) info_label_2.set_use_markup(True) INDENT = " " info_label_text_6 = INDENT + u"\u2022" + _(" You can select which <b>tools</b> you want to use.\n") + \ INDENT + u"\u2022" + _(" Many timeline edit <b>behaviours</b> are configurable.\n") info_label_6 = Gtk.Label(info_label_text_6) info_label_6.set_use_markup(True) info_label_text_3 = _("<b>Select Workflow Preset</b>") info_label_3 = Gtk.Label(info_label_text_3) info_label_3.set_use_markup(True) guiutils.set_margins(info_label_3, 0, 4, 0, 0) info_label_text_7 = _("You can change and configure individual tools and behaviours <b>anytime</b>") info_label_7 = Gtk.Label(info_label_text_7) info_label_7.set_use_markup(True) info_label_text_4 = _(" by pressing ") info_label_4 = Gtk.Label(info_label_text_4) info_label_4.set_use_markup(True) icon = Gtk.Image.new_from_file(respaths.IMAGE_PATH + "workflow.png") info_label_text_5 = _(" icon.") info_label_5 = Gtk.Label(info_label_text_5) workflow_name = _("<b>Standard</b>") stadard_preset_workflow_text_1 = _("Standard workflow has the <b>Move</b> tool as default tool\nand presents a workflow\nsimilar to most video editors.") workflow_select_item_1 = self.get_workflow_select_item(STANDARD_PRESET, workflow_name, stadard_preset_workflow_text_1) workflow_name = _("<b>Film Style</b>") filmstyle_preset_workflow_text_2 = _("Film Style workflow has the <b>Insert</b> tool as default tool\nand employs insert style editing.\nThis was the workflow in previous versions of the application.") workflow_select_item_2 = self.get_workflow_select_item(FILM_STYLE_PRESET, workflow_name, filmstyle_preset_workflow_text_2) self.workflow_items = [workflow_select_item_1, workflow_select_item_2] panel_vbox = Gtk.VBox(False, 2) panel_vbox.pack_start(guiutils.get_pad_label(24, 12), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_1]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 12), False, False, 0) panel_vbox.pack_start(guiutils.get_left_justified_box([info_label_2]), False, False, 0) panel_vbox.pack_start(guiutils.get_left_justified_box([info_label_6]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 24), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_3]), False, False, 0) panel_vbox.pack_start(workflow_select_item_1, False, False, 0) panel_vbox.pack_start(workflow_select_item_2, False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 48), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_7]), False, False, 0) panel_vbox.pack_start(guiutils.get_centered_box([info_label_4, icon, info_label_5]), False, False, 0) panel_vbox.pack_start(guiutils.get_pad_label(24, 24), False, False, 0) alignment = dialogutils.get_alignment2(panel_vbox) self.vbox.pack_start(alignment, True, True, 0) dialogutils.set_outer_margins(self.vbox) dialogs._default_behaviour(self) self.connect('response', self.done) self.show_all()