LiVES 1.4.9
|
00001 // paramwindow.h 00002 // LiVES 00003 // (c) G. Finch 2004 - 2011 <salsaman@xs4all.nl,salsaman@gmail.com> 00004 // released under the GNU GPL 3 or later 00005 // see file COPYING or www.gnu.org for licensing details 00006 00007 #ifndef _HAS_PARAMWINDOW_H 00008 #define _HAS_PARAMWINDOW_H 00009 00010 typedef struct { 00011 gint usr_number; 00012 GSList *rbgroup; 00013 gint active_param; 00014 } lives_widget_group_t; 00015 00016 00017 #define RFX_TEXT_MAGIC 80 00018 #define RFX_DEF_NUM_MAX 1000000. 00019 00020 #define RFX_WINSIZE_H 600 00021 #define RFX_WINSIZE_V 400 00022 00023 #define DEF_BUTTON_WIDTH 80 00024 00025 void on_paramwindow_ok_clicked (GtkButton *, lives_rfx_t *); 00026 void on_paramwindow_cancel_clicked (GtkButton *, lives_rfx_t *); 00027 void on_paramwindow_cancel_clicked2 (GtkButton *, lives_rfx_t *); 00028 00029 void on_render_fx_pre_activate (GtkMenuItem *, lives_rfx_t *); 00030 void on_render_fx_activate (GtkMenuItem *, lives_rfx_t *); 00031 00032 gboolean make_param_box(GtkVBox *, lives_rfx_t *); 00033 00034 gboolean add_param_to_box (GtkBox *, lives_rfx_t *, gint param_number, gboolean add_slider); 00035 void add_hsep_to_box (GtkBox *); 00036 void add_fill_to_box (GtkBox *); 00037 void add_label_to_box (GtkBox *box, gboolean do_trans, const gchar *text); 00038 00039 GSList *add_usrgrp_to_livesgrp (GSList *u2l, GSList *rbgroup, gint usr_number); 00040 lives_widget_group_t *livesgrp_from_usrgrp (GSList *u2l, gint usrgrp); 00041 00042 void after_boolean_param_toggled (GtkToggleButton *, lives_rfx_t * rfx); 00043 void after_param_value_changed (GtkSpinButton *, lives_rfx_t * rfx); 00044 void after_param_red_changed (GtkSpinButton *, lives_rfx_t * rfx); 00045 void after_param_green_changed (GtkSpinButton *, lives_rfx_t * rfx); 00046 void after_param_blue_changed (GtkSpinButton *, lives_rfx_t * rfx); 00047 void after_param_alpha_changed (GtkSpinButton *, lives_rfx_t * rfx); 00048 gboolean after_param_text_focus_changed (GtkWidget *, GtkWidget *, lives_rfx_t *rfx); 00049 void after_param_text_changed (GtkWidget *, lives_rfx_t *rfx); 00050 void after_string_list_changed (GtkEntry *, lives_rfx_t *rfx); 00051 00052 void on_pwcolsel (GtkButton *button, lives_rfx_t *); 00053 00054 gchar *param_marshall (lives_rfx_t *rfx, gboolean with_min_max); 00055 gchar **param_marshall_to_argv (lives_rfx_t *rfx); 00056 void param_demarshall (lives_rfx_t *rfx, GList *plist, gboolean with_min_max, gboolean update_widgets); 00057 gint set_param_from_list(GList *plist, lives_param_t *param, gint pnum, gboolean with_min_max, gboolean upd); 00058 GList *argv_to_marshalled_list (lives_rfx_t *rfx, gint argc, gchar **argv); 00059 00063 void do_onchange (GObject *object, lives_rfx_t *); 00064 00065 00066 void update_weed_color_value(weed_plant_t *param, int pnum, weed_plant_t *copy_to, int c1, int c2, int c3, int c4); 00067 00068 00069 #endif