LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
dialogs.c File Reference
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "main.h"
#include "interface.h"
#include "support.h"
#include "cvirtual.h"
#include "audio.h"
#include "resample.h"
#include "paramwindow.h"
#include "ce_thumbs.h"

Macros

#define OPEN_CHECK_TICKS   (U_SECL/10l)
 
#define PROG_LOOP_VAL   200
 
#define MIN_FLASH_TIME   100000000
 

Functions

void reset_frame_and_clip_index (void)
 
void on_warn_mask_toggled (LiVESToggleButton *togglebutton, livespointer user_data)
 
void add_warn_check (LiVESBox *box, int warn_mask_number)
 
LiVESWidget * create_message_dialog (lives_dialog_t diat, const char *text, LiVESWindow *transient, int warn_mask_number, boolean is_blocking)
 
boolean do_warning_dialog (const char *text)
 
boolean do_warning_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_yesno_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_warning_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
boolean do_yesno_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
boolean do_yesno_dialog (const char *text)
 
int do_abort_cancel_retry_dialog (const char *text, LiVESWindow *transient)
 
int do_error_dialog (const char *text)
 
int do_info_dialog (const char *text)
 
int do_error_dialog_with_check (const char *text, int warn_mask_number)
 
int do_blocking_error_dialog (const char *text)
 
int do_blocking_info_dialog (const char *text)
 
int do_error_dialog_with_check_transient (const char *text, boolean is_blocking, int warn_mask_number, LiVESWindow *transient)
 
int do_info_dialog_with_transient (const char *text, boolean is_blocking, LiVESWindow *transient)
 
char * ds_critical_msg (const char *dir, uint64_t dsval)
 
char * ds_warning_msg (const char *dir, uint64_t dsval, uint64_t cwarn, uint64_t nwarn)
 
void do_aud_during_play_error (void)
 
void do_memory_error_dialog (void)
 
void handle_backend_errors (void)
 
boolean check_backend_return (lives_clip_t *sfile)
 
void pump_io_chan (LiVESIOChannel *iochan)
 
boolean check_storage_space (lives_clip_t *sfile, boolean is_processing)
 
boolean process_one (boolean visible)
 
boolean do_progress_dialog (boolean visible, boolean cancellable, const char *text)
 
boolean do_auto_dialog (const char *text, int type)
 
void too_many_files (void)
 
void tempdir_warning (void)
 
void do_no_mplayer_sox_error (void)
 
void do_audio_warning (void)
 
void do_encoder_sox_error (void)
 
void do_encoder_acodec_error (void)
 
void do_layout_scrap_file_error (void)
 
void do_layout_ascrap_file_error (void)
 
boolean rdet_suggest_values (int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian, boolean anr, boolean ignore_fps)
 
boolean do_encoder_restrict_dialog (int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian, boolean anr, boolean save_all)
 
void perf_mem_warning (void)
 
boolean do_clipboard_fps_warning (void)
 
boolean do_yuv4m_open_warning (void)
 
boolean do_comments_dialog (lives_clip_t *sfile, char *filename)
 
void do_keys_window (void)
 
void do_mt_keys_window (void)
 
void do_messages_window (void)
 
void do_text_window (const char *title, const char *text)
 
void do_upgrade_error_dialog (void)
 
void do_rendered_fx_dialog (void)
 
void do_audio_import_error (void)
 
boolean prompt_remove_layout_files (void)
 
boolean do_set_duplicate_warning (const char *new_set)
 
boolean do_layout_alter_frames_warning (void)
 
boolean do_layout_alter_audio_warning (void)
 
boolean do_original_lost_warning (const char *fname)
 
void do_no_decoder_error (const char *fname)
 
void do_jack_noopen_warn (void)
 
void do_jack_noopen_warn3 (void)
 
void do_jack_noopen_warn4 (void)
 
void do_jack_noopen_warn2 (void)
 
void do_mt_backup_space_error (lives_mt *mt, int memreq_mb)
 
boolean do_set_rename_old_layouts_warning (const char *new_set)
 
void do_mt_undo_mem_error (void)
 
void do_mt_undo_buf_error (void)
 
void do_mt_set_mem_error (boolean has_mt, boolean trans)
 
void do_mt_audchan_error (int warn_mask)
 
void do_mt_no_audchan_error (void)
 
void do_mt_no_jack_error (int warn_mask)
 
boolean do_mt_rect_prompt (void)
 
void do_bad_layout_error (void)
 
void do_audrate_error_dialog (void)
 
boolean do_event_list_warning (void)
 
void do_dvgrab_error (void)
 
void do_nojack_rec_error (void)
 
void do_vpp_palette_error (void)
 
void do_decoder_palette_error (void)
 
void do_vpp_fps_error (void)
 
void do_after_crash_warning (void)
 
void do_rmem_max_error (int size)
 
void threaded_dialog_spin (void)
 
void * splash_prog (void)
 
void do_threaded_dialog (char *trans_text, boolean has_cancel)
 
void end_threaded_dialog (void)
 
void do_splash_progress (void)
 
void response_ok (LiVESButton *button, livespointer user_data)
 
LIVES_INLINE void d_print_cancelled (void)
 
LIVES_INLINE void d_print_failed (void)
 
LIVES_INLINE void d_print_done (void)
 
LIVES_INLINE void d_print_file_error_failed (void)
 
void do_system_failed_error (const char *com, int retval, const char *addinfo)
 
void do_write_failed_error_s (const char *s, const char *addinfo)
 
void do_read_failed_error_s (const char *s, const char *addinfo)
 
int do_write_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient)
 
int do_read_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient)
 
int do_header_read_error_with_retry (int clip)
 
boolean do_header_write_error (int clip)
 
int do_header_missing_detail_error (int clip, lives_clip_details_t detail)
 
void do_chdir_failed_error (const char *dir)
 
void do_file_perm_error (const char *file_name)
 
void do_dir_perm_error (const char *dir_name)
 
void do_dir_perm_access_error (const char *dir_name)
 
boolean do_abort_check (void)
 
void do_encoder_img_ftm_error (render_details *rdet)
 
void do_card_in_use_error (void)
 
void do_dev_busy_error (const char *devstr)
 
boolean do_existing_subs_warning (void)
 
void do_invalid_subs_error (void)
 
boolean do_erase_subs_warning (void)
 
boolean do_sub_type_warning (const char *ext, const char *type_ext)
 
boolean do_move_tmpdir_dialog (void)
 
void do_set_locked_warning (const char *setname)
 
void do_no_in_vdevs_error (void)
 
void do_locked_in_vdevs_error (void)
 
void do_do_not_close_d (void)
 
void do_set_noclips_error (const char *setname)
 
char * get_upd_msg (void)
 
char * get_new_install_msg (void)
 
void do_no_autolives_error (void)
 
void do_autolives_needs_clips_error (void)
 
void do_jack_lost_conn_error (void)
 
void do_pulse_lost_conn_error (void)
 
boolean ask_permission_dialog (int what)
 

Macro Definition Documentation

#define MIN_FLASH_TIME   100000000
#define OPEN_CHECK_TICKS   (U_SECL/10l)
#define PROG_LOOP_VAL   200

Function Documentation

void add_warn_check ( LiVESBox *  box,
int  warn_mask_number 
)
boolean ask_permission_dialog ( int  what)
boolean check_backend_return ( lives_clip_t sfile)
boolean check_storage_space ( lives_clip_t sfile,
boolean  is_processing 
)
LiVESWidget* create_message_dialog ( lives_dialog_t  diat,
const char *  text,
LiVESWindow *  transient,
int  warn_mask_number,
boolean  is_blocking 
)
LIVES_INLINE void d_print_cancelled ( void  )
LIVES_INLINE void d_print_done ( void  )
LIVES_INLINE void d_print_failed ( void  )
LIVES_INLINE void d_print_file_error_failed ( void  )
int do_abort_cancel_retry_dialog ( const char *  text,
LiVESWindow *  transient 
)
boolean do_abort_check ( void  )
void do_after_crash_warning ( void  )
void do_aud_during_play_error ( void  )
void do_audio_import_error ( void  )
void do_audio_warning ( void  )
void do_audrate_error_dialog ( void  )
boolean do_auto_dialog ( const char *  text,
int  type 
)
void do_autolives_needs_clips_error ( void  )
void do_bad_layout_error ( void  )
int do_blocking_error_dialog ( const char *  text)
int do_blocking_info_dialog ( const char *  text)
void do_card_in_use_error ( void  )
void do_chdir_failed_error ( const char *  dir)
boolean do_clipboard_fps_warning ( void  )
boolean do_comments_dialog ( lives_clip_t sfile,
char *  filename 
)
void do_decoder_palette_error ( void  )
void do_dev_busy_error ( const char *  devstr)
void do_dir_perm_access_error ( const char *  dir_name)
void do_dir_perm_error ( const char *  dir_name)
void do_do_not_close_d ( void  )
void do_dvgrab_error ( void  )
void do_encoder_acodec_error ( void  )
void do_encoder_img_ftm_error ( render_details rdet)
boolean do_encoder_restrict_dialog ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  save_all 
)
void do_encoder_sox_error ( void  )
boolean do_erase_subs_warning ( void  )
int do_error_dialog ( const char *  text)
int do_error_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
int do_error_dialog_with_check_transient ( const char *  text,
boolean  is_blocking,
int  warn_mask_number,
LiVESWindow *  transient 
)
boolean do_event_list_warning ( void  )
boolean do_existing_subs_warning ( void  )
void do_file_perm_error ( const char *  file_name)
int do_header_missing_detail_error ( int  clip,
lives_clip_details_t  detail 
)
int do_header_read_error_with_retry ( int  clip)
boolean do_header_write_error ( int  clip)
int do_info_dialog ( const char *  text)
int do_info_dialog_with_transient ( const char *  text,
boolean  is_blocking,
LiVESWindow *  transient 
)
void do_invalid_subs_error ( void  )
void do_jack_lost_conn_error ( void  )
void do_jack_noopen_warn ( void  )
void do_jack_noopen_warn2 ( void  )
void do_jack_noopen_warn3 ( void  )
void do_jack_noopen_warn4 ( void  )
void do_keys_window ( void  )
boolean do_layout_alter_audio_warning ( void  )
boolean do_layout_alter_frames_warning ( void  )
void do_layout_ascrap_file_error ( void  )
void do_layout_scrap_file_error ( void  )
void do_locked_in_vdevs_error ( void  )
void do_memory_error_dialog ( void  )
void do_messages_window ( void  )
boolean do_move_tmpdir_dialog ( void  )
void do_mt_audchan_error ( int  warn_mask)
void do_mt_backup_space_error ( lives_mt *  mt,
int  memreq_mb 
)
void do_mt_keys_window ( void  )
void do_mt_no_audchan_error ( void  )
void do_mt_no_jack_error ( int  warn_mask)
boolean do_mt_rect_prompt ( void  )
void do_mt_set_mem_error ( boolean  has_mt,
boolean  trans 
)
void do_mt_undo_buf_error ( void  )
void do_mt_undo_mem_error ( void  )
void do_no_autolives_error ( void  )
void do_no_decoder_error ( const char *  fname)
void do_no_in_vdevs_error ( void  )
void do_no_mplayer_sox_error ( void  )
void do_nojack_rec_error ( void  )
boolean do_original_lost_warning ( const char *  fname)
boolean do_progress_dialog ( boolean  visible,
boolean  cancellable,
const char *  text 
)
void do_pulse_lost_conn_error ( void  )
void do_read_failed_error_s ( const char *  s,
const char *  addinfo 
)
int do_read_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)
void do_rendered_fx_dialog ( void  )
void do_rmem_max_error ( int  size)
boolean do_set_duplicate_warning ( const char *  new_set)
void do_set_locked_warning ( const char *  setname)
void do_set_noclips_error ( const char *  setname)
boolean do_set_rename_old_layouts_warning ( const char *  new_set)
void do_splash_progress ( void  )
boolean do_sub_type_warning ( const char *  ext,
const char *  type_ext 
)
void do_system_failed_error ( const char *  com,
int  retval,
const char *  addinfo 
)
void do_text_window ( const char *  title,
const char *  text 
)
void do_threaded_dialog ( char *  trans_text,
boolean  has_cancel 
)
void do_upgrade_error_dialog ( void  )
void do_vpp_fps_error ( void  )
void do_vpp_palette_error ( void  )
boolean do_warning_dialog ( const char *  text)
boolean do_warning_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
boolean do_warning_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)
void do_write_failed_error_s ( const char *  s,
const char *  addinfo 
)
int do_write_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)
boolean do_yesno_dialog ( const char *  text)
boolean do_yesno_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
boolean do_yesno_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)
boolean do_yuv4m_open_warning ( void  )
char* ds_critical_msg ( const char *  dir,
uint64_t  dsval 
)

warn about disk space

< crit level

< current level

char* ds_warning_msg ( const char *  dir,
uint64_t  dsval,
uint64_t  cwarn,
uint64_t  nwarn 
)

< warn level

< current level

< next warn level

void end_threaded_dialog ( void  )
char* get_new_install_msg ( void  )
char* get_upd_msg ( void  )
void handle_backend_errors ( void  )
void on_warn_mask_toggled ( LiVESToggleButton *  togglebutton,
livespointer  user_data 
)
void perf_mem_warning ( void  )
boolean process_one ( boolean  visible)
boolean prompt_remove_layout_files ( void  )
void pump_io_chan ( LiVESIOChannel *  iochan)
boolean rdet_suggest_values ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  ignore_fps 
)
void reset_frame_and_clip_index ( void  )
void response_ok ( LiVESButton *  button,
livespointer  user_data 
)
void* splash_prog ( void  )
void tempdir_warning ( void  )
void threaded_dialog_spin ( void  )
void too_many_files ( void  )