Example #1
0
def _compositor_hamburger_item_activated(widget, msg):
    if msg == "save":
        comp_name = mlttransitions.name_for_type[compositor.transition.info.name]
        default_name = comp_name.replace(" ", "_") + _("_compositor_values") + ".data"
        dialogs.save_effects_compositors_values(_save_compositor_values_dialog_callback, default_name, False)
    elif msg == "load":
        dialogs.load_effects_compositors_values_dialog(_load_compositor_values_dialog_callback, False)
    elif msg == "reset":
        _reset_compositor_pressed()
    elif msg == "delete":
        _delete_compositor_pressed()
    elif msg == "close":
        clear_compositor()
    elif msg == "fade_length":
        dialogs.set_fade_length_default_dialog(_set_fade_length_dialog_callback, PROJECT().get_project_property(appconsts.P_PROP_DEFAULT_FADE_LENGTH))
Example #2
0
def _clip_hamburger_item_activated(widget, msg):
    if msg == "fade_length":
        dialogs.set_fade_length_default_dialog(
            _set_fade_length_dialog_callback,
            PROJECT().get_project_property(
                appconsts.P_PROP_DEFAULT_FADE_LENGTH))

    if _filter_stack == None:
        return False

    if msg == "close":
        clear_clip()
    elif msg == "expanded":
        _filter_stack.set_all_filters_expanded_state(True)
    elif msg == "unexpanded":
        _filter_stack.set_all_filters_expanded_state(False)
    elif msg == "toggle":
        _toggle_all_pressed()
def _clip_hamburger_item_activated(widget, msg):
    if msg == "save":
        filter_object = clip.filters[current_filter_index]
        default_name = filter_object.info.name + _("_effect_values") + ".data"
        dialogs.save_effects_compositors_values(
            _save_effect_values_dialog_callback, default_name)
    elif msg == "load":
        dialogs.load_effects_compositors_values_dialog(
            _load_effect_values_dialog_callback)
    elif msg == "reset":
        _reset_filter_values()
    elif msg == "delete":
        _delete_effect()
    elif msg == "fade_length":
        dialogs.set_fade_length_default_dialog(
            _set_fade_length_dialog_callback,
            PROJECT().get_project_property(
                appconsts.P_PROP_DEFAULT_FADE_LENGTH))
    elif msg == "close":
        clear_clip()