int pixmap_w, pixmap_h;
const int debug = 0;
- pixmap_h = 50;
+ pixmap_h = 50 * BC_WindowBase::get_resources()->icon_scale;
if(debug) printf("AssetPicon::create_objects %d\n", __LINE__);
if(indexable)
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 VFrame(lad_picon_png);
+ ladspa_vframe = new VFramePng(lad_picon_png);
ladspa_icon = new BC_Pixmap(this, ladspa_vframe, PIXMAP_ALPHA);
- ff_aud_vframe = new VFrame(ff_audio_png);
+ ff_aud_vframe = new VFramePng(ff_audio_png);
ff_aud_icon = new BC_Pixmap(this, ff_aud_vframe, PIXMAP_ALPHA);
- ff_vid_vframe = new VFrame(ff_video_png);
+ 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);
+++ /dev/null
-#ifndef FF_CHECKED_PNG_H
-#define FF_CHECKED_PNG_H
-
-static unsigned char ff_checked_png[] =
-{
- 0x00, 0x00, 0x02, 0xe6,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xe9, 0x85,
- 0x63, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xa6,
- 0xee, 0x94, 0x12, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00,
- 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
- 0x07, 0xdf, 0x07, 0x09, 0x11, 0x0b, 0x05, 0x6e, 0xee, 0x73, 0xc3, 0x00, 0x00, 0x00, 0x1d, 0x74,
- 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50,
- 0xef, 0x64, 0x25, 0x6e, 0x00, 0x00, 0x02, 0x4a, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xdd, 0x96,
- 0xcf, 0x4f, 0x13, 0x41, 0x14, 0xc7, 0x3f, 0xb5, 0x3f, 0x28, 0x8d, 0xb5, 0x4a, 0x0b, 0x46, 0x04,
- 0xa5, 0x51, 0x63, 0x62, 0x91, 0x62, 0x00, 0x0f, 0x2a, 0x46, 0xf1, 0x66, 0x62, 0xf4, 0xe4, 0x81,
- 0x70, 0xd5, 0x7f, 0xc0, 0x83, 0x67, 0x63, 0x34, 0x9a, 0x78, 0x36, 0x1e, 0x3c, 0x73, 0xe0, 0x68,
- 0x13, 0x8d, 0x31, 0x9a, 0x1e, 0x94, 0xc4, 0x26, 0x42, 0x8c, 0x52, 0x38, 0x48, 0x0a, 0xa9, 0xd6,
- 0x96, 0x20, 0x6d, 0xda, 0xb2, 0x80, 0xa5, 0x3b, 0x1e, 0x66, 0xe9, 0x76, 0xd9, 0xb4, 0x6c, 0xcc,
- 0xe2, 0xc1, 0x4d, 0x26, 0x6f, 0xe6, 0xbd, 0xef, 0xcc, 0x77, 0xe7, 0xbd, 0x37, 0x6f, 0x06, 0xfe,
- 0x97, 0xcf, 0xb1, 0x1b, 0x8b, 0x5e, 0x9e, 0x60, 0xc4, 0x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, 0xb4, 0x3e, 0x65, 0x7a, 0x2d, 0x92, 0xe4, 0x0b, 0x52, 0x1e, 0x29,
- 0xe8, 0xc6, 0xfc, 0x09, 0xf3, 0x84, 0xdf, 0x5a, 0x01, 0x8c, 0xd4, 0x65, 0x20, 0xa7, 0x9b, 0x93,
- 0xd4, 0x02, 0xaf, 0xae, 0x1a, 0x0d, 0xaa, 0x80, 0xee, 0x24, 0x2c, 0x66, 0x8d, 0xfa, 0xb1, 0x17,
- 0x70, 0x72, 0x3f, 0x7c, 0x0f, 0x43, 0xa0, 0xcd, 0xda, 0xd5, 0xda, 0xb0, 0x40, 0x3a, 0x1d, 0x10,
- 0x0d, 0x81, 0x7b, 0xdb, 0x2a, 0x43, 0xed, 0x70, 0xf3, 0x18, 0x44, 0xda, 0xac, 0x17, 0x50, 0x57,
- 0x33, 0x63, 0x5f, 0x50, 0x56, 0xd3, 0xcf, 0x2b, 0x10, 0x6a, 0x95, 0x97, 0xd0, 0xb9, 0x83, 0x10,
- 0x68, 0xf9, 0x8b, 0x87, 0x84, 0x50, 0x18, 0xdd, 0xb5, 0x97, 0x8a, 0x8f, 0xf1, 0x7f, 0xf2, 0x24,
- 0xfa, 0x03, 0x94, 0x8b, 0x11, 0x95, 0x0e, 0x2b, 0x5e, 0xb2, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
- 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef FF_CHECKEDHI_PNG_H
-#define FF_CHECKEDHI_PNG_H
-
-static unsigned char ff_checkedhi_png[] =
-{
- 0x00, 0x00, 0x03, 0x45,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xe9, 0x85,
- 0x63, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xa6,
- 0xee, 0x94, 0x12, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00,
- 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
- 0x07, 0xdf, 0x07, 0x09, 0x11, 0x11, 0x2e, 0x72, 0x7f, 0x70, 0x58, 0x00, 0x00, 0x00, 0x1d, 0x74,
- 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50,
- 0xef, 0x64, 0x25, 0x6e, 0x00, 0x00, 0x02, 0xa9, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xdd, 0x96,
- 0xdf, 0x4b, 0x14, 0x51, 0x14, 0xc7, 0x3f, 0xb6, 0xe3, 0xaa, 0xeb, 0xcf, 0x74, 0xd3, 0x7e, 0xa8,
- 0xeb, 0x96, 0x51, 0xe4, 0x6f, 0xcc, 0x20, 0x51, 0x11, 0x7b, 0xe9, 0xa5, 0xb7, 0x28, 0x90, 0xea,
- 0xad, 0x9e, 0x7b, 0x13, 0x7a, 0x0d, 0xa4, 0xbf, 0x20, 0x2a, 0x7b, 0x4a, 0xb0, 0x22, 0x24, 0x50,
- 0x29, 0x42, 0x12, 0x41, 0x0b, 0x92, 0xd4, 0x6a, 0x53, 0x83, 0x34, 0xdd, 0xd6, 0xd6, 0x1f, 0x85,
- 0x6b, 0x39, 0xbb, 0xe5, 0xfe, 0x3a, 0x3d, 0x8c, 0x8e, 0x3b, 0x6e, 0x6c, 0x1b, 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b, 0x8d, 0xff, 0x00,
- 0x55, 0x62, 0x05, 0x2b, 0xf3, 0xa0, 0x79, 0x2f, 0xbc, 0x5e, 0x01, 0x6b, 0x1a, 0x54, 0xe7, 0x41,
- 0x7d, 0x01, 0x64, 0xa7, 0xfc, 0xd9, 0x29, 0x1d, 0x13, 0x62, 0x51, 0xe0, 0xc2, 0xe1, 0xbf, 0xff,
- 0x14, 0x28, 0x04, 0x50, 0x51, 0xe8, 0x42, 0xb0, 0xfe, 0x83, 0xbf, 0xa1, 0x2f, 0x04, 0x50, 0x7f,
- 0x02, 0x91, 0x2e, 0x3b, 0x98, 0x8a, 0xc8, 0xcf, 0x93, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
- 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef FF_DOWN_PNG_H
-#define FF_DOWN_PNG_H
-
-static unsigned char ff_down_png[] =
-{
- 0x00, 0x00, 0x02, 0xe4,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xe9, 0x85,
- 0x63, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0,
- 0xbd, 0xa7, 0x93, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00,
- 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
- 0x07, 0xdf, 0x07, 0x09, 0x11, 0x02, 0x24, 0xf3, 0x45, 0xd8, 0xd4, 0x00, 0x00, 0x00, 0x1d, 0x74,
- 0x45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,
- 0xc7, 0x9a, 0x5d, 0xcb, 0x2f, 0xa3, 0xd7, 0x7a, 0xb4, 0x71, 0x92, 0x67, 0xe9, 0x10, 0x27, 0x5d,
- 0x95, 0xf6, 0x43, 0x76, 0x9a, 0x70, 0xc7, 0x5a, 0xe6, 0x15, 0xa2, 0xad, 0xe3, 0x9c, 0x23, 0x36,
- 0x12, 0xca, 0x0a, 0xa7, 0x3d, 0x15, 0x4c, 0xcf, 0x90, 0x5b, 0x64, 0x06, 0x52, 0xdc, 0xb1, 0x94,
- 0xa5, 0x79, 0x57, 0xb8, 0xcd, 0x42, 0x57, 0x21, 0x00, 0xa9, 0xcd, 0x4c, 0x05, 0xf3, 0x14, 0x4d,
- 0x15, 0x67, 0xd6, 0xec, 0xf7, 0x66, 0x38, 0xc6, 0xd1, 0xe1, 0xcb, 0xdc, 0xfb, 0x1b, 0x9f, 0x3f,
- 0x0e, 0x24, 0xf6, 0x30, 0x0e, 0xa3, 0x4f, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
- 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef FF_HI_PNG_H
-#define FF_HI_PNG_H
-
-static unsigned char ff_hi_png[] =
-{
- 0x00, 0x00, 0x01, 0xa9,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xe9, 0x85,
- 0x63, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0,
- 0xbd, 0xa7, 0x93, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00,
- 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
- 0x07, 0xdf, 0x07, 0x09, 0x11, 0x05, 0x17, 0x03, 0xd4, 0x2f, 0x05, 0x00, 0x00, 0x00, 0x1d, 0x74,
- 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50,
- 0xef, 0x64, 0x25, 0x6e, 0x00, 0x00, 0x01, 0x0d, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xed, 0x95,
- 0x31, 0x6a, 0x42, 0x41, 0x10, 0x86, 0xbf, 0x27, 0x46, 0x51, 0xb0, 0x0a, 0xc4, 0x33, 0x08, 0xc6,
- 0x94, 0x16, 0xc9, 0x15, 0x02, 0xb9, 0x84, 0xa9, 0xbc, 0x83, 0xd8, 0x08, 0x5e, 0x45, 0x3c, 0x86,
- 0xa4, 0xb0, 0xd3, 0x20, 0x49, 0x9a, 0x94, 0x26, 0xa4, 0x0a, 0x08, 0x26, 0x0a, 0xbe, 0x49, 0x31,
- 0x4f, 0xf6, 0xe9, 0x5b, 0x7c, 0xd3, 0x18, 0x44, 0x5d, 0x58, 0x06, 0x76, 0xbf, 0xd9, 0x7f, 0x76,
- 0x66, 0x97, 0x81, 0x63, 0x19, 0x01, 0x80, 0xcc, 0x91, 0xbd, 0x09, 0x14, 0x09, 0x32, 0xff, 0x71,
- 0x93, 0xb3, 0xc8, 0x89, 0x8a, 0xb0, 0x7e, 0xc2, 0x32, 0x47, 0x9e, 0x87, 0x08, 0x20, 0x57, 0x20,
- 0xb2, 0x63, 0x86, 0x20, 0x0d, 0x23, 0xb7, 0x82, 0xc7, 0x0d, 0x91, 0x4e, 0x5b, 0x45, 0x1e, 0x8a,
- 0x0e, 0x0a, 0x6f, 0x75, 0x2f, 0x3e, 0xad, 0xdc, 0xfa, 0xff, 0x6d, 0xa4, 0x6b, 0xf0, 0xa4, 0xf6,
- 0xae, 0x14, 0x5b, 0xbc, 0x4e, 0xde, 0xdc, 0xca, 0x79, 0x6b, 0xf2, 0xf2, 0xaa, 0xb6, 0x5e, 0x88,
- 0x2d, 0x56, 0x93, 0x4e, 0x56, 0xce, 0x2b, 0x32, 0xfd, 0x54, 0x5b, 0x59, 0xee, 0x76, 0xb6, 0x72,
- 0x89, 0xc2, 0xcf, 0xbe, 0x34, 0xcf, 0x17, 0x20, 0x8b, 0x94, 0x62, 0xde, 0x1b, 0xb9, 0xb0, 0xa7,
- 0x35, 0xc9, 0x02, 0x04, 0x5d, 0x60, 0x12, 0x45, 0x17, 0x40, 0x4e, 0x40, 0x80, 0xb7, 0x4b, 0xa8,
- 0x34, 0xb7, 0x22, 0x9a, 0x00, 0x7d, 0xa8, 0xa5, 0x71, 0xb8, 0x33, 0x5d, 0xba, 0xde, 0xd5, 0xd4,
- 0xf2, 0x8e, 0x19, 0x97, 0x3d, 0x8e, 0x56, 0xce, 0x5b, 0x93, 0x0f, 0x35, 0x37, 0x39, 0xb7, 0x39,
- 0xf2, 0x39, 0x5b, 0x39, 0xaf, 0xc8, 0x77, 0x14, 0x61, 0x26, 0x25, 0x42, 0x2b, 0xe7, 0x15, 0xf9,
- 0x89, 0x22, 0xfc, 0x4d, 0x71, 0xb6, 0x72, 0xdb, 0x9d, 0x91, 0xd6, 0xfe, 0x3a, 0x23, 0xed, 0x73,
- 0x67, 0x3c, 0xc4, 0xf1, 0x07, 0x96, 0x96, 0xc1, 0x5b, 0x6b, 0x8a, 0xbe, 0x4a, 0x00, 0x00, 0x00,
- 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef FF_UP_PNG_H
-#define FF_UP_PNG_H
-
-static unsigned char ff_up_png[] =
-{
- 0x00, 0x00, 0x02, 0xbc,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xe9, 0x85,
- 0x63, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0,
- 0xbd, 0xa7, 0x93, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00,
- 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
- 0x07, 0xdf, 0x07, 0x09, 0x11, 0x01, 0x1f, 0x69, 0x63, 0x62, 0x33, 0x00, 0x00, 0x00, 0x1d, 0x74,
- 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50,
- 0xef, 0x64, 0x25, 0x6e, 0x00, 0x00, 0x02, 0x20, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xdd, 0x95,
- 0xbf, 0x4f, 0x53, 0x51, 0x14, 0xc7, 0x3f, 0xb7, 0xed, 0x83, 0x3e, 0x5e, 0x5b, 0x4a, 0x30, 0x28,
- 0x24, 0x10, 0x1d, 0x48, 0x2c, 0xca, 0x23, 0x92, 0x3a, 0x10, 0x06, 0x49, 0x84, 0xc1, 0x01, 0xe3,
- 0x9f, 0xa0, 0x03, 0xba, 0x18, 0xa2, 0x10, 0xe7, 0x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x13, 0x2b, 0x98, 0x9e, 0x24, 0x22, 0xce, 0x42, 0x73, 0xc7, 0x6c, 0x7a, 0x91, 0x7c, 0x6b, 0xed,
- 0xac, 0x06, 0x9c, 0x00, 0x29, 0x78, 0xd9, 0x4a, 0x92, 0x43, 0x48, 0xc9, 0x69, 0x00, 0x33, 0xd2,
- 0x41, 0xc9, 0xae, 0xab, 0xa4, 0x0d, 0xae, 0x92, 0x60, 0x24, 0xbd, 0xcc, 0xb5, 0x06, 0x92, 0x89,
- 0x2d, 0x2e, 0xe3, 0xa8, 0x01, 0x32, 0x65, 0x77, 0x20, 0xb1, 0x5c, 0x25, 0x1d, 0x70, 0x96, 0xce,
- 0x53, 0x72, 0xea, 0x4d, 0x01, 0x70, 0x6a, 0x89, 0x9d, 0xef, 0x23, 0x0c, 0x10, 0xb2, 0x9d, 0xf8,
- 0xc9, 0xad, 0xe2, 0x23, 0x1e, 0x8b, 0x99, 0x79, 0xe6, 0xde, 0xce, 0xb2, 0xce, 0x3f, 0xb0, 0xe8,
- 0x3e, 0x07, 0xb5, 0x18, 0x5a, 0xac, 0x94, 0x62, 0x59, 0xdf, 0x63, 0xcf, 0x2d, 0x9a, 0x90, 0x1e,
- 0x4b, 0x9d, 0xa8, 0x76, 0x95, 0x11, 0xa2, 0xd2, 0xff, 0xb3, 0x93, 0x87, 0xe9, 0x51, 0x03, 0x4d,
- 0x8e, 0x7f, 0x56, 0x5d, 0xfb, 0x7f, 0xd8, 0x1f, 0xe8, 0x76, 0xd1, 0x05, 0x73, 0xc4, 0x26, 0x32,
- 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef SHBTN_DN_PNG_H
-#define SHBTN_DN_PNG_H
-
-static unsigned char shbtn_dn_png[] =
-{
- 0x00, 0x00, 0x03, 0x65,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x02, 0x00, 0x00, 0x00, 0x4b, 0x8b, 0x12,
- 0x34, 0x00, 0x00, 0x00, 0x1e, 0x74, 0x45, 0x58, 0x74, 0x44, 0x61, 0x74, 0x65, 0x00, 0x54, 0x68,
- 0x75, 0x20, 0x41, 0x75, 0x67, 0x20, 0x20, 0x36, 0x20, 0x31, 0x34, 0x3a, 0x34, 0x31, 0x3a, 0x35,
- 0x35, 0x20, 0x32, 0x30, 0x31, 0x35, 0x0a, 0x1b, 0xc8, 0xd9, 0x67, 0x00, 0x00, 0x03, 0x02, 0x49,
- 0x44, 0x41, 0x54, 0x38, 0x8d, 0xad, 0x94, 0xcf, 0x6b, 0x5c, 0x55, 0x14, 0xc7, 0x3f, 0xe7, 0xdc,
- 0xfb, 0x32, 0xf9, 0x31, 0xd1, 0x30, 0xc4, 0xd8, 0xda, 0x68, 0xc5, 0xba, 0x72, 0xe1, 0x46, 0xd2,
- 0xa2, 0x20, 0xa2, 0x0b, 0x71, 0x63, 0x2b, 0x9a, 0x2c, 0x52, 0xa7, 0x6a, 0xff, 0x81, 0xae, 0x2c,
- 0x74, 0xe3, 0x3f, 0x60, 0x6d, 0x50, 0x68, 0xd0, 0x22, 0x42, 0x15, 0x8a, 0x74, 0xef, 0x4a, 0xb4,
- 0x5a, 0x97, 0x8a, 0x42, 0x5d, 0x28, 0xfe, 0xc0, 0x85, 0x48, 0x7e, 0x8d, 0x43, 0x4c, 0x53, 0x93,
- 0x99, 0xb9, 0xef, 0xde, 0xe3, 0x62, 0xe6, 0x4d, 0x33, 0x66, 0x12, 0x47, 0xf1, 0x2c, 0x2e, 0x97,
- 0xf7, 0xde, 0xf9, 0xdc, 0xef, 0x39, 0xe7, 0xdd, 0xaf, 0xbc, 0x77, 0xe5, 0x2a, 0xff, 0x47, 0x2c,
- 0xbe, 0x75, 0xc1, 0x8f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b, 0xcc, 0x26, 0x66,
- 0x9e, 0x5a, 0x6e, 0xcc, 0x84, 0x3f, 0x8c, 0x21, 0x5c, 0x09, 0x5f, 0x22, 0x2b, 0x99, 0xcf, 0xc4,
- 0x67, 0x68, 0x86, 0x2a, 0x29, 0x91, 0x02, 0x79, 0x20, 0x6f, 0x11, 0x9a, 0x84, 0x26, 0xa9, 0x09,
- 0x81, 0xe1, 0x83, 0xa5, 0xe1, 0xca, 0x3a, 0xac, 0x75, 0x58, 0x43, 0x12, 0x9f, 0x39, 0xf2, 0xdb,
- 0xf4, 0x68, 0x25, 0x34, 0x11, 0x45, 0x1c, 0xea, 0x50, 0x45, 0x1d, 0xea, 0x10, 0x87, 0x2a, 0x16,
- 0x49, 0x89, 0xd4, 0x5e, 0xf3, 0xce, 0xde, 0x12, 0x77, 0x94, 0x5b, 0xc7, 0xa6, 0x96, 0x62, 0x2e,
- 0x45, 0x8d, 0x96, 0x1e, 0x91, 0x1f, 0x8f, 0x4e, 0x8b, 0xed, 0x6b, 0xcb, 0xc5, 0xf8, 0x7a, 0xfb,
- 0x66, 0x96, 0xe7, 0x85, 0xaf, 0x6e, 0x6d, 0x6d, 0xed, 0x9b, 0x3b, 0x48, 0x08, 0x90, 0x52, 0xfa,
- 0x0b, 0x6b, 0xce, 0x33, 0x2d, 0x13, 0xac, 0xbb, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
- 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef SHBTN_HI_PNG_H
-#define SHBTN_HI_PNG_H
-
-static unsigned char shbtn_hi_png[] =
-{
- 0x00, 0x00, 0x03, 0x59,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x02, 0x00, 0x00, 0x00, 0x4b, 0x8b, 0x12,
- 0x34, 0x00, 0x00, 0x00, 0x1e, 0x74, 0x45, 0x58, 0x74, 0x44, 0x61, 0x74, 0x65, 0x00, 0x54, 0x68,
- 0x75, 0x20, 0x41, 0x75, 0x67, 0x20, 0x20, 0x36, 0x20, 0x31, 0x34, 0x3a, 0x34, 0x31, 0x3a, 0x35,
- 0x35, 0x20, 0x32, 0x30, 0x31, 0x35, 0x0a, 0x1b, 0xc8, 0xd9, 0x67, 0x00, 0x00, 0x02, 0xf6, 0x49,
- 0x44, 0x41, 0x54, 0x38, 0x8d, 0xad, 0x94, 0xc1, 0x6b, 0x5c, 0x55, 0x14, 0xc6, 0x7f, 0xe7, 0xde,
- 0x37, 0x13, 0x4c, 0x3b, 0x96, 0x24, 0xb8, 0x48, 0x41, 0xa4, 0x33, 0xa1, 0x05, 0x91, 0x6c, 0x6c,
- 0x25, 0x74, 0xd5, 0x45, 0xc4, 0x60, 0x17, 0xee, 0x93, 0x42, 0x18, 0x04, 0x71, 0x1d, 0x5c, 0x04,
- 0x61, 0xb2, 0x08, 0xe4, 0x0f, 0x70, 0x13, 0x4b, 0xfd, 0x0f, 0xec, 0xd2, 0x85, 0x10, 0xdd, 0xd9,
- 0x5d, 0xe9, 0xe0, 0x22, 0x90, 0x8c, 0x21, 0x12, 0x51, 0x17, 0x99, 0x10, 0x4d, 0x4d, 0xa7, 0xcd,
- 0xcc, 0xbd, 0xef, 0x1c, 0x17, 0xef, 0xcd, 0xe4, 0x85, 0xa4, 0x69, 0x2a, 0x9e, 0xcd, 0x7b, 0xef,
- 0xde, 0xf7, 0x7e, 0xef, 0xfb, 0xbe, 0x7b, 0xef, 0x91, 0x95, 0x95, 0x15, 0xfe, 0x8f, 0x5a, 0x58,
- 0x58, 0x48, 0xf6, 0xf7, 0xf7, 0x01, 0x10, 0xb5, 0xff, 0x82, 0x10, 0x10, 0x31, 0x33, 0x53, 0xd5,
- 0x04, 0x10, 0xe1, 0xa3, 0xc9, 0xdf, 0xaf, 0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0x8f, 0x7b, 0x93, 0x13, 0x2f, 0xfe, 0xf4, 0xc3, 0x42, 0x04,
- 0x43, 0xa2, 0x61, 0x98, 0x89, 0xa8, 0x61, 0x10, 0x21, 0x01, 0xc1, 0x9c, 0x88, 0x98, 0x79, 0xc1,
- 0x81, 0x40, 0xc2, 0x8b, 0x67, 0x97, 0x7f, 0xe8, 0x5c, 0xf7, 0xa2, 0x39, 0x4b, 0x5c, 0xf2, 0x5d,
- 0x7a, 0x2b, 0x3d, 0x78, 0x9f, 0x83, 0x42, 0x2c, 0x72, 0x66, 0x2b, 0x2d, 0x5c, 0x04, 0x0c, 0x11,
- 0x29, 0x25, 0x2e, 0x1b, 0x4a, 0xc6, 0xc6, 0xc6, 0xf2, 0x30, 0xe5, 0x9c, 0xc8, 0xcf, 0x5d, 0x0b,
- 0x33, 0xc0, 0x39, 0xf7, 0x2f, 0xae, 0xae, 0x0c, 0x96, 0xa0, 0xc1, 0xbd, 0x20, 0x00, 0x00, 0x00,
- 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
+++ /dev/null
-#ifndef SHBTN_UP_PNG_H
-#define SHBTN_UP_PNG_H
-
-static unsigned char shbtn_up_png[] =
-{
- 0x00, 0x00, 0x03, 0x54,
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
- 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x19, 0x08, 0x02, 0x00, 0x00, 0x00, 0x4b, 0x8b, 0x12,
- 0x34, 0x00, 0x00, 0x00, 0x1e, 0x74, 0x45, 0x58, 0x74, 0x44, 0x61, 0x74, 0x65, 0x00, 0x54, 0x68,
- 0x75, 0x20, 0x41, 0x75, 0x67, 0x20, 0x20, 0x36, 0x20, 0x31, 0x34, 0x3a, 0x34, 0x31, 0x3a, 0x35,
- 0x35, 0x20, 0x32, 0x30, 0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, 0xde, 0xbd, 0x0f, 0xfe, 0xae, 0x17, 0x8d, 0xd5,
- 0x84, 0x45, 0xc6, 0x6e, 0xcb, 0xe5, 0xad, 0xb7, 0xa7, 0xdb, 0x73, 0x9e, 0x95, 0x9e, 0x16, 0x11,
- 0xac, 0x4d, 0x5a, 0xeb, 0xb2, 0xd9, 0xec, 0x60, 0xfa, 0x33, 0xa4, 0x09, 0xdf, 0x18, 0xf3, 0x11,
- 0xba, 0x5e, 0x1c, 0xa5, 0xd9, 0x76, 0x8d, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
- 0xae, 0x42, 0x60, 0x82
-};
-
-#endif
data[1] = (size >> 16) & 0xff;
data[2] = (size >> 8) & 0xff;
data[3] = size & 0xff;
- result = new VFrame(data);
+ result = new VFramePng(data, 1.);
delete [] data;
}
-#include "data/ff_checked_png.h"
-#include "data/ff_down_png.h"
-#include "data/ff_checkedhi_png.h"
-#include "data/ff_up_png.h"
-#include "data/ff_hi_png.h"
-
-static VFrame *ff_images[] = {
- new VFrame(ff_up_png),
- new VFrame(ff_hi_png),
- new VFrame(ff_checked_png),
- new VFrame(ff_down_png),
- new VFrame(ff_checkedhi_png)
-};
-
MainFFMpegToggle::MainFFMpegToggle(MWindow *mwindow, MButtons *mbuttons, int x, int y)
- : BC_Toggle(x - ff_images[0]->get_w(), y, &ff_images[0],
- mwindow->preferences->ffmpeg_early_probe)
+ : BC_Toggle(x - mwindow->theme->ffmpeg_toggle[0]->get_w(), y,
+ mwindow->theme->ffmpeg_toggle, mwindow->preferences->ffmpeg_early_probe)
{
this->mwindow = mwindow;
this->mbuttons = mbuttons;
void MWindow::show_splash()
{
#include "data/heroine_logo11_png.h"
- VFrame *frame = new VFrame(heroine_logo11_png);
+ VFrame *frame = new VFramePng(heroine_logo11_png);
BC_DisplayInfo display_info;
splash_window = new SplashGUI(frame,
display_info.get_root_w() / 2 - frame->get_w() / 2,
// Create icons for mode types
static const char *mode_types[] = {
- _("mode_normal"),
- _("mode_add"),
- _("mode_subtract"),
- _("mode_multiply"),
- _("mode_divide"),
- _("mode_replace"),
- _("mode_max"),
- _("mode_min"),
- _("mode_average"),
- _("mode_darken"),
- _("mode_lighten"),
- _("mode_dst"),
- _("mode_dstatop"),
- _("mode_dstin"),
- _("mode_dstout"),
- _("mode_dstover"),
- _("mode_src"),
- _("mode_srcatop"),
- _("mode_srcin"),
- _("mode_srcout"),
- _("mode_srcover"),
- _("mode_or"),
- _("mode_xor"),
+ "mode_normal",
+ "mode_add",
+ "mode_subtract",
+ "mode_multiply",
+ "mode_divide",
+ "mode_replace",
+ "mode_max",
+ "mode_min",
+ "mode_average",
+ "mode_darken",
+ "mode_lighten",
+ "mode_dst",
+ "mode_dstatop",
+ "mode_dstin",
+ "mode_dstout",
+ "mode_dstover",
+ "mode_src",
+ "mode_srcatop",
+ "mode_srcin",
+ "mode_srcout",
+ "mode_srcover",
+ "mode_or",
+ "mode_xor",
};
for( int mode=0; mode<TRANSFER_TYPES; ++mode ) {
mode_icons[mode] = new BC_Pixmap(this,
if( st.st_size == 0 ) return 0;
unsigned len = st.st_size;
int ret = 0, w = 0, h = 0;
- uint8_t *bfr = 0;
+ unsigned char *bfr = 0;
int fd = ::open(png_path, O_RDONLY);
if( fd < 0 ) ret = 1;
if( !ret ) {
- bfr = (uint8_t*) ::mmap (NULL, len, PROT_READ, MAP_SHARED, fd, 0);
+ bfr = (unsigned char *) ::mmap (NULL, len, PROT_READ, MAP_SHARED, fd, 0);
if( bfr == MAP_FAILED ) ret = 1;
}
VFrame *vframe = 0;
if( !ret ) {
- vframe = new VFrame(bfr, st.st_size);
+ double scale = BC_WindowBase::get_resources()->icon_scale;
+ vframe = new VFramePng(bfr, st.st_size, scale, scale);
if( (w=vframe->get_w()) <= 0 || (h=vframe->get_h()) <= 0 ||
vframe->get_data() == 0 ) ret = 1;
}
return offset;
}
-int Samples::filefork_size()
-{
- return 12;
-}
-
-void Samples::to_filefork(unsigned char *buffer)
-{
- *(int*)(buffer + 0) = shmid;
- *(int*)(buffer + 4) = allocated;
- *(int*)(buffer + 8) = offset;
-// printf("Samples::to_filefork %d shmid=%d allocated=%d offset=%d data=%p\n",
-// __LINE__,
-// shmid,
-// allocated,
-// offset,
-// data);
-}
-
-void Samples::from_filefork(unsigned char *buffer)
-{
-// printf("Samples::from_filefork %d %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
-// __LINE__,
-// buffer[0],
-// buffer[1],
-// buffer[2],
-// buffer[3],
-// buffer[4],
-// buffer[5],
-// buffer[6],
-// buffer[7],
-// buffer[8],
-// buffer[9],
-// buffer[10],
-// buffer[11]);
- clear_objects();
- shmid = *(int*)(buffer + 0);
- allocated = *(int*)(buffer + 4);
- offset = *(int*)(buffer + 8);
- data = (double*)shmat(shmid, NULL, 0);
-// printf("Samples::from_filefork %d shmid=%d allocated=%d offset=%d data=%p\n",
-// __LINE__,
-// shmid,
-// allocated,
-// offset,
-// data);
-}
-
-
void set_offset(int offset);
int get_offset();
-
- static int filefork_size();
- void to_filefork(unsigned char *buffer);
- void from_filefork(unsigned char *buffer);
-
private:
int shmid;
double *data;
#include "bcdialog.h"
#include "language.h"
#include "mainerror.h"
+#include "mwindow.h"
#include "shbtnprefs.h"
#include "preferences.h"
#include "preferencesthread.h"
+#include "theme.h"
#include <sys/wait.h>
return 1;
}
-#include "data/shbtn_up_png.h"
-#include "data/shbtn_hi_png.h"
-#include "data/shbtn_dn_png.h"
-
-static VFrame *shbtn_images[] = {
- new VFrame(shbtn_up_png),
- new VFrame(shbtn_hi_png),
- new VFrame(shbtn_dn_png),
-};
-
MainShBtns::MainShBtns(MWindow *mwindow, int x, int y)
- : BC_PopupMenu(x, y, 0, "", -1, shbtn_images)
+ : BC_PopupMenu(x, y, 0, "", -1, mwindow->theme->shbtn_data)
{
this->mwindow = mwindow;
set_tooltip(_("shell cmds"));
loadmode_w = 350;
#include "data/about_png.h"
- about_bg = new VFrame(about_png);
+ about_bg = new VFramePng(about_png);
pane_color = BLACK;
drag_pane_color = WHITE;
int third)
{
if(!png_overlay) return;
- VFrame default_data(png_overlay);
+ VFramePng default_data(png_overlay);
VFrame *data[3];
data[0] = NEW_VFRAME;
data[1] = NEW_VFRAME;
int region)
{
if(!png_overlay || !bg_data) return;
- VFrame default_data(png_overlay);
+ VFramePng default_data(png_overlay);
data = new VFrame*[5];
data[0] = NEW_VFRAME;
data[1] = NEW_VFRAME;
VFrame *dn_vframe)
{
if(!png_overlay) return;
- VFrame default_data(png_overlay);
+ VFramePng default_data(png_overlay);
if(!up_vframe || !hi_vframe || !dn_vframe) return;
data = new VFrame*[3];
VFrame *at_vframe)
{
if(!png_overlay) return;
- VFrame default_data(png_overlay);
+ VFramePng default_data(png_overlay);
if(!up_vframe || !hi_vframe || !dn_vframe) return;
data = new VFrame*[4];
!checked_vframe ||
!dn_vframe ||
!checkedhi_vframe) return;
- VFrame default_data(png_overlay);
+ VFramePng default_data(png_overlay);
data = new VFrame*[5];
data[0] = NEW_VFRAME;
data[1] = NEW_VFRAME;
VFrame **edithandlein_data;
VFrame **edithandleout_data;
VFrame **extract_data;
+ VFrame **ffmpeg_toggle;
VFrame **infoasset_data;
VFrame **in_point;
VFrame **insert_data;
VFrame **reverse_data;
VFrame **rewind_data;
VFrame **select_data;
+ VFrame **shbtn_data;
VFrame **splice_data;
VFrame **start_over_data;
VFrame **statusbar_cancel_data;
}
-BC_Bitmap::BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data)
+BC_Bitmap::BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data, double scale)
{
// Decompress data into a temporary vframe
- VFrame frame;
-
- frame.read_png(png_data);
+ VFramePng frame(png_data, scale);
avail_lock = 0;
// Initialize the bitmap
public:
enum { bmXNone, bmXImage, bmXShmImage, bmXvImage, bmXvShmImage };
- BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data);
+ BC_Bitmap(BC_WindowBase *parent_window, unsigned char *png_data, double scale=1);
BC_Bitmap(BC_WindowBase *parent_window, VFrame *frame);
// Shared memory is a problem in X because it's asynchronous and there's
menu_items.values[i]->h = 5;
else
{
-// menu_items.values[i]->h = top_level->get_text_height(MEDIUMFONT) + 4;
- menu_items.values[i]->h = item_bg[0]->get_h();
+ menu_items.values[i]->h = item_bg[0] ? item_bg[0]->get_h() :
+ top_level->get_text_height(MEDIUMFONT) + 4;
}
menu_items.values[i]->y = h;
{
synchronous = 0;
vframe_shm = 0;
+
display_info = new BC_DisplayInfo("", 0);
- double scale = 1;
- char *font_scale = getenv("BC_FONT_SCALE");
- if( !font_scale ) {
- int display_w = display_info->get_root_w();
- int display_h = display_info->get_root_h();
- int display_size = display_h < display_w ? display_h : display_w;
- scale = display_size / 1000.;
- }
- else {
- double env_scale = atof(font_scale);
- if( env_scale > 0 ) scale = env_scale;
- }
- init_font_defs(scale);
+ int display_w = display_info->get_root_w();
+ int display_h = display_info->get_root_h();
+ int display_size = display_h < display_w ? display_h : display_w;
+ double default_scale = display_size/1000.;
+ char *env = getenv("BC_FONT_SCALE");
+ font_scale = env ? atof(env) : default_scale;
+ if( font_scale <= 0 ) font_scale = 1;
+ init_font_defs(font_scale);
+ env = getenv("BC_ICON_SCALE");
+ icon_scale = env ? atof(env) : default_scale;
+ if( icon_scale <= 0 ) icon_scale = 1;
+
id_lock = new Mutex("BC_Resources::id_lock");
create_window_lock = new Mutex("BC_Resources::create_window_lock", 1);
id = 0;
#include "images/file_column_png.h"
static VFrame* default_type_to_icon[] =
{
- new VFrame(file_folder_png),
- new VFrame(file_unknown_png),
- new VFrame(file_film_png),
- new VFrame(file_sound_png),
- new VFrame(file_column_png)
+ new VFramePng(file_folder_png),
+ new VFramePng(file_unknown_png),
+ new VFramePng(file_film_png),
+ new VFramePng(file_sound_png),
+ new VFramePng(file_column_png)
};
type_to_icon = default_type_to_icon;
#include "images/bar_png.h"
- static VFrame* default_bar = new VFrame(bar_png);
+ static VFrame* default_bar = new VFramePng(bar_png);
bar_data = default_bar;
#include "images/cancel_dn_png.h"
static VFrame* default_cancel_images[] =
{
- new VFrame(cancel_up_png),
- new VFrame(cancel_hi_png),
- new VFrame(cancel_dn_png)
+ new VFramePng(cancel_up_png),
+ new VFramePng(cancel_hi_png),
+ new VFramePng(cancel_dn_png)
};
#include "images/ok_up_png.h"
#include "images/ok_dn_png.h"
static VFrame* default_ok_images[] =
{
- new VFrame(ok_up_png),
- new VFrame(ok_hi_png),
- new VFrame(ok_dn_png)
+ new VFramePng(ok_up_png),
+ new VFramePng(ok_hi_png),
+ new VFramePng(ok_dn_png)
};
#include "images/usethis_up_png.h"
#include "images/usethis_dn_png.h"
static VFrame* default_usethis_images[] =
{
- new VFrame(usethis_up_png),
- new VFrame(usethis_uphi_png),
- new VFrame(usethis_dn_png)
+ new VFramePng(usethis_up_png),
+ new VFramePng(usethis_uphi_png),
+ new VFramePng(usethis_dn_png)
};
#if 0
#include "images/checkbox_hi_png.h"
static VFrame* default_checkbox_images[] =
{
- new VFrame(checkbox_up_png),
- new VFrame(checkbox_hi_png),
- new VFrame(checkbox_checked_png),
- new VFrame(checkbox_dn_png),
- new VFrame(checkbox_checkedhi_png)
+ new VFramePng(checkbox_up_png),
+ new VFramePng(checkbox_hi_png),
+ new VFramePng(checkbox_checked_png),
+ new VFramePng(checkbox_dn_png),
+ new VFramePng(checkbox_checkedhi_png)
};
#include "images/radial_checked_png.h"
#include "images/radial_hi_png.h"
static VFrame* default_radial_images[] =
{
- new VFrame(radial_up_png),
- new VFrame(radial_hi_png),
- new VFrame(radial_checked_png),
- new VFrame(radial_dn_png),
- new VFrame(radial_checkedhi_png)
+ new VFramePng(radial_up_png),
+ new VFramePng(radial_hi_png),
+ new VFramePng(radial_checked_png),
+ new VFramePng(radial_dn_png),
+ new VFramePng(radial_checkedhi_png)
};
static VFrame* default_label_images[] =
{
- new VFrame(radial_up_png),
- new VFrame(radial_hi_png),
- new VFrame(radial_checked_png),
- new VFrame(radial_dn_png),
- new VFrame(radial_checkedhi_png)
+ new VFramePng(radial_up_png),
+ new VFramePng(radial_hi_png),
+ new VFramePng(radial_checked_png),
+ new VFramePng(radial_dn_png),
+ new VFramePng(radial_checkedhi_png)
};
#endif
#include "images/check_png.h"
- static VFrame* default_check_image = new VFrame(check_png);
+ static VFrame* default_check_image = new VFramePng(check_png);
check = default_check_image;
#include "images/file_text_up_png.h"
#include "images/file_reload_dn_png.h"
static VFrame* default_filebox_text_images[] =
{
- new VFrame(file_text_up_png),
- new VFrame(file_text_hi_png),
- new VFrame(file_text_dn_png)
+ new VFramePng(file_text_up_png),
+ new VFramePng(file_text_hi_png),
+ new VFramePng(file_text_dn_png)
};
static VFrame* default_filebox_icons_images[] =
{
- new VFrame(file_icons_up_png),
- new VFrame(file_icons_hi_png),
- new VFrame(file_icons_dn_png)
+ new VFramePng(file_icons_up_png),
+ new VFramePng(file_icons_hi_png),
+ new VFramePng(file_icons_dn_png)
};
static VFrame* default_filebox_updir_images[] =
{
- new VFrame(file_updir_up_png),
- new VFrame(file_updir_hi_png),
- new VFrame(file_updir_dn_png)
+ new VFramePng(file_updir_up_png),
+ new VFramePng(file_updir_hi_png),
+ new VFramePng(file_updir_dn_png)
};
static VFrame* default_filebox_newfolder_images[] =
{
- new VFrame(file_newfolder_up_png),
- new VFrame(file_newfolder_hi_png),
- new VFrame(file_newfolder_dn_png)
+ new VFramePng(file_newfolder_up_png),
+ new VFramePng(file_newfolder_hi_png),
+ new VFramePng(file_newfolder_dn_png)
};
static VFrame* default_filebox_rename_images[] =
{
- new VFrame(file_rename_up_png),
- new VFrame(file_rename_hi_png),
- new VFrame(file_rename_dn_png)
+ new VFramePng(file_rename_up_png),
+ new VFramePng(file_rename_hi_png),
+ new VFramePng(file_rename_dn_png)
};
static VFrame* default_filebox_delete_images[] =
{
- new VFrame(file_delete_up_png),
- new VFrame(file_delete_hi_png),
- new VFrame(file_delete_dn_png)
+ new VFramePng(file_delete_up_png),
+ new VFramePng(file_delete_hi_png),
+ new VFramePng(file_delete_dn_png)
};
static VFrame* default_filebox_reload_images[] =
{
- new VFrame(file_reload_up_png),
- new VFrame(file_reload_hi_png),
- new VFrame(file_reload_dn_png)
+ new VFramePng(file_reload_up_png),
+ new VFramePng(file_reload_hi_png),
+ new VFramePng(file_reload_dn_png)
};
#include "images/listbox_button_dn_png.h"
#include "images/listbox_button_disabled_png.h"
static VFrame* default_listbox_button[] =
{
- new VFrame(listbox_button_up_png),
- new VFrame(listbox_button_hi_png),
- new VFrame(listbox_button_dn_png),
- new VFrame(listbox_button_disabled_png)
+ new VFramePng(listbox_button_up_png),
+ new VFramePng(listbox_button_hi_png),
+ new VFramePng(listbox_button_dn_png),
+ new VFramePng(listbox_button_disabled_png)
};
listbox_button = default_listbox_button;
#include "images/listbox_expanduphi_png.h"
static VFrame* default_listbox_expand[] =
{
- new VFrame(listbox_expandup_png),
- new VFrame(listbox_expanduphi_png),
- new VFrame(listbox_expandchecked_png),
- new VFrame(listbox_expanddn_png),
- new VFrame(listbox_expandcheckedhi_png),
+ new VFramePng(listbox_expandup_png),
+ new VFramePng(listbox_expanduphi_png),
+ new VFramePng(listbox_expandchecked_png),
+ new VFramePng(listbox_expanddn_png),
+ new VFramePng(listbox_expandcheckedhi_png),
};
listbox_expand = default_listbox_expand;
#include "images/listbox_columndn_png.h"
static VFrame* default_listbox_column[] =
{
- new VFrame(listbox_columnup_png),
- new VFrame(listbox_columnhi_png),
- new VFrame(listbox_columndn_png)
+ new VFramePng(listbox_columnup_png),
+ new VFramePng(listbox_columnhi_png),
+ new VFramePng(listbox_columndn_png)
};
listbox_column = default_listbox_column;
#include "images/listbox_up_png.h"
#include "images/listbox_dn_png.h"
- listbox_up = new VFrame(listbox_up_png);
- listbox_dn = new VFrame(listbox_dn_png);
+ listbox_up = new VFramePng(listbox_up_png);
+ listbox_dn = new VFramePng(listbox_dn_png);
listbox_title_overlap = 0;
listbox_title_margin = 0;
listbox_title_color = BLACK;
#include "images/pot_dn_png.h"
static VFrame *default_pot_images[] =
{
- new VFrame(pot_up_png),
- new VFrame(pot_hi_png),
- new VFrame(pot_dn_png)
+ new VFramePng(pot_up_png),
+ new VFramePng(pot_hi_png),
+ new VFramePng(pot_dn_png)
};
#include "images/progress_up_png.h"
#include "images/progress_hi_png.h"
static VFrame* default_progress_images[] =
{
- new VFrame(progress_up_png),
- new VFrame(progress_hi_png)
+ new VFramePng(progress_up_png),
+ new VFramePng(progress_hi_png)
};
pan_data = 0;
#include "images/7seg_small/dash_png.h"
static VFrame* default_medium_7segment[] =
{
- new VFrame(_0_png),
- new VFrame(_1_png),
- new VFrame(_2_png),
- new VFrame(_3_png),
- new VFrame(_4_png),
- new VFrame(_5_png),
- new VFrame(_6_png),
- new VFrame(_7_png),
- new VFrame(_8_png),
- new VFrame(_9_png),
- new VFrame(colon_png),
- new VFrame(period_png),
- new VFrame(a_png),
- new VFrame(b_png),
- new VFrame(c_png),
- new VFrame(d_png),
- new VFrame(e_png),
- new VFrame(f_png),
- new VFrame(space_png),
- new VFrame(dash_png)
+ new VFramePng(_0_png),
+ new VFramePng(_1_png),
+ new VFramePng(_2_png),
+ new VFramePng(_3_png),
+ new VFramePng(_4_png),
+ new VFramePng(_5_png),
+ new VFramePng(_6_png),
+ new VFramePng(_7_png),
+ new VFramePng(_8_png),
+ new VFramePng(_9_png),
+ new VFramePng(colon_png),
+ new VFramePng(period_png),
+ new VFramePng(a_png),
+ new VFramePng(b_png),
+ new VFramePng(c_png),
+ new VFramePng(d_png),
+ new VFramePng(e_png),
+ new VFramePng(f_png),
+ new VFramePng(space_png),
+ new VFramePng(dash_png)
};
generic_button_margin = 15;
static VFrame *default_menuitem_data[] =
{
- new VFrame(menuitem_up_png),
- new VFrame(menuitem_hi_png),
- new VFrame(menuitem_dn_png),
+ new VFramePng(menuitem_up_png),
+ new VFramePng(menuitem_hi_png),
+ new VFramePng(menuitem_dn_png),
};
menu_item_bg = default_menuitem_data;
static VFrame *default_menubar_data[] =
{
- new VFrame(menubar_up_png),
- new VFrame(menubar_hi_png),
- new VFrame(menubar_dn_png),
+ new VFramePng(menubar_up_png),
+ new VFramePng(menubar_hi_png),
+ new VFramePng(menubar_dn_png),
};
menu_title_bg = default_menubar_data;
- menu_popup_bg = new VFrame(menu_popup_bg_png);
+ menu_popup_bg = new VFramePng(menu_popup_bg_png);
- menu_bar_bg = new VFrame(menubar_bg_png);
+ menu_bar_bg = new VFramePng(menubar_bg_png);
popupmenu_images = 0;
int dirbox_margin;
int directory_color;
int file_color;
-
+ double font_scale, icon_scale;
// fonts
static const char *small_font;
*
*/
+#include "bcresources.h"
#include "bctheme.h"
#include "bcwindowbase.h"
#include "clip.h"
contents_ptr = 0;
last_image = 0;
last_pointer = 0;
-
-
}
BC_Theme::~BC_Theme()
return BC_WindowBase::get_resources();
}
-
// These create single images for storage in the image_sets table.
VFrame* BC_Theme::new_image(const char *title, const char *path)
{
if(existing_image) return existing_image;
BC_ThemeSet *result = new BC_ThemeSet(1, 0, title);
- result->data[0] = new VFrame(get_image_data(path));
+ result->data[0] = new VFramePng(get_image_data(path));
image_sets.append(result);
return result->data[0];
}
const char *dn_path,
const char *title)
{
- VFrame default_data(get_image_data(overlay_path));
+ VFramePng default_data(get_image_data(overlay_path));
BC_ThemeSet *result = new BC_ThemeSet(3, 1, title ? title : "");
if(title) image_sets.append(result);
const char *disabled_path,
const char *title)
{
- VFrame default_data(get_image_data(overlay_path));
+ VFramePng default_data(get_image_data(overlay_path));
BC_ThemeSet *result = new BC_ThemeSet(4, 1, title ? title : "");
if(title) image_sets.append(result);
VFrame *dn,
const char *title)
{
- VFrame default_data(get_image_data(overlay_path));
+ VFramePng default_data(get_image_data(overlay_path));
BC_ThemeSet *result = new BC_ThemeSet(3, 0, title ? title : "");
if(title) image_sets.append(result);
const char *checkedhi_path,
const char *title)
{
- VFrame default_data(get_image_data(overlay_path));
+ VFramePng default_data(get_image_data(overlay_path));
BC_ThemeSet *result = new BC_ThemeSet(5, 1, title ? title : "");
if(title) image_sets.append(result);
VFrame *checkedhi,
const char *title)
{
- VFrame default_data(get_image_data(overlay_path));
+ VFramePng default_data(get_image_data(overlay_path));
BC_ThemeSet *result = new BC_ThemeSet(5, 0, title ? title : "");
if(title) image_sets.append(result);
//static BCCounter counter;
-VFrame::VFrame(unsigned char *png_data)
+VFramePng::VFramePng(unsigned char *png_data, double scale)
{
- reset_parameters(1);
- params = new BC_Hash;
- read_png(png_data);
+ long image_size =
+ ((long)png_data[0] << 24) | ((long)png_data[1] << 16) |
+ ((long)png_data[2] << 8) | (long)png_data[3];
+ if( !scale ) scale = BC_WindowBase::get_resources()->icon_scale;
+ read_png(png_data+4, image_size, scale, scale);
}
-VFrame::VFrame(unsigned char *png_data, long image_size)
+VFramePng::VFramePng(unsigned char *png_data, long image_size, double xscale, double yscale)
{
- reset_parameters(1);
- params = new BC_Hash;
- read_png(png_data, image_size);
+ if( !xscale ) xscale = BC_WindowBase::get_resources()->icon_scale;
+ if( !yscale ) yscale = BC_WindowBase::get_resources()->icon_scale;
+ read_png(png_data, image_size, xscale, yscale);
}
+VFramePng::~VFramePng()
+{
+}
+
+
VFrame::VFrame(VFrame &frame)
{
reset_parameters(1);
return 0;
}
-int VFrame::read_png(const unsigned char *data, long img_sz)
+int VFramePng::read_png(const unsigned char *data, long sz, double xscale, double yscale)
{
// Test for RAW format
if(data[0] == 'R' && data[1] == 'A' && data[2] == 'W' && data[3] == ' ') {
int new_color_model;
image_offset = 0;
- image = data; image_size = img_sz;
+ image = data; image_size = sz;
png_set_read_fn(png_ptr, this, PngReadFunction::png_read_function);
png_read_info(png_ptr, info_ptr);
printf("VFrame::read_png %d: unknown file format"
" 0x%02x 0x%02x 0x%02x 0x%02x\n",
__LINE__, data[4], data[5], data[6], data[7]);
+ return 1;
+ }
+ int ww = w * xscale, hh = h * yscale;
+ if( ww != w || hh != h ) {
+ VFrame vframe(*this);
+ reallocate(NULL, -1, 0, 0, 0, ww, hh, color_model, -1);
+ transfer_from(&vframe);
}
return 0;
}
-int VFrame::read_png(const unsigned char *data)
-{
- long img_sz =
- ((long)data[0] << 24) | ((long)data[1] << 16) |
- ((long)data[2] << 8) | (long)data[3];
- return read_png(data+4, img_sz);
-}
-
int VFrame::write_png(const char *path)
{
png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
w, h, color_model, rows, use_shm, shmid);
}
-int VFrame::filefork_size()
-{
- return sizeof(int) * 13 + sizeof(long);
-}
-
-
-void VFrame::to_filefork(unsigned char *buffer)
-{
- *(int*)(buffer + 0) = shmid;
- *(int*)(buffer + 4) = y_offset;
- *(int*)(buffer + 8) = u_offset;
- *(int*)(buffer + 12) = v_offset;
- *(int*)(buffer + 16) = w;
- *(int*)(buffer + 20) = h;
- *(int*)(buffer + 24) = color_model;
- *(int*)(buffer + 28) = bytes_per_line;
- *(int*)(buffer + 32) = compressed_allocated;
- *(int*)(buffer + 36) = compressed_size;
- *(int*)(buffer + 40) = is_keyframe;
- *(int*)(buffer + 44) = status;
- *(long*)(buffer + 48) = sequence_number;
-
-
-//printf("VFrame::to_filefork %d %lld\n", __LINE__, sequence_number);
-// printf("VFrame::to_filefork %d", __LINE__);
-// for(int i = 0; i < 40; i++)
-// {
-// printf(" %02x", buffer[i]);
-// }
-// printf("\n");
-// dump();
-}
-
-
-void VFrame::from_filefork(unsigned char *buffer)
-{
-// This frame will always be preallocated shared memory
-//printf("VFrame::from_filefork %d %d\n", __LINE__, *(int*)(buffer + 24));
- if(*(int*)(buffer + 24) == BC_COMPRESSED)
- {
- set_compressed_memory(0,
- *(int*)(buffer + 0), // shmid
- *(int*)(buffer + 36), // compressed_size
- *(int*)(buffer + 32)); // compressed_allocated
- color_model = BC_COMPRESSED;
-//printf("VFrame::from_filefork %d %d\n", __LINE__, get_compressed_size());
-
- }
- else
- {
-// printf("VFrame::from_filefork %d", __LINE__);
-// for(int i = 0; i < 40; i++)
-// {
-// printf(" %02x", buffer[i]);
-// }
-// printf("\n");
- reallocate(0,
- *(int*)(buffer + 0), // shmid
- *(int*)(buffer + 4), // y_offset
- *(int*)(buffer + 8), // u_offset
- *(int*)(buffer + 12), // v_offset
- *(int*)(buffer + 16), // w
- *(int*)(buffer + 20), // h
- *(int*)(buffer + 24), // colormodel
- *(int*)(buffer + 28)); // bytes per line
-//dump();
- }
-
- is_keyframe = *(int*)(buffer + 40);
- status = *(int*)(buffer + 44);
- sequence_number = *(long*)(buffer + 48);
-//printf("VFrame::from_filefork %d %lld\n", __LINE__, sequence_number);
-}
int VFrame::get_memory_usage()
{
#include "bccmodels.h"
#include "vframe.inc"
-class PngReadFunction;
-
-
// Maximum number of prev or next effects to be pushed onto the stacks.
#define MAX_STACK_ELEMENTS 255
class VFrame
{
+ friend class VFramePng;
+ friend class PngReadFunction;
public:
// Create new frame with shared data if *data is nonzero.
// Pass 0 to *data & -1 to shmid if private data is desired.
int color_model,
long bytes_per_line);
-// Create a frame with the png image
- VFrame(unsigned char *png_data);
- VFrame(unsigned char *png_data, long image_size);
VFrame(VFrame &vframe);
// Create new frame for compressed data.
VFrame();
~VFrame();
- friend class PngReadFunction;
-
// Return 1 if the colormodel and dimensions are the same
// Used by FrameCache
int equivalent(VFrame *src, int test_stacks = 0);
int data_size,
int data_allocated);
-// Read a PNG into the frame with alpha
- int read_png(const unsigned char *data);
- int read_png(const unsigned char *data, long image_size);
// Write a PNG for debugging
int write_png(const char *path);
void dump_params();
-// Shared memory utils
- static int filefork_size();
-
- void to_filefork(unsigned char *buffer);
-
- void from_filefork(unsigned char *buffer);
-
private:
// 3D scene graphs
BC_Hash *params;
};
+// Create a frame with the png image
+class VFramePng : public VFrame {
+// Read a PNG into the frame with alpha
+ int read_png(const unsigned char *data, long image_size, double xscale, double yscale);
+public:
+ VFramePng(unsigned char *png_data, double scale=0);
+ VFramePng(unsigned char *png_data, long image_size, double xs=0, double ys=0);
+ ~VFramePng();
+};
#endif
#define VFRAME_INC
class VFrame;
+class VFramePng;
class VFrameScene;
-
+class PngReadFunction;
#endif
invertvideo := video_tools
linearblur := video_tools
loopvideo := video_tools
-lof := video_tools
motion2 := video_tools
motionblur := video_tools
motion := video_tools
+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include "bcsignals.h"
-#include "clip.h"
-#include "cwindowgui.h"
-#include "4k.h"
-#include "edl.h"
-#include "edlsession.h"
-#include "mainmenu.h"
-#include "mainsession.h"
-#include "mbuttons.h"
-#include "meterpanel.h"
-#include "mwindow.h"
-#include "mwindowgui.h"
-#include "new.h"
-#include "patchbay.h"
-#include "preferencesthread.h"
-#include "recordgui.h"
-#include "recordmonitor.h"
-#include "setformat.h"
-#include "statusbar.h"
-#include "timebar.h"
-#include "trackcanvas.h"
-#include "vframe.h"
-#include "vwindowgui.h"
-
-
-
-
-PluginClient* new_plugin(PluginServer *server)
-{
- return new FourKMain(server);
-}
-
-
-
-
-
-
-
-FourKMain::FourKMain(PluginServer *server)
- : PluginTClient(server)
-{
-}
-
-FourKMain::~FourKMain()
-{
-}
-
-const char* FourKMain::plugin_title()
-{
- return _("4K");
-}
-
-Theme* FourKMain::new_theme()
-{
- theme = new FourK;
- extern unsigned char _binary_4k_data_start[];
- theme->set_data(_binary_4k_data_start);
- return theme;
-}
-
-
-
-
-
-
-
-
-FourK::FourK()
- : Theme()
-{
-}
-
-FourK::~FourK()
-{
-}
-
-void FourK::initialize()
-{
- BC_Resources *resources = BC_WindowBase::get_resources();
-
- resources->small_font_xft = N_("Sans-13");
- resources->medium_font_xft = N_("Sans-17");
- resources->large_font_xft = N_("Sans-17:style=bold");
-
- resources->text_default = 0xbfbfbf;
- resources->text_background = 0x373737;
- resources->text_border1 = 0x202020;
- resources->text_border2 = 0x373737;
- resources->text_border3 = 0x373737;
- resources->text_border4 = 0x969696;
- resources->text_inactive_highlight = 0x707070;
-
- resources->bg_color = 0x484848;
- resources->border_light2 = resources->bg_color;
- resources->border_shadow2 = resources->bg_color;
- resources->default_text_color = 0xbfbfbf;
- resources->menu_title_text = 0xbfbfbf;
- resources->popup_title_text = 0xbfbfbf;
- resources->menu_item_text = 0xbfbfbf;
- resources->menu_highlighted_fontcolor = WHITE;
- resources->generic_button_margin = 30;
- resources->pot_needle_color = resources->text_default;
- resources->pot_offset = 1;
- resources->progress_text = resources->text_default;
- resources->meter_font_color = resources->default_text_color;
-
- resources->menu_light = 0xababab;
- resources->menu_highlighted = 0x6f6f6f;
- resources->menu_down = 0x4b4b4b;
- resources->menu_up = 0x4b4b4b;
- resources->menu_shadow = 0x202020;
- resources->popupmenu_margin = 15;
- resources->popupmenu_triangle_margin = 15;
-
- resources->listbox_title_color = 0xbfbfbf;
-
- resources->listbox_title_margin = 20;
- resources->listbox_title_hotspot = 20;
- resources->listbox_border1 = 0x1a1a1a;
- resources->listbox_border2 = 0x373737;
- resources->listbox_border3 = 0x373737;
- resources->listbox_border4 = 0x646464;
- resources->listbox_highlighted = 0x505050;
- resources->listbox_inactive = 0x373737;
- resources->listbox_bg = 0;
- resources->listbox_text = 0xbfbfbf;
-
- resources->filebox_margin = 130;
- resources->file_color = 0xbfbfbf;
- resources->directory_color = 0xa0a0ff;
-
-
- new_toggle("loadmode_new.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_new");
- new_toggle("loadmode_none.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_none");
- new_toggle("loadmode_newcat.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_newcat");
- new_toggle("loadmode_cat.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_cat");
- new_toggle("loadmode_newtracks.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_newtracks");
- new_toggle("loadmode_paste.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_paste");
- new_toggle("loadmode_resource.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_resource");
- new_toggle("loadmode_nested.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_nested");
-
-
-
- resources->filebox_icons_images = new_button("icons.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_text_images = new_button("text.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_newfolder_images = new_button("folder.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_rename_images = new_button("rename.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_updir_images = new_button("updir.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_delete_images = new_button("delete.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_reload_images = new_button("reload.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
-
- resources->filebox_descend_images = new_button("openfolder.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- resources->usethis_button_images =
- resources->ok_images = new_button("ok.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- new_button("ok.png",
- "new_bigbutton_up.png",
- "new_bigbutton_hi.png",
- "new_bigbutton_dn.png",
- "new_ok_images");
-
- resources->cancel_images = new_button("cancel.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- new_button("cancel.png",
- "new_bigbutton_up.png",
- "new_bigbutton_hi.png",
- "new_bigbutton_dn.png",
- "new_cancel_images");
-
- resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
- "0.png",
- "1.png",
- "2.png",
- "3.png",
- "4.png",
- "5.png",
- "6.png",
- "7.png",
- "8.png",
- "9.png",
- "colon.png",
- "period.png",
- "a.png",
- "b.png",
- "c.png",
- "d.png",
- "e.png",
- "f.png",
- "space.png",
- "dash.png");
-
- resources->bar_data = new_image("bar", "bar.png");
- resources->check = new_image("check", "check.png");
-
- resources->min_menu_w = 96;
- resources->menu_popup_bg = new_image("menu_popup_bg.png");
- resources->menu_item_bg = new_image_set(3,
- "menuitem_up.png",
- "menuitem_hi.png",
- "menuitem_dn.png");
- resources->menu_bar_bg = new_image("menubar_bg.png");
- resources->menu_title_bg = new_image_set(3,
- "menubar_up.png",
- "menubar_hi.png",
- "menubar_dn.png");
-
-
- resources->popupmenu_images = 0;
-// new_image_set(3,
-// "menupopup_up.png",
-// "menupopup_hi.png",
-// "menupopup_dn.png");
-
- resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
- "text_highlight.png");
-
- resources->generic_button_images = new_image_set(3,
- "generic_up.png",
- "generic_hi.png",
- "generic_dn.png");
- resources->horizontal_slider_data = new_image_set(6,
- "hslider_fg_up.png",
- "hslider_fg_hi.png",
- "hslider_fg_dn.png",
- "hslider_bg_up.png",
- "hslider_bg_hi.png",
- "hslider_bg_dn.png");
- resources->progress_images = new_image_set(2,
- "progress_bg.png",
- "progress_hi.png");
- resources->tumble_data = new_image_set(4,
- "tumble_up.png",
- "tumble_hi.png",
- "tumble_bottom.png",
- "tumble_top.png");
- resources->listbox_button = new_button4("listbox_button.png",
- "editpanel_up.png",
- "editpanel_hi.png",
- "editpanel_dn.png",
- "editpanel_hi.png");
- resources->listbox_column = new_image_set(3,
- "column_up.png",
- "column_hi.png",
- "column_dn.png");
- resources->listbox_up = new_image("listbox_up.png");
- resources->listbox_dn = new_image("listbox_dn.png");
- resources->pan_data = new_image_set(7,
- "pan_up.png",
- "pan_hi.png",
- "pan_popup.png",
- "pan_channel.png",
- "pan_stick.png",
- "pan_channel_small.png",
- "pan_stick_small.png");
- resources->pan_text_color = WHITE;
-
- resources->pot_images = new_image_set(3,
- "pot_up.png",
- "pot_hi.png",
- "pot_dn.png");
-
- resources->checkbox_images = new_image_set(5,
- "checkbox_up.png",
- "checkbox_hi.png",
- "checkbox_checked.png",
- "checkbox_dn.png",
- "checkbox_checkedhi.png");
-
- resources->radial_images = new_image_set(5,
- "radial_up.png",
- "radial_hi.png",
- "radial_checked.png",
- "radial_dn.png",
- "radial_checkedhi.png");
-
- resources->xmeter_images = new_image_set(7,
- "xmeter_normal.png",
- "xmeter_green.png",
- "xmeter_red.png",
- "xmeter_yellow.png",
- "xmeter_white.png",
- "xmeter_over.png",
- "downmix51_2.png");
- resources->ymeter_images = new_image_set(7,
- "ymeter_normal.png",
- "ymeter_green.png",
- "ymeter_red.png",
- "ymeter_yellow.png",
- "ymeter_white.png",
- "ymeter_over.png",
- "downmix51_2.png");
-
- resources->hscroll_data = new_image_set(10,
- "hscroll_handle_up.png",
- "hscroll_handle_hi.png",
- "hscroll_handle_dn.png",
- "hscroll_handle_bg.png",
- "hscroll_left_up.png",
- "hscroll_left_hi.png",
- "hscroll_left_dn.png",
- "hscroll_right_up.png",
- "hscroll_right_hi.png",
- "hscroll_right_dn.png");
-
- resources->vscroll_data = new_image_set(10,
- "vscroll_handle_up.png",
- "vscroll_handle_hi.png",
- "vscroll_handle_dn.png",
- "vscroll_handle_bg.png",
- "vscroll_left_up.png",
- "vscroll_left_hi.png",
- "vscroll_left_dn.png",
- "vscroll_right_up.png",
- "vscroll_right_hi.png",
- "vscroll_right_dn.png");
- resources->scroll_minhandle = 20;
-
-
- new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
- new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
- new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
- new_button("swap_extents.png",
- "editpanel_up.png",
- "editpanel_hi.png",
- "editpanel_dn.png",
- "swap_extents");
-
-
-// Record windows
-
-
- preferences_category_overlap = 0;
- preferencescategory_x = 0;
- preferencescategory_y = 5;
- preferencestitle_x = 5;
- preferencestitle_y = 10;
- preferencesoptions_x = 5;
- preferencesoptions_y = 0;
-
-// MWindow
- message_normal = resources->text_default;
- audio_color = GREEN;
- mtransport_margin = 16;
- toggle_margin = 16;
-
- new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
- new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
- new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
-
- new_image("mbutton_bg", "mbutton_bg.png");
- new_image("timebar_bg", "timebar_bg_flat.png");
- new_image("timebar_brender", "timebar_brender.png");
- new_image("clock_bg", "mclock_flat.png");
- new_image("patchbay_bg", "patchbay_bg.png");
- new_image("statusbar", "statusbar.png");
-// new_image("mscroll_filler", "mscroll_filler.png");
-
- new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
- new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
- new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
- new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
-
-// CWindow
- new_image("cpanel_bg", "cpanel_bg.png");
- new_image("cbuttons_left", "cbuttons_left.png");
- new_image("cbuttons_right", "cbuttons_right.png");
- new_image("cmeter_bg", "cmeter_bg.png");
-
-// VWindow
- new_image("vbuttons_left", "vbuttons_left.png");
- new_image("vclock", "vclock.png");
-
- new_image("preferences_bg", "preferences_bg.png");
-
-
- new_image("new_bg", "new_bg.png");
- new_image("setformat_bg", "setformat_bg.png");
-
-
- timebar_view_data = new_image("timebar_view.png");
-
- setformat_w = get_image("setformat_bg")->get_w();
- setformat_h = get_image("setformat_bg")->get_h();
- setformat_x1 = 15;
- setformat_x2 = 100;
-
- setformat_x3 = 315;
- setformat_x4 = 415;
- setformat_y1 = 20;
- setformat_y2 = 85;
- setformat_y3 = 125;
- setformat_margin = 30;
- setformat_channels_x = 25;
- setformat_channels_y = 242;
- setformat_channels_w = 250;
- setformat_channels_h = 250;
-
- loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
- browse_pad = 20;
-
-
- new_toggle("playpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "playpatch_data");
-
- new_toggle("recordpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "recordpatch_data");
-
- new_toggle("gangpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "gangpatch_data");
-
- new_toggle("drawpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "drawpatch_data");
-
-
- new_image_set("mutepatch_data",
- 5,
- "mutepatch_up.png",
- "mutepatch_hi.png",
- "mutepatch_checked.png",
- "mutepatch_dn.png",
- "mutepatch_checkedhi.png");
-
- new_image_set("expandpatch_data",
- 5,
- "expandpatch_up.png",
- "expandpatch_hi.png",
- "expandpatch_checked.png",
- "expandpatch_dn.png",
- "expandpatch_checkedhi.png");
-
- build_bg_data();
- build_overlays();
-
-
-
-
- out_point = new_image_set(5,
- "out_up.png",
- "out_hi.png",
- "out_checked.png",
- "out_dn.png",
- "out_checkedhi.png");
- in_point = new_image_set(5,
- "in_up.png",
- "in_hi.png",
- "in_checked.png",
- "in_dn.png",
- "in_checkedhi.png");
-
- label_toggle = new_image_set(5,
- "labeltoggle_up.png",
- "labeltoggle_uphi.png",
- "label_checked.png",
- "labeltoggle_dn.png",
- "label_checkedhi.png");
-
- new_image_set("histogram_carrot",
- 5,
- "histogram_carrot_up.png",
- "histogram_carrot_hi.png",
- "histogram_carrot_checked.png",
- "histogram_carrot_dn.png",
- "histogram_carrot_checkedhi.png");
-
-
- statusbar_cancel_data = new_image_set(3,
- "statusbar_cancel_up.png",
- "statusbar_cancel_hi.png",
- "statusbar_cancel_dn.png");
-
-
- VFrame *editpanel_up = new_image("editpanel_up.png");
- VFrame *editpanel_hi = new_image("editpanel_hi.png");
- VFrame *editpanel_dn = new_image("editpanel_dn.png");
- VFrame *editpanel_checked = new_image("editpanel_checked.png");
- VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
-
- new_image("panel_divider", "panel_divider.png");
- new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
- new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
- new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
-
- new_toggle("histogram.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "histogram_toggle");
- new_toggle("histogram_rgb.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "histogram_rgb_toggle");
- new_toggle("waveform.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "waveform_toggle");
- new_toggle("waveform_rgb.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "waveform_rgb_toggle");
- new_toggle("scope.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "scope_toggle");
-
- new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
- new_button("histogram.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram");
-
-
- new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
- new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
- new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
- new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
- new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
- new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
- new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
- new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
- new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
- new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
- new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
- new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
- new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
- new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
- new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
- new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
- new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
- new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
- new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
- new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
- new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
- new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
- new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
-
-
- VFrame *transport_up = new_image("transportup.png");
- VFrame *transport_hi = new_image("transporthi.png");
- VFrame *transport_dn = new_image("transportdn.png");
-
- new_button("end.png", transport_up, transport_hi, transport_dn, "end");
- new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
- new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
- new_button("play.png", transport_up, transport_hi, transport_dn, "play");
- new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
- new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
- new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
- new_button("record.png", transport_up, transport_hi, transport_dn, "record");
- new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
- new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
- new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
- new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
- new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
-
-
-
-// CWindow icons
- new_image("cwindow_inactive", "cwindow_inactive.png");
- new_image("cwindow_active", "cwindow_active.png");
-
-
-
- new_image_set("category_button",
- 3,
- "preferencesbutton_dn.png",
- "preferencesbutton_dnhi.png",
- "preferencesbutton_dnlo.png");
-
- new_image_set("category_button_checked",
- 3,
- "preferencesbutton_up.png",
- "preferencesbutton_uphi.png",
- "preferencesbutton_dnlo.png");
-
-
-
-
-
- new_image_set("color3way_point",
- 3,
- "color3way_up.png",
- "color3way_hi.png",
- "color3way_dn.png");
-
- new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
- new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
- new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
- new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
- new_toggle("blank30x30.png",
- new_image("locklabels_locked.png"),
- new_image("locklabels_lockedhi.png"),
- new_image("locklabels_unlocked.png"),
- new_image("locklabels_dn.png"), // can't have seperate down for each!!??
- new_image("locklabels_unlockedhi.png"),
- "locklabels");
-
- VFrame *cpanel_up = new_image("cpanel_up.png");
- VFrame *cpanel_hi = new_image("cpanel_hi.png");
- VFrame *cpanel_dn = new_image("cpanel_dn.png");
- VFrame *cpanel_checked = new_image("cpanel_checked.png");
- VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
-
-
- new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
- new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
- new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
- new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
- new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
- new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
- new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
- new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
- new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
- new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
-
- // toggle for tangent mode (compositor/tool window)
- new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
- new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
-
-
- flush_images();
-
- title_font = MEDIUMFONT_3D;
- title_color = 0xbfbfbf;
- recordgui_fixed_color = YELLOW;
- recordgui_variable_color = RED;
-
- channel_position_color = MEYELLOW;
- resources->meter_title_w = 25;
-
- // (asset) edit info text color
- edit_font_color = YELLOW;
-}
-
-#define VWINDOW_METER_MARGIN 5
-
-
-
-
-
-
-
-
-
-
-
-void FourK::build_bg_data()
-{
-// Audio settings
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
-
-// Track bitmaps
- new_image("resource1024", "resource1024.png");
- new_image("resource512", "resource512.png");
- new_image("resource256", "resource256.png");
- new_image("resource128", "resource128.png");
- new_image("resource64", "resource64.png");
- new_image("resource32", "resource32.png");
- new_image("plugin_bg_data", "plugin_bg.png");
- new_image("title_bg_data", "title_bg.png");
- new_image("vtimebar_bg_data", "vwindow_timebar.png");
-}
-
-
-
-void FourK::build_overlays()
-{
- keyframe_data = new VFrame(get_image_data("keyframe.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
-}
-
-
-
-
-
-
-
-
-
-void FourK::draw_rwindow_bg(RecordGUI *gui)
-{
-// int y;
-// int margin = 50;
-// int margin2 = 80;
-// gui->draw_9segment(recordgui_batch_x - margin,
-// 0,
-// mwindow->session->rwindow_w - recordgui_status_x + margin,
-// recordgui_buttons_y,
-// rgui_batch);
-// gui->draw_3segmenth(recordgui_options_x - margin2,
-// recordgui_buttons_y - 5,
-// mwindow->session->rwindow_w - recordgui_options_x + margin2,
-// rgui_controls);
-// y = recordgui_buttons_y - 5 + rgui_controls->get_h();
-// gui->draw_9segment(0,
-// y,
-// mwindow->session->rwindow_w,
-// mwindow->session->rwindow_h - y,
-// rgui_list);
-}
-
-void FourK::draw_rmonitor_bg(RecordMonitorGUI *gui)
-{
-// int margin = 45;
-// int panel_w = 300;
-// int x = rmonitor_meter_x - margin;
-// int w = mwindow->session->rmonitor_w - x;
-// if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
-// gui->clear_box(0,
-// 0,
-// mwindow->session->rmonitor_w,
-// mwindow->session->rmonitor_h);
-// gui->draw_9segment(x,
-// 0,
-// w,
-// mwindow->session->rmonitor_h,
-// rmonitor_meters);
-}
-
-
-
-
-
-
-void FourK::draw_mwindow_bg(MWindowGUI *gui)
-{
-// Button bar
- gui->draw_3segmenth(mbuttons_x,
- mbuttons_y - 1,
- mwindow->session->mwindow_w,
- get_image("mbutton_bg"));
-
- int pdw = get_image("panel_divider")->get_w();
- int x = mbuttons_x;
- x += 9 * get_image("play")->get_w();
- x += mtransport_margin; // the control buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
- x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
- x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
-
-// Clock
- gui->draw_3segmenth(0,
- mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
- get_image("patchbay_bg")->get_w(),
- get_image("clock_bg"));
-
-// Patchbay
-//printf("FourK::draw_mwindow_bg %d %d %d\n", __LINE__,
-//mclock_h,
-//mtimebar_h);
- gui->draw_3segmentv(patchbay_x,
- patchbay_y,
- patchbay_h,
- get_image("patchbay_bg"));
-
-// Track canvas
- gui->set_color(BLACK);
- gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
- mcanvas_y + mtimebar_h,
- mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
- mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
-
-// Timebar
- gui->draw_3segmenth(mtimebar_x,
- mtimebar_y,
- mtimebar_w,
- get_image("timebar_bg"));
-
-// Zoombar
- gui->set_color(0x373737);
- gui->draw_box(mzoom_x,
- mzoom_y,
- mwindow->session->mwindow_w,
- 25);
-
-// Scrollbar filler
-// gui->draw_vframe(get_image("mscroll_filler"),
-// mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
-// mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
-
-// Status
- gui->draw_3segmenth(mzoom_x,
- mzoom_y,
- mzoom_w,
- get_image("statusbar"));
-
-
-}
-
-void FourK::draw_cwindow_bg(CWindowGUI *gui)
-{
- gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
-
- gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
-
- if(mwindow->edl->session->cwindow_meter)
- {
- gui->draw_3segmenth(cstatus_x,
- ccomposite_h,
- cmeter_x - widget_border - cstatus_x,
- get_image("cbuttons_right"));
- gui->draw_9segment(cmeter_x - widget_border,
- 0,
- mwindow->session->cwindow_w - cmeter_x + widget_border,
- mwindow->session->cwindow_h,
- get_image("cmeter_bg"));
- }
- else
- {
- gui->draw_3segmenth(cstatus_x,
- ccomposite_h,
- cmeter_x - widget_border - cstatus_x + 100,
- get_image("cbuttons_right"));
- }
-}
-
-void FourK::draw_vwindow_bg(VWindowGUI *gui)
-{
- gui->draw_3segmenth(0,
- vcanvas_h,
- vdivision_x,
- get_image("vbuttons_left"));
- if(mwindow->edl->session->vwindow_meter)
- {
- gui->draw_3segmenth(vdivision_x,
- vcanvas_h,
- vmeter_x - widget_border - vdivision_x,
- get_image("cbuttons_right"));
- gui->draw_9segment(vmeter_x - widget_border,
- 0,
- mwindow->session->vwindow_w - vmeter_x + widget_border,
- mwindow->session->vwindow_h,
- get_image("cmeter_bg"));
- }
- else
- {
- gui->draw_3segmenth(vdivision_x,
- vcanvas_h,
- vmeter_x - widget_border - vdivision_x + 100,
- get_image("cbuttons_right"));
- }
-
-// Clock border
- gui->draw_3segmenth(vtime_x - 20,
- vtime_y - 1,
- vtime_w + 40,
- get_image("vclock"));
-}
-
-
-void FourK::draw_preferences_bg(PreferencesWindow *gui)
-{
- gui->draw_vframe(get_image("preferences_bg"), 0, 0);
-}
-
-void FourK::draw_new_bg(NewWindow *gui)
-{
- gui->draw_vframe(get_image("new_bg"), 0, 0);
-}
-
-void FourK::draw_setformat_bg(SetFormatWindow *gui)
-{
- gui->draw_vframe(get_image("setformat_bg"), 0, 0);
-}
-
-
-
-
-
-
-
+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#ifndef DEFAULTTHEME_H
-#define DEFAULTTHEME_H
-
-#include "new.inc"
-#include "plugintclient.h"
-#include "preferencesthread.inc"
-#include "statusbar.inc"
-#include "theme.h"
-#include "timebar.inc"
-
-class FourK : public Theme
-{
-public:
- FourK();
- ~FourK();
-
- void initialize();
- void draw_mwindow_bg(MWindowGUI *gui);
-
- void draw_rwindow_bg(RecordGUI *gui);
- void draw_rmonitor_bg(RecordMonitorGUI *gui);
- void draw_cwindow_bg(CWindowGUI *gui);
- void draw_vwindow_bg(VWindowGUI *gui);
- void draw_preferences_bg(PreferencesWindow *gui);
-
-
- void draw_new_bg(NewWindow *gui);
- void draw_setformat_bg(SetFormatWindow *gui);
-
-private:
- void build_bg_data();
- void build_patches();
- void build_overlays();
-
-
-
-
-
-};
-
-
-
-class FourKMain : public PluginTClient
-{
-public:
- FourKMain(PluginServer *server);
- ~FourKMain();
-
- const char* plugin_title();
- Theme* new_theme();
-
- FourK *theme;
-};
-
-
-#endif
+++ /dev/null
-include ../../global_config
-
-PLUGIN = 4k
-OBJS = $(OBJDIR)/4k.o
-OUTPUT_THEME = $(OUTPUT)
-
-AVC_DIR := $(shell cd ../../thirdparty/libavc*; pwd)
-CFLAGS += -I$(AVC_DIR)
-
-include ../../plugin_config
-
-$(OBJDIR)/4k.o: 4k.C
-
+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include "bcsignals.h"
-#include "clip.h"
-#include "cwindowgui.h"
-#include "5k.h"
-#include "edl.h"
-#include "edlsession.h"
-#include "mainmenu.h"
-#include "mainsession.h"
-#include "mbuttons.h"
-#include "meterpanel.h"
-#include "mwindow.h"
-#include "mwindowgui.h"
-#include "new.h"
-#include "patchbay.h"
-#include "preferencesthread.h"
-#include "recordgui.h"
-#include "recordmonitor.h"
-#include "setformat.h"
-#include "statusbar.h"
-#include "timebar.h"
-#include "trackcanvas.h"
-#include "vframe.h"
-#include "vwindowgui.h"
-
-
-
-
-PluginClient* new_plugin(PluginServer *server)
-{
- return new FiveKMain(server);
-}
-
-
-
-
-
-
-
-FiveKMain::FiveKMain(PluginServer *server)
- : PluginTClient(server)
-{
-}
-
-FiveKMain::~FiveKMain()
-{
-}
-
-const char* FiveKMain::plugin_title()
-{
- return _("5k");
-}
-
-Theme* FiveKMain::new_theme()
-{
- theme = new FiveK;
- extern unsigned char _binary_5k_data_start[];
- theme->set_data(_binary_5k_data_start);
- return theme;
-}
-
-
-
-
-
-
-
-
-FiveK::FiveK()
- : Theme()
-{
-}
-
-FiveK::~FiveK()
-{
-}
-
-void FiveK::initialize()
-{
- BC_Resources *resources = BC_WindowBase::get_resources();
-
-
- resources->small_font_xft = N_("Sans-18");
- resources->medium_font_xft = N_("Sans-22");
- resources->large_font_xft = N_("Sans-22:style=bold");
-
-
-
-
- resources->text_default = 0xbfbfbf;
- resources->text_background = 0x373737;
- resources->text_border1 = 0x202020;
- resources->text_border2 = 0x373737;
- resources->text_border3 = 0x373737;
- resources->text_border4 = 0x969696;
- resources->text_inactive_highlight = 0x707070;
-
- resources->bg_color = 0x484848;
- resources->border_light2 = resources->bg_color;
- resources->border_shadow2 = resources->bg_color;
- resources->default_text_color = 0xbfbfbf;
- resources->menu_title_text = 0xbfbfbf;
- resources->popup_title_text = 0xbfbfbf;
- resources->menu_item_text = 0xbfbfbf;
- resources->menu_highlighted_fontcolor = WHITE;
- resources->generic_button_margin = 30;
- resources->pot_needle_color = resources->text_default;
- resources->pot_offset = 1;
- resources->progress_text = resources->text_default;
- resources->meter_font_color = resources->default_text_color;
-
- resources->menu_light = 0xababab;
- resources->menu_highlighted = 0x6f6f6f;
- resources->menu_down = 0x4b4b4b;
- resources->menu_up = 0x4b4b4b;
- resources->menu_shadow = 0x202020;
- resources->popupmenu_margin = 15;
- resources->popupmenu_triangle_margin = 15;
-
- resources->listbox_title_color = 0xbfbfbf;
-
- resources->listbox_title_margin = 20;
- resources->listbox_title_hotspot = 20;
- resources->listbox_border1 = 0x1a1a1a;
- resources->listbox_border2 = 0x373737;
- resources->listbox_border3 = 0x373737;
- resources->listbox_border4 = 0x646464;
- resources->listbox_highlighted = 0x505050;
- resources->listbox_inactive = 0x373737;
- resources->listbox_bg = 0;
- resources->listbox_text = 0xbfbfbf;
-
- resources->filebox_margin = 130;
- resources->file_color = 0xbfbfbf;
- resources->directory_color = 0xa0a0ff;
-
-
- new_toggle("loadmode_new.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_new");
- new_toggle("loadmode_none.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_none");
- new_toggle("loadmode_newcat.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_newcat");
- new_toggle("loadmode_cat.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_cat");
- new_toggle("loadmode_newtracks.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_newtracks");
- new_toggle("loadmode_paste.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_paste");
- new_toggle("loadmode_resource.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_resource");
- new_toggle("loadmode_nested.png",
- "loadmode_up.png",
- "loadmode_hi.png",
- "loadmode_checked.png",
- "loadmode_dn.png",
- "loadmode_checkedhi.png",
- "loadmode_nested");
-
-
-
- resources->filebox_icons_images = new_button("icons.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_text_images = new_button("text.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_newfolder_images = new_button("folder.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_rename_images = new_button("rename.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_updir_images = new_button("updir.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_delete_images = new_button("delete.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
- resources->filebox_reload_images = new_button("reload.png",
- "fileboxbutton_up.png",
- "fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
-
-
- resources->filebox_descend_images = new_button("openfolder.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- resources->usethis_button_images =
- resources->ok_images = new_button("ok.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- new_button("ok.png",
- "new_bigbutton_up.png",
- "new_bigbutton_hi.png",
- "new_bigbutton_dn.png",
- "new_ok_images");
-
- resources->cancel_images = new_button("cancel.png",
- "filebox_bigbutton_up.png",
- "filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
-
- new_button("cancel.png",
- "new_bigbutton_up.png",
- "new_bigbutton_hi.png",
- "new_bigbutton_dn.png",
- "new_cancel_images");
-
- resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
- "0.png",
- "1.png",
- "2.png",
- "3.png",
- "4.png",
- "5.png",
- "6.png",
- "7.png",
- "8.png",
- "9.png",
- "colon.png",
- "period.png",
- "a.png",
- "b.png",
- "c.png",
- "d.png",
- "e.png",
- "f.png",
- "space.png",
- "dash.png");
-
- resources->bar_data = new_image("bar", "bar.png");
- resources->check = new_image("check", "check.png");
-
- resources->min_menu_w = 96;
- resources->menu_popup_bg = new_image("menu_popup_bg.png");
- resources->menu_item_bg = new_image_set(3,
- "menuitem_up.png",
- "menuitem_hi.png",
- "menuitem_dn.png");
- resources->menu_bar_bg = new_image("menubar_bg.png");
- resources->menu_title_bg = new_image_set(3,
- "menubar_up.png",
- "menubar_hi.png",
- "menubar_dn.png");
-
-
- resources->popupmenu_images = 0;
-// new_image_set(3,
-// "menupopup_up.png",
-// "menupopup_hi.png",
-// "menupopup_dn.png");
-
- resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
- "text_highlight.png");
-
- resources->generic_button_images = new_image_set(3,
- "generic_up.png",
- "generic_hi.png",
- "generic_dn.png");
- resources->horizontal_slider_data = new_image_set(6,
- "hslider_fg_up.png",
- "hslider_fg_hi.png",
- "hslider_fg_dn.png",
- "hslider_bg_up.png",
- "hslider_bg_hi.png",
- "hslider_bg_dn.png");
- resources->progress_images = new_image_set(2,
- "progress_bg.png",
- "progress_hi.png");
- resources->tumble_data = new_image_set(4,
- "tumble_up.png",
- "tumble_hi.png",
- "tumble_bottom.png",
- "tumble_top.png");
- resources->listbox_button = new_button4("listbox_button.png",
- "editpanel_up.png",
- "editpanel_hi.png",
- "editpanel_dn.png",
- "editpanel_hi.png");
- resources->listbox_column = new_image_set(3,
- "column_up.png",
- "column_hi.png",
- "column_dn.png");
- resources->listbox_up = new_image("listbox_up.png");
- resources->listbox_dn = new_image("listbox_dn.png");
- resources->pan_data = new_image_set(7,
- "pan_up.png",
- "pan_hi.png",
- "pan_popup.png",
- "pan_channel.png",
- "pan_stick.png",
- "pan_channel_small.png",
- "pan_stick_small.png");
- resources->pan_text_color = WHITE;
-
- resources->pot_images = new_image_set(3,
- "pot_up.png",
- "pot_hi.png",
- "pot_dn.png");
-
- resources->checkbox_images = new_image_set(5,
- "checkbox_up.png",
- "checkbox_hi.png",
- "checkbox_checked.png",
- "checkbox_dn.png",
- "checkbox_checkedhi.png");
-
- resources->radial_images = new_image_set(5,
- "radial_up.png",
- "radial_hi.png",
- "radial_checked.png",
- "radial_dn.png",
- "radial_checkedhi.png");
-
- resources->xmeter_images = new_image_set(7,
- "xmeter_normal.png",
- "xmeter_green.png",
- "xmeter_red.png",
- "xmeter_yellow.png",
- "xmeter_white.png",
- "xmeter_over.png",
- "downmix51_2.png");
- resources->ymeter_images = new_image_set(7,
- "ymeter_normal.png",
- "ymeter_green.png",
- "ymeter_red.png",
- "ymeter_yellow.png",
- "ymeter_white.png",
- "ymeter_over.png",
- "downmix51_2.png");
-
- resources->hscroll_data = new_image_set(10,
- "hscroll_handle_up.png",
- "hscroll_handle_hi.png",
- "hscroll_handle_dn.png",
- "hscroll_handle_bg.png",
- "hscroll_left_up.png",
- "hscroll_left_hi.png",
- "hscroll_left_dn.png",
- "hscroll_right_up.png",
- "hscroll_right_hi.png",
- "hscroll_right_dn.png");
-
- resources->vscroll_data = new_image_set(10,
- "vscroll_handle_up.png",
- "vscroll_handle_hi.png",
- "vscroll_handle_dn.png",
- "vscroll_handle_bg.png",
- "vscroll_left_up.png",
- "vscroll_left_hi.png",
- "vscroll_left_dn.png",
- "vscroll_right_up.png",
- "vscroll_right_hi.png",
- "vscroll_right_dn.png");
- resources->scroll_minhandle = 20;
-
-
- new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
- new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
- new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
- new_button("swap_extents.png",
- "editpanel_up.png",
- "editpanel_hi.png",
- "editpanel_dn.png",
- "swap_extents");
-
-
-// Record windows
-
-
- preferences_category_overlap = 0;
- preferencescategory_x = 0;
- preferencescategory_y = 5;
- preferencestitle_x = 5;
- preferencestitle_y = 10;
- preferencesoptions_x = 5;
- preferencesoptions_y = 0;
-
-// MWindow
- message_normal = resources->text_default;
- audio_color = GREEN;
- mtransport_margin = 16;
- toggle_margin = 16;
-
- new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
- new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
- new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
-
- new_image("mbutton_bg", "mbutton_bg.png");
- new_image("timebar_bg", "timebar_bg_flat.png");
- new_image("timebar_brender", "timebar_brender.png");
- new_image("clock_bg", "mclock_flat.png");
- new_image("patchbay_bg", "patchbay_bg.png");
- new_image("statusbar", "statusbar.png");
-// new_image("mscroll_filler", "mscroll_filler.png");
-
- new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
- new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
- new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
- new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
-
-// CWindow
- new_image("cpanel_bg", "cpanel_bg.png");
- new_image("cbuttons_left", "cbuttons_left.png");
- new_image("cbuttons_right", "cbuttons_right.png");
- new_image("cmeter_bg", "cmeter_bg.png");
-
-// VWindow
- new_image("vbuttons_left", "vbuttons_left.png");
- new_image("vclock", "vclock.png");
-
- new_image("preferences_bg", "preferences_bg.png");
-
-
- new_image("new_bg", "new_bg.png");
- new_image("setformat_bg", "setformat_bg.png");
-
-
- timebar_view_data = new_image("timebar_view.png");
-
- setformat_w = get_image("setformat_bg")->get_w();
- setformat_h = get_image("setformat_bg")->get_h();
- setformat_x1 = 15;
- setformat_x2 = 100;
-
- setformat_x3 = 315;
- setformat_x4 = 415;
- setformat_y1 = 20;
- setformat_y2 = 85;
- setformat_y3 = 125;
- setformat_margin = 30;
- setformat_channels_x = 25;
- setformat_channels_y = 242;
- setformat_channels_w = 250;
- setformat_channels_h = 250;
-
- loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
- browse_pad = 20;
-
-
- new_toggle("playpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "playpatch_data");
-
- new_toggle("recordpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "recordpatch_data");
-
- new_toggle("gangpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "gangpatch_data");
-
- new_toggle("drawpatch.png",
- "patch_up.png",
- "patch_hi.png",
- "patch_checked.png",
- "patch_dn.png",
- "patch_checkedhi.png",
- "drawpatch_data");
-
-
- new_image_set("mutepatch_data",
- 5,
- "mutepatch_up.png",
- "mutepatch_hi.png",
- "mutepatch_checked.png",
- "mutepatch_dn.png",
- "mutepatch_checkedhi.png");
-
- new_image_set("expandpatch_data",
- 5,
- "expandpatch_up.png",
- "expandpatch_hi.png",
- "expandpatch_checked.png",
- "expandpatch_dn.png",
- "expandpatch_checkedhi.png");
-
- build_bg_data();
- build_overlays();
-
-
-
-
- out_point = new_image_set(5,
- "out_up.png",
- "out_hi.png",
- "out_checked.png",
- "out_dn.png",
- "out_checkedhi.png");
- in_point = new_image_set(5,
- "in_up.png",
- "in_hi.png",
- "in_checked.png",
- "in_dn.png",
- "in_checkedhi.png");
-
- label_toggle = new_image_set(5,
- "labeltoggle_up.png",
- "labeltoggle_uphi.png",
- "label_checked.png",
- "labeltoggle_dn.png",
- "label_checkedhi.png");
-
- new_image_set("histogram_carrot",
- 5,
- "histogram_carrot_up.png",
- "histogram_carrot_hi.png",
- "histogram_carrot_checked.png",
- "histogram_carrot_dn.png",
- "histogram_carrot_checkedhi.png");
-
-
- statusbar_cancel_data = new_image_set(3,
- "statusbar_cancel_up.png",
- "statusbar_cancel_hi.png",
- "statusbar_cancel_dn.png");
-
-
- VFrame *editpanel_up = new_image("editpanel_up.png");
- VFrame *editpanel_hi = new_image("editpanel_hi.png");
- VFrame *editpanel_dn = new_image("editpanel_dn.png");
- VFrame *editpanel_checked = new_image("editpanel_checked.png");
- VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
-
- new_image("panel_divider", "panel_divider.png");
- new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
- new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
- new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
-
- new_toggle("histogram.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "histogram_toggle");
- new_toggle("histogram_rgb.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "histogram_rgb_toggle");
- new_toggle("waveform.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "waveform_toggle");
- new_toggle("waveform_rgb.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "waveform_rgb_toggle");
- new_toggle("scope.png",
- editpanel_up,
- editpanel_hi,
- editpanel_checked,
- editpanel_dn,
- editpanel_checkedhi,
- "scope_toggle");
-
- new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
- new_button("histogram.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram");
-
-
- new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
- new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
- new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
- new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
- new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
- new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
- new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
- new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
- new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
- new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
- new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
- new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
- new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
- new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
- new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
- new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
- new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
- new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
- new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
- new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
- new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
- new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
- new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
-
-
- VFrame *transport_up = new_image("transportup.png");
- VFrame *transport_hi = new_image("transporthi.png");
- VFrame *transport_dn = new_image("transportdn.png");
-
- new_button("end.png", transport_up, transport_hi, transport_dn, "end");
- new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
- new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
- new_button("play.png", transport_up, transport_hi, transport_dn, "play");
- new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
- new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
- new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
- new_button("record.png", transport_up, transport_hi, transport_dn, "record");
- new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
- new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
- new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
- new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
- new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
-
-
-
-// CWindow icons
- new_image("cwindow_inactive", "cwindow_inactive.png");
- new_image("cwindow_active", "cwindow_active.png");
-
-
-
- new_image_set("category_button",
- 3,
- "preferencesbutton_dn.png",
- "preferencesbutton_dnhi.png",
- "preferencesbutton_dnlo.png");
-
- new_image_set("category_button_checked",
- 3,
- "preferencesbutton_up.png",
- "preferencesbutton_uphi.png",
- "preferencesbutton_dnlo.png");
-
-
-
-
-
- new_image_set("color3way_point",
- 3,
- "color3way_up.png",
- "color3way_hi.png",
- "color3way_dn.png");
-
- new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
- new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
- new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
- new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
- new_toggle("blank30x30.png",
- new_image("locklabels_locked.png"),
- new_image("locklabels_lockedhi.png"),
- new_image("locklabels_unlocked.png"),
- new_image("locklabels_dn.png"), // can't have seperate down for each!!??
- new_image("locklabels_unlockedhi.png"),
- "locklabels");
-
- VFrame *cpanel_up = new_image("cpanel_up.png");
- VFrame *cpanel_hi = new_image("cpanel_hi.png");
- VFrame *cpanel_dn = new_image("cpanel_dn.png");
- VFrame *cpanel_checked = new_image("cpanel_checked.png");
- VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
-
-
- new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
- new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
- new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
- new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
- new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
- new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
- new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
- new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
- new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
- new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
-
- // toggle for tangent mode (compositor/tool window)
- new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
- new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
-
-
- flush_images();
-
- title_font = MEDIUMFONT_3D;
- title_color = 0xbfbfbf;
- recordgui_fixed_color = YELLOW;
- recordgui_variable_color = RED;
-
- channel_position_color = MEYELLOW;
- resources->meter_title_w = 25;
-
- // (asset) edit info text color
- edit_font_color = YELLOW;
-}
-
-#define VWINDOW_METER_MARGIN 5
-
-
-
-
-
-
-
-
-
-
-
-void FiveK::build_bg_data()
-{
-// Audio settings
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
-
-// Track bitmaps
- new_image("resource1024", "resource1024.png");
- new_image("resource512", "resource512.png");
- new_image("resource256", "resource256.png");
- new_image("resource128", "resource128.png");
- new_image("resource64", "resource64.png");
- new_image("resource32", "resource32.png");
- new_image("plugin_bg_data", "plugin_bg.png");
- new_image("title_bg_data", "title_bg.png");
- new_image("vtimebar_bg_data", "vwindow_timebar.png");
-}
-
-
-
-void FiveK::build_overlays()
-{
- keyframe_data = new VFrame(get_image_data("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
-}
-
-
-
-
-
-
-
-
-
-void FiveK::draw_rwindow_bg(RecordGUI *gui)
-{
-// int y;
-// int margin = 50;
-// int margin2 = 80;
-// gui->draw_9segment(recordgui_batch_x - margin,
-// 0,
-// mwindow->session->rwindow_w - recordgui_status_x + margin,
-// recordgui_buttons_y,
-// rgui_batch);
-// gui->draw_3segmenth(recordgui_options_x - margin2,
-// recordgui_buttons_y - 5,
-// mwindow->session->rwindow_w - recordgui_options_x + margin2,
-// rgui_controls);
-// y = recordgui_buttons_y - 5 + rgui_controls->get_h();
-// gui->draw_9segment(0,
-// y,
-// mwindow->session->rwindow_w,
-// mwindow->session->rwindow_h - y,
-// rgui_list);
-}
-
-void FiveK::draw_rmonitor_bg(RecordMonitorGUI *gui)
-{
-// int margin = 45;
-// int panel_w = 300;
-// int x = rmonitor_meter_x - margin;
-// int w = mwindow->session->rmonitor_w - x;
-// if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
-// gui->clear_box(0,
-// 0,
-// mwindow->session->rmonitor_w,
-// mwindow->session->rmonitor_h);
-// gui->draw_9segment(x,
-// 0,
-// w,
-// mwindow->session->rmonitor_h,
-// rmonitor_meters);
-}
-
-
-
-void FiveK::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
-{
- Theme::get_mwindow_sizes(gui, w, h);
- mclock_w = get_image("clock_bg")->get_w() - 60;
-}
-
-
-void FiveK::draw_mwindow_bg(MWindowGUI *gui)
-{
-// Button bar
- gui->draw_3segmenth(mbuttons_x,
- mbuttons_y - 1,
- mwindow->session->mwindow_w,
- get_image("mbutton_bg"));
-
- int pdw = get_image("panel_divider")->get_w();
- int x = mbuttons_x;
- x += 9 * get_image("play")->get_w();
- x += mtransport_margin; // the control buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
- x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
- x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
-
- gui->draw_vframe(get_image("panel_divider"),
- x - toggle_margin / 2 - pdw / 2 + 2,
- mbuttons_y - 1);
-
-// Clock
- gui->draw_3segmenth(0,
- mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
- get_image("patchbay_bg")->get_w(),
- get_image("clock_bg"));
-
-// Patchbay
-//printf("FiveK::draw_mwindow_bg %d %d %d\n", __LINE__,
-//mclock_h,
-//mtimebar_h);
- gui->draw_3segmentv(patchbay_x,
- patchbay_y,
- patchbay_h,
- get_image("patchbay_bg"));
-
-// Track canvas
- gui->set_color(BLACK);
- gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
- mcanvas_y + mtimebar_h,
- mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
- mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
-
-// Timebar
- gui->draw_3segmenth(mtimebar_x,
- mtimebar_y,
- mtimebar_w,
- get_image("timebar_bg"));
-
-// Zoombar
- gui->set_color(0x373737);
- gui->draw_box(mzoom_x,
- mzoom_y,
- mwindow->session->mwindow_w,
- 25);
-
-// Scrollbar filler
-// gui->draw_vframe(get_image("mscroll_filler"),
-// mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
-// mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
-
-// Status
- gui->draw_3segmenth(mzoom_x,
- mzoom_y,
- mzoom_w,
- get_image("statusbar"));
-
-
-}
-
-void FiveK::draw_cwindow_bg(CWindowGUI *gui)
-{
- gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
-
- gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
-
- if(mwindow->edl->session->cwindow_meter)
- {
- gui->draw_3segmenth(cstatus_x,
- ccomposite_h,
- cmeter_x - widget_border - cstatus_x,
- get_image("cbuttons_right"));
- gui->draw_9segment(cmeter_x - widget_border,
- 0,
- mwindow->session->cwindow_w - cmeter_x + widget_border,
- mwindow->session->cwindow_h,
- get_image("cmeter_bg"));
- }
- else
- {
- gui->draw_3segmenth(cstatus_x,
- ccomposite_h,
- cmeter_x - widget_border - cstatus_x + 100,
- get_image("cbuttons_right"));
- }
-}
-
-void FiveK::draw_vwindow_bg(VWindowGUI *gui)
-{
- gui->draw_3segmenth(0,
- vcanvas_h,
- vdivision_x,
- get_image("vbuttons_left"));
- if(mwindow->edl->session->vwindow_meter)
- {
- gui->draw_3segmenth(vdivision_x,
- vcanvas_h,
- vmeter_x - widget_border - vdivision_x,
- get_image("cbuttons_right"));
- gui->draw_9segment(vmeter_x - widget_border,
- 0,
- mwindow->session->vwindow_w - vmeter_x + widget_border,
- mwindow->session->vwindow_h,
- get_image("cmeter_bg"));
- }
- else
- {
- gui->draw_3segmenth(vdivision_x,
- vcanvas_h,
- vmeter_x - widget_border - vdivision_x + 100,
- get_image("cbuttons_right"));
- }
-
-// Clock border
- gui->draw_3segmenth(vtime_x - 20,
- vtime_y - 1,
- vtime_w + 40,
- get_image("vclock"));
-}
-
-
-void FiveK::draw_preferences_bg(PreferencesWindow *gui)
-{
- gui->draw_vframe(get_image("preferences_bg"), 0, 0);
-}
-
-void FiveK::draw_new_bg(NewWindow *gui)
-{
- gui->draw_vframe(get_image("new_bg"), 0, 0);
-}
-
-void FiveK::draw_setformat_bg(SetFormatWindow *gui)
-{
- gui->draw_vframe(get_image("setformat_bg"), 0, 0);
-}
-
-
-
-
-
-
-
+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#ifndef DEFAULTTHEME_H
-#define DEFAULTTHEME_H
-
-#include "new.inc"
-#include "plugintclient.h"
-#include "preferencesthread.inc"
-#include "statusbar.inc"
-#include "theme.h"
-#include "timebar.inc"
-
-class FiveK : public Theme
-{
-public:
- FiveK();
- ~FiveK();
-
- void initialize();
- void get_mwindow_sizes(MWindowGUI *gui, int w, int h);
- void draw_mwindow_bg(MWindowGUI *gui);
-
- void draw_rwindow_bg(RecordGUI *gui);
- void draw_rmonitor_bg(RecordMonitorGUI *gui);
- void draw_cwindow_bg(CWindowGUI *gui);
- void draw_vwindow_bg(VWindowGUI *gui);
- void draw_preferences_bg(PreferencesWindow *gui);
-
-
- void draw_new_bg(NewWindow *gui);
- void draw_setformat_bg(SetFormatWindow *gui);
-
-private:
- void build_bg_data();
- void build_patches();
- void build_overlays();
-
-
-
-
-
-};
-
-
-
-class FiveKMain : public PluginTClient
-{
-public:
- FiveKMain(PluginServer *server);
- ~FiveKMain();
-
- const char* plugin_title();
- Theme* new_theme();
-
- FiveK *theme;
-};
-
-
-#endif
+++ /dev/null
-include ../../global_config
-
-PLUGIN = 5k
-OBJS = $(OBJDIR)/5k.o
-OUTPUT_THEME = $(OUTPUT)
-
-AVC_DIR := $(shell cd ../../thirdparty/libavc*; pwd)
-CFLAGS += -I$(AVC_DIR)
-
-include ../../plugin_config
-
-$(OBJDIR)/5k.o: 5k.C
-
DIRS = \
1080to480 \
1080to540 \
- 4k \
- 5k \
720to480 \
aging \
audioscope \
linearblur \
liveaudio \
livevideo \
- lof \
loopaudio \
loopvideo \
motion \
"labeltoggle_dn.png",
"label_checkedhi.png");
+ ffmpeg_toggle = new_image_set(5,
+ "ff_up.png",
+ "ff_hi.png",
+ "ff_checked.png",
+ "ff_down.png",
+ "ff_checkedhi.png");
+
+ shbtn_data = new_image_set(3,
+ "shbtn_up.png",
+ "shbtn_hi.png",
+ "shbtn_dn.png");
statusbar_cancel_data = new_image_set(3,
"statusbar_cancel_up.png",
void BlondTheme::build_bg_data()
{
// Audio settings
- channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
+ channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
+ channel_position_data = new VFramePng(get_image_data("channel_position.png"));
// Track bitmaps
new_image("resource1024", "resource1024.png");
void BlondTheme::build_overlays()
{
- keyframe_data = new VFrame(get_image_data("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
+ keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
+ camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
+ maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
+ modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
+ pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
+ projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
}
"labeltoggle_dn.png",
"label_checkedhi.png");
+ ffmpeg_toggle = new_image_set(5,
+ "ff_up.png",
+ "ff_hi.png",
+ "ff_checked.png",
+ "ff_down.png",
+ "ff_checkedhi.png");
+
+ shbtn_data = new_image_set(3,
+ "shbtn_up.png",
+ "shbtn_hi.png",
+ "shbtn_dn.png");
statusbar_cancel_data = new_image_set(3,
"statusbar_cancel_up.png",
void BlueDotTheme::build_bg_data()
{
// Audio settings
- channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
+ channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
+ channel_position_data = new VFramePng(get_image_data("channel_position.png"));
// Track bitmaps
new_image("resource1024", "resource1024.png");
//Graphic Copied from default. Improve!! -- use your imagination
void BlueDotTheme::build_overlays()
{
- keyframe_data = new VFrame(get_image_data("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
+ keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
+ camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
+ maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
+ modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
+ pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
+ projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
}
"labeltoggle_dn.png",
"label_checkedhi.png");
+ ffmpeg_toggle = new_image_set(5,
+ "ff_up.png",
+ "ff_hi.png",
+ "ff_checked.png",
+ "ff_down.png",
+ "ff_checkedhi.png");
+
+ shbtn_data = new_image_set(3,
+ "shbtn_up.png",
+ "shbtn_hi.png",
+ "shbtn_dn.png");
+
new_image_set("histogram_carrot",
5,
"histogram_carrot_up.png",
void BrightTheme::build_bg_data()
{
// Audio settings
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
+ channel_position_data = new VFramePng(get_image_data("channel_position.png"));
// Track bitmaps
new_image("resource1024", "resource1024.png");
void BrightTheme::build_overlays()
{
- keyframe_data = new VFrame(get_image_data("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
+ keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
+ camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
+ maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
+ modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
+ pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
+ projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
}
"labeltoggle_dn.png",
"label_checkedhi.png");
+ ffmpeg_toggle = new_image_set(5,
+ "ff_up.png",
+ "ff_hi.png",
+ "ff_checked.png",
+ "ff_down.png",
+ "ff_checkedhi.png");
+
+ shbtn_data = new_image_set(3,
+ "shbtn_up.png",
+ "shbtn_hi.png",
+ "shbtn_dn.png");
statusbar_cancel_data = new_image_set(3,
"statusbar_cancel_up.png",
+++ /dev/null
-include ../../global_config
-
-OBJS = $(OBJDIR)/lof.o $(OBJDIR)/lofwindow.o
-
-PLUGIN = lof
-
-include ../../plugin_config
-
-
-$(OBJDIR)/lof.o: lof.C
-$(OBJDIR)/lofwindow.o: lofwindow.C
+++ /dev/null
-
-#include "lofwindow.h"
-
-// repeat last output frame on read_frame error
-// uses vframe.status as read status
-
-REGISTER_PLUGIN(LofEffect)
-
-LofConfig::LofConfig()
-{
- errs = 0;
- miss = 1;
- mark = 1;
-}
-
-void LofConfig::copy_from(LofConfig &src)
-{
- errs = src.errs;
- miss = src.miss;
- mark = src.mark;
-}
-
-int LofConfig::equivalent(LofConfig &src)
-{
- if( errs != src.errs ) return 0;
- if( miss != src.miss ) return 0;
- if( mark != src.mark ) return 0;
- return 1;
-}
-
-void LofConfig::interpolate(LofConfig &prev, LofConfig &next,
- long prev_frame, long next_frame, long current_frame)
-{
- copy_from(prev);
-}
-
-LofEffect::LofEffect(PluginServer *server)
- : PluginVClient(server)
-{
- frm = 0;
-}
-LofEffect::~LofEffect()
-{
- delete frm;
-}
-
-const char* LofEffect::plugin_title() { return _("Last Frame"); }
-int LofEffect::is_realtime() { return 1; }
-
-NEW_WINDOW_MACRO(LofEffect, LofWindow)
-LOAD_CONFIGURATION_MACRO(LofEffect, LofConfig)
-
-void LofEffect::update_gui()
-{
- if(thread) {
- thread->window->lock_window();
- load_configuration();
- ((LofWindow*)thread->window)->update();
- thread->window->unlock_window();
- }
-}
-
-
-void LofEffect::save_data(KeyFrame *keyframe)
-{
- FileXML output;
- output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
- output.tag.set_title("LOF");
- output.tag.set_property("ERRS", config.errs);
- output.tag.set_property("MISS", config.miss);
- output.tag.set_property("MARK", config.mark);
- output.append_tag();
- output.terminate_string();
-}
-
-void LofEffect::read_data(KeyFrame *keyframe)
-{
- FileXML input;
- input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
- while(!input.read_tag()) {
- if(input.tag.title_is("LOF")) {
- config.errs = input.tag.get_property("ERRS", config.errs);
- config.miss = input.tag.get_property("MISS", config.miss);
- config.mark = input.tag.get_property("MARK", config.mark);
- }
- }
-}
-
-
-int LofEffect::process_buffer(VFrame *frame, int64_t start_position, double frame_rate)
-{
- load_configuration();
- int w = frame->get_w(), h = frame->get_h();
- int colormodel = frame->get_color_model();
- if( frm && (frm->get_w() != w || frm->get_h() != h ||
- frm->get_color_model() != colormodel ) ) {
- delete frm; frm = 0;
- }
- int ret = read_frame(frame, 0, start_position, frame_rate, get_use_opengl());
- if( ret >= 0 ) ret = frame->get_status();
- if( ret > 0 ) {
- if( !frm )
- frm = new VFrame(w, h, colormodel, -1);
- frm->copy_from(frame);
- }
- else if( !frm )
- frame->clear_frame();
- else if( (ret < 0 && config.errs) || (!ret && config.miss) ) {
- frame->copy_from(frm);
- if( config.mark ) {
- VFrame dot(1, 1, BC_RGBA8888, -1);
- *(uint32_t*)dot.get_rows()[0] = 0xff0000ff;
- int scl = 48, sz = 3, ww = w/scl, hh = h/scl;
- if( ww < sz ) ww = w > sz ? sz : w;
- if( hh < sz ) hh = h > sz ? sz : h;
- BC_CModels::transfer(
- frame->get_rows(), dot.get_rows(),
- frame->get_y(), frame->get_u(), frame->get_v(),
- dot.get_y(), dot.get_u(), dot.get_v(),
- 0, 0, 1, 1, 0, 0, ww, hh,
- dot.get_color_model(), frame->get_color_model(),
- 0, dot.get_w(), frame->get_w());
- }
- }
- return 0;
-}
-
-
+++ /dev/null
-#ifndef LOF_H
-#define LOF_H
-
-#include "filexml.h"
-#include "bchash.h"
-#include "language.h"
-#include "pluginvclient.h"
-#include "vframe.h"
-
-class LofConfig;
-class LofEffect;
-class LofWindow;
-
-class LofConfig {
-public:
- int errs;
- int miss;
- int mark;
-
- LofConfig();
-
- void copy_from(LofConfig &src);
- int equivalent(LofConfig &src);
- void interpolate(LofConfig &prev, LofConfig &next,
- long prev_frame, long next_frame, long current_frame);
-};
-
-class LofEffect : public PluginVClient {
-public:
- LofEffect(PluginServer *server);
- ~LofEffect();
-
- PLUGIN_CLASS_MEMBERS(LofConfig)
- int process_buffer(VFrame *frame, int64_t start_position, double frame_rate);
- int is_realtime();
- void save_data(KeyFrame *keyframe);
- void read_data(KeyFrame *keyframe);
- void update_gui();
-
- VFrame *frm;
-};
-
-
-#endif
+++ /dev/null
-#include "lofwindow.h"
-#include "language.h"
-
-LofWindow::LofWindow(LofEffect *plugin)
- : PluginClientWindow(plugin, 260, 160, 260, 160, 0)
-{
- this->plugin = plugin;
-}
-
-void LofWindow::create_objects()
-{
- int x = 10, y = 10;
- BC_Title *title = new BC_Title(x, y, _("Show last good output frame"));
- add_subwindow(title); y += title->get_h() + 5;
- title = new BC_Title(x+20, y, _("(you should fix the input)"));
- add_subwindow(title); y += title->get_h() + 20;
- add_tool(errfrms = new LofToggle(this, &plugin->config.errs, x, y, _("errant frames")));
- y += errfrms->get_h() + 5;
- add_tool(misfrms = new LofToggle(this, &plugin->config.miss, x, y, _("missed frames")));
- y += misfrms->get_h() + 5;
- add_tool(mrkfrms = new LofToggle(this, &plugin->config.mark, x, y, _("mark fixed frames")));
- show_window();
- flush();
-}
-
-void LofWindow::update()
-{
- errfrms->update(plugin->config.errs);
- misfrms->update(plugin->config.miss);
- mrkfrms->update(plugin->config.mark);
-}
-
-LofToggle::LofToggle(LofWindow *lofwin, int *output, int x, int y, const char *lbl)
- : BC_CheckBox(x, y, *output, lbl)
-{
- this->lofwin = lofwin;
- this->output = output;
-}
-
-LofToggle::~LofToggle()
-{
-}
-
-int LofToggle::handle_event()
-{
- *output = get_value();
- lofwin->plugin->send_configure_change();
- return 1;
-}
-
+++ /dev/null
-#ifndef __LOFWINDOW_H__
-#define __LOFWINDOW_H__
-
-#include "lof.h"
-#include "pluginvclient.h"
-
-class LofToggle;
-class LofWindow;
-
-class LofToggle : public BC_CheckBox
-{
-public:
- LofToggle(LofWindow *lofwin, int *output, int x, int y, const char *lbl);
- ~LofToggle();
- int handle_event();
-
- LofWindow *lofwin;
- int *output;
-};
-
-class LofWindow : public PluginClientWindow {
-public:
- LofWindow(LofEffect *plugin);
- void create_objects();
- void update();
- LofEffect *plugin;
-
- LofToggle *errfrms;
- LofToggle *misfrms;
- LofToggle *mrkfrms;
-};
-
-
-#endif
void MicroTheme::initialize()
{
//printf("MicroTheme::initialize 1\n");
- mwindow_icon = new VFrame(get_image("mwindow_icon.png"));
- vwindow_icon = new VFrame(get_image("mwindow_icon.png"));
- cwindow_icon = new VFrame(get_image("mwindow_icon.png"));
- awindow_icon = new VFrame(get_image("mwindow_icon.png"));
- record_icon = new VFrame(get_image("mwindow_icon.png"));
- clip_icon = new VFrame(get_image("clip_icon.png"));
+ mwindow_icon = new VFramePng(get_image("mwindow_icon.png"));
+ vwindow_icon = new VFramePng(get_image("mwindow_icon.png"));
+ cwindow_icon = new VFramePng(get_image("mwindow_icon.png"));
+ awindow_icon = new VFramePng(get_image("mwindow_icon.png"));
+ record_icon = new VFramePng(get_image("mwindow_icon.png"));
+ clip_icon = new VFramePng(get_image("clip_icon.png"));
- static VFrame *default_patchbay_bg = new VFrame(get_image("patchbay_bg.png"));
+ static VFrame *default_patchbay_bg = new VFramePng(get_image("patchbay_bg.png"));
BC_WindowBase::get_resources()->bg_color = WHITE;
BC_WindowBase::get_resources()->menu_light = WHITE;
BC_WindowBase::get_resources()->menu_shadow = MEGREY;
BC_WindowBase::get_resources()->medium_font = "-*-helvetica-medium-r-normal-*-10-*";
- static VFrame* default_listbox_bg = new VFrame(get_image("patchbay_bg.png"));
+ static VFrame* default_listbox_bg = new VFramePng(get_image("patchbay_bg.png"));
BC_WindowBase::get_resources()->listbox_bg = default_listbox_bg;
BC_WindowBase::get_resources()->button_light = WHITE;
BC_WindowBase::get_resources()->button_up = WHITE;
static VFrame *default_cancel_images[] =
{
- new VFrame(get_image("cancel_up.png")), new VFrame(get_image("cancel_hi.png")), new VFrame(get_image("cancel_dn.png"))
+ new VFramePng(get_image("cancel_up.png")), new VFramePng(get_image("cancel_hi.png")), new VFramePng(get_image("cancel_dn.png"))
};
BC_WindowBase::get_resources()->cancel_images = default_cancel_images;
static VFrame *default_ok_images[] =
{
- new VFrame(get_image("ok_up.png")), new VFrame(get_image("ok_hi.png")), new VFrame(get_image("ok_dn.png"))
+ new VFramePng(get_image("ok_up.png")), new VFramePng(get_image("ok_hi.png")), new VFramePng(get_image("ok_dn.png"))
};
BC_WindowBase::get_resources()->ok_images = default_ok_images;
static VFrame *default_button_images[] =
{
- new VFrame(get_image("generic_up.png")), new VFrame(get_image("generic_hi.png")), new VFrame(get_image("generic_dn.png"))
+ new VFramePng(get_image("generic_up.png")), new VFramePng(get_image("generic_hi.png")), new VFramePng(get_image("generic_dn.png"))
};
BC_WindowBase::get_resources()->generic_button_images = default_button_images;
static VFrame *default_tumble_images[] =
{
- new VFrame(get_image("tumble_up.png")), new VFrame(get_image("tumble_hi.png")), new VFrame(get_image("tumble_bottomdn.png")), new VFrame(get_image("tumble_topdn.png"))
+ new VFramePng(get_image("tumble_up.png")), new VFramePng(get_image("tumble_hi.png")), new VFramePng(get_image("tumble_bottomdn.png")), new VFramePng(get_image("tumble_topdn.png"))
};
BC_WindowBase::get_resources()->tumble_data = default_tumble_images;
static VFrame *default_checkbox_images[] =
{
- new VFrame(get_image("checkbox_up.png")), new VFrame(get_image("checkbox_hi.png")), new VFrame(get_image("checkbox_checked.png")), new VFrame(get_image("checkbox_dn.png")), new VFrame(get_image("checkbox_checkedhi.png"))
+ new VFramePng(get_image("checkbox_up.png")), new VFramePng(get_image("checkbox_hi.png")), new VFramePng(get_image("checkbox_checked.png")), new VFramePng(get_image("checkbox_dn.png")), new VFramePng(get_image("checkbox_checkedhi.png"))
};
BC_WindowBase::get_resources()->checkbox_images = default_checkbox_images;
static VFrame *default_radial_images[] =
{
- new VFrame(get_image("radial_up.png")), new VFrame(get_image("radial_hi.png")), new VFrame(get_image("radial_checked.png")), new VFrame(get_image("radial_dn.png")), new VFrame(get_image("radial_checkedhi.png"))
+ new VFramePng(get_image("radial_up.png")), new VFramePng(get_image("radial_hi.png")), new VFramePng(get_image("radial_checked.png")), new VFramePng(get_image("radial_dn.png")), new VFramePng(get_image("radial_checkedhi.png"))
};
BC_WindowBase::get_resources()->radial_images = default_radial_images;
static VFrame* default_xmeter_data[] =
{
- new VFrame(get_image("xmeter_normal.png")),
- new VFrame(get_image("xmeter_green.png")),
- new VFrame(get_image("xmeter_red.png")),
- new VFrame(get_image("xmeter_yellow.png")),
- new VFrame(get_image("over_horiz.png"))
- new VFrame(get_image("downmix51_2.png"))
+ new VFramePng(get_image("xmeter_normal.png")),
+ new VFramePng(get_image("xmeter_green.png")),
+ new VFramePng(get_image("xmeter_red.png")),
+ new VFramePng(get_image("xmeter_yellow.png")),
+ new VFramePng(get_image("over_horiz.png"))
+ new VFramePng(get_image("downmix51_2.png"))
};
static VFrame* default_ymeter_data[] =
{
- new VFrame(get_image("ymeter_normal.png")),
- new VFrame(get_image("ymeter_green.png")),
- new VFrame(get_image("ymeter_red.png")),
- new VFrame(get_image("ymeter_yellow.png")),
- new VFrame(get_image("over_vert.png"))
- new VFrame(get_image("downmix51_2.png"))
+ new VFramePng(get_image("ymeter_normal.png")),
+ new VFramePng(get_image("ymeter_green.png")),
+ new VFramePng(get_image("ymeter_red.png")),
+ new VFramePng(get_image("ymeter_yellow.png")),
+ new VFramePng(get_image("over_vert.png"))
+ new VFramePng(get_image("downmix51_2.png"))
};
BC_WindowBase::get_resources()->xmeter_images = default_xmeter_data;
BC_WindowBase::get_resources()->ymeter_images = default_ymeter_data;
static VFrame* default_pan_data[] =
{
- new VFrame(get_image("pan_up.png")),
- new VFrame(get_image("pan_hi.png")),
- new VFrame(get_image("pan_popup.png")),
- new VFrame(get_image("pan_channel.png")),
- new VFrame(get_image("pan_stick.png")),
- new VFrame(get_image("pan_channel_small.png")),
- new VFrame(get_image("pan_stick_small.png"))
+ new VFramePng(get_image("pan_up.png")),
+ new VFramePng(get_image("pan_hi.png")),
+ new VFramePng(get_image("pan_popup.png")),
+ new VFramePng(get_image("pan_channel.png")),
+ new VFramePng(get_image("pan_stick.png")),
+ new VFramePng(get_image("pan_channel_small.png")),
+ new VFramePng(get_image("pan_stick_small.png"))
};
BC_WindowBase::get_resources()->pan_data = default_pan_data;
BC_WindowBase::get_resources()->pan_text_color = BLACK;
static VFrame *default_hscroll_data[] =
{
- new VFrame(get_image("hscroll_handle_up.png")),
- new VFrame(get_image("hscroll_handle_hi.png")),
- new VFrame(get_image("hscroll_handle_dn.png")),
- new VFrame(get_image("hscroll_handle_bg.png")),
- new VFrame(get_image("hscroll_left_up.png")),
- new VFrame(get_image("hscroll_left_hi.png")),
- new VFrame(get_image("hscroll_left_dn.png")),
- new VFrame(get_image("hscroll_right_up.png")),
- new VFrame(get_image("hscroll_right_hi.png")),
- new VFrame(get_image("hscroll_right_dn.png"))
+ new VFramePng(get_image("hscroll_handle_up.png")),
+ new VFramePng(get_image("hscroll_handle_hi.png")),
+ new VFramePng(get_image("hscroll_handle_dn.png")),
+ new VFramePng(get_image("hscroll_handle_bg.png")),
+ new VFramePng(get_image("hscroll_left_up.png")),
+ new VFramePng(get_image("hscroll_left_hi.png")),
+ new VFramePng(get_image("hscroll_left_dn.png")),
+ new VFramePng(get_image("hscroll_right_up.png")),
+ new VFramePng(get_image("hscroll_right_hi.png")),
+ new VFramePng(get_image("hscroll_right_dn.png"))
};
static VFrame *default_vscroll_data[] =
{
- new VFrame(get_image("vscroll_handle_up.png")),
- new VFrame(get_image("vscroll_handle_hi.png")),
- new VFrame(get_image("vscroll_handle_dn.png")),
- new VFrame(get_image("vscroll_handle_bg.png")),
- new VFrame(get_image("vscroll_left_up.png")),
- new VFrame(get_image("vscroll_left_hi.png")),
- new VFrame(get_image("vscroll_left_dn.png")),
- new VFrame(get_image("vscroll_right_up.png")),
- new VFrame(get_image("vscroll_right_hi.png")),
- new VFrame(get_image("vscroll_right_dn.png"))
+ new VFramePng(get_image("vscroll_handle_up.png")),
+ new VFramePng(get_image("vscroll_handle_hi.png")),
+ new VFramePng(get_image("vscroll_handle_dn.png")),
+ new VFramePng(get_image("vscroll_handle_bg.png")),
+ new VFramePng(get_image("vscroll_left_up.png")),
+ new VFramePng(get_image("vscroll_left_hi.png")),
+ new VFramePng(get_image("vscroll_left_dn.png")),
+ new VFramePng(get_image("vscroll_right_up.png")),
+ new VFramePng(get_image("vscroll_right_hi.png")),
+ new VFramePng(get_image("vscroll_right_dn.png"))
};
BC_WindowBase::get_resources()->hscroll_data = default_hscroll_data;
BC_WindowBase::get_resources()->vscroll_data = default_vscroll_data;
- channel_bg_data = new VFrame(get_image("channel_bg.png"));
- channel_position_data = new VFrame(get_image("channel_position.png"));
+ channel_bg_data = new VFramePng(get_image("channel_bg.png"));
+ channel_position_data = new VFramePng(get_image("channel_position.png"));
channel_position_color = BLACK;
recordgui_fixed_color = BLACK;
recordgui_variable_color = RED;
patchbay_bg = default_patchbay_bg;
- resource1024_bg_data = new VFrame(get_image("resource1024.png"));
- resource512_bg_data = new VFrame(get_image("resource512.png"));
- resource256_bg_data = new VFrame(get_image("resource256.png"));
- resource128_bg_data = new VFrame(get_image("resource128.png"));
- resource64_bg_data = new VFrame(get_image("resource64.png"));
- resource32_bg_data = new VFrame(get_image("resource32.png"));
- plugin_bg_data = new VFrame(get_image("plugin_bg.png"));
- title_bg_data = new VFrame(get_image("title_bg.png"));
- timebar_bg_data = new VFrame(get_image("timebar_bg.png"));
- vtimebar_bg_data = new VFrame(get_image("vwindow_timebar.png"));
+ resource1024_bg_data = new VFramePng(get_image("resource1024.png"));
+ resource512_bg_data = new VFramePng(get_image("resource512.png"));
+ resource256_bg_data = new VFramePng(get_image("resource256.png"));
+ resource128_bg_data = new VFramePng(get_image("resource128.png"));
+ resource64_bg_data = new VFramePng(get_image("resource64.png"));
+ resource32_bg_data = new VFramePng(get_image("resource32.png"));
+ plugin_bg_data = new VFramePng(get_image("plugin_bg.png"));
+ title_bg_data = new VFramePng(get_image("title_bg.png"));
+ timebar_bg_data = new VFramePng(get_image("timebar_bg.png"));
+ vtimebar_bg_data = new VFramePng(get_image("vwindow_timebar.png"));
new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
- keyframe_data = new VFrame(get_image("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image("projectorkeyframe.png"));
+ keyframe_data = new VFramePng(get_image("keyframe3.png"));
+ camerakeyframe_data = new VFramePng(get_image("camerakeyframe.png"));
+ maskkeyframe_data = new VFramePng(get_image("maskkeyframe.png"));
+ modekeyframe_data = new VFramePng(get_image("modekeyframe.png"));
+ pankeyframe_data = new VFramePng(get_image("pankeyframe.png"));
+ projectorkeyframe_data = new VFramePng(get_image("projectorkeyframe.png"));
VFrame editpanel_up(get_image("editpanel_up.png"));
VFrame editpanel_hi(get_image("editpanel_hi.png"));
VFrame editpanel_checked(get_image("editpanel_checked.png"));
VFrame editpanel_checkedhi(get_image("editpanel_checkedhi.png"));
- static VFrame *default_inpoint[] = { new VFrame(get_image("out_up.png")), new VFrame(get_image("out_hi.png")), new VFrame(get_image("out_checked.png")), new VFrame(get_image("out_dn.png")), new VFrame(get_image("out_checkedhi.png")) };
- static VFrame *default_labeltoggle[] = { new VFrame(get_image("labeltoggle_up.png")), new VFrame(get_image("labeltoggle_uphi.png")), new VFrame(get_image("label_checked.png")), new VFrame(get_image("labeltoggle_dn.png")), new VFrame(get_image("label_checkedhi.png")) };
- static VFrame *default_outpoint[] = { new VFrame(get_image("in_up.png")), new VFrame(get_image("in_hi.png")), new VFrame(get_image("in_checked.png")), new VFrame(get_image("in_dn.png")), new VFrame(get_image("in_checkedhi.png")) };
- static VFrame *transport_bg[] = { new VFrame(get_image("transportup.png")), new VFrame(get_image("transporthi.png")), new VFrame(get_image("transportdn.png")) };
- static VFrame *patches_bg[] = { new VFrame(get_image("patches_up.png")), new VFrame(get_image("patches_hi.png")), new VFrame(get_image("patches_checked.png")), new VFrame(get_image("patches_dn.png")), new VFrame(get_image("patches_checkedhi.png")) };
+ static VFrame *default_inpoint[] = { new VFramePng(get_image("out_up.png")), new VFramePng(get_image("out_hi.png")), new VFramePng(get_image("out_checked.png")), new VFramePng(get_image("out_dn.png")), new VFramePng(get_image("out_checkedhi.png")) };
+ static VFrame *default_labeltoggle[] = { new VFramePng(get_image("labeltoggle_up.png")), new VFramePng(get_image("labeltoggle_uphi.png")), new VFramePng(get_image("label_checked.png")), new VFramePng(get_image("labeltoggle_dn.png")), new VFramePng(get_image("label_checkedhi.png")) };
+ static VFrame *default_ffmpegtoggle[] = { new VFramePng(get_image("ff_up.png")), new VFramePng(get_image("ff_hi.png")), new VFramePng(get_image("ff_checked.png")), new VFramePng(get_image("ff_down.png")), new VFramePng(get_image("ff_checkedhi.png")) };
+ static VFrame *default_shbtndata[] = { new VFramePng(get_image("shbtn_up.png")), new VFramePng(get_image("shbtn_hi.png")), new VFramePng(get_image("shbtn_dn.png")), };
+ static VFrame *default_outpoint[] = { new VFramePng(get_image("in_up.png")), new VFramePng(get_image("in_hi.png")), new VFramePng(get_image("in_checked.png")), new VFramePng(get_image("in_dn.png")), new VFramePng(get_image("in_checkedhi.png")) };
+ static VFrame *transport_bg[] = { new VFramePng(get_image("transportup.png")), new VFramePng(get_image("transporthi.png")), new VFramePng(get_image("transportdn.png")) };
+ static VFrame *patches_bg[] = { new VFramePng(get_image("patches_up.png")), new VFramePng(get_image("patches_hi.png")), new VFramePng(get_image("patches_checked.png")), new VFramePng(get_image("patches_dn.png")), new VFramePng(get_image("patches_checkedhi.png")) };
build_button(BC_WindowBase::get_resources()->filebox_updir_images, get_image("filebox_updir.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
build_button(BC_WindowBase::get_resources()->filebox_newfolder_images, get_image("filebox_newfolder.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
static VFrame *default_expandpatch_data[] =
{
- new VFrame(get_image("expandpatch_up.png")),
- new VFrame(get_image("expandpatch_hi.png")),
- new VFrame(get_image("expandpatch_checked.png")),
- new VFrame(get_image("expandpatch_dn.png")),
- new VFrame(get_image("expandpatch_checkedhi.png"))
+ new VFramePng(get_image("expandpatch_up.png")),
+ new VFramePng(get_image("expandpatch_hi.png")),
+ new VFramePng(get_image("expandpatch_checked.png")),
+ new VFramePng(get_image("expandpatch_dn.png")),
+ new VFramePng(get_image("expandpatch_checkedhi.png"))
};
expandpatch_data = default_expandpatch_data;
build_button(wrench_data, get_image("wrench.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
in_point = default_inpoint;
label_toggle = default_labeltoggle;
+ ffmpeg_toggle = default_ffmpegtoggle;
+ shbtn_data = default_shbtndata;
out_point = default_outpoint;
fade_h = BC_WindowBase::get_resources()->horizontal_slider_data[0]->get_h();
"labeltoggle_dn.png",
"label_checkedhi.png");
+ ffmpeg_toggle = new_image_set(5,
+ "ff_up.png",
+ "ff_hi.png",
+ "ff_checked.png",
+ "ff_down.png",
+ "ff_checkedhi.png");
+
+ shbtn_data = new_image_set(3,
+ "shbtn_up.png",
+ "shbtn_hi.png",
+ "shbtn_dn.png");
+
new_image_set("histogram_carrot",
5,
"histogram_carrot_up.png",
void SUV::build_bg_data()
{
// Audio settings
- channel_position_data = new VFrame(get_image_data("channel_position.png"));
+ channel_position_data = new VFramePng(get_image_data("channel_position.png"));
// Track bitmaps
new_image("resource1024", "resource1024.png");
void SUV::build_overlays()
{
- keyframe_data = new VFrame(get_image_data("keyframe3.png"));
- camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
- maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
- modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
- pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
- projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
+ keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
+ camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
+ maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
+ modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
+ pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
+ projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
}
if( png_buffer != MAP_FAILED ) {
if( png_buffer[0] == 0x89 && png_buffer[1] == 0x50 &&
png_buffer[2] == 0x4e && png_buffer[3] == 0x47 ) {
- ofrm = new VFrame(png_buffer, st_png.st_size);
+ ofrm = new VFramePng(png_buffer, st_png.st_size, 1., 1.);
if( ofrm->get_color_model() != output->get_color_model() ) {
VFrame *vfrm = new VFrame(ofrm->get_w(), ofrm->get_h(),
output->get_color_model());
#include "black_dn_png.h"
#include "black_checked_png.h"
#include "black_checkedhi_png.h"
- white_key[0] = new VFrame(white_up_png);
- white_key[1] = new VFrame(white_hi_png);
- white_key[2] = new VFrame(white_checked_png);
- white_key[3] = new VFrame(white_dn_png);
- white_key[4] = new VFrame(white_checkedhi_png);
- black_key[0] = new VFrame(black_up_png);
- black_key[1] = new VFrame(black_hi_png);
- black_key[2] = new VFrame(black_checked_png);
- black_key[3] = new VFrame(black_dn_png);
- black_key[4] = new VFrame(black_checkedhi_png);
+ white_key[0] = new VFramePng(white_up_png);
+ white_key[1] = new VFramePng(white_hi_png);
+ white_key[2] = new VFramePng(white_checked_png);
+ white_key[3] = new VFramePng(white_dn_png);
+ white_key[4] = new VFramePng(white_checkedhi_png);
+ black_key[0] = new VFramePng(black_up_png);
+ black_key[1] = new VFramePng(black_hi_png);
+ black_key[2] = new VFramePng(black_checked_png);
+ black_key[3] = new VFramePng(black_dn_png);
+ black_key[4] = new VFramePng(black_checkedhi_png);
add_subwindow(note_subwindow = new BC_SubWindow(x1,