LiVES
3.2.0
|
#include "main.h"
#include "callbacks.h"
#include "interface.h"
#include "paramwindow.h"
#include "merge.h"
#include "resample.h"
#include "startup.h"
#include "omc-learn.h"
Go to the source code of this file.
Macros | |
#define | NMLEN_MAX 33 |
#define | ADD_KEYDEF(key, desc) |
Functions | |
void | multitrack_preview_clicked (LiVESButton *, livespointer user_data) |
void | mt_change_disp_tracks_ok (LiVESButton *, livespointer user_data) |
void | add_suffix_check (LiVESBox *box, const char *ext) |
void | show_playbar_labels (int clipno) |
void | clear_tbar_bgs (int posx, int posy, int width, int height, int which) |
double | lives_ce_update_timeline (int frame, double x) |
pointer position in timeline More... | |
void | update_timer_bars (int posx, int posy, int width, int height, int which) |
draw the timer bars More... | |
void | redraw_timer_bars (double oldx, double newx, int which) |
paint a damage region More... | |
void | widget_add_preview (LiVESWidget *widget, LiVESBox *for_preview, LiVESBox *for_button, LiVESBox *for_deint, int preview_type) |
for fileselector preview More... | |
xprocess * | create_threaded_dialog (char *text, boolean has_cancel, boolean *td_had_focus) |
xprocess * | create_processing (const char *text) |
lives_clipinfo_t * | create_clip_info_window (int audio_channels, boolean is_mt) |
LiVESWidget * | create_encoder_prep_dialog (const char *text1, const char *text2, boolean opt_resize) |
LiVESWidget * | scrolled_textview (const char *text, LiVESTextBuffer *textbuffer, int window_width, LiVESWidget **ptextview) |
text_window * | create_text_window (const char *title, const char *text, LiVESTextBuffer *textbuffer, boolean add_buttons) |
_insertw * | create_insert_dialog (void) |
LiVESWidget * | trash_rb (LiVESButtonBox *parent) |
LiVESResponseType | filter_cleanup (const char *trashdir, LiVESList **rec_list, LiVESList **rem_list, LiVESList **left_list) |
LiVESWidget * | create_opensel_dialog (int frames, double fps) |
_entryw * | create_location_dialog (void) |
_entryw * | create_rename_dialog (int type) |
void | on_liveinp_advanced_clicked (LiVESButton *button, livespointer user_data) |
LiVESWidget * | create_combo_dialog (int type, LiVESList *list) |
LiVESWidget * | create_cdtrack_dialog (int type, livespointer user_data) |
void | redraw_timeline (int clipno) |
boolean | redraw_tl_idle (void *data) |
void | create_new_pb_speed (short type) |
window change speed from Tools menu More... | |
aud_dialog_t * | create_audfade_dialog (int type) |
_commentsw * | create_comments_dialog (lives_clip_t *sfile, char *filename) |
void | on_filesel_button_clicked (LiVESButton *button, livespointer user_data) |
callback for lives_standard filesel button same callback is used for dierctory buttons object_data in button refinses the behaviousr, see code for details More... | |
char * | choose_file (const char *dir, const char *fname, char **const filt, LiVESFileChooserAction act, const char *title, LiVESWidget *extra_widget) |
char * | choose_file_bg (const char *dir, const char *fname, char **const filt, LiVESFileChooserAction act, const char *title, LiVESWidget *extra_widget) |
LiVESWidget * | choose_file_with_preview (const char *dir, const char *title, char **const filt, int filesel_type) |
LIVES_GLOBAL_INLINE LiVESWidget * | make_autoreload_check (LiVESHBox *hbox, boolean is_active) |
_entryw * | create_cds_dialog (int type) |
LiVESWidget * | create_cleardisk_advanced_dialog (void) |
LiVESTextView * | create_output_textview (void) |
void | do_keys_window (void) |
void | do_mt_keys_window (void) |
autolives_window * | autolives_pre_dialog (void) |
const lives_special_aspect_t * | add_aspect_ratio_button (LiVESSpinButton *sp_width, LiVESSpinButton *sp_height, LiVESBox *box) |
LiVESWidget * | add_list_expander (LiVESBox *box, const char *title, int width, int height, LiVESList *xlist) |
lives_remote_clip_request_t * | run_youtube_dialog (lives_remote_clip_request_t *req) |
boolean | youtube_select_format (lives_remote_clip_request_t *req) |
void | run_diskspace_dialog_cb (LiVESWidget *w, livespointer data) |
boolean | run_diskspace_dialog_idle (livespointer data) |
void | draw_dsu_widget (LiVESWidget *dsu_widget) |
LIVES_LOCAL_INLINE char * | dsu_label_notset (void) |
LIVES_LOCAL_INLINE char * | dsu_label_calculating (void) |
boolean | update_dsu (livespointer data) |
void | run_diskspace_dialog (void) |
boolean | get_screen_usable_size (int *w, int *h) |
boolean | msg_area_config (LiVESWidget *widget) |
boolean | reshow_msg_area (LiVESWidget *widget, lives_painter_t *cr, livespointer psurf) |
LIVES_GLOBAL_INLINE void | msg_area_scroll_to_end (LiVESWidget *widget, LiVESAdjustment *adj) |
void | msg_area_scroll (LiVESAdjustment *adj, livespointer userdata) |
boolean | on_msg_area_scroll (LiVESWidget *widget, LiVESXEventScroll *event, livespointer user_data) |
#define ADD_KEYDEF | ( | key, | |
desc | |||
) |
Definition at line 4730 of file interface.c.
#define NMLEN_MAX 33 |
Definition at line 1735 of file interface.c.
const lives_special_aspect_t* add_aspect_ratio_button | ( | LiVESSpinButton * | sp_width, |
LiVESSpinButton * | sp_height, | ||
LiVESBox * | box | ||
) |
Definition at line 4963 of file interface.c.
Referenced by add_video_options().
LiVESWidget* add_list_expander | ( | LiVESBox * | box, |
const char * | title, | ||
int | width, | ||
int | height, | ||
LiVESList * | xlist | ||
) |
Definition at line 4983 of file interface.c.
void add_suffix_check | ( | LiVESBox * | box, |
const char * | ext | ||
) |
Definition at line 23 of file interface.c.
autolives_window* autolives_pre_dialog | ( | void | ) |
Definition at line 4846 of file interface.c.
Referenced by autolives_toggle().
char* choose_file | ( | const char * | dir, |
const char * | fname, | ||
char **const | filt, | ||
LiVESFileChooserAction | act, | ||
const char * | title, | ||
LiVESWidget * | extra_widget | ||
) |
Definition at line 4080 of file interface.c.
Referenced by build_init_config(), choose_file_bg(), choose_file_with_preview(), get_eload_filename(), on_export_proj_activate(), on_export_rfx_activate(), on_filesel_button_clicked(), on_import_proj_activate(), on_import_rfx_activate(), on_import_theme_activate(), on_load_subs_activate(), on_open_yuv4m_activate(), on_save_subs_activate(), on_save_textview_clicked(), on_vppa_save_clicked(), and save_frame().
char* choose_file_bg | ( | const char * | dir, |
const char * | fname, | ||
char **const | filt, | ||
LiVESFileChooserAction | act, | ||
const char * | title, | ||
LiVESWidget * | extra_widget | ||
) |
Definition at line 4221 of file interface.c.
LiVESWidget* choose_file_with_preview | ( | const char * | dir, |
const char * | title, | ||
char **const | filt, | ||
int | filesel_type | ||
) |
Definition at line 4228 of file interface.c.
Referenced by on_append_audio_activate(), on_filesel_button_clicked(), on_load_audio_activate(), on_open_activate(), on_open_sel_activate(), and reload_clip().
void clear_tbar_bgs | ( | int | posx, |
int | posy, | ||
int | width, | ||
int | height, | ||
int | which | ||
) |
Definition at line 181 of file interface.c.
Referenced by lives_ce_update_timeline(), and redraw_timeline().
aud_dialog_t* create_audfade_dialog | ( | int | type | ) |
Definition at line 3660 of file interface.c.
Referenced by on_fade_audio_activate().
_entryw* create_cds_dialog | ( | int | type | ) |
Definition at line 4348 of file interface.c.
Referenced by check_for_layout_del(), on_clear_event_list_activate(), and on_quit_activate().
LiVESWidget* create_cdtrack_dialog | ( | int | type, |
livespointer | user_data | ||
) |
Definition at line 3138 of file interface.c.
Referenced by mt_change_max_disp_tracks(), on_live_fw_activate(), on_live_tvcard_activate(), on_load_cdtrack_activate(), and on_open_vcd_activate().
LiVESWidget* create_cleardisk_advanced_dialog | ( | void | ) |
Definition at line 4481 of file interface.c.
Referenced by on_cleardisk_advanced_clicked().
lives_clipinfo_t* create_clip_info_window | ( | int | audio_channels, |
boolean | is_mt | ||
) |
Definition at line 1048 of file interface.c.
LiVESWidget* create_combo_dialog | ( | int | type, |
LiVESList * | list | ||
) |
Definition at line 3088 of file interface.c.
_commentsw* create_comments_dialog | ( | lives_clip_t * | sfile, |
char * | filename | ||
) |
Definition at line 3745 of file interface.c.
Referenced by do_comments_dialog().
LiVESWidget* create_encoder_prep_dialog | ( | const char * | text1, |
const char * | text2, | ||
boolean | opt_resize | ||
) |
Definition at line 1292 of file interface.c.
_insertw* create_insert_dialog | ( | void | ) |
Definition at line 1458 of file interface.c.
Referenced by on_insert_pre_activate().
_entryw* create_location_dialog | ( | void | ) |
Definition at line 2350 of file interface.c.
Referenced by on_open_loc_activate().
void create_new_pb_speed | ( | short | type | ) |
window change speed from Tools menu
TODO: needs more work to enable easy playback of audio without the video
Definition at line 3464 of file interface.c.
Referenced by on_change_speed_activate(), on_resample_video_activate(), and on_voladj_activate().
LiVESWidget* create_opensel_dialog | ( | int | frames, |
double | fps | ||
) |
Definition at line 2228 of file interface.c.
LiVESTextView* create_output_textview | ( | void | ) |
Definition at line 4630 of file interface.c.
xprocess* create_processing | ( | const char * | text | ) |
Definition at line 853 of file interface.c.
Referenced by do_auto_dialog().
_entryw* create_rename_dialog | ( | int | type | ) |
add set details expander
Definition at line 2792 of file interface.c.
Referenced by do_workdir_query(), on_export_proj_activate(), on_load_set_activate(), on_rename_activate(), on_rename_track_activate(), on_save_set_activate(), and set_new_set_name().
text_window* create_text_window | ( | const char * | title, |
const char * | text, | ||
LiVESTextBuffer * | textbuffer, | ||
boolean | add_buttons | ||
) |
Definition at line 1390 of file interface.c.
Referenced by do_keys_window(), do_messages_window(), do_mt_keys_window(), explain_missing_activate(), on_details_button_clicked(), and popup_lmap_errors().
Definition at line 752 of file interface.c.
void do_keys_window | ( | void | ) |
Definition at line 4733 of file interface.c.
Referenced by on_show_keys_activate().
void do_mt_keys_window | ( | void | ) |
Definition at line 4813 of file interface.c.
Referenced by on_mt_showkeys_activate().
void draw_dsu_widget | ( | LiVESWidget * | dsu_widget | ) |
paint bg
space used by other apps
space used by lives
draw quota (if set)
draw ds_free
ds warning level
ds critical level
Definition at line 5910 of file interface.c.
Referenced by all_config().
LIVES_LOCAL_INLINE char* dsu_label_calculating | ( | void | ) |
Definition at line 6062 of file interface.c.
LIVES_LOCAL_INLINE char* dsu_label_notset | ( | void | ) |
Definition at line 6061 of file interface.c.
LiVESResponseType filter_cleanup | ( | const char * | trashdir, |
LiVESList ** | rec_list, | ||
LiVESList ** | rem_list, | ||
LiVESList ** | left_list | ||
) |
items for recovery /////////////////////////
items for manual removal
reset button
Definition at line 1981 of file interface.c.
boolean get_screen_usable_size | ( | int * | w, |
int * | h | ||
) |
Definition at line 6853 of file interface.c.
Referenced by get_border_size().
double lives_ce_update_timeline | ( | int | frame, |
double | x | ||
) |
pointer position in timeline
Definition at line 207 of file interface.c.
Referenced by config_event(), on_back_pressed(), on_forward_pressed(), on_hrule_reset(), on_hrule_set(), on_hrule_update(), on_rewind_activate(), play_sel(), preview_audio(), storeclip_callback(), and switch_to_file().
LIVES_GLOBAL_INLINE LiVESWidget* make_autoreload_check | ( | LiVESHBox * | hbox, |
boolean | is_active | ||
) |
Definition at line 4342 of file interface.c.
Referenced by create_cds_dialog(), and get_eload_filename().
boolean msg_area_config | ( | LiVESWidget * | widget | ) |
try a smaller font size if we can
Definition at line 6938 of file interface.c.
Referenced by all_config(), and resize_message_area().
void msg_area_scroll | ( | LiVESAdjustment * | adj, |
livespointer | userdata | ||
) |
Definition at line 7284 of file interface.c.
Referenced by pref_factory_int(), pref_factory_string_choice(), and resize_message_area().
LIVES_GLOBAL_INLINE void msg_area_scroll_to_end | ( | LiVESWidget * | widget, |
LiVESAdjustment * | adj | ||
) |
Definition at line 7277 of file interface.c.
Referenced by d_print(), and resize_message_area().
void mt_change_disp_tracks_ok | ( | LiVESButton * | , |
livespointer | user_data | ||
) |
Definition at line 22314 of file multitrack.c.
void multitrack_preview_clicked | ( | LiVESButton * | , |
livespointer | user_data | ||
) |
Referenced by create_processing().
void on_filesel_button_clicked | ( | LiVESButton * | button, |
livespointer | user_data | ||
) |
callback for lives_standard filesel button same callback is used for dierctory buttons object_data in button refinses the behaviousr, see code for details
such buttons may be created independently (e.g for the RFX "fileread" / "filewrite" special types or via lives_standard_direntry_new() / lives_standard_fileentry_new()
various data can be set in the button object, including: (set in lives_standard_file_button_new()) DEFDIR_KEY (char *) ISDIR_KEY (boolean)
FILTER_KEY (char **) FILESEL_TYPE_KEY (int (enum))
NULL terminated array of char * filters (file extensions)
fine tunes for the file selection / dir selection target
take the filename from the text entry widget
TODO: only do this for directory mode, blank text is valid filename
if no text, we look instead in def_dir (if present)
can this be removed ?
apply extra validity checks (check writeable, warn if set to home dir, etc)
for save and not is_dir, we break filename into directory, filename components and set a filter with the filename extension (can be overridden by setting FILTER_KEY)
other types get a filechooser with preview
we set dirname in both file mode and dir mode
update text widget
if running inside a parameter window, reflect update in related paramter values
set to FALSE since no unapplied edits have been made
Definition at line 3930 of file interface.c.
void on_liveinp_advanced_clicked | ( | LiVESButton * | button, |
livespointer | user_data | ||
) |
Definition at line 3047 of file interface.c.
boolean on_msg_area_scroll | ( | LiVESWidget * | widget, |
LiVESXEventScroll * | event, | ||
livespointer | user_data | ||
) |
Definition at line 7298 of file interface.c.
void redraw_timeline | ( | int | clipno | ) |
Definition at line 3412 of file interface.c.
Referenced by do_quick_switch(), lazy_startup_checks(), lives_ce_update_timeline(), on_fade_activate(), redraw_tl_idle(), and switch_to_file().
void redraw_timer_bars | ( | double | oldx, |
double | newx, | ||
int | which | ||
) |
paint a damage region
Definition at line 623 of file interface.c.
boolean redraw_tl_idle | ( | void * | data | ) |
Definition at line 3457 of file interface.c.
boolean reshow_msg_area | ( | LiVESWidget * | widget, |
lives_painter_t * | cr, | ||
livespointer | psurf | ||
) |
Definition at line 7242 of file interface.c.
void run_diskspace_dialog | ( | void | ) |
kick off a bg process to get free ds and ds used
dsu widget
Definition at line 6445 of file interface.c.
Referenced by run_diskspace_dialog_cb(), and run_diskspace_dialog_idle().
void run_diskspace_dialog_cb | ( | LiVESWidget * | w, |
livespointer | data | ||
) |
Definition at line 5748 of file interface.c.
boolean run_diskspace_dialog_idle | ( | livespointer | data | ) |
Definition at line 5752 of file interface.c.
Referenced by on_quit_activate().
lives_remote_clip_request_t* run_youtube_dialog | ( | lives_remote_clip_request_t * | req | ) |
local version not found, so try first with system version
requirement is missing, if the user does set it checked, we will warn
Definition at line 5071 of file interface.c.
Referenced by on_open_utube_activate().
LiVESWidget* scrolled_textview | ( | const char * | text, |
LiVESTextBuffer * | textbuffer, | ||
int | window_width, | ||
LiVESWidget ** | ptextview | ||
) |
Definition at line 1368 of file interface.c.
Referenced by create_text_window().
void show_playbar_labels | ( | int | clipno | ) |
Definition at line 77 of file interface.c.
Referenced by close_current_file(), do_quick_switch(), lives_ce_update_timeline(), on_fade_activate(), render_to_clip(), and show_lives().
LiVESWidget* trash_rb | ( | LiVESButtonBox * | parent | ) |
parent should be a bbox
Definition at line 1622 of file interface.c.
boolean update_dsu | ( | livespointer | data | ) |
Definition at line 6064 of file interface.c.
void update_timer_bars | ( | int | posx, |
int | posy, | ||
int | width, | ||
int | height, | ||
int | which | ||
) |
draw the timer bars
Definition at line 288 of file interface.c.
Referenced by config_vid_draw(), get_play_times(), redraw_timeline(), and redraw_timer_bars().
void widget_add_preview | ( | LiVESWidget * | widget, |
LiVESBox * | for_preview, | ||
LiVESBox * | for_button, | ||
LiVESBox * | for_deint, | ||
int | preview_type | ||
) |
for fileselector preview
Definition at line 652 of file interface.c.
Referenced by choose_file_with_preview(), and create_opensel_dialog().
boolean youtube_select_format | ( | lives_remote_clip_request_t * | req | ) |
Definition at line 5495 of file interface.c.
Referenced by on_utube_select().