LiVES  3.2.0
paramwindow.h
Go to the documentation of this file.
1 // paramwindow.h
2 // LiVES
3 // (c) G. Finch 2004 - 2019 <salsaman+lives@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file COPYING or www.gnu.org for licensing details
6 
7 #ifndef HAS_LIVES_PARAMWINDOW_H
8 #define HAS_LIVES_PARAMWINDOW_H
9 
10 typedef struct {
12  LiVESSList *rbgroup;
15 
16 #define RFX_TEXT_MAGIC 80
17 #define RFX_DEF_NUM_MAX 1000000.
18 
19 #define MAX_FMT_STRINGS 256
20 #define FMT_STRING_SIZE 256
21 
22 #define RFX_TEXT_SCROLL_HEIGHT ((int)(80.*widget_opts.scale))
23 
24 #define GIW_KNOB_WIDTH ((int)(40.*widget_opts.scale))
25 #define GIW_KNOB_HEIGHT ((int)(40.*widget_opts.scale))
26 
27 #define DEF_SLIDER_WIDTH ((int)(200.*widget_opts.scale))
28 
29 void on_paramwindow_button_clicked(LiVESButton *, lives_rfx_t *);
30 
31 void on_render_fx_pre_activate(LiVESMenuItem *, lives_rfx_t *);
32 void on_render_fx_activate(LiVESMenuItem *, lives_rfx_t *);
33 
34 _fx_dialog *on_fx_pre_activate(lives_rfx_t *rfx, boolean is_realtime, LiVESWidget *pbox);
35 
36 boolean make_param_box(LiVESVBox *, lives_rfx_t *);
37 
38 boolean add_param_to_box(LiVESBox *, lives_rfx_t *, int param_number, boolean add_slider);
39 LiVESWidget *add_param_label_to_box(LiVESBox *, boolean do_trans, const char *text);
40 
41 LiVESSList *add_usrgrp_to_livesgrp(LiVESSList *u2l, LiVESSList *rbgroup, int usr_number);
42 lives_widget_group_t *livesgrp_from_usrgrp(LiVESSList *u2l, int usrgrp);
43 
44 void after_boolean_param_toggled(LiVESToggleButton *, lives_rfx_t *);
45 void after_param_value_changed(LiVESSpinButton *, lives_rfx_t *);
46 void after_param_red_changed(LiVESSpinButton *, lives_rfx_t *);
47 void after_param_green_changed(LiVESSpinButton *, lives_rfx_t *);
48 void after_param_blue_changed(LiVESSpinButton *, lives_rfx_t *);
49 void after_param_alpha_changed(LiVESSpinButton *, lives_rfx_t *);
50 boolean after_param_text_focus_changed(LiVESWidget *, LiVESWidget *, lives_rfx_t *);
51 void after_param_text_changed(LiVESWidget *, lives_rfx_t *);
52 void after_string_list_changed(LiVESWidget *, lives_rfx_t *);
53 
54 void on_pwcolsel(LiVESButton *, lives_rfx_t *);
55 
56 char *param_marshall(lives_rfx_t *, boolean with_min_max);
58 void param_demarshall(lives_rfx_t *, LiVESList *plist, boolean with_min_max, boolean update_widgets);
59 int set_param_from_list(LiVESList *plist, lives_param_t *param, int pnum, boolean with_min_max, boolean upd);
60 LiVESList *argv_to_marshalled_list(lives_rfx_t *, int argc, char **argv);
61 
65 LiVESList *do_onchange(LiVESWidgetObject *object, lives_rfx_t *) WARN_UNUSED;
67 
68 void update_weed_color_value(weed_plant_t *plant, int pnum, int c1, int c2, int c3, int c4, lives_rfx_t *);
69 
71 void update_visual_params(lives_rfx_t *, boolean update_hidden);
72 
74 boolean update_widget_vis(lives_rfx_t *, int key, int mode);
75 
76 #endif
after_param_alpha_changed
void after_param_alpha_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2558
_fx_dialog
Definition: mainwindow.h:1838
after_param_text_changed
void after_param_text_changed(LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2635
after_param_text_focus_changed
boolean after_param_text_focus_changed(LiVESWidget *, LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2606
after_param_blue_changed
void after_param_blue_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2497
lives_widget_group_t::usr_number
int usr_number
Definition: paramwindow.h:11
livesgrp_from_usrgrp
lives_widget_group_t * livesgrp_from_usrgrp(LiVESSList *u2l, int usrgrp)
Definition: paramwindow.c:1882
add_param_to_box
boolean add_param_to_box(LiVESBox *, lives_rfx_t *, int param_number, boolean add_slider)
Definition: paramwindow.c:1484
param_demarshall
void param_demarshall(lives_rfx_t *, LiVESList *plist, boolean with_min_max, boolean update_widgets)
Definition: paramwindow.c:3013
lives_widget_group_t::active_param
int active_param
Definition: paramwindow.h:13
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 upd...
Definition: paramwindow.c:3065
lives_rfx_t
Definition: plugins.h:625
param_marshall
char * param_marshall(lives_rfx_t *, boolean with_min_max)
Definition: paramwindow.c:2844
lives_param_t
Definition: plugins.h:538
after_param_green_changed
void after_param_green_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2435
update_widget_vis
boolean update_widget_vis(lives_rfx_t *, int key, int mode)
show / hide widgets set by plugin in init_func()
Definition: paramwindow.c:1893
do_onchange_init
LiVESList * do_onchange_init(lives_rfx_t *) WARN_UNUSED
Definition: paramwindow.c:35
do_onchange
LiVESList * do_onchange(LiVESWidgetObject *object, lives_rfx_t *) WARN_UNUSED
object should have g_set_object_data "param_number" set to parameter number
Definition: paramwindow.c:3265
after_boolean_param_toggled
void after_boolean_param_toggled(LiVESToggleButton *, lives_rfx_t *)
Definition: paramwindow.c:2035
update_visual_params
void update_visual_params(lives_rfx_t *, boolean update_hidden)
apply internal value changes to interface widgets
Definition: paramwindow.c:3361
on_render_fx_pre_activate
void on_render_fx_pre_activate(LiVESMenuItem *, lives_rfx_t *)
Definition: paramwindow.c:656
on_fx_pre_activate
_fx_dialog * on_fx_pre_activate(lives_rfx_t *rfx, boolean is_realtime, LiVESWidget *pbox)
Definition: paramwindow.c:687
lives_widget_group_t
Definition: paramwindow.h:10
after_param_red_changed
void after_param_red_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2372
after_param_value_changed
void after_param_value_changed(LiVESSpinButton *, lives_rfx_t *)
Definition: paramwindow.c:2102
param_marshall_to_argv
char ** param_marshall_to_argv(lives_rfx_t *)
Definition: paramwindow.c:2797
WARN_UNUSED
#define WARN_UNUSED
Definition: main.h:77
on_paramwindow_button_clicked
void on_paramwindow_button_clicked(LiVESButton *, lives_rfx_t *)
Definition: paramwindow.c:90
add_param_label_to_box
LiVESWidget * add_param_label_to_box(LiVESBox *, boolean do_trans, const char *text)
Definition: paramwindow.c:1844
make_param_box
boolean make_param_box(LiVESVBox *, lives_rfx_t *)
make a dynamic parameter window
Definition: paramwindow.c:1015
on_render_fx_activate
void on_render_fx_activate(LiVESMenuItem *, lives_rfx_t *)
Definition: paramwindow.c:222
add_usrgrp_to_livesgrp
LiVESSList * add_usrgrp_to_livesgrp(LiVESSList *u2l, LiVESSList *rbgroup, int usr_number)
Definition: paramwindow.c:1872
on_pwcolsel
void on_pwcolsel(LiVESButton *, lives_rfx_t *)
Definition: paramwindow.c:3338
argv_to_marshalled_list
LiVESList * argv_to_marshalled_list(lives_rfx_t *, int argc, char **argv)
Definition: paramwindow.c:3031
after_string_list_changed
void after_string_list_changed(LiVESWidget *, lives_rfx_t *)
Definition: paramwindow.c:2726
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: paramwindow.c:2225
lives_widget_group_t::rbgroup
LiVESSList * rbgroup
Definition: paramwindow.h:12