LiVES  3.2.0
Macros | Functions
interface.c File Reference
#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...
 
xprocesscreate_threaded_dialog (char *text, boolean has_cancel, boolean *td_had_focus)
 
xprocesscreate_processing (const char *text)
 
lives_clipinfo_tcreate_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_windowcreate_text_window (const char *title, const char *text, LiVESTextBuffer *textbuffer, boolean add_buttons)
 
_insertwcreate_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)
 
_entrywcreate_location_dialog (void)
 
_entrywcreate_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_tcreate_audfade_dialog (int type)
 
_commentswcreate_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)
 
_entrywcreate_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_windowautolives_pre_dialog (void)
 
const lives_special_aspect_tadd_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_trun_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)
 

Macro Definition Documentation

◆ ADD_KEYDEF

#define ADD_KEYDEF (   key,
  desc 
)
Value:
pair_add(textwindow->table, (tmp = lives_strdup(key)), (tmp2 = lives_strdup(desc))); \
lives_free(tmp); lives_free(tmp2)

Definition at line 4730 of file interface.c.

◆ NMLEN_MAX

#define NMLEN_MAX   33

Definition at line 1735 of file interface.c.

Function Documentation

◆ add_aspect_ratio_button()

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().

◆ add_list_expander()

LiVESWidget* add_list_expander ( LiVESBox *  box,
const char *  title,
int  width,
int  height,
LiVESList *  xlist 
)

Definition at line 4983 of file interface.c.

◆ add_suffix_check()

void add_suffix_check ( LiVESBox *  box,
const char *  ext 
)

Definition at line 23 of file interface.c.

◆ autolives_pre_dialog()

autolives_window* autolives_pre_dialog ( void  )

Definition at line 4846 of file interface.c.

Referenced by autolives_toggle().

◆ choose_file()

char* choose_file ( const char *  dir,
const char *  fname,
char **const  filt,
LiVESFileChooserAction  act,
const char *  title,
LiVESWidget *  extra_widget 
)

◆ choose_file_bg()

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.

◆ choose_file_with_preview()

LiVESWidget* choose_file_with_preview ( const char *  dir,
const char *  title,
char **const  filt,
int  filesel_type 
)

◆ clear_tbar_bgs()

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().

◆ create_audfade_dialog()

aud_dialog_t* create_audfade_dialog ( int  type)

Definition at line 3660 of file interface.c.

Referenced by on_fade_audio_activate().

◆ create_cds_dialog()

_entryw* create_cds_dialog ( int  type)

◆ create_cdtrack_dialog()

LiVESWidget* create_cdtrack_dialog ( int  type,
livespointer  user_data 
)

◆ create_cleardisk_advanced_dialog()

LiVESWidget* create_cleardisk_advanced_dialog ( void  )

Definition at line 4481 of file interface.c.

Referenced by on_cleardisk_advanced_clicked().

◆ create_clip_info_window()

lives_clipinfo_t* create_clip_info_window ( int  audio_channels,
boolean  is_mt 
)

Definition at line 1048 of file interface.c.

◆ create_combo_dialog()

LiVESWidget* create_combo_dialog ( int  type,
LiVESList *  list 
)

Definition at line 3088 of file interface.c.

◆ create_comments_dialog()

_commentsw* create_comments_dialog ( lives_clip_t sfile,
char *  filename 
)

Definition at line 3745 of file interface.c.

Referenced by do_comments_dialog().

◆ create_encoder_prep_dialog()

LiVESWidget* create_encoder_prep_dialog ( const char *  text1,
const char *  text2,
boolean  opt_resize 
)

Definition at line 1292 of file interface.c.

◆ create_insert_dialog()

_insertw* create_insert_dialog ( void  )

Definition at line 1458 of file interface.c.

Referenced by on_insert_pre_activate().

◆ create_location_dialog()

_entryw* create_location_dialog ( void  )

Definition at line 2350 of file interface.c.

Referenced by on_open_loc_activate().

◆ create_new_pb_speed()

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().

◆ create_opensel_dialog()

LiVESWidget* create_opensel_dialog ( int  frames,
double  fps 
)

Definition at line 2228 of file interface.c.

◆ create_output_textview()

LiVESTextView* create_output_textview ( void  )

Definition at line 4630 of file interface.c.

◆ create_processing()

xprocess* create_processing ( const char *  text)

Definition at line 853 of file interface.c.

Referenced by do_auto_dialog().

◆ create_rename_dialog()

_entryw* create_rename_dialog ( int  type)

◆ create_text_window()

text_window* create_text_window ( const char *  title,
const char *  text,
LiVESTextBuffer *  textbuffer,
boolean  add_buttons 
)

◆ create_threaded_dialog()

xprocess* create_threaded_dialog ( char *  text,
boolean  has_cancel,
boolean td_had_focus 
)

Definition at line 752 of file interface.c.

◆ do_keys_window()

void do_keys_window ( void  )

Definition at line 4733 of file interface.c.

Referenced by on_show_keys_activate().

◆ do_mt_keys_window()

void do_mt_keys_window ( void  )

Definition at line 4813 of file interface.c.

Referenced by on_mt_showkeys_activate().

◆ draw_dsu_widget()

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().

◆ dsu_label_calculating()

LIVES_LOCAL_INLINE char* dsu_label_calculating ( void  )

Definition at line 6062 of file interface.c.

◆ dsu_label_notset()

LIVES_LOCAL_INLINE char* dsu_label_notset ( void  )

Definition at line 6061 of file interface.c.

◆ filter_cleanup()

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.

◆ get_screen_usable_size()

boolean get_screen_usable_size ( int *  w,
int *  h 
)

Definition at line 6853 of file interface.c.

Referenced by get_border_size().

◆ lives_ce_update_timeline()

double lives_ce_update_timeline ( int  frame,
double  x 
)

◆ make_autoreload_check()

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().

◆ msg_area_config()

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().

◆ msg_area_scroll()

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().

◆ msg_area_scroll_to_end()

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().

◆ mt_change_disp_tracks_ok()

void mt_change_disp_tracks_ok ( LiVESButton *  ,
livespointer  user_data 
)

Definition at line 22314 of file multitrack.c.

◆ multitrack_preview_clicked()

void multitrack_preview_clicked ( LiVESButton *  ,
livespointer  user_data 
)

Referenced by create_processing().

◆ on_filesel_button_clicked()

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.

◆ on_liveinp_advanced_clicked()

void on_liveinp_advanced_clicked ( LiVESButton *  button,
livespointer  user_data 
)

Definition at line 3047 of file interface.c.

◆ on_msg_area_scroll()

boolean on_msg_area_scroll ( LiVESWidget *  widget,
LiVESXEventScroll *  event,
livespointer  user_data 
)

Definition at line 7298 of file interface.c.

◆ redraw_timeline()

void redraw_timeline ( int  clipno)

◆ redraw_timer_bars()

void redraw_timer_bars ( double  oldx,
double  newx,
int  which 
)

paint a damage region

Definition at line 623 of file interface.c.

◆ redraw_tl_idle()

boolean redraw_tl_idle ( void *  data)

Definition at line 3457 of file interface.c.

◆ reshow_msg_area()

boolean reshow_msg_area ( LiVESWidget *  widget,
lives_painter_t *  cr,
livespointer  psurf 
)

Definition at line 7242 of file interface.c.

◆ run_diskspace_dialog()

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().

◆ run_diskspace_dialog_cb()

void run_diskspace_dialog_cb ( LiVESWidget *  w,
livespointer  data 
)

Definition at line 5748 of file interface.c.

◆ run_diskspace_dialog_idle()

boolean run_diskspace_dialog_idle ( livespointer  data)

Definition at line 5752 of file interface.c.

Referenced by on_quit_activate().

◆ run_youtube_dialog()

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().

◆ scrolled_textview()

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().

◆ show_playbar_labels()

void show_playbar_labels ( int  clipno)

◆ trash_rb()

LiVESWidget* trash_rb ( LiVESButtonBox *  parent)

parent should be a bbox

Definition at line 1622 of file interface.c.

◆ update_dsu()

boolean update_dsu ( livespointer  data)

Definition at line 6064 of file interface.c.

◆ update_timer_bars()

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().

◆ widget_add_preview()

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().

◆ youtube_select_format()

boolean youtube_select_format ( lives_remote_clip_request_t req)

Definition at line 5495 of file interface.c.

Referenced by on_utube_select().

lives_free
#define lives_free
Definition: machinestate.h:52
textwindow
text_window * textwindow
Definition: interface.h:314
text_window::table
LiVESWidget * table
Definition: interface.h:139