LiVES  3.2.0
Data Structures | Macros | Functions
paramwindow.h File Reference

Go to the source code of this file.

Data Structures

struct  lives_widget_group_t
 

Macros

#define RFX_TEXT_MAGIC   80
 length at which entry turns into textview More...
 
#define RFX_DEF_NUM_MAX   1000000.
 default param max when not defined More...
 
#define MAX_FMT_STRINGS   256
 
#define FMT_STRING_SIZE   256
 
#define RFX_TEXT_SCROLL_HEIGHT   ((int)(80.*widget_opts.scale))
 height of textview scrolled window More...
 
#define GIW_KNOB_WIDTH   ((int)(40.*widget_opts.scale))
 
#define GIW_KNOB_HEIGHT   ((int)(40.*widget_opts.scale))
 
#define DEF_SLIDER_WIDTH   ((int)(200.*widget_opts.scale))
 

Functions

void on_paramwindow_button_clicked (LiVESButton *, lives_rfx_t *)
 
void on_render_fx_pre_activate (LiVESMenuItem *, lives_rfx_t *)
 
void on_render_fx_activate (LiVESMenuItem *, lives_rfx_t *)
 
_fx_dialogon_fx_pre_activate (lives_rfx_t *rfx, boolean is_realtime, LiVESWidget *pbox)
 
boolean make_param_box (LiVESVBox *, lives_rfx_t *)
 make a dynamic parameter window More...
 
boolean add_param_to_box (LiVESBox *, lives_rfx_t *, int param_number, boolean add_slider)
 
LiVESWidget * add_param_label_to_box (LiVESBox *, boolean do_trans, const char *text)
 
LiVESSList * add_usrgrp_to_livesgrp (LiVESSList *u2l, LiVESSList *rbgroup, int usr_number)
 
lives_widget_group_tlivesgrp_from_usrgrp (LiVESSList *u2l, int usrgrp)
 
void after_boolean_param_toggled (LiVESToggleButton *, lives_rfx_t *)
 
void after_param_value_changed (LiVESSpinButton *, lives_rfx_t *)
 
void after_param_red_changed (LiVESSpinButton *, lives_rfx_t *)
 
void after_param_green_changed (LiVESSpinButton *, lives_rfx_t *)
 
void after_param_blue_changed (LiVESSpinButton *, lives_rfx_t *)
 
void after_param_alpha_changed (LiVESSpinButton *, lives_rfx_t *)
 
boolean after_param_text_focus_changed (LiVESWidget *, LiVESWidget *, lives_rfx_t *)
 
void after_param_text_changed (LiVESWidget *, lives_rfx_t *)
 
void after_string_list_changed (LiVESWidget *, lives_rfx_t *)
 
void on_pwcolsel (LiVESButton *, lives_rfx_t *)
 
char * param_marshall (lives_rfx_t *, boolean with_min_max)
 
char ** param_marshall_to_argv (lives_rfx_t *)
 
void param_demarshall (lives_rfx_t *, LiVESList *plist, boolean with_min_max, boolean update_widgets)
 
int set_param_from_list (LiVESList *plist, lives_param_t *param, int pnum, boolean with_min_max, boolean upd)
 update values for param using values in plist if upd is TRUE, the widgets for that param also are updated; otherwise, we do not update the widgets, but we do update the default More...
 
LiVESList * argv_to_marshalled_list (lives_rfx_t *, int argc, char **argv)
 
LiVESList * do_onchange (LiVESWidgetObject *object, lives_rfx_t *) WARN_UNUSED
 object should have g_set_object_data "param_number" set to parameter number More...
 
LiVESList * do_onchange_init (lives_rfx_t *) WARN_UNUSED
 
void update_weed_color_value (weed_plant_t *plant, int pnum, int c1, int c2, int c3, int c4, lives_rfx_t *)
 
void update_visual_params (lives_rfx_t *, boolean update_hidden)
 apply internal value changes to interface widgets More...
 
boolean update_widget_vis (lives_rfx_t *, int key, int mode)
 show / hide widgets set by plugin in init_func() More...
 

Macro Definition Documentation

◆ DEF_SLIDER_WIDTH

#define DEF_SLIDER_WIDTH   ((int)(200.*widget_opts.scale))

Definition at line 27 of file paramwindow.h.

◆ FMT_STRING_SIZE

#define FMT_STRING_SIZE   256

Definition at line 20 of file paramwindow.h.

◆ GIW_KNOB_HEIGHT

#define GIW_KNOB_HEIGHT   ((int)(40.*widget_opts.scale))

Definition at line 25 of file paramwindow.h.

◆ GIW_KNOB_WIDTH

#define GIW_KNOB_WIDTH   ((int)(40.*widget_opts.scale))

Definition at line 24 of file paramwindow.h.

◆ MAX_FMT_STRINGS

#define MAX_FMT_STRINGS   256

Definition at line 19 of file paramwindow.h.

◆ RFX_DEF_NUM_MAX

#define RFX_DEF_NUM_MAX   1000000.

default param max when not defined

Definition at line 17 of file paramwindow.h.

◆ RFX_TEXT_MAGIC

#define RFX_TEXT_MAGIC   80

length at which entry turns into textview

Definition at line 16 of file paramwindow.h.

◆ RFX_TEXT_SCROLL_HEIGHT

#define RFX_TEXT_SCROLL_HEIGHT   ((int)(80.*widget_opts.scale))

height of textview scrolled window

Definition at line 22 of file paramwindow.h.

Function Documentation

◆ add_param_label_to_box()

LiVESWidget* add_param_label_to_box ( LiVESBox *  ,
boolean  do_trans,
const char *  text 
)

Definition at line 1844 of file paramwindow.c.

Referenced by add_param_to_box().

◆ add_param_to_box()

boolean add_param_to_box ( LiVESBox *  ,
lives_rfx_t ,
int  param_number,
boolean  add_slider 
)

Definition at line 1484 of file paramwindow.c.

◆ add_usrgrp_to_livesgrp()

LiVESSList* add_usrgrp_to_livesgrp ( LiVESSList *  u2l,
LiVESSList *  rbgroup,
int  usr_number 
)

Definition at line 1872 of file paramwindow.c.

◆ after_boolean_param_toggled()

void after_boolean_param_toggled ( LiVESToggleButton *  ,
lives_rfx_t  
)

Definition at line 2035 of file paramwindow.c.

Referenced by add_param_to_box().

◆ after_param_alpha_changed()

void after_param_alpha_changed ( LiVESSpinButton *  ,
lives_rfx_t  
)

Definition at line 2558 of file paramwindow.c.

◆ after_param_blue_changed()

void after_param_blue_changed ( LiVESSpinButton *  ,
lives_rfx_t  
)

Definition at line 2497 of file paramwindow.c.

◆ after_param_green_changed()

void after_param_green_changed ( LiVESSpinButton *  ,
lives_rfx_t  
)

Definition at line 2435 of file paramwindow.c.

◆ after_param_red_changed()

void after_param_red_changed ( LiVESSpinButton *  ,
lives_rfx_t  
)

Definition at line 2372 of file paramwindow.c.

◆ after_param_text_changed()

void after_param_text_changed ( LiVESWidget *  ,
lives_rfx_t  
)

◆ after_param_text_focus_changed()

boolean after_param_text_focus_changed ( LiVESWidget *  ,
LiVESWidget *  ,
lives_rfx_t  
)

Definition at line 2606 of file paramwindow.c.

◆ after_param_value_changed()

void after_param_value_changed ( LiVESSpinButton *  ,
lives_rfx_t  
)

Definition at line 2102 of file paramwindow.c.

Referenced by set_param_from_list().

◆ after_string_list_changed()

void after_string_list_changed ( LiVESWidget *  ,
lives_rfx_t  
)

Definition at line 2726 of file paramwindow.c.

◆ argv_to_marshalled_list()

LiVESList* argv_to_marshalled_list ( lives_rfx_t ,
int  argc,
char **  argv 
)

Definition at line 3031 of file paramwindow.c.

◆ do_onchange()

LiVESList* do_onchange ( LiVESWidgetObject *  object,
lives_rfx_t  
)

object should have g_set_object_data "param_number" set to parameter number

(0 based, -ve for init onchanges)

Definition at line 3265 of file paramwindow.c.

Referenced by do_onchange_init().

◆ do_onchange_init()

LiVESList* do_onchange_init ( lives_rfx_t )

Definition at line 35 of file paramwindow.c.

Referenced by on_fx_pre_activate(), and on_render_fx_activate().

◆ livesgrp_from_usrgrp()

lives_widget_group_t* livesgrp_from_usrgrp ( LiVESSList *  u2l,
int  usrgrp 
)

Definition at line 1882 of file paramwindow.c.

◆ make_param_box()

boolean make_param_box ( LiVESVBox *  top_vbox,
lives_rfx_t rfx 
)

make a dynamic parameter window

if top_vbox is NULL: we just check for displayable params, returning FALSE there are none to be shown. otherwise, adds widgets to top_vbox, returning FALSE if nothing was added

add nframes, fps, width, height

Definition at line 1015 of file paramwindow.c.

Referenced by add_mt_param_box(), on_fx_pre_activate(), and rte_reset_defs_clicked().

◆ on_fx_pre_activate()

_fx_dialog* on_fx_pre_activate ( lives_rfx_t rfx,
boolean  is_realtime,
LiVESWidget *  pbox 
)

Definition at line 687 of file paramwindow.c.

Referenced by rte_set_defs_activate().

◆ on_paramwindow_button_clicked()

void on_paramwindow_button_clicked ( LiVESButton *  ,
lives_rfx_t  
)

◆ on_pwcolsel()

void on_pwcolsel ( LiVESButton *  ,
lives_rfx_t  
)

Definition at line 3338 of file paramwindow.c.

◆ on_render_fx_activate()

void on_render_fx_activate ( LiVESMenuItem *  ,
lives_rfx_t  
)

Definition at line 222 of file paramwindow.c.

◆ on_render_fx_pre_activate()

void on_render_fx_pre_activate ( LiVESMenuItem *  ,
lives_rfx_t  
)

Definition at line 656 of file paramwindow.c.

Referenced by replace_with_delegates().

◆ param_demarshall()

void param_demarshall ( lives_rfx_t ,
LiVESList *  plist,
boolean  with_min_max,
boolean  update_widgets 
)

Definition at line 3013 of file paramwindow.c.

◆ param_marshall()

char* param_marshall ( lives_rfx_t ,
boolean  with_min_max 
)

Definition at line 2844 of file paramwindow.c.

Referenced by do_effect().

◆ param_marshall_to_argv()

char** param_marshall_to_argv ( lives_rfx_t )

Definition at line 2797 of file paramwindow.c.

Referenced by on_vppa_ok_clicked().

◆ set_param_from_list()

int set_param_from_list ( LiVESList *  plist,
lives_param_t param,
int  pnum,
boolean  with_min_max,
boolean  upd 
)

update values for param using values in plist if upd is TRUE, the widgets for that param also are updated; otherwise, we do not update the widgets, but we do update the default

for LIVES_PARAM_NUM, setting pnum negative avoids having to send min,max

  • deprecated, use with_min_max = FALSE (other types dont have a min/max anyway)

pnum here is not param number, but rather the offset of the element in plist

read value back from widget in case some callback changed the value

Definition at line 3065 of file paramwindow.c.

Referenced by param_demarshall(), set_rfx_param_by_name_string(), and update_visual_params().

◆ update_visual_params()

void update_visual_params ( lives_rfx_t ,
boolean  update_hidden 
)

apply internal value changes to interface widgets

Definition at line 3361 of file paramwindow.c.

Referenced by on_resetp_clicked().

◆ update_weed_color_value()

void update_weed_color_value ( weed_plant_t *  plant,
int  pnum,
int  c1,
int  c2,
int  c3,
int  c4,
lives_rfx_t  
)

Definition at line 2225 of file paramwindow.c.

Referenced by rte_set_defs_ok().

◆ update_widget_vis()

boolean update_widget_vis ( lives_rfx_t ,
int  key,
int  mode 
)

show / hide widgets set by plugin in init_func()

Definition at line 1893 of file paramwindow.c.