- file_icon = new BC_Pixmap(this,
- BC_WindowBase::get_resources()->type_to_icon[ICON_UNKNOWN],
- PIXMAP_ALPHA);
-
- folder_icon = new BC_Pixmap(this,
- BC_WindowBase::get_resources()->type_to_icon[ICON_FOLDER],
- PIXMAP_ALPHA);
-
- audio_icon = new BC_Pixmap(this,
- BC_WindowBase::get_resources()->type_to_icon[ICON_SOUND],
- PIXMAP_ALPHA);
-
- video_icon = new BC_Pixmap(this,
- BC_WindowBase::get_resources()->type_to_icon[ICON_FILM],
- PIXMAP_ALPHA);
-
-SET_TRACE
-
- clip_vframe = mwindow->theme->get_image("clip_icon");
- clip_icon = new BC_Pixmap(this, clip_vframe, PIXMAP_ALPHA);
- atransition_vframe = mwindow->theme->get_image("atransition_icon");
- atransition_icon = new BC_Pixmap(this, atransition_vframe, PIXMAP_ALPHA);
- vtransition_vframe = mwindow->theme->get_image("vtransition_icon");
- vtransition_icon = new BC_Pixmap(this, vtransition_vframe, PIXMAP_ALPHA);
- aeffect_vframe = mwindow->theme->get_image("aeffect_icon");
- aeffect_icon = new BC_Pixmap(this, aeffect_vframe, PIXMAP_ALPHA);
- ladspa_vframe = new VFramePng(lad_picon_png);
- ladspa_icon = new BC_Pixmap(this, ladspa_vframe, PIXMAP_ALPHA);
- ff_aud_vframe = new VFramePng(ff_audio_png);
- ff_aud_icon = new BC_Pixmap(this, ff_aud_vframe, PIXMAP_ALPHA);
- ff_vid_vframe = new VFramePng(ff_video_png);
- ff_vid_icon = new BC_Pixmap(this, ff_vid_vframe, PIXMAP_ALPHA);
- veffect_vframe = mwindow->theme->get_image("veffect_icon");
- veffect_icon = new BC_Pixmap(this, veffect_vframe, PIXMAP_ALPHA);
-
-SET_TRACE
+
+ resource_icon(file_vframe, file_icon, "film_icon", ICON_UNKNOWN);
+ resource_icon(folder_vframe, folder_icon, "folder_icon", ICON_FOLDER);
+ resource_icon(audio_vframe, audio_icon, "audio_icon", ICON_SOUND);
+ resource_icon(video_vframe, video_icon, "video_icon", ICON_FILM);
+ resource_icon(label_vframe, label_icon, "label_icon", ICON_LABEL);
+
+ theme_icon(aeffect_folder_vframe, aeffect_folder_icon, "aeffect_folder");
+ theme_icon(atransition_folder_vframe, atransition_folder_icon, "atransition_folder");
+ theme_icon(clip_folder_vframe, clip_folder_icon, "clip_folder");
+ theme_icon(label_folder_vframe, label_folder_icon, "label_folder");
+ theme_icon(media_folder_vframe, media_folder_icon, "media_folder");
+ theme_icon(proxy_folder_vframe, proxy_folder_icon, "proxy_folder");
+ theme_icon(veffect_folder_vframe, veffect_folder_icon, "veffect_folder");
+ theme_icon(vtransition_folder_vframe, vtransition_folder_icon, "vtransition_folder");
+
+ folder_icons[AW_AEFFECT_FOLDER] = aeffect_folder_icon;
+ folder_icons[AW_VEFFECT_FOLDER] = veffect_folder_icon;
+ folder_icons[AW_ATRANSITION_FOLDER] = atransition_folder_icon;
+ folder_icons[AW_VTRANSITION_FOLDER] = vtransition_folder_icon;
+ folder_icons[AW_LABEL_FOLDER] = label_folder_icon;
+ folder_icons[AW_CLIP_FOLDER] = clip_folder_icon;
+ folder_icons[AW_MEDIA_FOLDER] = media_folder_icon;
+ folder_icons[AW_PROXY_FOLDER] = proxy_folder_icon;
+
+ theme_icon(clip_vframe, clip_icon, "clip_icon");
+ theme_icon(atransition_vframe, atransition_icon, "atransition_icon");
+ theme_icon(vtransition_vframe, vtransition_icon, "vtransition_icon");
+ theme_icon(aeffect_vframe, aeffect_icon, "aeffect_icon");
+ theme_icon(veffect_vframe, veffect_icon, "veffect_icon");
+
+ plugin_icon(ladspa_vframe, ladspa_icon, "lad_picon", lad_picon_png);
+ plugin_icon(ff_aud_vframe, ff_aud_icon, "ff_audio", ff_audio_png);
+ plugin_icon(ff_vid_vframe, ff_vid_icon, "ff_video", ff_video_png);