3 #include "cwindowgui.h"
4 #include "bluedottheme.h"
6 #include "edlsession.h"
8 #include "mainsession.h"
10 #include "meterpanel.h"
12 #include "mwindowgui.h"
15 #include "preferencesthread.h"
16 #include "recordgui.h"
17 #include "recordmonitor.h"
18 #include "setformat.h"
19 #include "statusbar.h"
21 #include "trackcanvas.h"
23 #include "vwindowgui.h"
27 #define BGREY 0xc0c0e0 //MEGEY with a shade of blue
28 #define DDBLUE 0x000050 //Dark blue with the shade of grey
31 PluginClient* new_plugin(PluginServer *server)
33 return new BlueDotThemeMain(server);
42 BlueDotThemeMain::BlueDotThemeMain(PluginServer *server)
43 : PluginTClient(server)
47 BlueDotThemeMain::~BlueDotThemeMain()
51 char* BlueDotThemeMain::plugin_title()
56 Theme* BlueDotThemeMain::new_theme()
58 theme = new BlueDotTheme;
59 extern unsigned char _binary_bluedottheme_data_start[];
60 theme->set_data(_binary_bluedottheme_data_start);
71 BlueDotTheme::BlueDotTheme()
76 BlueDotTheme::~BlueDotTheme()
80 void BlueDotTheme::initialize()
82 BC_Resources *resources = BC_WindowBase::get_resources();
84 // about_bg = new_image("about_bg.png");
87 // COPIED FROM DEFAULT THEME 1>>
88 resources->text_default = 0x000000;
89 resources->text_background = 0xffffff;
91 resources->text_border1 = 0x4a484a; // (top outer)
92 resources->text_border2 = 0x000000; // (top inner)
93 resources->text_border3 = 0xacaeac; // (bottom inner)
94 resources->text_border4 = 0xffffff; // (bottom outer)
95 resources->text_inactive_highlight = 0xacacac;
96 resources->text_highlight = BGREY;
97 // COPIED FROM DEFAULT THEME <<1
99 resources->bg_color = FGGREY; //bg of windows (where no pics...
100 // COPIED FROM DEFAULT THEME 2>>
101 resources->default_text_color = 0x000000;
102 resources->menu_title_text = 0x000000;
103 resources->popup_title_text = 0x000000;
104 // COPIED FROM DEFAULT THEME <<2
105 resources->menu_item_text = BLACK;
107 // COPIED FROM DEFAULT THEME 3>>
108 resources->generic_button_margin = 15; //Length of buttons and color tabs
109 resources->pot_needle_color = resources->text_default;
110 resources->pot_offset = 0;
111 resources->progress_text = resources->text_default;
112 // COPIED FROM DEFAULT THEME <<3
113 resources->meter_font = SMALLFONT; //Specific to BD
114 resources->meter_font_color = BLACK;
115 resources->meter_title_w = 20; //Specific to BD
116 resources->meter_3d = 0; //Specific to BD
118 resources->menu_light = FTGREY; //menu
119 resources->menu_highlighted = BGREY; //NMBLUE
120 resources->menu_down = BGREY;
121 resources->menu_up = FGGREY;
122 resources->menu_shadow = FTGREY;
124 // MIHA: COPIED FROM DEFAULT THEME M1>>
125 resources->popupmenu_margin = 10; // ugly
126 resources->popupmenu_triangle_margin = 15; // ugly
127 // MIHA: COPIED FROM DEFAULT THEME M1<<
130 // COPIED FROM DEFAULT THEME 4>>
131 resources->listbox_title_color = 0x000000;
133 resources->listbox_title_margin = 0;
134 resources->listbox_title_hotspot = 5; // No. of pixels around the borders to allow dragging
135 resources->listbox_border1 = 0x4a484a; // (top outer)
136 resources->listbox_border2 = 0x000000; // (top inner)
137 resources->listbox_border3 = 0xffe200; // (bottom inner)
138 resources->listbox_border4 = 0xffffff; // (bottom outer)
139 resources->listbox_highlighted = 0xeee6ee;
140 resources->listbox_inactive = 0xffffffff; // (background)
141 resources->listbox_bg = new_image("list_bg.png"); //NOT COPIED!
142 resources->listbox_text = 0x000000;
143 resources->listbox_selected = BGREY;
145 resources->dirbox_margin = 50;
146 resources->filebox_margin = 101;
147 resources->file_color = 0x000000;
148 resources->directory_color = DKBLUE;
149 // COPIED FROM DEFAULT THEME <<4
150 resources->menu_highlighted_fontcolor = DDBLUE; //Specific to BD
153 //There are differences here, but we won't change until the end.
155 resources->filebox_icons_images = new_image_set(3,
157 "file_icons_uphi.png",
158 "file_icons_dn.png");
160 resources->filebox_text_images = new_image_set(3,
162 "file_text_uphi.png",
165 resources->filebox_newfolder_images = new_image_set(3,
166 "file_newfolder_up.png",
167 "file_newfolder_uphi.png",
168 "file_newfolder_dn.png");
170 resources->filebox_updir_images = new_image_set(3,
172 "file_updir_uphi.png",
173 "file_updir_dn.png");
175 resources->filebox_delete_images = new_image_set(3,
176 "file_delete_up.png",
177 "file_delete_uphi.png",
178 "file_delete_dn.png");
180 resources->filebox_reload_images = new_image_set(3,
181 "file_reload_up.png",
182 "file_reload_uphi.png",
183 "file_reload_dn.png");
186 resources->filebox_descend_images = new_image_set(3,
187 "file_openfolder_up.png",
188 "file_openfolder_uphi.png",
189 "file_openfolder_dn.png");
192 resources->usethis_button_images =
193 resources->ok_images = new_button("ok.png",
204 resources->cancel_images = new_button("cancel.png",
209 new_button("cancel.png",
213 "new_cancel_images");
215 resources->bar_data = new_image("bar", "bar.png");
218 resources->min_menu_w = 0;
219 resources->menu_popup_bg = 0; // if (0) use menu_light, menu_up, menu_shadow
220 resources->menu_item_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
221 resources->menu_bar_bg = 0; // if (0) use menu_light, menu_shadow, and height of MEDIUMFONT + 8
222 resources->menu_title_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
225 resources->popupmenu_images = 0; // if (0) get_resources()->use generic_button_images
227 resources->toggle_highlight_bg = 0; // if (0) "Draw a plain box" as per bctoggle.C
229 resources->generic_button_images = new_image_set(3,
233 resources->horizontal_slider_data = new_image_set(6,
239 "hslider_bg_dn.png");
240 resources->vertical_slider_data = new_image_set(6,
241 "vertical_slider_fg_up.png",
242 "vertical_slider_fg_hi.png",
243 "vertical_slider_fg_dn.png",
244 "vertical_slider_bg_up.png",
245 "vertical_slider_bg_hi.png",
246 "vertical_slider_bg_dn.png");
247 resources->progress_images = new_image_set(2,
250 resources->tumble_data = new_image_set(4,
255 resources->listbox_button = new_image_set(4,
256 "listbox_button_up.png",
257 "listbox_button_hi.png",
258 "listbox_button_dn.png",
259 "listbox_button_disabled.png"); // probably need to make this for the suv theme
260 resources->listbox_column = new_image_set(3,
264 resources->listbox_expand = new_image_set(5,
265 "listbox_expandup.png",
266 "listbox_expanduphi.png",
267 "listbox_expandchecked.png",
268 "listbox_expanddn.png",
269 "listbox_expandcheckedhi.png");
270 resources->listbox_up = new_image("listbox_up.png");
271 resources->listbox_dn = new_image("listbox_dn.png");
272 resources->pan_data = new_image_set(7,
278 "pan_channel_small.png",
279 "pan_stick_small.png");
280 resources->pan_text_color = WHITE;
282 resources->pot_images = new_image_set(3,
285 "pot_dn.png"); //Graphic Copied from default. Improve!!
287 resources->checkbox_images = new_image_set(5,
290 "checkbox_checked.png",
292 "checkbox_checkedhi.png");
294 resources->radial_images = new_image_set(5,
297 "radial_checked.png",
299 "radial_checkedhi.png");
301 resources->xmeter_images = new_image_set(6,
308 resources->ymeter_images = new_image_set(6,
316 resources->hscroll_data = new_image_set(10,
317 "hscroll_center_up.png",
318 "hscroll_center_hi.png",
319 "hscroll_center_dn.png",
321 "hscroll_back_up.png",
322 "hscroll_back_hi.png",
323 "hscroll_back_dn.png",
324 "hscroll_fwd_up.png",
325 "hscroll_fwd_hi.png",
326 "hscroll_fwd_dn.png");
328 resources->vscroll_data = new_image_set(10,
329 "vscroll_center_up.png",
330 "vscroll_center_hi.png",
331 "vscroll_center_dn.png",
333 "vscroll_back_up.png",
334 "vscroll_back_hi.png",
335 "vscroll_back_dn.png",
336 "vscroll_fwd_up.png",
337 "vscroll_fwd_hi.png",
338 "vscroll_fwd_dn.png");
340 //Graphic Copied from default. Improve!!
341 //To make this work better, it may be neccessary to replace new_button with new_image_set
342 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
343 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
344 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
345 new_button("swap_extents.png",
350 //swap_extents.png not copied
353 rgui_batch = new_image("recordgui_batch.png");
354 rgui_controls = new_image("recordgui_controls.png");
355 rgui_list = new_image("recordgui_list.png");
356 rmonitor_panel = new_image("recordmonitor_panel.png");
357 rmonitor_meters = new_image("recordmonitor_meters.png");
361 preferences_category_overlap = 0;
362 preferencescategory_x = 5;
363 preferencescategory_y = 5;
364 preferencestitle_x = 5;
365 preferencestitle_y = 10;
366 preferencesoptions_x = 5;
367 preferencesoptions_y = 0;
372 message_normal = resources->text_default;
374 mtransport_margin = 11;
378 new_image("mbutton_left","mbutton_left.png");
379 new_image("mbutton_right","mbutton_right.png");
380 new_image("timebar_bg", "timebar_bg.png");
381 new_image("timebar_brender", "timebar_brender.png");
382 new_image("clock_bg", "mclock.png");
383 new_image("patchbay_bg", "patchbay_bg.png");
384 new_image("tracks_bg","tracks_bg.png");
385 new_image("zoombar_left","zoombar_left.png");
386 new_image("zoombar_right","zoombar_right.png");
387 new_image("statusbar_left","statusbar_left.png");
388 new_image("statusbar_right","statusbar_right.png");
390 //Here an improvement may be needed
391 new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
392 new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
394 //Graphic Copied from default. Improve!!
395 new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
396 new_image("mode_add", "mode_add.png");
397 new_image("mode_divide", "mode_divide.png");
398 new_image("mode_multiply", "mode_multiply.png");
399 new_image("mode_normal", "mode_normal.png");
400 new_image("mode_replace", "mode_replace.png");
401 new_image("mode_subtract", "mode_subtract.png");
402 new_image("mode_max", "mode_max.png");
404 //Graphic Copied from default. Improve!!
405 new_toggle("plugin_on.png",
406 "pluginbutton_hi.png",
407 "pluginbutton_hi.png",
408 "pluginbutton_select.png",
409 "pluginbutton_dn.png",
410 "pluginbutton_selecthi.png",
413 //Graphic Copied from default. Improve!!
414 new_toggle("plugin_show.png",
416 "pluginbutton_hi.png",
417 "pluginbutton_select.png",
418 "pluginbutton_dn.png",
419 "pluginbutton_selecthi.png",
423 new_image("cpanel_bg", "cpanel_bg.png");
424 new_image("cbuttons_left", "cbuttons_left.png");
425 new_image("cbuttons_right", "cbuttons_right.png");
426 new_image("cmeter_bg", "cmeter_bg.png");
429 new_image("vbuttons_left", "vbuttons_left.png");
430 new_image("vbuttons_right","vbuttons_right.png");
431 new_image("vmeter_bg","vmeter_bg.png");
433 new_image("preferences_bg", "preferences_bg.png");
436 new_image("new_bg", "new_bg.png");
437 new_image("setformat_bg", "setformat_bg2.png");
440 timebar_view_data = new_image("timebar_view.png");
442 // x, y of Format dialog box
453 setformat_margin = 30;
454 setformat_channels_x = 25;
455 setformat_channels_y = 242;
456 setformat_channels_w = 250;
457 setformat_channels_h = 250;
462 //This buttons miss a bit. May need to be improved
463 new_image_set("playpatch_data",
467 "playpatch_checked.png",
469 "playpatch_checkedhi.png");
471 new_image_set("recordpatch_data",
473 "recordpatch_up.png",
474 "recordpatch_hi.png",
475 "recordpatch_checked.png",
476 "recordpatch_dn.png",
477 "recordpatch_checkedhi.png");
479 new_image_set("gangpatch_data",
483 "gangpatch_checked.png",
485 "gangpatch_checkedhi.png");
487 new_image_set("drawpatch_data",
491 "drawpatch_checked.png",
493 "drawpatch_checkedhi.png");
496 new_image_set("mutepatch_data",
500 "mutepatch_checked.png",
502 "mutepatch_checkedhi.png");
504 new_image_set("expandpatch_data",
506 "expandpatch_up.png",
507 "expandpatch_hi.png",
508 "expandpatch_checked.png",
509 "expandpatch_dn.png",
510 "expandpatch_checkedhi.png");
518 //Graphic Copied from default. Improve!! -> See outpoint.png/inpoint.png
519 out_point = new_image_set(5,
524 "out_checkedhi.png");
525 in_point = new_image_set(5,
532 //Graphic Copied from default. Improve!! -> see label.png
533 label_toggle = new_image_set(5,
534 "labeltoggle_up.png",
535 "labeltoggle_uphi.png",
537 "labeltoggle_dn.png",
538 "label_checkedhi.png");
541 statusbar_cancel_data = new_image_set(3,
542 "statusbar_cancel_up.png",
543 "statusbar_cancel_hi.png",
544 "statusbar_cancel_dn.png");
546 //Graphic Copied from default. Improve!! -> make transparent edges
547 VFrame *editpanel_up = new_image("editpanel_up.png");
548 VFrame *editpanel_hi = new_image("editpanel_hi.png");
549 VFrame *editpanel_dn = new_image("editpanel_dn.png");
550 VFrame *editpanel_checked = new_image("editpanel_checked.png");
551 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
553 //Graphic Copied from default. Improve!!
554 new_image("panel_divider", "panel_divider.png");
555 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
556 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
557 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
560 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
561 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
562 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
563 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
564 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
565 // indelete_data = new_button("clearinpoint.png", editpanel_up, editpanel_hi, editpanel_dn); //Specific to BD
566 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
567 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
568 new_button("magnifyS.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "magnify_button");
569 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
570 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
571 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
572 // outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn); //Specific to BD
573 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
574 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
575 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
576 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
577 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
578 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
579 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
580 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
581 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
582 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
583 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
584 new_button("wrench.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "wrench");
586 //Make transparent borders
587 #define TRANSPORT_LEFT_IMAGES "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
588 #define TRANSPORT_CENTER_IMAGES "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
589 #define TRANSPORT_RIGHT_IMAGES "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
590 // build_transport(duplex_data, get_image_data("duplex.png"), transport_bg, 1); //Specific to BD
591 new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
592 new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
593 new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
594 new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
595 new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
596 new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
597 //Graphic Copied from default. Improve!!
598 new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
599 new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
600 //Graphic Copied from default. Improve!!
601 new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
602 new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
603 new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
604 new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
605 new_button("stoprec.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
610 //Graphic Copied from default. Improve!!
611 new_image("cwindow_inactive", "cwindow_inactive.png");
612 new_image("cwindow_active", "cwindow_active.png");
615 new_image_set("batch_render_start",
619 "batchstart_dn.png");
620 new_image_set("batch_render_stop",
625 new_image_set("batch_render_cancel",
627 "batchcancel_up.png",
628 "batchcancel_hi.png",
629 "batchcancel_dn.png");
631 // MIHA: COPIED FROM DEFAULT THEME M2>>
632 //Graphic Copied from default. Improve!!
633 new_image_set("category_button",
635 "preferencesbutton_dn.png",
636 "preferencesbutton_dnhi.png",
637 "preferencesbutton_dnlo.png");
639 new_image_set("category_button_checked",
641 "preferencesbutton_up.png",
642 "preferencesbutton_uphi.png",
643 "preferencesbutton_dnlo.png");
644 // MIHA: COPIED FROM DEFAULT THEME M2<<
647 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
648 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
649 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
650 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
651 new_toggle("blank30x30.png",
652 new_image("locklabels_locked.png"),
653 new_image("locklabels_lockedhi.png"),
654 new_image("locklabels_unlocked.png"),
655 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
656 new_image("locklabels_unlockedhi.png"),
659 // MIHA: COPIED FROM DEFAULT THEME M3>>
660 //Is that necessary??
661 VFrame *cpanel_up = new_image("editpanel_up.png");
662 VFrame *cpanel_hi = new_image("editpanel_hi.png");
663 VFrame *cpanel_dn = new_image("editpanel_dn.png");
664 VFrame *cpanel_checked = new_image("editpanel_checked.png");
665 VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
667 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
668 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
669 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
670 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
671 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
672 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
673 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
674 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
675 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
677 // MIHA: COPIED FROM DEFAULT THEME M3<<
679 // Maybe we can live without the commented part
680 // MIHA: Commented out in favor of default version M4>>
681 // new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"camera");
682 // new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"crop");
683 // new_toggle("eyedrop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"eyedrop");
684 // new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"magnify");
685 // new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"mask");
686 // new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"projector");
687 // new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"protect");
688 // new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"titlesafe");
689 // new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"tool");
690 // MIHA: Commented out in favor of default version M4<<
695 title_font = MEDIUMFONT;
697 recordgui_fixed_color = BLACK;
698 recordgui_variable_color = RED;
699 resources->medium_font = N_("-*-helvetica-medium-r-normal-*-14-*");
701 channel_position_color = MEYELLOW;
702 resources->meter_title_w = 25;
704 // (asset) edit info text color
705 edit_font_color = BLACK;
709 resources->draw_clock_background = 0;
713 resources->button_highlighted = LTGREY;
714 resources->button_uphighlighted = DKGREY;
715 resources->button_light = WHITE;
716 resources->button_up = LTGREY;
717 resources->button_shadow = DKGREY;
718 resources->button_down = MDGREY;
724 resources->label_images = new_image_set(5,
727 "radial_checked.png",
729 "radial_checkedhi.png");
731 /* resources->type_to_icon = new_image_set(5,
740 resources->audiovideo_color = DKGREY;
742 //Specific to BD - Copied from Blonde, replace letters
744 resources->medium_7segment = new_image_set(20,
745 "black_0.png", "black_1.png", "black_2.png", "black_3.png", "black_4.png", "black_5.png", "black_6.png", "black_7.png", "black_8.png", "black_9.png", "black_colon.png", "black_period.png", "black_a.png", "black_b.png", "black_c.png", "black_d.png", "black_e.png", "black_f.png", "black_space.png", "black_dash.png");
749 resources->tooltip_bg_color = 0xfff7e3;
752 //CWINDOW is probalby ComposerWindow, V=ViewerWindow
753 #define CWINDOW_METER_MARGIN 5
754 #define VWINDOW_METER_MARGIN 5
757 void BlueDotTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
759 // Position of menu buttons (start, stop, ff, etc.)
761 mbuttons_y = gui->mainmenu->get_h();
763 mbuttons_h = get_image("mbutton_left")->get_h();
764 mclock_x = 20; //x position of digits in clock window
765 mclock_y = mbuttons_y + 1 + mbuttons_h + CWINDOW_METER_MARGIN;
766 mclock_w = get_image("clock_bg")->get_w() - 72;
767 mclock_h = get_image("clock_bg")->get_h();
769 //Time bar - coordinates and dimensions
770 mtimebar_x = get_image("patchbay_bg")->get_w();
771 mtimebar_y = mbuttons_y + mbuttons_h;
772 mtimebar_w = w - mtimebar_x;
773 mtimebar_h = get_image("timebar_bg")->get_h();
775 // Zooming tracks - just above the status bar
776 mzoom_h = get_image("zoombar_left")->get_h();
778 mzoom_y = h - get_image("statusbar_left")->get_h() - mzoom_h;
781 // Status bar at the very bottom of the screen.
783 // mstatus_y = mzoom_y + mzoom_h;
784 mstatus_y = mzoom_y + mzoom_h;
786 mstatus_h = h - mstatus_y;
787 mstatus_message_x = 10;
788 mstatus_message_y = 8;
789 mstatus_progress_w = 230;
790 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
791 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
794 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
795 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
797 //This is Patch Bay - on the left side of the tracks.
799 patchbay_y = mtimebar_y + mtimebar_h;
800 patchbay_w = get_image("patchbay_bg")->get_w();
801 patchbay_h = mzoom_y - patchbay_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
803 //Canvas where audio and video tracks are
804 mcanvas_x = patchbay_x + patchbay_w;
805 mcanvas_y = mtimebar_y + mtimebar_h;
806 mcanvas_w = w - patchbay_w - BC_ScrollBar::get_span(SCROLL_VERT);
807 mcanvas_h = patchbay_h;
810 mhscroll_y = mzoom_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
811 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT);
812 mvscroll_x = mcanvas_x + mcanvas_w;
813 mvscroll_y = mcanvas_y;
814 mvscroll_h = mcanvas_h;
818 void BlueDotTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
825 ccomposite_w = get_image("cpanel_bg")->get_w();
826 ccomposite_h = mwindow->session->cwindow_h -
827 get_image("cbuttons_left")->get_h();
829 cslider_y = ccomposite_h + 23;
831 cedit_y = cslider_y + 17;
833 ctransport_y = mwindow->session->cwindow_h -
834 get_image_set("autokeyframe")[0]->get_h();
835 ccanvas_x = ccomposite_x + ccomposite_w;
837 ccanvas_h = ccomposite_h;
840 cstatus_y = mwindow->session->cwindow_h - 66;
842 if(mwindow->edl->session->cwindow_meter)
844 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
845 mwindow->edl->session->cwindow_meter);
846 ccanvas_w = cmeter_x - ccanvas_x - 5;
850 cmeter_x = mwindow->session->cwindow_w;
851 ccanvas_w = cmeter_x - ccanvas_x;
858 ccomposite_x = -get_image("cpanel_bg")->get_w();
860 ccomposite_w = get_image("cpanel_bg")->get_w();
861 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
864 cslider_y = mwindow->session->cwindow_h;
866 cedit_y = cslider_y + 17;
868 ctransport_y = cedit_y + 40;
871 ccanvas_w = mwindow->session->cwindow_w;
872 ccanvas_h = mwindow->session->cwindow_h;
873 cmeter_x = mwindow->session->cwindow_w;
875 cstatus_x = mwindow->session->cwindow_w;
876 cstatus_y = mwindow->session->cwindow_h;
883 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
884 czoom_y = ctransport_y + 5;
888 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
891 cslider_w = ccanvas_x + ccanvas_w - cslider_x;
892 ctimebar_x = ccanvas_x;
893 ctimebar_y = ccanvas_y + ccanvas_h;
894 ctimebar_w = ccanvas_w;
899 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
900 ctime_y = ctransport_y;
902 cdest_y = czoom_y + 30;
908 void BlueDotTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
913 // COPIED START--------
914 void BlueDotTheme::get_rmonitor_sizes(int do_audio,
921 Theme::get_rmonitor_sizes(do_audio,
927 if(!do_video && do_audio)
929 rmonitor_meter_y -= 30;
930 rmonitor_meter_h += 30;
933 // COPIED END--------
936 void BlueDotTheme::get_vwindow_sizes(VWindowGUI *gui)
939 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
942 vcanvas_h = mwindow->session->vwindow_h - get_image("vbuttons_left")->get_h();
944 if(mwindow->edl->session->vwindow_meter)
946 vmeter_x = mwindow->session->vwindow_w -
947 VWINDOW_METER_MARGIN -
948 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
949 mwindow->edl->session->vwindow_meter);
950 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
954 vmeter_x = mwindow->session->vwindow_w;
955 vcanvas_w = mwindow->session->vwindow_w;
958 vtimebar_x = vcanvas_x;
959 vtimebar_y = vcanvas_y + vcanvas_h;
960 vtimebar_w = vcanvas_w;
965 vslider_y = vtimebar_y + 25;
966 vslider_w = vtimebar_w - vslider_x;
968 vedit_y = vslider_y + 17;
970 vtransport_y = mwindow->session->vwindow_h -
971 get_image_set("autokeyframe")[0]->get_h();
973 vtime_y = vedit_y + 7;
979 vzoom_x = vtime_x + 150;
981 vsource_x = vtime_x + 50;
982 vsource_y = vtransport_y + 5;
989 void BlueDotTheme::build_icons()
991 new_image("mwindow_icon", "heroine_icon.png");
992 new_image("vwindow_icon", "heroine_icon.png");
993 new_image("cwindow_icon", "heroine_icon.png");
994 new_image("awindow_icon", "heroine_icon.png");
995 new_image("record_icon", "heroine_icon.png");
996 new_image("clip_icon", "clip_icon.png");
1001 void BlueDotTheme::build_bg_data()
1004 channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
1005 channel_position_data = new VFrame(get_image_data("channel_position.png"));
1008 new_image("resource1024", "resource1024.png");
1009 new_image("resource512", "resource512.png");
1010 new_image("resource256", "resource256.png");
1011 new_image("resource128", "resource128.png");
1012 new_image("resource64", "resource64.png");
1013 new_image("resource32", "resource32.png");
1014 //Graphic Copied from default. Improve!!
1015 new_image("plugin_bg_data", "plugin_bg.png");
1016 new_image("title_bg_data", "title_bg.png");
1017 new_image("vtimebar_bg_data", "vwindow_timebar.png");
1021 //Graphic Copied from default. Improve!! -- use your imagination
1022 void BlueDotTheme::build_overlays()
1024 keyframe_data = new VFrame(get_image_data("keyframe3.png"));
1025 camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
1026 maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
1027 modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
1028 pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
1029 projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
1040 void BlueDotTheme::draw_rwindow_bg(RecordGUI *gui)
1044 // int margin2 = 80;
1045 // gui->draw_9segment(recordgui_batch_x - margin,
1047 // mwindow->session->rwindow_w - recordgui_status_x + margin,
1048 // recordgui_buttons_y,
1050 // gui->draw_3segmenth(recordgui_options_x - margin2,
1051 // recordgui_buttons_y - 5,
1052 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
1054 // y = recordgui_buttons_y - 5 + rgui_controls->get_h();
1055 // gui->draw_9segment(0,
1057 // mwindow->session->rwindow_w,
1058 // mwindow->session->rwindow_h - y,
1062 void BlueDotTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1065 // int panel_w = 300;
1066 // int x = rmonitor_meter_x - margin;
1067 // int w = mwindow->session->rmonitor_w - x;
1068 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1069 // gui->clear_box(0,
1071 // mwindow->session->rmonitor_w,
1072 // mwindow->session->rmonitor_h);
1073 // gui->draw_9segment(x,
1076 // mwindow->session->rmonitor_h,
1077 // rmonitor_meters);
1085 void BlueDotTheme::draw_mwindow_bg(MWindowGUI *gui)
1087 // Button bar (not menu bar)
1088 #define MBUTTONS_RIGHTEDGE 290 + 11 + 2*30 + 11 + 2*30 + 11 + 14*30
1089 gui->draw_3segmenth(mbuttons_x,
1092 get_image("mbutton_left"),
1094 gui->draw_3segmenth(mbuttons_x + MBUTTONS_RIGHTEDGE,
1097 get_image("mbutton_right"));
1099 // MIHA: COPIED FROM DEFAULT THEME M6>>
1100 gui->draw_vframe(get_image("panel_divider"),
1101 mbuttons_x + 290 + 5,
1104 gui->draw_vframe(get_image("panel_divider"),
1105 mbuttons_x + 290 + 11 + 30 * 2 + 5,
1108 gui->draw_vframe(get_image("panel_divider"),
1109 mbuttons_x + 290 + 11 + 30 * 2 + 11 + 30 * 2 + 5,
1113 // MIHA: COPIED FROM DEFAULT THEME M6<<
1116 // Clock (here the background of the clock is drawn)
1117 gui->draw_3segmenth(0,
1118 mbuttons_y + get_image("mbutton_left")->get_h(),
1119 get_image("patchbay_bg")->get_w(),
1120 get_image("clock_bg"));
1124 gui->draw_3segmentv(patchbay_x,
1127 get_image("patchbay_bg"));
1133 //Drawing of Track's canvas
1134 gui->draw_9segment(mcanvas_x,
1138 get_image("tracks_bg"));
1142 gui->draw_3segmenth(mtimebar_x,
1145 get_image("timebar_bg"));
1149 #define ZOOMBAR_CENTER 1100
1150 gui->draw_3segmenth(mzoom_x,
1153 get_image("zoombar_left"));
1154 if(mzoom_w > ZOOMBAR_CENTER)
1155 gui->draw_3segmenth(mzoom_x + ZOOMBAR_CENTER,
1157 mzoom_w - ZOOMBAR_CENTER,
1158 get_image("zoombar_right"));
1162 gui->draw_3segmenth(mstatus_x,
1165 get_image("statusbar_left"));
1167 if(mstatus_w > ZOOMBAR_CENTER)
1168 gui->draw_3segmenth(mstatus_x + ZOOMBAR_CENTER,
1170 mstatus_w - ZOOMBAR_CENTER,
1171 get_image("statusbar_right"));
1175 void BlueDotTheme::draw_cwindow_bg(CWindowGUI *gui)
1178 const int button_division = 530;
1179 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1180 gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1181 if(mwindow->edl->session->cwindow_meter)
1183 gui->draw_3segmenth(button_division,
1185 cmeter_x - CWINDOW_METER_MARGIN - button_division,
1186 get_image("cbuttons_right"));
1187 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
1189 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
1190 mwindow->session->cwindow_h,
1191 get_image("cmeter_bg"));
1195 gui->draw_3segmenth(button_division,
1197 cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
1198 get_image("cbuttons_right"));
1202 void BlueDotTheme::draw_vwindow_bg(VWindowGUI *gui)
1205 const int button_division = 535;
1206 gui->draw_3segmenth(0,
1209 get_image("vbuttons_left"));
1210 if(mwindow->edl->session->vwindow_meter)
1212 gui->draw_3segmenth(button_division,
1214 vmeter_x - VWINDOW_METER_MARGIN - button_division,
1215 get_image("vbuttons_right"));
1216 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
1218 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
1219 mwindow->session->vwindow_h,
1220 get_image("vmeter_bg"));
1224 gui->draw_3segmenth(button_division,
1226 vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
1227 get_image("vbuttons_right"));
1231 void BlueDotTheme::get_preferences_sizes()
1236 void BlueDotTheme::draw_preferences_bg(PreferencesWindow *gui)
1238 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, get_image("preferences_bg"));
1241 void BlueDotTheme::get_new_sizes(NewWindow *gui)
1245 void BlueDotTheme::draw_new_bg(NewWindow *gui)
1247 gui->draw_vframe(get_image("new_bg"), 0, 0);
1250 void BlueDotTheme::draw_setformat_bg(SetFormatWindow *gui)
1252 gui->draw_vframe(get_image("setformat_bg"), 0, 0);