X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcresources.C;h=43a713e7a47ac80d49929fdebdca4bb09e83f8db;hp=955aa5f5281a05b7ec2912c759253f78a3a53748;hb=04031cc2a664d2a6d9d2a37954c55cc68742d78c;hpb=b30123c9534e8df8da1694d40396d86396bf1c08 diff --git a/cinelerra-5.1/guicast/bcresources.C b/cinelerra-5.1/guicast/bcresources.C index 955aa5f5..43a713e7 100644 --- a/cinelerra-5.1/guicast/bcresources.C +++ b/cinelerra-5.1/guicast/bcresources.C @@ -358,6 +358,9 @@ VFrame *BC_Resources::default_listbox_dn = 0; VFrame *BC_Resources::default_pot_images[3] = { 0, }; VFrame *BC_Resources::default_progress_images[2] = { 0, }; VFrame *BC_Resources::default_medium_7segment[20] = { 0, }; +VFrame *BC_Resources::default_vscroll_data[10] = { 0, }; +VFrame *BC_Resources::default_hscroll_data[10] = { 0, }; +VFrame *BC_Resources::default_icon_img = 0; BC_Resources::BC_Resources() { @@ -666,6 +669,53 @@ new_vframes(20,default_medium_7segment, new VFramePng(space_png), new VFramePng(dash_png)); +#include "images/hscroll_handle_up_png.h" +#include "images/hscroll_handle_hi_png.h" +#include "images/hscroll_handle_dn_png.h" +#include "images/hscroll_handle_bg_png.h" +#include "images/hscroll_left_up_png.h" +#include "images/hscroll_left_hi_png.h" +#include "images/hscroll_left_dn_png.h" +#include "images/hscroll_right_up_png.h" +#include "images/hscroll_right_hi_png.h" +#include "images/hscroll_right_dn_png.h" +new_vframes(10,default_hscroll_data, + new VFramePng(hscroll_handle_up_png), + new VFramePng(hscroll_handle_hi_png), + new VFramePng(hscroll_handle_dn_png), + new VFramePng(hscroll_handle_bg_png), + new VFramePng(hscroll_left_up_png), + new VFramePng(hscroll_left_hi_png), + new VFramePng(hscroll_left_dn_png), + new VFramePng(hscroll_right_up_png), + new VFramePng(hscroll_right_hi_png), + new VFramePng(hscroll_right_dn_png)); + +#include "images/vscroll_handle_up_png.h" +#include "images/vscroll_handle_hi_png.h" +#include "images/vscroll_handle_dn_png.h" +#include "images/vscroll_handle_bg_png.h" +#include "images/vscroll_left_up_png.h" +#include "images/vscroll_left_hi_png.h" +#include "images/vscroll_left_dn_png.h" +#include "images/vscroll_right_up_png.h" +#include "images/vscroll_right_hi_png.h" +#include "images/vscroll_right_dn_png.h" +new_vframes(10,default_vscroll_data, + new VFramePng(vscroll_handle_up_png), + new VFramePng(vscroll_handle_hi_png), + new VFramePng(vscroll_handle_dn_png), + new VFramePng(vscroll_handle_bg_png), + new VFramePng(vscroll_left_up_png), + new VFramePng(vscroll_left_hi_png), + new VFramePng(vscroll_left_dn_png), + new VFramePng(vscroll_right_up_png), + new VFramePng(vscroll_right_hi_png), + new VFramePng(vscroll_right_dn_png)); + +#include "images/default_icon_png.h" + default_icon_img = new VFramePng(default_icon_png); + type_to_icon = default_type_to_icon; bar_data = default_bar; check = default_check_image; @@ -675,6 +725,10 @@ new_vframes(20,default_medium_7segment, listbox_column = default_listbox_column; listbox_up = default_listbox_up; listbox_dn = default_listbox_dn; + hscroll_data = default_hscroll_data; + vscroll_data = default_vscroll_data; + default_icon = default_icon_img; + listbox_title_overlap = 0; listbox_title_margin = 0; listbox_title_color = BLACK; @@ -905,6 +959,7 @@ BC_Resources::~BC_Resources() fontlist->remove_all_objects(); delete fontlist; } + delete default_icon_img; finit_font_defs(); }