BC_Theme Class Reference

#include <bctheme.h>

Inherited by Theme.

Collaboration diagram for BC_Theme:

Collaboration graph
[legend]

Public Member Functions

 BC_Theme ()
virtual ~BC_Theme ()
void set_data (unsigned char *ptr)
VFrame ** new_button (char *overlay_path, char *up_path, char *hi_path, char *dn_path, char *title=0)
VFrame ** new_button4 (char *overlay_path, char *up_path, char *hi_path, char *dn_path, char *disabled_path, char *title=0)
VFrame ** new_button (char *overlay_path, VFrame *up, VFrame *hi, VFrame *dn, char *title=0)
VFrame ** new_toggle (char *overlay_path, char *up_path, char *hi_path, char *checked_path, char *dn_path, char *checkedhi_path, char *title=0)
VFrame ** new_toggle (char *overlay_path, VFrame *up, VFrame *hi, VFrame *checked, VFrame *dn, VFrame *checkedhi, char *title=0)
VFrame ** new_image_set (char *title, int total, va_list *args)
VFrame ** new_image_set (char *title, int total,...)
VFrame ** new_image_set (int total,...)
VFrame ** new_image_set_images (char *title, int total,...)
VFramenew_image (char *title, char *path)
VFramenew_image (char *path)
VFrameget_image (char *title, int use_default=1)
VFrame ** get_image_set (char *title, int use_default=1)
BC_ThemeSetget_image_set_object (char *title)
unsigned char * get_image_data (char *title)
void check_used ()
void dump ()
BC_Resourcesget_resources ()

Private Member Functions

void overlay (VFrame *dst, VFrame *src, int in_x1=-1, int in_x2=-1, int shift=0)
void init_contents ()

Private Attributes

ArrayList< BC_ThemeSet * > image_sets
char * data_ptr
char * contents_ptr
ArrayList< char * > contents
ArrayList< unsigned char * > pointers
ArrayList< int > used
char * last_image
unsigned char * last_pointer

Detailed Description

Definition at line 15 of file bctheme.h.


Constructor & Destructor Documentation

BC_Theme::BC_Theme (  ) 

Definition at line 11 of file bctheme.C.

References contents_ptr, data_ptr, last_image, and last_pointer.

BC_Theme::~BC_Theme (  )  [virtual]

Definition at line 19 of file bctheme.C.

References image_sets, and ArrayList< TYPE >::remove_all_objects().

Here is the call graph for this function:


Member Function Documentation

void BC_Theme::set_data ( unsigned char *  ptr  ) 

Definition at line 396 of file bctheme.C.

References ArrayList< TYPE >::append(), contents, contents_ptr, data_ptr, pointers, and used.

Referenced by Theme::initialize(), SUVMain::new_theme(), BlondThemeMain::new_theme(), and BlueDotThemeMain::new_theme().

Here is the call graph for this function:

VFrame ** BC_Theme::new_button ( char *  overlay_path,
char *  up_path,
char *  hi_path,
char *  dn_path,
char *  title = 0 
)

Definition at line 196 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_data(), image_sets, new_image(), and overlay().

Referenced by SUV::initialize(), BlondTheme::initialize(), and BlueDotTheme::initialize().

Here is the call graph for this function:

VFrame ** BC_Theme::new_button4 ( char *  overlay_path,
char *  up_path,
char *  hi_path,
char *  dn_path,
char *  disabled_path,
char *  title = 0 
)

Definition at line 217 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_data(), image_sets, new_image(), and overlay().

Referenced by SUV::initialize().

Here is the call graph for this function:

VFrame ** BC_Theme::new_button ( char *  overlay_path,
VFrame up,
VFrame hi,
VFrame dn,
char *  title = 0 
)

Definition at line 240 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_data(), image_sets, overlay(), and BC_Texture::VFrame.

Here is the call graph for this function:

VFrame ** BC_Theme::new_toggle ( char *  overlay_path,
char *  up_path,
char *  hi_path,
char *  checked_path,
char *  dn_path,
char *  checkedhi_path,
char *  title = 0 
)

Definition at line 259 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_data(), image_sets, new_image(), and overlay().

Referenced by SUV::initialize(), BlondTheme::initialize(), and BlueDotTheme::initialize().

Here is the call graph for this function:

VFrame ** BC_Theme::new_toggle ( char *  overlay_path,
VFrame up,
VFrame hi,
VFrame checked,
VFrame dn,
VFrame checkedhi,
char *  title = 0 
)

Definition at line 281 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_data(), image_sets, overlay(), and BC_Texture::VFrame.

Here is the call graph for this function:

VFrame ** BC_Theme::new_image_set ( char *  title,
int  total,
va_list *  args 
)

Definition at line 59 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_set(), image_sets, and new_image().

Referenced by SUV::initialize(), BlondTheme::initialize(), BlueDotTheme::initialize(), and new_image_set().

Here is the call graph for this function:

VFrame ** BC_Theme::new_image_set ( char *  title,
int  total,
  ... 
)

Definition at line 93 of file bctheme.C.

References new_image_set().

Here is the call graph for this function:

VFrame ** BC_Theme::new_image_set ( int  total,
  ... 
)

Definition at line 103 of file bctheme.C.

References new_image_set().

Here is the call graph for this function:

VFrame ** BC_Theme::new_image_set_images ( char *  title,
int  total,
  ... 
)

Definition at line 74 of file bctheme.C.

References ArrayList< TYPE >::append(), BC_ThemeSet::data, get_image_set_object(), image_sets, and ArrayList< TYPE >::remove_object().

Referenced by Theme::build_transport().

Here is the call graph for this function:

VFrame * BC_Theme::new_image ( char *  title,
char *  path 
)

VFrame * BC_Theme::new_image ( char *  path  ) 

Definition at line 51 of file bctheme.C.

References new_image().

Here is the call graph for this function:

VFrame * BC_Theme::get_image ( char *  title,
int  use_default = 1 
)

Definition at line 113 of file bctheme.C.

References BC_ThemeSet::data, image_sets, BC_ThemeSet::title, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by TrackCanvas::calculate_viewport(), VWindowGUI::create_objects(), RecordGUI::create_objects(), PatchBay::create_objects(), MWindowGUI::create_objects(), CWindowGUI::create_objects(), AWindowGUI::create_objects(), AssetPicon::create_objects(), TrackCanvas::do_edits(), TrackCanvas::do_plugin_autos(), TrackCanvas::do_plugins(), ResourcePixmap::draw_audio_source(), SUV::draw_cwindow_bg(), BlondTheme::draw_cwindow_bg(), BlueDotTheme::draw_cwindow_bg(), ResourcePixmap::draw_data(), IndexFile::draw_index(), SUV::draw_mwindow_bg(), BlondTheme::draw_mwindow_bg(), BlueDotTheme::draw_mwindow_bg(), SUV::draw_new_bg(), BlondTheme::draw_new_bg(), BlueDotTheme::draw_new_bg(), TrackCanvas::draw_plugins(), SUV::draw_preferences_bg(), BlondTheme::draw_preferences_bg(), BlueDotTheme::draw_preferences_bg(), MTimeBar::draw_range(), Theme::draw_resource_bg(), SUV::draw_setformat_bg(), BlondTheme::draw_setformat_bg(), BlueDotTheme::draw_setformat_bg(), ResourcePixmap::draw_title(), TrackCanvas::draw_transitions(), ResourcePixmap::draw_video_resource(), SUV::draw_vwindow_bg(), BlondTheme::draw_vwindow_bg(), BlueDotTheme::draw_vwindow_bg(), ResourcePixmap::draw_wave(), TrackCanvas::edit_dimensions(), SUV::get_cwindow_sizes(), BlondTheme::get_cwindow_sizes(), BlueDotTheme::get_cwindow_sizes(), TrackCanvas::get_handle_coords(), SUV::get_mwindow_sizes(), BlondTheme::get_mwindow_sizes(), BlueDotTheme::get_mwindow_sizes(), TrackCanvas::get_pixmap_size(), TrackCanvas::get_transition_coords(), SUV::get_vwindow_sizes(), BlondTheme::get_vwindow_sizes(), BlueDotTheme::get_vwindow_sizes(), SUV::initialize(), MicroTheme::initialize(), BlondTheme::initialize(), new_image(), TrackCanvas::plugin_dimensions(), and Track::vertical_span().

VFrame ** BC_Theme::get_image_set ( char *  title,
int  use_default = 1 
)

BC_ThemeSet * BC_Theme::get_image_set_object ( char *  title  ) 

unsigned char * BC_Theme::get_image_data ( char *  title  ) 

void BC_Theme::check_used (  ) 

Definition at line 453 of file bctheme.C.

References _, contents, ArrayList< TYPE >::total, used, and ArrayList< TYPE >::values.

Referenced by MWindow::init_theme().

void BC_Theme::dump (  ) 

BC_Resources * BC_Theme::get_resources (  ) 

Definition at line 33 of file bctheme.C.

References BC_WindowBase::get_resources().

Here is the call graph for this function:

void BC_Theme::overlay ( VFrame dst,
VFrame src,
int  in_x1 = -1,
int  in_x2 = -1,
int  shift = 0 
) [private]

Definition at line 303 of file bctheme.C.

References BC_RGB888, BC_RGBA8888, VFrame::get_color_model(), VFrame::get_h(), VFrame::get_rows(), VFrame::get_w(), BC_Texture::h, MAX, MIN, and BC_Texture::w.

Referenced by new_button(), new_button4(), and new_toggle().

Here is the call graph for this function:

void BC_Theme::init_contents (  )  [private]


Field Documentation

char* BC_Theme::data_ptr [private]

Definition at line 102 of file bctheme.h.

Referenced by BC_Theme(), get_image_data(), and set_data().

char* BC_Theme::contents_ptr [private]

Definition at line 103 of file bctheme.h.

Referenced by BC_Theme(), and set_data().

ArrayList<char*> BC_Theme::contents [private]

Reimplemented in Theme.

Definition at line 104 of file bctheme.h.

Referenced by check_used(), dump(), get_image_data(), and set_data().

ArrayList<unsigned char*> BC_Theme::pointers [private]

Definition at line 105 of file bctheme.h.

Referenced by dump(), get_image_data(), and set_data().

ArrayList<int> BC_Theme::used [private]

Definition at line 106 of file bctheme.h.

Referenced by check_used(), get_image_data(), and set_data().

char* BC_Theme::last_image [private]

Reimplemented in Theme.

Definition at line 107 of file bctheme.h.

Referenced by BC_Theme(), and get_image_data().

unsigned char* BC_Theme::last_pointer [private]

Definition at line 108 of file bctheme.h.

Referenced by BC_Theme(), and get_image_data().


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

Generated on Mon Apr 28 14:15:51 2008 for Cinelerra by  doxygen 1.5.5