LiVES  3.2.0
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 EXEC_RFX_BUILDER   "build-lives-rfx-plugin"
 
#define RFX_VERSION   "1.8.3"
 must match whatever is in RFX_BUILDER More...
 
#define EXEC_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
 max table rows : this should be set to the largest of the previous maxima More...
 
#define PREF_RFXDIALOG_W   ((int)(720.*widget_opts.scale))
 
#define PREF_RFXDIALOG_H   ((int)(650.*widget_opts.scale))
 
#define RFX_LOADED
 
#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)
 parse text and return non empty lines between <section> and </section> More...
 
void on_promote_rfx_activate (LiVESMenuItem *, livespointer)
 
void on_import_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_ok (LiVESButton *, livespointer status)
 
void add_rfx_effects (lives_rfx_status_t status)
 add dynamic menu entries More...
 
void add_rfx_effects2 (lives_rfx_status_t status)
 
void update_rfx_menus (void)
 
char * prompt_for_script_name (const char *sname, lives_rfx_status_t status)
 
boolean check_builder_programs (void)
 
LiVESList * get_script_list (lives_rfx_status_t 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

◆ EXEC_RFX_BUILDER

#define EXEC_RFX_BUILDER   "build-lives-rfx-plugin"

Definition at line 10 of file rfx-builder.h.

◆ EXEC_RFX_BUILDER_MULTI

#define EXEC_RFX_BUILDER_MULTI   "build-lives-rfx-plugin-multi"

this definition must match with smogrify

Definition at line 16 of file rfx-builder.h.

◆ MAXFLOATLEN

#define MAXFLOATLEN   11

length in chars of G_MAXFLOAT (for display only)

Definition at line 22 of file rfx-builder.h.

◆ MAXINTLEN

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

length in chars of G_MAXINT (for display only)

Definition at line 25 of file rfx-builder.h.

◆ PREF_RFXDIALOG_H

#define PREF_RFXDIALOG_H   ((int)(650.*widget_opts.scale))

Definition at line 54 of file rfx-builder.h.

◆ PREF_RFXDIALOG_W

#define PREF_RFXDIALOG_W   ((int)(720.*widget_opts.scale))

Definition at line 53 of file rfx-builder.h.

◆ RFX_LOADED

#define RFX_LOADED
Value:

Definition at line 56 of file rfx-builder.h.

◆ RFX_VERSION

#define RFX_VERSION   "1.8.3"

must match whatever is in RFX_BUILDER

Definition at line 13 of file rfx-builder.h.

◆ RFXBUILD_MAX_DP

#define RFXBUILD_MAX_DP   16

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

Definition at line 60 of file rfx-builder.h.

◆ RFXBUILD_MAX_PARAMS

#define RFXBUILD_MAX_PARAMS   32

maximum parameters

Definition at line 44 of file rfx-builder.h.

◆ RFXBUILD_MAX_PARAMW_HINTS

#define RFXBUILD_MAX_PARAMW_HINTS   512

maximum parameter window hints

Definition at line 47 of file rfx-builder.h.

◆ RFXBUILD_MAX_REQ

#define RFXBUILD_MAX_REQ   128

maximum requirements

Definition at line 41 of file rfx-builder.h.

◆ RFXBUILD_MAX_TROWS

#define RFXBUILD_MAX_TROWS   512

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

Definition at line 51 of file rfx-builder.h.

◆ RFXBUILDER_SCRIPT_SUFFIX

#define RFXBUILDER_SCRIPT_SUFFIX   "script"

default script extension when saving

Definition at line 19 of file rfx-builder.h.

Enumeration Type Documentation

◆ lives_rfx_build_type_t

Enumerator
RFX_BUILD_TYPE_EFFECT1 
RFX_BUILD_TYPE_EFFECT2 
RFX_BUILD_TYPE_EFFECT0 
RFX_BUILD_TYPE_TOOL 
RFX_BUILD_TYPE_UTILITY 

Definition at line 66 of file rfx-builder.h.

◆ lives_rfx_builder_mode_t

Enumerator
RFX_BUILDER_MODE_NEW 
RFX_BUILDER_MODE_EDIT 
RFX_BUILDER_MODE_COPY 

Definition at line 89 of file rfx-builder.h.

◆ lives_rfx_code_type_t

Enumerator
RFX_CODE_TYPE_PRE 
RFX_CODE_TYPE_LOOP 
RFX_CODE_TYPE_POST 
RFX_CODE_TYPE_STRDEF 
RFX_CODE_TYPE_STRING_LIST 

Definition at line 81 of file rfx-builder.h.

◆ lives_rfx_table_type_t

Enumerator
RFX_TABLE_TYPE_REQUIREMENTS 
RFX_TABLE_TYPE_PARAMS 
RFX_TABLE_TYPE_TRIGGERS 
RFX_TABLE_TYPE_PARAM_WINDOW 

Definition at line 74 of file rfx-builder.h.

Function Documentation

◆ add_rfx_effects()

void add_rfx_effects ( lives_rfx_status_t  status)

add dynamic menu entries

Definition at line 4172 of file rfx-builder.c.

Referenced by on_rebuild_rfx_activate().

◆ add_rfx_effects2()

void add_rfx_effects2 ( lives_rfx_status_t  status)

Definition at line 4481 of file rfx-builder.c.

◆ check_builder_programs()

boolean check_builder_programs ( void  )

◆ get_script_list()

LiVESList* get_script_list ( lives_rfx_status_t  status)

Definition at line 4150 of file rfx-builder.c.

◆ get_script_section()

LiVESList* get_script_section ( const char *  section,
const char *  script_file,
boolean  strip 
)

Definition at line 3611 of file rfx-builder.c.

Referenced by script_to_rfxbuilder().

◆ on_copy_rfx_activate()

void on_copy_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 95 of file rfx-builder.c.

◆ on_delete_rfx_activate()

void on_delete_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)

Definition at line 3699 of file rfx-builder.c.

◆ on_edit_rfx_activate()

void on_edit_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)

Definition at line 71 of file rfx-builder.c.

◆ on_export_rfx_activate()

void on_export_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)

Definition at line 3821 of file rfx-builder.c.

◆ on_export_rfx_ok()

void on_export_rfx_ok ( LiVESButton *  ,
char *  script_name 
)

◆ on_import_rfx_activate()

void on_import_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)

Definition at line 3849 of file rfx-builder.c.

◆ on_import_rfx_ok()

void on_import_rfx_ok ( LiVESButton *  ,
livespointer  status 
)

◆ on_new_rfx_activate()

void on_new_rfx_activate ( LiVESMenuItem *  ,
livespointer  status 
)

Definition at line 62 of file rfx-builder.c.

◆ on_promote_rfx_activate()

void on_promote_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 3759 of file rfx-builder.c.

◆ on_rebuild_rfx_activate()

void on_rebuild_rfx_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

parse text and return non empty lines between <section> and </section>

similar to get_val_from_cached_list, except here we parse each line into a list. rfx + params can be built from the <params> section

Definition at line 3631 of file rfx-builder.c.

Referenced by on_delete_rfx_activate(), on_import_rfx_activate(), and on_promote_rfx_activate().

◆ on_rename_rfx_activate()

void on_rename_rfx_activate ( LiVESMenuItem *  ,
livespointer   
)

Definition at line 109 of file rfx-builder.c.

◆ perform_param_checks()

boolean perform_param_checks ( rfx_build_window_t ,
int  index,
int  rows 
)

Definition at line 2933 of file rfx-builder.c.

◆ perform_rfxbuilder_checks()

boolean perform_rfxbuilder_checks ( rfx_build_window_t )

Definition at line 2872 of file rfx-builder.c.

◆ prompt_for_script_name()

char* prompt_for_script_name ( const char *  sname,
lives_rfx_status_t  status 
)

◆ rfxbuilder_to_script()

boolean rfxbuilder_to_script ( rfx_build_window_t )

Definition at line 2952 of file rfx-builder.c.

◆ script_to_rfxbuilder()

boolean script_to_rfxbuilder ( rfx_build_window_t ,
const char *  script_file 
)

Definition at line 3279 of file rfx-builder.c.

◆ update_rfx_menus()

void update_rfx_menus ( void  )

Definition at line 4684 of file rfx-builder.c.

Referenced by show_lives().

mainw
mainwindow * mainw
Definition: main.c:103
PT_LAZY_RFX
#define PT_LAZY_RFX
Definition: mainwindow.h:682
mainwindow::helper_procthreads
lives_proc_thread_t helper_procthreads[N_HLP_PROCTHREADS]
Definition: mainwindow.h:1800
FALSE
#define FALSE
Definition: videoplugin.h:60