LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Enumerations | Functions
rfx-builder.h File Reference

Go to the source code of this file.

Data Structures

struct  rfx_trigger_t
 
struct  rfx_build_window_t
 

Macros

#define RFX_BUILDER   "build-lives-rfx-plugin"
 
#define RFX_VERSION   "1.8"
 must match whatever is in RFX_BUILDER More...
 
#define RFX_BUILDER_MULTI   "build-lives-rfx-plugin-multi"
 this definition must match with smogrify More...
 
#define RFXBUILDER_SCRIPT_SUFFIX   "script"
 default script extension when saving More...
 
#define MAXFLOATLEN   11
 length in chars of G_MAXFLOAT (for display only) More...
 
#define MAXINTLEN   strlen(lives_strdup_printf("%d",LIVES_MAXINT))
 length in chars of G_MAXINT (for display only) More...
 
#define RFXBUILD_MAX_REQ   128
 maximum requirements More...
 
#define RFXBUILD_MAX_PARAMS   32
 maximum parameters More...
 
#define RFXBUILD_MAX_PARAMW_HINTS   512
 maximum parameter window hints More...
 
#define RFXBUILD_MAX_TROWS   512
 
#define PREF_RFXDIALOG_W   ((int)(800.*widget_opts.scale))
 
#define PREF_RFXDIALOG_H   ((int)(650.*widget_opts.scale))
 
#define RFXBUILD_MAX_DP   16
 maximum decimal places allowed (should correspond to precision of a "float") More...
 

Enumerations

enum  lives_rfx_build_type_t {
  RFX_BUILD_TYPE_EFFECT1, RFX_BUILD_TYPE_EFFECT2, RFX_BUILD_TYPE_EFFECT0, RFX_BUILD_TYPE_TOOL,
  RFX_BUILD_TYPE_UTILITY
}
 
enum  lives_rfx_table_type_t { RFX_TABLE_TYPE_REQUIREMENTS, RFX_TABLE_TYPE_PARAMS, RFX_TABLE_TYPE_TRIGGERS, RFX_TABLE_TYPE_PARAM_WINDOW }
 
enum  lives_rfx_code_type_t {
  RFX_CODE_TYPE_PRE, RFX_CODE_TYPE_LOOP, RFX_CODE_TYPE_POST, RFX_CODE_TYPE_STRDEF,
  RFX_CODE_TYPE_STRING_LIST
}
 
enum  lives_rfx_builder_mode_t { RFX_BUILDER_MODE_NEW =0, RFX_BUILDER_MODE_EDIT, RFX_BUILDER_MODE_COPY }
 

Functions

void on_new_rfx_activate (LiVESMenuItem *, livespointer status)
 
void on_edit_rfx_activate (LiVESMenuItem *, livespointer status)
 
void on_copy_rfx_activate (LiVESMenuItem *, livespointer)
 
void on_rename_rfx_activate (LiVESMenuItem *, livespointer)
 
void on_delete_rfx_activate (LiVESMenuItem *, livespointer status)
 
void on_rebuild_rfx_activate (LiVESMenuItem *, livespointer)
 
void on_promote_rfx_activate (LiVESMenuItem *, livespointer)
 
void on_import_rfx_activate (LiVESMenuItem *, livespointer status)
 
void on_export_rfx_activate (LiVESMenuItem *, livespointer status)
 
rfx_build_window_tmake_rfx_build_window (const char *in_script_name, lives_rfx_status_t in_status)
 
void on_rfxbuilder_ok (LiVESButton *, livespointer)
 
void on_rfxbuilder_cancel (LiVESButton *, livespointer)
 
void rfxbuilder_destroy (rfx_build_window_t *)
 
void on_list_table_clicked (LiVESButton *, livespointer rfxbuilder)
 
void on_requirements_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_requirements_cancel (LiVESButton *, livespointer)
 
void on_properties_clicked (LiVESButton *, livespointer rfxbuilder)
 
void on_properties_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_params_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_params_cancel (LiVESButton *, livespointer)
 
void on_param_window_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_param_window_cancel (LiVESButton *, livespointer)
 
void on_code_clicked (LiVESButton *, livespointer rfxbuilder)
 
void on_code_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_code_cancel (LiVESButton *, livespointer)
 
void on_triggers_ok (LiVESButton *, livespointer rfxbuilder)
 
void on_triggers_cancel (LiVESButton *, livespointer)
 
LiVESWidget * make_param_dialog (int pnum, rfx_build_window_t *rfxbuilder)
 
LiVESWidget * make_param_window_dialog (int hnum, rfx_build_window_t *rfxbuilder)
 
LiVESWidget * make_trigger_dialog (int tnum, rfx_build_window_t *rfxbuilder)
 
void on_table_add_row (LiVESButton *, livespointer rfxbuilder)
 
void on_table_edit_row (LiVESButton *, livespointer rfxbuilder)
 
void on_table_swap_row (LiVESButton *, livespointer rfxbuilder)
 
void on_table_delete_row (LiVESButton *, livespointer rfxbuilder)
 
void param_set_from_dialog (lives_param_t *copy_param, rfx_build_window_t *rfxbuilder)
 
void after_param_dp_changed (LiVESSpinButton *, livespointer rfxbuilder)
 
void after_param_min_changed (LiVESSpinButton *, livespointer rfxbuilder)
 
void after_param_max_changed (LiVESSpinButton *, livespointer rfxbuilder)
 
void after_param_def_changed (LiVESSpinButton *, livespointer rfxbuilder)
 
void after_rfxbuilder_type_toggled (LiVESToggleButton *, livespointer rfxbuilder)
 
void on_param_type_changed (LiVESCombo *, livespointer rfxbuilder)
 
void on_paramw_kw_changed (LiVESCombo *, livespointer rfxbuilder)
 
void on_paramw_sp_changed (LiVESCombo *, livespointer rfxbuilder)
 
void on_paramw_spsub_changed (LiVESCombo *, livespointer rfxbuilder)
 
void populate_script_combo (LiVESCombo *script_combo, lives_rfx_status_t status)
 
void on_script_status_changed (LiVESCombo *status_combo, livespointer script_combo)
 
void on_export_rfx_ok (LiVESButton *, char *script_name)
 
void on_import_rfx_ok (LiVESButton *, livespointer status)
 
void add_rfx_effects (void)
 add dynamic menu entries More...
 
char * prompt_for_script_name (const char *sname, lives_rfx_status_t status)
 
boolean check_builder_programs (void)
 
LiVESList * get_script_list (short status)
 
boolean perform_rfxbuilder_checks (rfx_build_window_t *)
 
boolean perform_param_checks (rfx_build_window_t *, int index, int rows)
 
boolean rfxbuilder_to_script (rfx_build_window_t *)
 
boolean script_to_rfxbuilder (rfx_build_window_t *, const char *script_file)
 
LiVESList * get_script_section (const char *section, const char *script_file, boolean strip)
 

Macro Definition Documentation

#define MAXFLOATLEN   11

length in chars of G_MAXFLOAT (for display only)

#define MAXINTLEN   strlen(lives_strdup_printf("%d",LIVES_MAXINT))

length in chars of G_MAXINT (for display only)

#define PREF_RFXDIALOG_H   ((int)(650.*widget_opts.scale))
#define PREF_RFXDIALOG_W   ((int)(800.*widget_opts.scale))
#define RFX_BUILDER   "build-lives-rfx-plugin"
#define RFX_BUILDER_MULTI   "build-lives-rfx-plugin-multi"

this definition must match with smogrify

#define RFX_VERSION   "1.8"

must match whatever is in RFX_BUILDER

#define RFXBUILD_MAX_DP   16

maximum decimal places allowed (should correspond to precision of a "float")

#define RFXBUILD_MAX_PARAMS   32

maximum parameters

#define RFXBUILD_MAX_PARAMW_HINTS   512

maximum parameter window hints

#define RFXBUILD_MAX_REQ   128

maximum requirements

#define RFXBUILD_MAX_TROWS   512

max table rows : this should be set to the largest of the previous maxima

#define RFXBUILDER_SCRIPT_SUFFIX   "script"

default script extension when saving

Enumeration Type Documentation

Enumerator
RFX_BUILD_TYPE_EFFECT1 
RFX_BUILD_TYPE_EFFECT2 
RFX_BUILD_TYPE_EFFECT0 
RFX_BUILD_TYPE_TOOL 
RFX_BUILD_TYPE_UTILITY 
Enumerator
RFX_BUILDER_MODE_NEW 
RFX_BUILDER_MODE_EDIT 
RFX_BUILDER_MODE_COPY 
Enumerator
RFX_CODE_TYPE_PRE 
RFX_CODE_TYPE_LOOP 
RFX_CODE_TYPE_POST 
RFX_CODE_TYPE_STRDEF 
RFX_CODE_TYPE_STRING_LIST 
Enumerator
RFX_TABLE_TYPE_REQUIREMENTS 
RFX_TABLE_TYPE_PARAMS 
RFX_TABLE_TYPE_TRIGGERS 
RFX_TABLE_TYPE_PARAM_WINDOW 

Function Documentation

void add_rfx_effects ( void  )

add dynamic menu entries

void after_param_def_changed ( LiVESSpinButton *  ,
livespointer  rfxbuilder 
)
void after_param_dp_changed ( LiVESSpinButton *  ,
livespointer  rfxbuilder 
)
void after_param_max_changed ( LiVESSpinButton *  ,
livespointer  rfxbuilder 
)
void after_param_min_changed ( LiVESSpinButton *  ,
livespointer  rfxbuilder 
)
void after_rfxbuilder_type_toggled ( LiVESToggleButton *  ,
livespointer  rfxbuilder 
)
boolean check_builder_programs ( void  )
LiVESList* get_script_list ( short  status)
LiVESList* get_script_section ( const char *  section,
const char *  script_file,
boolean  strip 
)
LiVESWidget* make_param_dialog ( int  pnum,
rfx_build_window_t rfxbuilder 
)
LiVESWidget* make_param_window_dialog ( int  hnum,
rfx_build_window_t rfxbuilder 
)
rfx_build_window_t* make_rfx_build_window ( const char *  in_script_name,
lives_rfx_status_t  in_status 
)
LiVESWidget* make_trigger_dialog ( int  tnum,
rfx_build_window_t rfxbuilder 
)
void on_code_cancel ( LiVESButton *  ,
livespointer   
)
void on_code_clicked ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_code_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_copy_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)
void on_delete_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)
void on_edit_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)
void on_export_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)
void on_export_rfx_ok ( LiVESButton *  ,
char *  script_name 
)
void on_import_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)
void on_import_rfx_ok ( LiVESButton *  ,
livespointer  status 
)
void on_list_table_clicked ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_new_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)
void on_param_type_changed ( LiVESCombo *  ,
livespointer  rfxbuilder 
)
void on_param_window_cancel ( LiVESButton *  ,
livespointer   
)
void on_param_window_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_params_cancel ( LiVESButton *  ,
livespointer   
)
void on_params_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_paramw_kw_changed ( LiVESCombo *  ,
livespointer  rfxbuilder 
)
void on_paramw_sp_changed ( LiVESCombo *  ,
livespointer  rfxbuilder 
)
void on_paramw_spsub_changed ( LiVESCombo *  ,
livespointer  rfxbuilder 
)
void on_promote_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)
void on_properties_clicked ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_properties_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_rebuild_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)
void on_rename_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)
void on_requirements_cancel ( LiVESButton *  ,
livespointer   
)
void on_requirements_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_rfxbuilder_cancel ( LiVESButton *  ,
livespointer   
)
void on_rfxbuilder_ok ( LiVESButton *  ,
livespointer   
)
void on_script_status_changed ( LiVESCombo *  status_combo,
livespointer  script_combo 
)
void on_table_add_row ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_table_delete_row ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_table_edit_row ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_table_swap_row ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void on_triggers_cancel ( LiVESButton *  ,
livespointer   
)
void on_triggers_ok ( LiVESButton *  ,
livespointer  rfxbuilder 
)
void param_set_from_dialog ( lives_param_t copy_param,
rfx_build_window_t rfxbuilder 
)
boolean perform_param_checks ( rfx_build_window_t ,
int  index,
int  rows 
)
boolean perform_rfxbuilder_checks ( rfx_build_window_t )
void populate_script_combo ( LiVESCombo *  script_combo,
lives_rfx_status_t  status 
)
char* prompt_for_script_name ( const char *  sname,
lives_rfx_status_t  status 
)
void rfxbuilder_destroy ( rfx_build_window_t )
boolean rfxbuilder_to_script ( rfx_build_window_t )
boolean script_to_rfxbuilder ( rfx_build_window_t ,
const char *  script_file 
)