BC_Resources Class Reference

#include <bcresources.h>

Collaboration diagram for BC_Resources:

Collaboration graph
[legend]

Public Member Functions

 BC_Resources ()
 ~BC_Resources ()
int initialize_display (BC_WindowBase *window)
int get_id ()
int get_bg_color ()
int get_bg_shadow1 ()
int get_bg_shadow2 ()
int get_bg_light1 ()
int get_bg_light2 ()
int get_top_border ()
int get_left_border ()
int get_right_border ()
int get_bottom_border ()
BC_Synchronousget_synchronous ()
void set_synchronous (BC_Synchronous *synchronous)

Static Public Member Functions

static void set_signals (BC_Signals *signal_handler)
static BC_Signalsget_signals ()

Data Fields

int bg_color
int bg_shadow1
int bg_shadow2
int bg_light1
int bg_light2
int default_text_color
int disabled_text_color
int button_light
int button_highlighted
int button_down
int button_up
int button_shadow
int button_uphighlighted
int highlight_inverse
int menu_light
int menu_highlighted
int menu_down
int menu_up
int menu_shadow
VFramemenu_popup_bg
VFrame ** menu_title_bg
VFramemenu_bar_bg
VFrame ** popupmenu_images
int min_menu_w
int menu_title_text
int popup_title_text
int popupmenu_margin
int popupmenu_triangle_margin
int menu_item_text
VFrame ** menu_item_bg
int progress_text
int menu_highlighted_fontcolor
long double_click
int blink_rate
int scroll_repeat
int tooltip_delay
int tooltip_bg_color
int tooltips_enabled
int audiovideo_color
int text_default
int text_border1
int text_border2
int text_border2_hi
int text_background
int text_background_hi
int text_background_noborder_hi
int text_border3
int text_border3_hi
int text_border4
int text_highlight
int text_inactive_highlight
int text_background_noborder
VFrametoggle_highlight_bg
int toggle_text_margin
VFrame ** ok_images
VFrame ** cancel_images
VFrame ** filebox_text_images
VFrame ** filebox_icons_images
VFrame ** filebox_updir_images
VFrame ** filebox_newfolder_images
VFrame ** filebox_descend_images
VFrame ** filebox_delete_images
VFrame ** filebox_reload_images
VFrame ** generic_button_images
int generic_button_margin
VFrame ** usethis_button_images
VFrame ** checkbox_images
VFrame ** radial_images
VFrame ** label_images
VFrame ** tumble_data
int tumble_duration
VFramebar_data
VFramelistbox_bg
VFrame ** listbox_button
VFrame ** listbox_expand
VFrame ** listbox_column
VFramelistbox_up
VFramelistbox_dn
int listbox_title_margin
int listbox_title_color
int listbox_title_hotspot
int listbox_border1
int listbox_border2_hi
int listbox_border2
int listbox_border3_hi
int listbox_border3
int listbox_border4
int listbox_selected
int listbox_highlighted
int listbox_inactive
int listbox_text
VFrame ** horizontal_slider_data
VFrame ** vertical_slider_data
VFrame ** hscroll_data
VFrame ** vscroll_data
int scroll_minhandle
VFrame ** pan_data
int pan_text_color
VFrame ** pot_images
int pot_x1
int pot_y1
int pot_r
int pot_offset
int pot_needle_color
VFrame ** xmeter_images
VFrame ** ymeter_images
int meter_font
int meter_font_color
int meter_title_w
int meter_3d
VFrame ** progress_images
int drag_radius
int filebox_mode
char filebox_filter [BCTEXTLEN]
char filebox_history [FILEBOX_HISTORY_SIZE][BCTEXTLEN]
int filebox_w
int filebox_h
int filebox_columntype [FILEBOX_COLUMNS]
int filebox_columnwidth [FILEBOX_COLUMNS]
int filebox_sortcolumn
int filebox_sortorder
int dirbox_columntype [FILEBOX_COLUMNS]
int dirbox_columnwidth [FILEBOX_COLUMNS]
int dirbox_sortcolumn
int dirbox_sortorder
int filebox_margin
int dirbox_margin
int directory_color
int file_color
VFrame ** medium_7segment
int draw_clock_background
int use_fontset
int use_xft
int use_shm
int recursive_resizing
int use_xvideo
Mutexcreate_window_lock

Static Public Attributes

static VFramebg_image = 0
static VFramemenu_bg = 0
static suffix_to_type_t suffix_to_type [TOTAL_SUFFIXES]
static VFrametype_to_icon [TOTAL_ICONS]
static char * large_font = N_("-*-helvetica-bold-r-normal-*-18-*")
static char * medium_font = N_("-*-helvetica-bold-r-normal-*-14-*")
static char * small_font = N_("-*-helvetica-medium-r-normal-*-10-*")
static char * large_font2 = N_("-*-helvetica-bold-r-normal-*-20-*")
static char * medium_font2 = N_("-*-helvetica-bold-r-normal-*-14-*")
static char * small_font2 = N_("-*-helvetica-medium-r-normal-*-11-*")
static char * large_fontset = "8x16,*"
static char * medium_fontset = "7x14,*"
static char * small_fontset = "6x12,*"
static char * large_font_xft = N_("-*-luxi sans-bold-r-*-*-20-*-*-*-*-*-*-*")
static char * medium_font_xft = N_("-*-luxi sans-*-r-*-*-16-*-*-*-*-*-*-*")
static char * small_font_xft = N_("-*-luxi sans-*-r-*-*-12-*-*-*-*-*-*-*")
static char * large_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*")
static char * medium_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*")
static char * small_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*")
static int error = 0

Private Member Functions

int init_shm (BC_WindowBase *window)
void init_sizes (BC_WindowBase *window)

Static Private Member Functions

static int x_error_handler (Display *display, XErrorEvent *event)

Private Attributes

BC_DisplayInfodisplay_info
VFrame ** list_pointers [100]
int list_lengths [100]
int list_total
Mutexid_lock
BC_Synchronoussynchronous
int id

Static Private Attributes

static BC_Signalssignal_handler = 0

Detailed Description

Definition at line 29 of file bcresources.h.


Constructor & Destructor Documentation

BC_Resources::BC_Resources (  ) 

Definition at line 95 of file bcresources.C.

References _0_png, _1_png, _2_png, _3_png, _4_png, _5_png, _6_png, _7_png, _8_png, _9_png, a_png, audiovideo_color, b_png, bar_data, bar_png, bg_color, bg_light1, bg_light2, bg_shadow1, bg_shadow2, BLACK, blink_rate, BLUE, button_down, button_highlighted, button_light, button_shadow, button_up, button_uphighlighted, c_png, cancel_dn_png, cancel_hi_png, cancel_images, cancel_up_png, checkbox_checked_png, checkbox_checkedhi_png, checkbox_dn_png, checkbox_hi_png, checkbox_up_png, colon_png, create_window_lock, d_png, dash_png, default_text_color, dirbox_columntype, dirbox_columnwidth, dirbox_margin, dirbox_sortcolumn, dirbox_sortorder, directory_color, disabled_text_color, display_info, DKCYAN, DKGREY, double_click, drag_radius, draw_clock_background, e_png, f_png, file_color, file_delete_dn_png, file_delete_hi_png, file_delete_up_png, file_icons_dn_png, file_icons_hi_png, file_icons_up_png, file_newfolder_dn_png, file_newfolder_hi_png, file_newfolder_up_png, file_reload_dn_png, file_reload_hi_png, file_reload_up_png, file_text_dn_png, file_text_hi_png, file_text_up_png, file_updir_dn_png, file_updir_hi_png, file_updir_up_png, filebox_columntype, filebox_columnwidth, filebox_delete_images, filebox_descend_images, filebox_filter, filebox_h, filebox_history, filebox_icons_images, filebox_margin, filebox_mode, filebox_newfolder_images, filebox_reload_images, filebox_sortcolumn, filebox_sortorder, filebox_text_images, filebox_updir_images, filebox_w, generic_button_margin, VFrame::get_h(), VFrame::get_w(), highlight_inverse, id_lock, list_bg_png, listbox_bg, listbox_border1, listbox_border2, listbox_border2_hi, listbox_border3, listbox_border3_hi, listbox_border4, listbox_button, listbox_button_disabled_png, listbox_button_dn_png, listbox_button_hi_png, listbox_button_up_png, listbox_column, listbox_columndn_png, listbox_columnhi_png, listbox_columnup_png, listbox_dn, listbox_dn_png, listbox_expand, listbox_expandchecked_png, listbox_expandcheckedhi_png, listbox_expanddn_png, listbox_expandup_png, listbox_expanduphi_png, listbox_highlighted, listbox_inactive, listbox_selected, listbox_text, listbox_title_color, listbox_title_hotspot, listbox_title_margin, listbox_up, listbox_up_png, LTBLUE, LTCYAN, LTGREY, LTPINK, LTYELLOW, MDCYAN, MDGREY, MECYAN, medium_7segment, MEGREY, menu_bar_bg, menu_down, menu_highlighted, menu_highlighted_fontcolor, menu_item_bg, menu_item_text, menu_light, menu_popup_bg, menu_shadow, menu_title_bg, menu_title_text, menu_up, meter_3d, meter_font, meter_font_color, meter_title_w, min_menu_w, ok_dn_png, ok_hi_png, ok_images, ok_up_png, ORANGE, pan_data, pan_text_color, period_png, popup_title_text, popupmenu_images, popupmenu_margin, popupmenu_triangle_margin, pot_dn_png, pot_hi_png, pot_images, pot_needle_color, pot_offset, pot_r, pot_up_png, pot_x1, pot_y1, progress_hi_png, progress_images, progress_text, progress_up_png, radial_checked_png, radial_checkedhi_png, radial_dn_png, radial_hi_png, radial_up_png, recursive_resizing, RED, scroll_repeat, SMALLFONT_3D, BC_ListBox::SORT_ASCENDING, space_png, synchronous, text_background, text_background_hi, text_background_noborder, text_background_noborder_hi, text_border1, text_border2, text_border2_hi, text_border3, text_border3_hi, text_border4, text_default, text_highlight, text_inactive_highlight, toggle_highlight_bg, toggle_text_margin, tooltip_bg_color, tooltip_delay, tooltips_enabled, tumble_data, tumble_duration, use_fontset, use_shm, use_xft, use_xvideo, usethis_button_images, usethis_dn_png, usethis_up_png, usethis_uphi_png, WHITE, xmeter_images, YELLOW, and ymeter_images.

Here is the call graph for this function:

BC_Resources::~BC_Resources (  ) 

Definition at line 525 of file bcresources.C.


Member Function Documentation

int BC_Resources::initialize_display ( BC_WindowBase window  ) 

Definition at line 529 of file bcresources.C.

References init_shm().

Referenced by BC_WindowBase::create_window().

Here is the call graph for this function:

int BC_Resources::get_id (  ) 

Definition at line 619 of file bcresources.C.

References id_lock, Mutex::lock(), and Mutex::unlock().

Referenced by BC_WindowBase::create_window().

Here is the call graph for this function:

int BC_Resources::get_bg_color (  ) 

Definition at line 608 of file bcresources.C.

References bg_color.

Referenced by PaletteWheel::create_objects(), and BC_WindowBase::create_window().

int BC_Resources::get_bg_shadow1 (  ) 

Definition at line 610 of file bcresources.C.

References bg_shadow1.

int BC_Resources::get_bg_shadow2 (  ) 

Definition at line 612 of file bcresources.C.

References bg_shadow2.

int BC_Resources::get_bg_light1 (  ) 

Definition at line 614 of file bcresources.C.

References bg_light1.

int BC_Resources::get_bg_light2 (  ) 

Definition at line 616 of file bcresources.C.

References bg_light2.

int BC_Resources::get_top_border (  ) 

Definition at line 587 of file bcresources.C.

References display_info, and BC_DisplayInfo::get_top_border().

Referenced by BC_WindowBase::create_window(), BC_MenuPopup::dispatch_translation_event(), and BC_ListBox::translation_event().

Here is the call graph for this function:

int BC_Resources::get_left_border (  ) 

Definition at line 592 of file bcresources.C.

References display_info, and BC_DisplayInfo::get_left_border().

Referenced by BC_WindowBase::create_window(), BC_MenuPopup::dispatch_translation_event(), and BC_ListBox::translation_event().

Here is the call graph for this function:

int BC_Resources::get_right_border (  ) 

Definition at line 597 of file bcresources.C.

References display_info, and BC_DisplayInfo::get_right_border().

Here is the call graph for this function:

int BC_Resources::get_bottom_border (  ) 

Definition at line 602 of file bcresources.C.

References display_info, and BC_DisplayInfo::get_bottom_border().

Here is the call graph for this function:

BC_Synchronous * BC_Resources::get_synchronous (  ) 

void BC_Resources::set_synchronous ( BC_Synchronous synchronous  ) 

Definition at line 576 of file bcresources.C.

Referenced by BC_Synchronous::BC_Synchronous().

void BC_Resources::set_signals ( BC_Signals signal_handler  )  [static]

Definition at line 628 of file bcresources.C.

BC_Signals * BC_Resources::get_signals (  )  [static]

Definition at line 633 of file bcresources.C.

int BC_Resources::init_shm ( BC_WindowBase window  )  [private]

Definition at line 540 of file bcresources.C.

References BC_WindowBase::default_depth, BC_WindowBase::display, error, NULL, use_shm, BC_WindowBase::vis, and x_error_handler().

Referenced by initialize_display().

Here is the call graph for this function:

void BC_Resources::init_sizes ( BC_WindowBase window  )  [private]

int BC_Resources::x_error_handler ( Display *  display,
XErrorEvent *  event 
) [static, private]

Definition at line 75 of file bcresources.C.

References error, BC_WindowBase::get_resources(), and use_xft.

Referenced by init_shm().

Here is the call graph for this function:


Field Documentation

Definition at line 60 of file bcresources.h.

Referenced by BC_Resources(), and get_bg_shadow1().

Definition at line 61 of file bcresources.h.

Referenced by BC_Resources(), and get_bg_shadow2().

Definition at line 62 of file bcresources.h.

Referenced by BC_Resources(), and get_bg_light1().

Definition at line 63 of file bcresources.h.

Referenced by BC_Resources(), and get_bg_light2().

Definition at line 65 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 74 of file bcresources.h.

Referenced by BC_Resources(), BC_TextBox::draw_border(), and BlueDotTheme::initialize().

Definition at line 77 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 114 of file bcresources.h.

Referenced by BC_Resources(), and BC_WindowBase::dispatch_event().

Definition at line 121 of file bcresources.h.

Referenced by BC_Resources(), and BlueDotTheme::initialize().

Definition at line 122 of file bcresources.h.

Referenced by BC_Resources(), and BC_WindowBase::set_tooltips().

Definition at line 124 of file bcresources.h.

Referenced by BC_Resources(), and BlueDotTheme::initialize().

Definition at line 131 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 133 of file bcresources.h.

Referenced by BC_Resources(), and BC_TextBox::initialize().

Definition at line 134 of file bcresources.h.

Referenced by BC_Resources(), and BC_TextBox::initialize().

Definition at line 136 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 138 of file bcresources.h.

Referenced by BC_Resources(), BC_TextBox::draw(), and BlueDotTheme::initialize().

Definition at line 141 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 148 of file bcresources.h.

VFrame * BC_Resources::menu_bg = 0 [static]

Definition at line 149 of file bcresources.h.

Referenced by BC_MenuBar::initialize().

Definition at line 171 of file bcresources.h.

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

Definition at line 191 of file bcresources.h.

Referenced by BC_Resources(), and BC_ListBox::draw_border().

Definition at line 193 of file bcresources.h.

Referenced by BC_Resources(), and BC_ListBox::draw_border().

Definition at line 213 of file bcresources.h.

Referenced by BC_ScrollBar::get_handle_dimensions().

Definition at line 221 of file bcresources.h.

Referenced by BC_Pot::angle_to_coords(), BC_Resources(), and BC_Pot::coords_to_angle().

Definition at line 221 of file bcresources.h.

Referenced by BC_Pot::angle_to_coords(), BC_Resources(), and BC_Pot::coords_to_angle().

Definition at line 221 of file bcresources.h.

Referenced by BC_Pot::angle_to_coords(), and BC_Resources().

Definition at line 228 of file bcresources.h.

Referenced by BC_Resources(), MicroTheme::initialize(), and BlueDotTheme::initialize().

Definition at line 231 of file bcresources.h.

Referenced by BC_Resources(), MicroTheme::initialize(), and BlueDotTheme::initialize().

Definition at line 237 of file bcresources.h.

Referenced by BC_Resources(), and BC_WindowBase::dispatch_event().

Initial value:

 
{
        { "m2v", ICON_FILM },
        { "mov", ICON_FILM },
        { "mp2", ICON_SOUND },
        { "mp3", ICON_SOUND },
        { "mpg", ICON_FILM },
        { "vob", ICON_FILM },
        { "wav", ICON_SOUND }
}

Definition at line 240 of file bcresources.h.

Referenced by BC_FileBox::get_icon().

char BC_Resources::filebox_history[FILEBOX_HISTORY_SIZE][BCTEXTLEN]

int BC_Resources::filebox_columntype[FILEBOX_COLUMNS]

Definition at line 252 of file bcresources.h.

Referenced by BC_FileBox::BC_FileBox(), BC_Resources(), and BC_FileBox::move_column().

int BC_Resources::filebox_columnwidth[FILEBOX_COLUMNS]

int BC_Resources::dirbox_columntype[FILEBOX_COLUMNS]

Definition at line 257 of file bcresources.h.

Referenced by BC_Resources().

int BC_Resources::dirbox_columnwidth[FILEBOX_COLUMNS]

Definition at line 258 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 259 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 260 of file bcresources.h.

Referenced by BC_Resources().

char * BC_Resources::large_font = N_("-*-helvetica-bold-r-normal-*-18-*") [static]

Definition at line 269 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::medium_font = N_("-*-helvetica-bold-r-normal-*-14-*") [static]

char * BC_Resources::small_font = N_("-*-helvetica-medium-r-normal-*-10-*") [static]

Definition at line 271 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::large_font2 = N_("-*-helvetica-bold-r-normal-*-20-*") [static]

Definition at line 273 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::medium_font2 = N_("-*-helvetica-bold-r-normal-*-14-*") [static]

Definition at line 274 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::small_font2 = N_("-*-helvetica-medium-r-normal-*-11-*") [static]

Definition at line 275 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::large_fontset = "8x16,*" [static]

Definition at line 277 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::medium_fontset = "7x14,*" [static]

Definition at line 278 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::small_fontset = "6x12,*" [static]

Definition at line 279 of file bcresources.h.

Referenced by BC_WindowBase::init_fonts().

char * BC_Resources::large_font_xft = N_("-*-luxi sans-bold-r-*-*-20-*-*-*-*-*-*-*") [static]

Definition at line 281 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

char * BC_Resources::medium_font_xft = N_("-*-luxi sans-*-r-*-*-16-*-*-*-*-*-*-*") [static]

Definition at line 282 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

char * BC_Resources::small_font_xft = N_("-*-luxi sans-*-r-*-*-12-*-*-*-*-*-*-*") [static]

Definition at line 283 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

char * BC_Resources::large_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*") [static]

Definition at line 286 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

char * BC_Resources::medium_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*") [static]

Definition at line 287 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

char * BC_Resources::small_font_xft2 = N_("-microsoft-verdana-*-*-*-*-*-*-*-*-*-*-*-*") [static]

Definition at line 288 of file bcresources.h.

Referenced by BC_WindowBase::init_xft().

Definition at line 293 of file bcresources.h.

Referenced by BC_Resources(), BC_Title::draw(), and BlueDotTheme::initialize().

Definition at line 295 of file bcresources.h.

Referenced by BC_Resources(), and BC_WindowBase::init_fonts().

int BC_Resources::error = 0 [static]

Definition at line 305 of file bcresources.h.

Referenced by BC_Resources(), and Theme::Theme().

Definition at line 307 of file bcresources.h.

Referenced by BC_Resources().

Definition at line 309 of file bcresources.h.

Referenced by BC_Resources(), and BC_WindowBase::create_window().

Definition at line 317 of file bcresources.h.

int BC_Resources::list_lengths[100] [private]

Definition at line 318 of file bcresources.h.

int BC_Resources::list_total [private]

Definition at line 319 of file bcresources.h.

Definition at line 321 of file bcresources.h.

Referenced by BC_Resources(), and get_id().

BC_Signals * BC_Resources::signal_handler = 0 [static, private]

Definition at line 324 of file bcresources.h.

Referenced by bc_ipc_termination().

Definition at line 325 of file bcresources.h.

Referenced by BC_Resources(), and get_synchronous().

int BC_Resources::id [private]

Definition at line 327 of file bcresources.h.


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

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