Preferences Class Reference

#include <preferences.h>

Collaboration diagram for Preferences:

Collaboration graph

Public Member Functions

 Preferences ()
 ~Preferences ()
Preferencesoperator= (Preferences &that)
void copy_from (Preferences *that)
int load_defaults (BC_Hash *defaults)
int save_defaults (BC_Hash *defaults)
void boundaries ()
void add_node (char *text, int port, int enabled, float rate)
void delete_node (int number)
void delete_nodes ()
void reset_rates ()
float get_avg_rate (int use_master_node)
void sort_nodes ()
void edit_node (int number, char *new_text, int port, int enabled)
int get_enabled_nodes ()
char * get_node_hostname (int number)
int get_node_port (int number)
void copy_rates_from (Preferences *preferences)
void set_rate (float rate, int node)
int calculate_processors (int interactive=0)

Static Public Member Functions

static void print_channels (char *string, int *channel_positions, int channels)
static void scan_channels (char *string, int *channel_positions, int channels)

Data Fields

char index_directory [BCTEXTLEN]
int64_t index_size
int index_count
int use_thumbnails
char theme [BCTEXTLEN]
double render_preroll
int brender_preroll
int force_uniprocessor
int processors
int real_processors
int channel_positions [MAXCHANNELS *MAXCHANNELS]
int use_brender
int brender_fragment
int64_t cache_size
int use_renderfarm
int renderfarm_port
ArrayList< char * > renderfarm_nodes
ArrayList< int > renderfarm_ports
ArrayList< int > renderfarm_enabled
ArrayList< float > renderfarm_rate
float local_rate
char renderfarm_mountpoint [BCTEXTLEN]
int renderfarm_vfs
int renderfarm_job_count
int renderfarm_consolidate
int use_tipwindow
char global_plugin_dir [BCTEXTLEN]
char local_plugin_dir [BCTEXTLEN]

Detailed Description

Definition at line 14 of file preferences.h.

Constructor & Destructor Documentation

Preferences::Preferences (  ) 

Preferences::~Preferences (  ) 

Definition at line 81 of file preferences.C.

References brender_asset, Garbage::delete_object(), and preferences_lock.

Here is the call graph for this function:

Member Function Documentation

Preferences & Preferences::operator= ( Preferences that  ) 

Definition at line 189 of file preferences.C.

References copy_from().

Here is the call graph for this function:

void Preferences::copy_from ( Preferences that  ) 

int Preferences::load_defaults ( BC_Hash defaults  ) 

int Preferences::save_defaults ( BC_Hash defaults  ) 

void Preferences::boundaries (  ) 

Definition at line 183 of file preferences.C.

References cache_size, CLAMP, MAX, and renderfarm_job_count.

Referenced by copy_from(), and load_defaults().

void Preferences::print_channels ( char *  string,
int *  channel_positions,
int  channels 
) [static]

Definition at line 196 of file preferences.C.

References BCTEXTLEN.

Referenced by load_defaults(), and save_defaults().

void Preferences::scan_channels ( char *  string,
int *  channel_positions,
int  channels 
) [static]

Definition at line 211 of file preferences.C.

References BCTEXTLEN.

Referenced by load_defaults().

void Preferences::add_node ( char *  text,
int  port,
int  enabled,
float  rate 

void Preferences::delete_node ( int  number  ) 

void Preferences::delete_nodes (  ) 

void Preferences::reset_rates (  ) 

float Preferences::get_avg_rate ( int  use_master_node  ) 

void Preferences::sort_nodes (  ) 

void Preferences::edit_node ( int  number,
char *  new_text,
int  port,
int  enabled 

int Preferences::get_enabled_nodes (  ) 

char * Preferences::get_node_hostname ( int  number  ) 

int Preferences::get_node_port ( int  number  ) 

void Preferences::copy_rates_from ( Preferences preferences  ) 

void Preferences::set_rate ( float  rate,
int  node 

int Preferences::calculate_processors ( int  interactive = 0  ) 

Definition at line 588 of file preferences.C.

References BCTEXTLEN, fclose(), fgets(), fopen(), force_uniprocessor, and strchr.

Referenced by Preferences().

Here is the call graph for this function:

Field Documentation

char Preferences::theme[BCTEXTLEN]

Definition at line 73 of file preferences.h.

Referenced by copy_from(), Record::open_output_file(), and Preferences().

int Preferences::channel_positions[MAXCHANNELS *MAXCHANNELS]

Definition at line 98 of file preferences.h.

Referenced by copy_from(), PrefsRenderFarmVFS::handle_event(), and Preferences().

The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:37:02 2008 for Cinelerra by  doxygen 1.5.5