LiVES  1.6.4-svn
 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 - 2011 <salsaman@xs4all.nl,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 #define RFX_WINSIZE_H 600
21 #define RFX_WINSIZE_V 400
22 
23 #define DEF_BUTTON_WIDTH 80
24 
25 void on_paramwindow_ok_clicked (GtkButton *, lives_rfx_t *);
26 void on_paramwindow_cancel_clicked (GtkButton *, lives_rfx_t *);
27 void on_paramwindow_cancel_clicked2 (GtkButton *, lives_rfx_t *);
28 
29 void on_render_fx_pre_activate (GtkMenuItem *, lives_rfx_t *);
30 void on_render_fx_activate (GtkMenuItem *, lives_rfx_t *);
31 
32 gboolean make_param_box(GtkVBox *, lives_rfx_t *);
33 
34 gboolean add_param_to_box (GtkBox *, lives_rfx_t *, gint param_number, gboolean add_slider);
35 void add_hsep_to_box (GtkBox *);
36 void add_fill_to_box (GtkBox *);
37 void add_label_to_box (GtkBox *box, gboolean do_trans, const gchar *text);
38 
39 GSList *add_usrgrp_to_livesgrp (GSList *u2l, GSList *rbgroup, gint usr_number);
40 lives_widget_group_t *livesgrp_from_usrgrp (GSList *u2l, gint usrgrp);
41 
42 void after_boolean_param_toggled (GtkToggleButton *, lives_rfx_t * rfx);
43 void after_param_value_changed (GtkSpinButton *, lives_rfx_t * rfx);
44 void after_param_red_changed (GtkSpinButton *, lives_rfx_t * rfx);
45 void after_param_green_changed (GtkSpinButton *, lives_rfx_t * rfx);
46 void after_param_blue_changed (GtkSpinButton *, lives_rfx_t * rfx);
47 void after_param_alpha_changed (GtkSpinButton *, lives_rfx_t * rfx);
48 gboolean after_param_text_focus_changed (GtkWidget *, GtkWidget *, lives_rfx_t *rfx);
49 void after_param_text_changed (GtkWidget *, lives_rfx_t *rfx);
50 void after_string_list_changed (GtkComboBox *, lives_rfx_t *rfx);
51 
52 void on_pwcolsel (GtkButton *button, lives_rfx_t *);
53 
54 gchar *param_marshall (lives_rfx_t *rfx, gboolean with_min_max);
55 gchar **param_marshall_to_argv (lives_rfx_t *rfx);
56 void param_demarshall (lives_rfx_t *rfx, GList *plist, gboolean with_min_max, gboolean update_widgets);
57 gint set_param_from_list(GList *plist, lives_param_t *param, gint pnum, gboolean with_min_max, gboolean upd);
58 GList *argv_to_marshalled_list (lives_rfx_t *rfx, gint argc, gchar **argv);
59 
63 void do_onchange (GObject *object, lives_rfx_t *);
64 void do_onchange_init(lives_rfx_t *rfx);
65 
66 
67 
68 void update_weed_color_value(weed_plant_t *param, int pnum, int c1, int c2, int c3, int c4);
69 
70 void update_visual_params(lives_rfx_t *rfx, gboolean update_hidden);
71 
72 
73 
74 #endif