LiVES  2.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
paramwindow.h
Go to the documentation of this file.
1 // paramwindow.h
2 // LiVES
3 // (c) G. Finch 2004 - 2013 <salsaman@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 {
11  gint usr_number;
12  GSList *rbgroup;
15 
16 
17 #define RFX_TEXT_MAGIC 80
18 #define RFX_DEF_NUM_MAX 1000000.
19 
20 
21 void on_paramwindow_ok_clicked (GtkButton *, lives_rfx_t *);
22 void on_paramwindow_cancel_clicked (GtkButton *, lives_rfx_t *);
23 void on_paramwindow_cancel_clicked2 (GtkButton *, lives_rfx_t *);
24 
25 void on_render_fx_pre_activate (GtkMenuItem *, lives_rfx_t *);
26 void on_render_fx_activate (GtkMenuItem *, lives_rfx_t *);
27 
28 boolean make_param_box(GtkVBox *, lives_rfx_t *);
29 
30 boolean add_param_to_box (GtkBox *, lives_rfx_t *, gint param_number, boolean add_slider);
31 void add_param_label_to_box (GtkBox *box, boolean do_trans, const gchar *text);
32 
33 GSList *add_usrgrp_to_livesgrp (GSList *u2l, GSList *rbgroup, gint usr_number);
34 lives_widget_group_t *livesgrp_from_usrgrp (GSList *u2l, gint usrgrp);
35 
36 void after_boolean_param_toggled (GtkToggleButton *, lives_rfx_t * rfx);
37 void after_param_value_changed (GtkSpinButton *, lives_rfx_t * rfx);
38 void after_param_red_changed (GtkSpinButton *, lives_rfx_t * rfx);
39 void after_param_green_changed (GtkSpinButton *, lives_rfx_t * rfx);
40 void after_param_blue_changed (GtkSpinButton *, lives_rfx_t * rfx);
41 void after_param_alpha_changed (GtkSpinButton *, lives_rfx_t * rfx);
42 boolean after_param_text_focus_changed (GtkWidget *, GtkWidget *, lives_rfx_t *rfx);
43 void after_param_text_changed (GtkWidget *, lives_rfx_t *rfx);
44 void after_string_list_changed (GtkComboBox *, lives_rfx_t *rfx);
45 
46 void on_pwcolsel (GtkButton *button, lives_rfx_t *);
47 
48 gchar *param_marshall (lives_rfx_t *rfx, boolean with_min_max);
49 gchar **param_marshall_to_argv (lives_rfx_t *rfx);
50 void param_demarshall (lives_rfx_t *rfx, GList *plist, boolean with_min_max, boolean update_widgets);
51 int set_param_from_list(GList *plist, lives_param_t *param, gint pnum, boolean with_min_max, boolean upd);
52 GList *argv_to_marshalled_list (lives_rfx_t *rfx, gint argc, gchar **argv);
53 
57 GList *do_onchange (GObject *object, lives_rfx_t *) WARN_UNUSED;
59 
60 
61 
62 void update_weed_color_value(weed_plant_t *inst, int pnum, int c1, int c2, int c3, int c4);
63 
64 void update_visual_params(lives_rfx_t *rfx, boolean update_hidden);
65 
66 
67 
68 #endif