LiVES  3.2.0
Functions
callbacks.h File Reference
#include "interface.h"

Go to the source code of this file.

Functions

void lives_exit (int signum)
 
void lives_notify (int msgnumber, const char *msgstring)
 
void lives_notify_int (int msgnumber, int msgint)
 
void play_all (boolean from_menu)
 
void play_sel (void)
 
void lock_set_file (const char *set_name)
 
void unlock_set_file (const char *set_name)
 
void on_effects_paused (LiVESButton *, livespointer)
 
void on_cancel_keep_button_clicked (LiVESButton *, livespointer)
 
void on_cleardisk_activate (LiVESWidget *, livespointer)
 
void on_cleardisk_advanced_clicked (LiVESWidget *, livespointer)
 
boolean check_for_layout_errors (const char *operation, int fileno, int start, int end, uint32_t *in_mask)
 check for layout errors, using in_mask as a guide (mask values are taken from prefs->warn_mask, but with opposite sense) More...
 
void popup_lmap_errors (LiVESMenuItem *, livespointer)
 
void switch_clip (int type, int newclip, boolean force)
 
void switch_clip_activate (LiVESMenuItem *, livespointer)
 
void on_details_button_clicked (void)
 
boolean on_LiVES_delete_event (LiVESWidget *, LiVESXEvent *, livespointer)
 
void on_open_activate (LiVESMenuItem *, livespointer)
 
void on_open_sel_activate (LiVESMenuItem *, livespointer)
 
void on_open_loc_activate (LiVESMenuItem *, livespointer)
 
void on_open_utube_activate (LiVESMenuItem *, livespointer)
 
void on_stop_clicked (LiVESMenuItem *, livespointer)
 
void on_save_selection_activate (LiVESMenuItem *, livespointer)
 
void on_save_as_activate (LiVESMenuItem *, livespointer)
 
void on_show_clipboard_info_activate (LiVESMenuItem *, livespointer)
 
void on_close_activate (LiVESMenuItem *, livespointer)
 
void on_import_proj_activate (LiVESMenuItem *, livespointer)
 
void on_export_proj_activate (LiVESMenuItem *, livespointer)
 
void on_export_theme_activate (LiVESMenuItem *, livespointer)
 
void on_import_theme_activate (LiVESMenuItem *, livespointer)
 
void on_quit_activate (LiVESMenuItem *, livespointer)
 
void del_current_set (boolean exit_after)
 
void on_undo_activate (LiVESWidget *, livespointer)
 
void on_redo_activate (LiVESWidget *, livespointer)
 
void on_paste_as_new_activate (LiVESMenuItem *, livespointer)
 
void on_copy_activate (LiVESMenuItem *, livespointer)
 
void on_cut_activate (LiVESMenuItem *, livespointer)
 
void on_insert_pre_activate (LiVESMenuItem *, livespointer)
 
void on_insert_activate (LiVESButton *, livespointer)
 
void on_merge_activate (LiVESMenuItem *, livespointer)
 
void on_delete_activate (LiVESMenuItem *, livespointer)
 
void update_sel_menu (void)
 
void on_select_all_activate (LiVESWidget *, livespointer)
 
void on_select_new_activate (LiVESMenuItem *, livespointer)
 
void on_select_last_activate (LiVESMenuItem *, livespointer)
 
void on_select_to_end_activate (LiVESMenuItem *, livespointer)
 
void on_select_to_aend_activate (LiVESMenuItem *, livespointer)
 
void on_select_from_start_activate (LiVESMenuItem *, livespointer)
 
void on_lock_selwidth_activate (LiVESMenuItem *, livespointer)
 
void on_playall_activate (LiVESMenuItem *, livespointer)
 
void on_playsel_activate (LiVESMenuItem *, livespointer)
 
void on_playclip_activate (LiVESMenuItem *, livespointer)
 
void on_stop_activate (LiVESMenuItem *, livespointer)
 
void on_rev_clipboard_activate (LiVESMenuItem *, livespointer)
 
void on_encoder_entry_changed (LiVESCombo *, livespointer ptr)
 
void on_show_file_info_activate (LiVESMenuItem *, livespointer)
 
void on_about_activate (LiVESMenuItem *, livespointer)
 
void show_manual_activate (LiVESMenuItem *, livespointer)
 
void email_author_activate (LiVESMenuItem *, livespointer)
 
void donate_activate (LiVESMenuItem *, livespointer)
 
void report_bug_activate (LiVESMenuItem *, livespointer)
 
void suggest_feature_activate (LiVESMenuItem *, livespointer)
 
void help_translate_activate (LiVESMenuItem *, livespointer)
 
void vj_mode_toggled (LiVESCheckMenuItem *, livespointer)
 
void on_ok_button1_clicked (LiVESButton *, livespointer)
 
void on_ok_file_open_clicked (LiVESFileChooser *, LiVESSList *fnames)
 
void on_location_select (LiVESButton *, livespointer)
 
lives_remote_clip_request_ton_utube_select (lives_remote_clip_request_t *req, const char *tmpdir)
 
void on_opensel_range_ok_clicked (LiVESButton *, livespointer)
 
void on_open_sel_ok_button_clicked (LiVESButton *, livespointer)
 
void on_save_textview_clicked (LiVESButton *, livespointer)
 
void on_filechooser_cancel_clicked (LiVESWidget *)
 
void on_full_screen_pressed (LiVESButton *, livespointer)
 
void on_full_screen_activate (LiVESMenuItem *, livespointer)
 
void on_double_size_pressed (LiVESButton *, livespointer)
 
void on_double_size_activate (LiVESMenuItem *, livespointer)
 
void on_sepwin_pressed (LiVESButton *, livespointer)
 
void on_sepwin_activate (LiVESMenuItem *, livespointer)
 
void on_fade_pressed (LiVESButton *, livespointer)
 
void on_fade_activate (LiVESMenuItem *, livespointer)
 
void on_loop_video_activate (LiVESMenuItem *, livespointer)
 
void on_mute_button_activate (LiVESMenuItem *, livespointer)
 
void on_mute_activate (LiVESMenuItem *, livespointer)
 
void on_resize_activate (LiVESMenuItem *, livespointer)
 
void on_rename_activate (LiVESMenuItem *, livespointer)
 
void on_rename_clip_name (LiVESButton *, livespointer)
 
void on_spinbutton_start_value_changed (LiVESSpinButton *, livespointer)
 
void on_spinbutton_end_value_changed (LiVESSpinButton *, livespointer)
 
void on_open_new_audio_clicked (LiVESFileChooser *, livespointer opt_filename)
 
void on_load_audio_activate (LiVESMenuItem *, livespointer)
 
void on_load_subs_activate (LiVESMenuItem *, livespointer)
 
void on_save_subs_activate (LiVESMenuItem *, livespointer entry_widget)
 
void on_erase_subs_activate (LiVESMenuItem *, livespointer)
 
void on_insfitaudio_toggled (LiVESToggleButton *, livespointer)
 
void on_resize_hsize_value_changed (LiVESSpinButton *, livespointer)
 
void on_resize_vsize_value_changed (LiVESSpinButton *, livespointer)
 
void on_resize_ok_clicked (LiVESButton *, livespointer)
 
void on_spin_value_changed (LiVESSpinButton *, livespointer)
 
void on_spin_start_value_changed (LiVESSpinButton *, livespointer user_data)
 
void on_spin_step_value_changed (LiVESSpinButton *, livespointer)
 
void on_spin_end_value_changed (LiVESSpinButton *, livespointer)
 
 EXPOSE_FN_PROTOTYPE (expose_vid_event)
 
 EXPOSE_FN_PROTOTYPE (expose_laud_event)
 
 EXPOSE_FN_PROTOTYPE (expose_raud_event)
 
void on_preview_clicked (LiVESButton *, livespointer)
 
void on_recent_activate (LiVESMenuItem *, livespointer)
 
boolean all_expose_pb (LiVESWidget *, lives_painter_t *, livespointer psurf)
 
boolean all_expose_overlay (LiVESWidget *, lives_painter_t *, livespointer psurf)
 
boolean all_expose_nopb (LiVESWidget *, lives_painter_t *, livespointer psurf)
 
boolean config_event (LiVESWidget *, LiVESXEventConfigure *, livespointer)
 
boolean config_event2 (LiVESWidget *, LiVESXEventConfigure *, livespointer)
 
void changed_fps_during_pb (LiVESSpinButton *, livespointer)
 This is a super important function : almost everything related to velocity direction changes during playback should ensurre this function is called. More...
 
void on_volch_pressed (LiVESButton *, livespointer dirny)
 
boolean on_mouse_scroll (LiVESWidget *, LiVESXEventScroll *, livespointer)
 
boolean on_mouse_sel_update (LiVESWidget *, LiVESXEventMotion *, livespointer)
 
boolean on_mouse_sel_reset (LiVESWidget *, LiVESXEventButton *, livespointer)
 
boolean on_mouse_sel_start (LiVESWidget *, LiVESXEventButton *, livespointer)
 
void on_load_cdtrack_activate (LiVESMenuItem *, livespointer)
 
void on_load_cdtrack_ok_clicked (LiVESButton *, livespointer)
 
void on_eject_cd_activate (LiVESMenuItem *, livespointer)
 
void on_slower_pressed (LiVESButton *, livespointer)
 
void on_faster_pressed (LiVESButton *, livespointer)
 
void on_less_pressed (LiVESButton *, livespointer)
 
void on_more_pressed (LiVESButton *, livespointer)
 
void on_back_pressed (LiVESButton *, livespointer)
 
void on_forward_pressed (LiVESButton *, livespointer)
 
boolean clip_can_reverse (int clipno)
 
boolean dirchange_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer area_enum)
 
boolean dirchange_lock_callback (LiVESAccelGroup *group, LiVESWidgetObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer area_enum)
 set in / out points for video looping during free playback, it is possible to set in / out points for video looping after setting both points, the video becomes "loop locked", i.e when one point is reached, it will jump to the other point (if the clip can reversee the it will instead ping-pong between the 2 points, ie. More...
 
void unlock_loop_lock (void)
 
void on_capture_activate (LiVESMenuItem *, livespointer)
 
void on_capture2_activate (void)
 
void on_select_invert_activate (LiVESMenuItem *, livespointer)
 
void on_warn_mask_toggled (LiVESToggleButton *, livespointer)
 
boolean frame_context (LiVESWidget *, LiVESXEventButton *, livespointer which)
 
void on_fs_preview_clicked (LiVESWidget *, livespointer)
 
void on_restore_activate (LiVESMenuItem *, livespointer)
 
void on_backup_activate (LiVESMenuItem *, livespointer)
 
void on_record_perf_activate (LiVESMenuItem *, livespointer)
 
boolean record_toggle_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t keyval, LiVESXModifierType mod, livespointer)
 
boolean fps_reset_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t keyval, LiVESXModifierType mod, livespointer)
 
boolean mute_audio_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t keyval, LiVESXModifierType mod, livespointer)
 
boolean on_stop_activate_by_del (LiVESWidget *, LiVESXEvent *, livespointer)
 
void on_pause_clicked (void)
 
void on_select_start_only_activate (LiVESMenuItem *, livespointer)
 
void on_select_end_only_activate (LiVESMenuItem *, livespointer)
 
void on_encoder_ofmt_changed (LiVESCombo *, livespointer)
 
void on_ok_export_audio_clicked (LiVESButton *, livespointer)
 
void on_normalise_audio_activate (LiVESMenuItem *, livespointer)
 
void on_append_audio_activate (LiVESMenuItem *, livespointer)
 
void on_rb_audrec_time_toggled (LiVESToggleButton *, livespointer)
 
void on_recaudclip_activate (LiVESMenuItem *, livespointer)
 
void on_recaudsel_activate (LiVESMenuItem *, livespointer)
 
void on_recaudclip_ok_clicked (LiVESButton *, livespointer)
 
void on_volume_slider_value_changed (LiVESRange *, livespointer)
 
void on_voladj_activate (LiVESMenuItem *, livespointer)
 
void on_fade_audio_activate (LiVESMenuItem *, livespointer)
 
void on_resample_video_activate (LiVESMenuItem *, livespointer)
 
void on_resample_vid_ok (LiVESButton *, LiVESEntry *entry)
 
boolean on_trim_audio_activate (LiVESMenuItem *, livespointer)
 
void on_resample_audio_activate (LiVESMenuItem *, livespointer)
 
void on_export_audio_activate (LiVESMenuItem *, livespointer)
 
void on_resaudio_ok_clicked (LiVESButton *, LiVESEntry *entry)
 
void on_cancel_opensel_clicked (LiVESButton *, livespointer)
 
void end_fs_preview (void)
 
void on_sticky_activate (LiVESMenuItem *, livespointer)
 
void on_resaudw_asamps_changed (LiVESWidget *, livespointer)
 
void on_insertwsound_toggled (LiVESToggleButton *, livespointer)
 
void on_showfct_activate (LiVESMenuItem *, livespointer)
 
void on_boolean_toggled (LiVESWidgetObject *, livespointer)
 
void on_audio_toggled (LiVESWidget *, LiVESWidget *label)
 
void on_showsubs_toggled (LiVESWidgetObject *, livespointer)
 
void on_show_messages_activate (LiVESMenuItem *, livespointer)
 
boolean on_hrule_update (LiVESWidget *, LiVESXEventMotion *, livespointer)
 
boolean on_hrule_set (LiVESWidget *, LiVESXEventButton *, livespointer)
 
boolean on_hrule_reset (LiVESWidget *, LiVESXEventButton *, livespointer)
 
void on_rewind_activate (LiVESMenuItem *, livespointer)
 
void on_loop_button_activate (LiVESMenuItem *, livespointer)
 
void on_loop_cont_activate (LiVESMenuItem *, livespointer)
 
void on_show_file_comments_activate (LiVESMenuItem *, livespointer)
 
void on_toolbar_hide (LiVESButton *, livespointer)
 
void on_toy_activate (LiVESMenuItem *, livespointer old_toy_p)
 
void autolives_toggle (LiVESMenuItem *, livespointer)
 
void on_preview_spinbutton_changed (LiVESSpinButton *, livespointer)
 
boolean prevclip_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer)
 
boolean nextclip_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer)
 
boolean freeze_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer)
 
boolean storeclip_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer)
 jump to a stored clip / frame position during free playback clip number and frame position can be stored and later triggered during playback More...
 
boolean nervous_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer)
 
boolean aud_lock_callback (LiVESAccelGroup *group, LiVESWidgetObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer statep)
 lock or unlock audio track changes in free playback if lock is switched on then the prefs to follow video clip changes and rate / direction changes are overriden, in addition the audio is ismmediately synced to the current video track More...
 
char * get_palette_name_for_clip (int clipno)
 
boolean show_sync_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer clip_number)
 
boolean on_save_set_activate (LiVESWidget *, livespointer)
 
void on_save_set_ok (void)
 
char * on_load_set_activate (LiVESMenuItem *, livespointer)
 
boolean reload_set (const char *set_name)
 
void on_open_vcd_activate (LiVESMenuItem *, livespointer int_type)
 
void on_load_vcd_ok_clicked (LiVESButton *, livespointer)
 
void on_ping_pong_activate (LiVESMenuItem *, livespointer)
 
void on_show_keys_activate (LiVESMenuItem *, livespointer)
 
void on_vj_reset_activate (LiVESMenuItem *, livespointer)
 
void on_vj_realize_activate (LiVESMenuItem *, livespointer)
 
void on_prv_link_toggled (LiVESToggleButton *, livespointer)
 
boolean on_del_audio_activate (LiVESMenuItem *, livespointer)
 
boolean on_ins_silence_activate (LiVESMenuItem *, livespointer)
 
void on_ins_silence_details_clicked (LiVESButton *, livespointer)
 
void on_lerrors_close_clicked (LiVESButton *, livespointer)
 
void on_lerrors_clear_clicked (LiVESButton *, livespointer)
 
void on_lerrors_delete_clicked (LiVESButton *, livespointer)
 

Function Documentation

◆ all_expose_nopb()

boolean all_expose_nopb ( LiVESWidget *  ,
lives_painter_t *  ,
livespointer  psurf 
)

Definition at line 9963 of file callbacks.c.

◆ all_expose_overlay()

boolean all_expose_overlay ( LiVESWidget *  ,
lives_painter_t *  ,
livespointer  psurf 
)

quick and dirty copy / paste

Definition at line 9870 of file callbacks.c.

◆ all_expose_pb()

boolean all_expose_pb ( LiVESWidget *  ,
lives_painter_t *  ,
livespointer  psurf 
)

Definition at line 9958 of file callbacks.c.

◆ aud_lock_callback()

boolean aud_lock_callback ( LiVESAccelGroup *  group,
LiVESWidgetObject *  obj,
uint32_t  keyval,
LiVESXModifierType  mod,
livespointer  statep 
)

lock or unlock audio track changes in free playback if lock is switched on then the prefs to follow video clip changes and rate / direction changes are overriden, in addition the audio is ismmediately synced to the current video track

switching off audio lock re-enables these prefs settings

if LiVES is not playing, or the audio player is non-realtime then there is no effect

Definition at line 11248 of file callbacks.c.

◆ autolives_toggle()

void autolives_toggle ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 9398 of file callbacks.c.

Referenced by lives_exit().

◆ changed_fps_during_pb()

void changed_fps_during_pb ( LiVESSpinButton *  spinbutton,
livespointer  user_data 
)

This is a super important function : almost everything related to velocity direction changes during playback should ensurre this function is called.

For example it user_data is non-NULL, will also set the audio player rate / direction. Even if the clip is frozen, we still update the freeze fps so that when it is unfrozen it starts with the correct velocity.

user_data non-NULL to force audio rate update

we must scale the frame delta, since e.g if we were a halfway through the frame and the fps increased, we could end up jumping several frames

the time we would shown the last frame at using the new fps

Definition at line 10522 of file callbacks.c.

Referenced by aud_lock_callback(), do_quick_switch(), and fps_reset_callback().

◆ check_for_layout_errors()

boolean check_for_layout_errors ( const char *  operation,
int  fileno,
int  start,
int  end,
uint32_t *  in_mask 
)

check for layout errors, using in_mask as a guide (mask values are taken from prefs->warn_mask, but with opposite sense)

This function should ALWAYS be called before any operations are performed which may do any of the following:

  • delete frames, shift frames, alter frames (e.g. insert, delete, resample, apply rendered effects).
  • delete audio, shift audio, alter audio (e.g. insert / delete with audio, resample, adjust the volume)
  • (deletion includes closing the clip)
  • some operations are exempt (i.e resizing frames, converting the frame / sample format, appending after the end, temporary changes which affect only playback such as applying real time effects, letterboxing, altering the playback rate)

– changing clip audio volume is somewhat undefined as this is a new feature and can be both a playback change and / or permanent change. However fade in / out and insert silence are more permanent and should call this function.

  • the order of priority for both frames and audio is always: delete > shift > alter the default settings are to warn on delete / shift and not to warn on alter; however the user preferences may override this

start and end represent frame values for the affected region. For audio, the values should approximate the start and end points, (though normally they would be the correct points) and end may extend beyond the actual frame count.

After checking, in_mask is set (reduced) to to any 'trangressions' found - this will be the intersection (AND) of the check_mask, AND detected transgressions AND the conjunction of non-disabled warnings.

if the resulting set is non-empty, then prior to returning, a warning dialog is displayed. 'operation' is a descriptive word / phrase for what the operation intends to be doing, e.g "deletion", "cutting", "pasting" which used in the dialog message.

if the user cancels, FALSE is returned. and the caller should abort whatever operation.

if the user chooses to continue, warnings are added to the layout errors buffer am TRUE is returned. (within the buffer, errors of the same type are collated and organised by priority, so there is no harm in calling this function multiple times).

If no warnings are shown (either because there were no conflicts, or because the user disabled the warnings) then TRUE is also returned, and in this case chk_mask will be 0.

After return from this function, if the return value is TRUE the operation may proceed, but the following must be observed:

  • If the operation fails or is cancelled. any buffered warnings should be cleared by calling: unbuffer_lmap_errors(FALSE); (this function may always be called, even if chk_mask was returned as 0)

Otherwise, after the operation completes something like the following must be done:

if (chk_mask != 0) popup_lmap_errors(NULL, LIVES_INT_TO_POINTER(chk_mask));

this latter function must be called if and only if chk_mask was returned with a non-zero value.

Definition at line 4059 of file callbacks.c.

Referenced by on_append_audio_activate(), on_change_speed_ok_clicked(), on_cut_activate(), on_fade_audio_activate(), on_load_cdtrack_ok_clicked(), on_open_new_audio_clicked(), on_realfx_activate(), on_render_fx_activate(), and on_resaudio_ok_clicked().

◆ clip_can_reverse()

boolean clip_can_reverse ( int  clipno)

◆ config_event()

boolean config_event ( LiVESWidget *  ,
LiVESXEventConfigure *  ,
livespointer   
)

Definition at line 10090 of file callbacks.c.

◆ config_event2()

boolean config_event2 ( LiVESWidget *  ,
LiVESXEventConfigure *  ,
livespointer   
)

Definition at line 10035 of file callbacks.c.

◆ del_current_set()

void del_current_set ( boolean  exit_after)

Definition at line 2078 of file callbacks.c.

Referenced by on_quit_activate().

◆ dirchange_callback()

boolean dirchange_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  area_enum 
)

set this so we invalid preload cache

Definition at line 4996 of file callbacks.c.

Referenced by fps_reset_callback().

◆ dirchange_lock_callback()

boolean dirchange_lock_callback ( LiVESAccelGroup *  group,
LiVESWidgetObject *  obj,
uint32_t  keyval,
LiVESXModifierType  mod,
livespointer  area_enum 
)

set in / out points for video looping during free playback, it is possible to set in / out points for video looping after setting both points, the video becomes "loop locked", i.e when one point is reached, it will jump to the other point (if the clip can reversee the it will instead ping-pong between the 2 points, ie.

when one end point is reached,, the playdirection will flip)

loop lock can be disabled by any of the following: switching to another clip chaging clip direction manually triggering a bookmark ending playback when loop lock is released, the original play direction from before entering the lock is applied, if the lock was ended by triggering a direction change then the actual direction change is ignored

If both are already set, then triggering this again will reduce the loop length

store original direction so when we unlock loop lock we come out with original this is reversed because we already had one reversal

Definition at line 5054 of file callbacks.c.

◆ donate_activate()

void donate_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7068 of file callbacks.c.

◆ email_author_activate()

void email_author_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7048 of file callbacks.c.

◆ end_fs_preview()

void end_fs_preview ( void  )

◆ EXPOSE_FN_PROTOTYPE() [1/3]

EXPOSE_FN_PROTOTYPE ( expose_laud_event  )

◆ EXPOSE_FN_PROTOTYPE() [2/3]

EXPOSE_FN_PROTOTYPE ( expose_raud_event  )

◆ EXPOSE_FN_PROTOTYPE() [3/3]

EXPOSE_FN_PROTOTYPE ( expose_vid_event  )

◆ fps_reset_callback()

boolean fps_reset_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  keyval,
LiVESXModifierType  mod,
livespointer   
)

Definition at line 5105 of file callbacks.c.

◆ frame_context()

boolean frame_context ( LiVESWidget *  ,
LiVESXEventButton *  ,
livespointer  which 
)

Definition at line 10909 of file callbacks.c.

Referenced by make_preview_box().

◆ freeze_callback()

boolean freeze_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer   
)

Definition at line 11135 of file callbacks.c.

Referenced by changed_fps_during_pb(), mt_swap_play_pause(), and play_file().

◆ get_palette_name_for_clip()

char* get_palette_name_for_clip ( int  clipno)

Definition at line 11272 of file callbacks.c.

◆ help_translate_activate()

void help_translate_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7063 of file callbacks.c.

◆ lives_exit()

void lives_exit ( int  signum)

physically remove:

  • "device" clips, generators, etc.
  • scrap files, if we are not closing or crash recovery is disabled
  • "normal" clips, unless crash recovery is in effect, or
  • we are no exiting and it's the clipboard, or the mt render file

if a set was loaded:

  • if we are only closing them in the app, leave the frames on disk

< stop multitrack from sensitizing too soon

< mt may now sensitize...

Definition at line 145 of file callbacks.c.

Referenced by catch_sigint(), and on_quit_activate().

◆ lives_notify()

void lives_notify ( int  msgnumber,
const char *  msgstring 
)

◆ lives_notify_int()

void lives_notify_int ( int  msgnumber,
int  msgint 
)

Definition at line 77 of file callbacks.c.

◆ lock_set_file()

void lock_set_file ( const char *  set_name)

Definition at line 5638 of file callbacks.c.

Referenced by reload_set().

◆ mute_audio_callback()

boolean mute_audio_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  keyval,
LiVESXModifierType  mod,
livespointer   
)

Definition at line 8392 of file callbacks.c.

◆ nervous_callback()

boolean nervous_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer   
)

Definition at line 11231 of file callbacks.c.

◆ nextclip_callback()

boolean nextclip_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer   
)

< auto (switch bg if a transition is active, otherwise foreground)

Definition at line 5199 of file callbacks.c.

Referenced by on_mouse_scroll().

◆ on_about_activate()

void on_about_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6977 of file callbacks.c.

◆ on_append_audio_activate()

void on_append_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 11882 of file callbacks.c.

◆ on_audio_toggled()

void on_audio_toggled ( LiVESWidget *  ,
LiVESWidget *  label 
)

Definition at line 8284 of file callbacks.c.

◆ on_back_pressed()

void on_back_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 11080 of file callbacks.c.

Referenced by skip_back_callback().

◆ on_backup_activate()

void on_backup_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1996 of file callbacks.c.

◆ on_boolean_toggled()

void on_boolean_toggled ( LiVESWidgetObject *  ,
livespointer   
)

◆ on_cancel_keep_button_clicked()

void on_cancel_keep_button_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 7701 of file callbacks.c.

Referenced by check_storage_space(), and create_processing().

◆ on_cancel_opensel_clicked()

void on_cancel_opensel_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 7684 of file callbacks.c.

Referenced by create_opensel_dialog().

◆ on_capture2_activate()

void on_capture2_activate ( void  )

Definition at line 11635 of file callbacks.c.

◆ on_capture_activate()

void on_capture_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 11400 of file callbacks.c.

◆ on_cleardisk_activate()

void on_cleardisk_activate ( LiVESWidget *  ,
livespointer   
)

< avoid nested warnings

< indicates we tried ds recovery already

< auto reset by do_warning_dialog()

user accepted

try to recover lost files first

handle any remnants. Remove any entries from recnlist which are now loaded the remainder will be deleted or moved to "unrecoverable_clips"

handle unrecovered items

Definition at line 6139 of file callbacks.c.

Referenced by multitrack().

◆ on_cleardisk_advanced_clicked()

void on_cleardisk_advanced_clicked ( LiVESWidget *  ,
livespointer   
)

Definition at line 6700 of file callbacks.c.

◆ on_close_activate()

void on_close_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1432 of file callbacks.c.

Referenced by close_clip_cb(), and multitrack().

◆ on_copy_activate()

void on_copy_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 2992 of file callbacks.c.

Referenced by on_cut_activate().

◆ on_cut_activate()

void on_cut_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 3120 of file callbacks.c.

Referenced by on_redo_activate().

◆ on_del_audio_activate()

boolean on_del_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12258 of file callbacks.c.

Referenced by on_redo_activate().

◆ on_delete_activate()

void on_delete_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4208 of file callbacks.c.

Referenced by on_cut_activate(), and on_redo_activate().

◆ on_details_button_clicked()

void on_details_button_clicked ( void  )

Definition at line 7834 of file callbacks.c.

◆ on_double_size_activate()

void on_double_size_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8000 of file callbacks.c.

Referenced by frame_size_update().

◆ on_double_size_pressed()

void on_double_size_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 7994 of file callbacks.c.

Referenced by dblsize_callback().

◆ on_effects_paused()

void on_effects_paused ( LiVESButton *  ,
livespointer   
)

Definition at line 10122 of file callbacks.c.

Referenced by check_storage_space(), and create_processing().

◆ on_eject_cd_activate()

void on_eject_cd_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 9060 of file callbacks.c.

◆ on_encoder_entry_changed()

void on_encoder_entry_changed ( LiVESCombo *  ,
livespointer  ptr 
)

Definition at line 4779 of file callbacks.c.

◆ on_encoder_ofmt_changed()

void on_encoder_ofmt_changed ( LiVESCombo *  ,
livespointer   
)

Definition at line 11680 of file callbacks.c.

Referenced by on_encoder_entry_changed().

◆ on_erase_subs_activate()

void on_erase_subs_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8680 of file callbacks.c.

Referenced by on_load_subs_activate().

◆ on_export_audio_activate()

void on_export_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 11750 of file callbacks.c.

Referenced by on_save_as_activate().

◆ on_export_proj_activate()

void on_export_proj_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1628 of file callbacks.c.

◆ on_export_theme_activate()

void on_export_theme_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1700 of file callbacks.c.

◆ on_fade_activate()

void on_fade_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8242 of file callbacks.c.

◆ on_fade_audio_activate()

void on_fade_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12133 of file callbacks.c.

Referenced by render_to_clip().

◆ on_fade_pressed()

void on_fade_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 8234 of file callbacks.c.

Referenced by fade_callback().

◆ on_faster_pressed()

void on_faster_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 11034 of file callbacks.c.

Referenced by faster_callback().

◆ on_filechooser_cancel_clicked()

void on_filechooser_cancel_clicked ( LiVESWidget *  )

◆ on_forward_pressed()

void on_forward_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 11108 of file callbacks.c.

Referenced by skip_forward_callback().

◆ on_fs_preview_clicked()

void on_fs_preview_clicked ( LiVESWidget *  ,
livespointer   
)

Definition at line 7108 of file callbacks.c.

◆ on_full_screen_activate()

void on_full_screen_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7990 of file callbacks.c.

◆ on_full_screen_pressed()

void on_full_screen_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 7844 of file callbacks.c.

Referenced by fullscreen_callback().

◆ on_hrule_reset()

boolean on_hrule_reset ( LiVESWidget *  ,
LiVESXEventButton *  ,
livespointer   
)

Definition at line 10849 of file callbacks.c.

◆ on_hrule_set()

boolean on_hrule_set ( LiVESWidget *  ,
LiVESXEventButton *  ,
livespointer   
)

Definition at line 10884 of file callbacks.c.

◆ on_hrule_update()

boolean on_hrule_update ( LiVESWidget *  ,
LiVESXEventMotion *  ,
livespointer   
)

Definition at line 10827 of file callbacks.c.

◆ on_import_proj_activate()

void on_import_proj_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1538 of file callbacks.c.

◆ on_import_theme_activate()

void on_import_theme_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1873 of file callbacks.c.

◆ on_ins_silence_activate()

boolean on_ins_silence_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12694 of file callbacks.c.

Referenced by on_redo_activate(), and pad_init_silence().

◆ on_ins_silence_details_clicked()

void on_ins_silence_details_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 12830 of file callbacks.c.

Referenced by create_resaudw().

◆ on_insert_activate()

void on_insert_activate ( LiVESButton *  ,
livespointer   
)

Definition at line 3322 of file callbacks.c.

Referenced by create_insert_dialog().

◆ on_insert_pre_activate()

void on_insert_pre_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 3311 of file callbacks.c.

◆ on_insertwsound_toggled()

void on_insertwsound_toggled ( LiVESToggleButton *  ,
livespointer   
)

Definition at line 4952 of file callbacks.c.

Referenced by create_insert_dialog().

◆ on_insfitaudio_toggled()

void on_insfitaudio_toggled ( LiVESToggleButton *  ,
livespointer   
)

◆ on_lerrors_clear_clicked()

void on_lerrors_clear_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 12864 of file callbacks.c.

Referenced by on_lerrors_delete_clicked(), and popup_lmap_errors().

◆ on_lerrors_close_clicked()

void on_lerrors_close_clicked ( LiVESButton *  ,
livespointer   
)

◆ on_lerrors_delete_clicked()

void on_lerrors_delete_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 12897 of file callbacks.c.

Referenced by popup_lmap_errors().

◆ on_less_pressed()

void on_less_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 10968 of file callbacks.c.

Referenced by less_callback().

◆ on_LiVES_delete_event()

boolean on_LiVES_delete_event ( LiVESWidget *  ,
LiVESXEvent *  ,
livespointer   
)

◆ on_load_audio_activate()

void on_load_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8716 of file callbacks.c.

◆ on_load_cdtrack_activate()

void on_load_cdtrack_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 9044 of file callbacks.c.

◆ on_load_cdtrack_ok_clicked()

void on_load_cdtrack_ok_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 9079 of file callbacks.c.

◆ on_load_set_activate()

char* on_load_set_activate ( LiVESMenuItem *  ,
livespointer   
)

< no sets available

Definition at line 5590 of file callbacks.c.

Referenced by multitrack().

◆ on_load_subs_activate()

void on_load_subs_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8576 of file callbacks.c.

◆ on_load_vcd_ok_clicked()

void on_load_vcd_ok_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 9317 of file callbacks.c.

◆ on_location_select()

void on_location_select ( LiVESButton *  ,
livespointer   
)

Definition at line 885 of file callbacks.c.

◆ on_lock_selwidth_activate()

void on_lock_selwidth_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4475 of file callbacks.c.

◆ on_loop_button_activate()

void on_loop_button_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8306 of file callbacks.c.

Referenced by loop_cont_callback(), and make_preview_box().

◆ on_loop_cont_activate()

void on_loop_cont_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8316 of file callbacks.c.

◆ on_loop_video_activate()

void on_loop_video_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8298 of file callbacks.c.

◆ on_merge_activate()

void on_merge_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 269 of file merge.c.

◆ on_more_pressed()

void on_more_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 11021 of file callbacks.c.

Referenced by more_callback().

◆ on_mouse_scroll()

boolean on_mouse_scroll ( LiVESWidget *  ,
LiVESXEventScroll *  ,
livespointer   
)

Definition at line 10602 of file callbacks.c.

Referenced by make_preview_box(), and on_sepwin_activate().

◆ on_mouse_sel_reset()

boolean on_mouse_sel_reset ( LiVESWidget *  ,
LiVESXEventButton *  ,
livespointer   
)

Definition at line 10685 of file callbacks.c.

◆ on_mouse_sel_start()

boolean on_mouse_sel_start ( LiVESWidget *  ,
LiVESXEventButton *  ,
livespointer   
)

Definition at line 10698 of file callbacks.c.

◆ on_mouse_sel_update()

boolean on_mouse_sel_update ( LiVESWidget *  ,
LiVESXEventMotion *  ,
livespointer   
)

Definition at line 10650 of file callbacks.c.

◆ on_mute_activate()

void on_mute_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8399 of file callbacks.c.

◆ on_mute_button_activate()

void on_mute_button_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8382 of file callbacks.c.

Referenced by make_preview_box().

◆ on_normalise_audio_activate()

void on_normalise_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 11825 of file callbacks.c.

Referenced by render_to_clip().

◆ on_ok_button1_clicked()

void on_ok_button1_clicked ( LiVESButton *  ,
livespointer   
)

◆ on_ok_export_audio_clicked()

void on_ok_export_audio_clicked ( LiVESButton *  ,
livespointer   
)

◆ on_ok_file_open_clicked()

void on_ok_file_open_clicked ( LiVESFileChooser *  ,
LiVESSList *  fnames 
)

Definition at line 7447 of file callbacks.c.

Referenced by drag_from_outside(), and on_open_activate().

◆ on_open_activate()

void on_open_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7418 of file callbacks.c.

Referenced by multitrack().

◆ on_open_loc_activate()

void on_open_loc_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 745 of file callbacks.c.

Referenced by multitrack().

◆ on_open_new_audio_clicked()

void on_open_new_audio_clicked ( LiVESFileChooser *  ,
livespointer  opt_filename 
)

not sure why, but this messes up mainw->msg...

Definition at line 8745 of file callbacks.c.

Referenced by on_load_audio_activate().

◆ on_open_sel_activate()

void on_open_sel_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 619 of file callbacks.c.

Referenced by multitrack().

◆ on_open_sel_ok_button_clicked()

void on_open_sel_ok_button_clicked ( LiVESButton *  ,
livespointer   
)

◆ on_open_utube_activate()

void on_open_utube_activate ( LiVESMenuItem *  ,
livespointer   
)

get a system tmpdir

Definition at line 770 of file callbacks.c.

Referenced by multitrack().

◆ on_open_vcd_activate()

void on_open_vcd_activate ( LiVESMenuItem *  ,
livespointer  int_type 
)

Definition at line 720 of file callbacks.c.

Referenced by multitrack().

◆ on_opensel_range_ok_clicked()

void on_opensel_range_ok_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 7546 of file callbacks.c.

Referenced by create_opensel_dialog().

◆ on_paste_as_new_activate()

void on_paste_as_new_activate ( LiVESMenuItem *  ,
livespointer   
)

copy the frame_index, and do an insert, skipping missing frames

Definition at line 3152 of file callbacks.c.

◆ on_pause_clicked()

void on_pause_clicked ( void  )

Definition at line 4773 of file callbacks.c.

Referenced by play_all().

◆ on_ping_pong_activate()

void on_ping_pong_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8360 of file callbacks.c.

Referenced by ping_pong_callback().

◆ on_playall_activate()

void on_playall_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4530 of file callbacks.c.

Referenced by freeze_callback(), make_preview_box(), and mt_swap_play_pause().

◆ on_playclip_activate()

void on_playclip_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4579 of file callbacks.c.

◆ on_playsel_activate()

void on_playsel_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4566 of file callbacks.c.

Referenced by make_preview_box().

◆ on_preview_clicked()

void on_preview_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 10245 of file callbacks.c.

Referenced by create_processing(), on_playsel_activate(), and play_all().

◆ on_preview_spinbutton_changed()

void on_preview_spinbutton_changed ( LiVESSpinButton *  ,
livespointer   
)

Definition at line 9628 of file callbacks.c.

Referenced by make_preview_box().

◆ on_prv_link_toggled()

void on_prv_link_toggled ( LiVESToggleButton *  ,
livespointer   
)

Definition at line 9652 of file callbacks.c.

Referenced by make_preview_box().

◆ on_quit_activate()

void on_quit_activate ( LiVESMenuItem *  ,
livespointer   
)

do not popup warning if set name is changed

Definition at line 2133 of file callbacks.c.

Referenced by mt_quit_activate(), multitrack(), on_LiVES_delete_event(), and on_prefs_close_clicked().

◆ on_rb_audrec_time_toggled()

void on_rb_audrec_time_toggled ( LiVESToggleButton *  ,
livespointer   
)

Definition at line 12378 of file callbacks.c.

Referenced by create_resaudw().

◆ on_recaudclip_activate()

void on_recaudclip_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12393 of file callbacks.c.

◆ on_recaudclip_ok_clicked()

void on_recaudclip_ok_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 12446 of file callbacks.c.

Referenced by create_resaudw().

◆ on_recaudsel_activate()

void on_recaudsel_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12410 of file callbacks.c.

◆ on_recent_activate()

void on_recent_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 833 of file callbacks.c.

◆ on_record_perf_activate()

void on_record_perf_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4605 of file callbacks.c.

◆ on_redo_activate()

void on_redo_activate ( LiVESWidget *  ,
livespointer   
)

Definition at line 2806 of file callbacks.c.

◆ on_rename_activate()

void on_rename_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 9392 of file callbacks.c.

◆ on_rename_clip_name()

void on_rename_clip_name ( LiVESButton *  ,
livespointer   
)

Definition at line 9521 of file callbacks.c.

◆ on_resample_audio_activate()

void on_resample_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1148 of file resample.c.

◆ on_resample_vid_ok()

void on_resample_vid_ok ( LiVESButton *  ,
LiVESEntry *  entry 
)

◆ on_resample_video_activate()

void on_resample_video_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1372 of file resample.c.

◆ on_resaudio_ok_clicked()

void on_resaudio_ok_clicked ( LiVESButton *  ,
LiVESEntry *  entry 
)

Definition at line 1159 of file resample.c.

Referenced by create_resaudw(), and on_redo_activate().

◆ on_resaudw_asamps_changed()

void on_resaudw_asamps_changed ( LiVESWidget *  ,
livespointer   
)

Definition at line 1353 of file resample.c.

Referenced by create_resaudw().

◆ on_resize_activate()

void on_resize_activate ( LiVESMenuItem *  ,
livespointer   
)

◆ on_resize_hsize_value_changed()

void on_resize_hsize_value_changed ( LiVESSpinButton *  ,
livespointer   
)

◆ on_resize_ok_clicked()

void on_resize_ok_clicked ( LiVESButton *  ,
livespointer   
)

◆ on_resize_vsize_value_changed()

void on_resize_vsize_value_changed ( LiVESSpinButton *  ,
livespointer   
)

◆ on_restore_activate()

void on_restore_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 2021 of file callbacks.c.

◆ on_rev_clipboard_activate()

void on_rev_clipboard_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8528 of file callbacks.c.

◆ on_rewind_activate()

void on_rewind_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4730 of file callbacks.c.

Referenced by make_preview_box().

◆ on_save_as_activate()

void on_save_as_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1398 of file callbacks.c.

◆ on_save_selection_activate()

void on_save_selection_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1415 of file callbacks.c.

◆ on_save_set_activate()

boolean on_save_set_activate ( LiVESWidget *  ,
livespointer   
)

IMPORTANT !!! mainw->no_exit must be set. otherwise the app will exit

command may not fail, so we check first

Definition at line 5359 of file callbacks.c.

Referenced by on_export_proj_activate(), and on_quit_activate().

◆ on_save_set_ok()

void on_save_set_ok ( void  )

◆ on_save_subs_activate()

void on_save_subs_activate ( LiVESMenuItem *  ,
livespointer  entry_widget 
)

Definition at line 8658 of file callbacks.c.

Referenced by create_comments_dialog().

◆ on_save_textview_clicked()

void on_save_textview_clicked ( LiVESButton *  ,
livespointer   
)

Definition at line 7615 of file callbacks.c.

Referenced by create_text_window().

◆ on_select_all_activate()

void on_select_all_activate ( LiVESWidget *  ,
livespointer   
)

Definition at line 4367 of file callbacks.c.

◆ on_select_end_only_activate()

void on_select_end_only_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4395 of file callbacks.c.

◆ on_select_from_start_activate()

void on_select_from_start_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4467 of file callbacks.c.

◆ on_select_invert_activate()

void on_select_invert_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4401 of file callbacks.c.

◆ on_select_last_activate()

void on_select_last_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4416 of file callbacks.c.

◆ on_select_new_activate()

void on_select_new_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4432 of file callbacks.c.

◆ on_select_start_only_activate()

void on_select_start_only_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4389 of file callbacks.c.

◆ on_select_to_aend_activate()

void on_select_to_aend_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4456 of file callbacks.c.

◆ on_select_to_end_activate()

void on_select_to_end_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4448 of file callbacks.c.

◆ on_sepwin_activate()

void on_sepwin_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8055 of file callbacks.c.

◆ on_sepwin_pressed()

void on_sepwin_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 8044 of file callbacks.c.

Referenced by on_stop_activate_by_del(), and sepwin_callback().

◆ on_show_clipboard_info_activate()

void on_show_clipboard_info_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6892 of file callbacks.c.

◆ on_show_file_comments_activate()

void on_show_file_comments_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6887 of file callbacks.c.

◆ on_show_file_info_activate()

void on_show_file_info_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6776 of file callbacks.c.

Referenced by on_show_clipboard_info_activate(), and show_clipinfo_cb().

◆ on_show_keys_activate()

void on_show_keys_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6720 of file callbacks.c.

◆ on_show_messages_activate()

void on_show_messages_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6771 of file callbacks.c.

◆ on_showfct_activate()

void on_showfct_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8208 of file callbacks.c.

◆ on_showsubs_toggled()

void on_showsubs_toggled ( LiVESWidgetObject *  ,
livespointer   
)

Definition at line 8267 of file callbacks.c.

◆ on_slower_pressed()

void on_slower_pressed ( LiVESButton *  ,
livespointer   
)

Definition at line 10981 of file callbacks.c.

Referenced by slower_callback().

◆ on_spin_end_value_changed()

void on_spin_end_value_changed ( LiVESSpinButton *  ,
livespointer   
)

Definition at line 8517 of file callbacks.c.

◆ on_spin_start_value_changed()

void on_spin_start_value_changed ( LiVESSpinButton *  ,
livespointer  user_data 
)

Definition at line 8495 of file callbacks.c.

◆ on_spin_step_value_changed()

void on_spin_step_value_changed ( LiVESSpinButton *  ,
livespointer   
)

Definition at line 8506 of file callbacks.c.

◆ on_spin_value_changed()

void on_spin_value_changed ( LiVESSpinButton *  ,
livespointer   
)

◆ on_spinbutton_end_value_changed()

void on_spinbutton_end_value_changed ( LiVESSpinButton *  ,
livespointer   
)

load this first in case of caching - it is likely to be larger and higher quality

Definition at line 9789 of file callbacks.c.

◆ on_spinbutton_start_value_changed()

void on_spinbutton_start_value_changed ( LiVESSpinButton *  ,
livespointer   
)

must not update cfile->end directly, otherwise the selection colour won'r be updates

load this first in case of caching - it is likely to be larger and higher quality

Definition at line 9723 of file callbacks.c.

◆ on_sticky_activate()

void on_sticky_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 8222 of file callbacks.c.

◆ on_stop_activate()

void on_stop_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 4748 of file callbacks.c.

Referenced by stop_callback().

◆ on_stop_activate_by_del()

boolean on_stop_activate_by_del ( LiVESWidget *  ,
LiVESXEvent *  ,
livespointer   
)

◆ on_stop_clicked()

void on_stop_clicked ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 1364 of file callbacks.c.

Referenced by create_processing(), and on_cancel_keep_button_clicked().

◆ on_toolbar_hide()

void on_toolbar_hide ( LiVESButton *  ,
livespointer   
)

Definition at line 11392 of file callbacks.c.

◆ on_toy_activate()

void on_toy_activate ( LiVESMenuItem *  ,
livespointer  old_toy_p 
)

Definition at line 9550 of file callbacks.c.

Referenced by lives_exit().

◆ on_trim_audio_activate()

boolean on_trim_audio_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12053 of file callbacks.c.

Referenced by add_file_info().

◆ on_undo_activate()

void on_undo_activate ( LiVESWidget *  ,
livespointer   
)

DON'T ! we only save the pb_fps now, since otherwise we may lose the orig. clip fps

Definition at line 2275 of file callbacks.c.

Referenced by on_resaudio_ok_clicked().

◆ on_utube_select()

lives_remote_clip_request_t* on_utube_select ( lives_remote_clip_request_t req,
const char *  tmpdir 
)

if tempdir is on same volume as workdir, or if not using tmpdir and final is on same

in this case tmpdir is on another volume, but final dest. is on our volume or a different one we will only check before moving the file

if the user disabled disk_quota, disk_warn, AND disk_crit, then we just let the disk fill up the only thing we will care about is if there is insufficient space to move the file

check we can update locally

else copy system binary to $HOME/.local/bin

we can get CANCEL_ERROR: - error was detected but user gave permission to fix it or CANCEL_USER: - error was detected and user declined auto fix

type 1, we do continuous monitoring

< do not show processing error dialogs, we will show our own msg

**ADD TASK CALLBACK

move file to its final destination

remove tmpdir and re-check

remove tmpdir and re-check

iff critical, delete file

Definition at line 910 of file callbacks.c.

Referenced by on_open_utube_activate().

◆ on_vj_realize_activate()

void on_vj_realize_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6723 of file callbacks.c.

◆ on_vj_reset_activate()

void on_vj_reset_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6740 of file callbacks.c.

◆ on_voladj_activate()

void on_voladj_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 12131 of file callbacks.c.

◆ on_volch_pressed()

void on_volch_pressed ( LiVESButton *  ,
livespointer  dirny 
)

Definition at line 5093 of file callbacks.c.

Referenced by voldown_callback(), and volup_callback().

◆ on_volume_slider_value_changed()

void on_volume_slider_value_changed ( LiVESRange *  ,
livespointer   
)

◆ on_warn_mask_toggled()

void on_warn_mask_toggled ( LiVESToggleButton *  ,
livespointer   
)

Definition at line 77 of file dialogs.c.

Referenced by add_warn_check().

◆ play_all()

void play_all ( boolean  from_menu)

Definition at line 4482 of file callbacks.c.

Referenced by _start_playback().

◆ play_sel()

void play_sel ( void  )

Definition at line 4536 of file callbacks.c.

Referenced by _start_playback().

◆ popup_lmap_errors()

void popup_lmap_errors ( LiVESMenuItem *  ,
livespointer   
)

◆ prevclip_callback()

boolean prevclip_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer   
)

Definition at line 5150 of file callbacks.c.

Referenced by on_mouse_scroll().

◆ record_toggle_callback()

boolean record_toggle_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  keyval,
LiVESXModifierType  mod,
livespointer   
)

Definition at line 4718 of file callbacks.c.

◆ reload_set()

boolean reload_set ( const char *  set_name)

set clip failed to load, we need to do something with it else it will keep trying to reload each time. for now we shall just move it out of the set this is fine as the user can try to recover it at a later time

read_headers() will have read the clip metadata file, so we 'know' how many frames there ought to be. however this could be wrong if the file was damaged for some reason. So the first step is to read the file_index if any.

  • if present we assume we are dealing with CLIP_TYPE_FILE (original clip + decoded frames). – If it contains more frames then we will increase cfile->frames.
  • If it is not present then we assume are dealing with CLIP_TYPE_DISK (all frames decoded to images).

we want to do as little checking here as possible, since it can slow down the startup, but if we detect a problem then we'll do increasingly more checking.

here we attempt to reload the clip. First we load the frame_index if any, If it contains more frames than the metadata says, then we trust the frame_index for now, since the metadata may have been corrupted. If it contains fewer frames, then we will warn the user, but we cannot know whether the metadata is correct or not, and in any case we cannot reconstruct the frame_index, so we have to use what it tells us. If file_index is absent then we assume we are dealing with CLIP_TYPE_DISK (below).

Next we attempt to reload the original clip using the same decoder plugin as last time if possible. The decoder may return fewer frames from the original clip than the size of frame_index, This is OK provided the final frames are decoded frames. We then check backwards from the end of file_index to find the final decoded frame. If this is the frame we expected then we assume all is OK

if the image type is still unkown it means either there were no decoded frames, or the final decoded frame was absent so we count the virtual frames. If all are virtual then we set img_type to prefs->img_type and assume all is OK (or at least we recovered as many frames as we could using frame_index), and we'll accept whatever the decoder returns if there is a divergence with the clip metadata

if there are some decoded frames then we have a problem. Since the img type was not found it means that the final decoded frame was missing. So we check backwards to find where the last actual decoded frame is and the frame count is set to final decoded frame + any virtual frames immediately following, and warn the user. If other frames are missing then the clip is corrupt, but we'll continue as best we can.

CLIP_TYPE_DISK

in this case we find the last decoded frame and check the frame size and get the image_type. If there is a discrepancy with the metadata then we trust the empirical evidence. If the final frame is absent then we find the real final frame, warn the user, and adjust frame count.

here we do a simple check: make sure the final frame is present and frame + 1 isn't if either check fails then we count all the frames (since we don't have a frame_index to guide us),

  • this can be pretty slow so we wan't to avoid it unless we detected a problem.

we need to set the set_name before calling add_to_clipmenu(), so that the clip gets the name of the set in its menuentry, and also prior to loading any layouts since they specirfy the clipset they need

read the playback fps, play frame, and name

< must do before calling save_clip_values()

if this is set then it means we are auto reloading the clipset from the previous session, so restore full details

Definition at line 5661 of file callbacks.c.

Referenced by on_import_proj_activate(), and on_load_set_activate().

◆ report_bug_activate()

void report_bug_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7053 of file callbacks.c.

◆ show_manual_activate()

void show_manual_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7043 of file callbacks.c.

◆ show_sync_callback()

boolean show_sync_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  clip_number 
)

Definition at line 11311 of file callbacks.c.

◆ storeclip_callback()

boolean storeclip_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer   
)

jump to a stored clip / frame position during free playback clip number and frame position can be stored and later triggered during playback

Definition at line 11344 of file callbacks.c.

◆ suggest_feature_activate()

void suggest_feature_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 7058 of file callbacks.c.

◆ switch_clip()

void switch_clip ( int  type,
int  newclip,
boolean  force 
)

◆ switch_clip_activate()

void switch_clip_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 6959 of file callbacks.c.

Referenced by add_to_clipmenu().

◆ unlock_loop_lock()

void unlock_loop_lock ( void  )

Definition at line 4966 of file callbacks.c.

Referenced by do_quick_switch(), and storeclip_callback().

◆ unlock_set_file()

void unlock_set_file ( const char *  set_name)

Definition at line 5652 of file callbacks.c.

◆ update_sel_menu()

void update_sel_menu ( void  )

Definition at line 9666 of file callbacks.c.

Referenced by on_lock_selwidth_activate(), resize(), and sensitize().

◆ vj_mode_toggled()

void vj_mode_toggled ( LiVESCheckMenuItem *  ,
livespointer   
)

Definition at line 10486 of file callbacks.c.