4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "bcsignals.h"
25 #include "cwindowgui.h"
26 #include "bluedottheme.h"
28 #include "edlsession.h"
30 #include "mainsession.h"
32 #include "meterpanel.h"
34 #include "mwindowgui.h"
37 #include "preferencesthread.h"
38 #include "recordgui.h"
39 #include "recordmonitor.h"
40 #include "setformat.h"
41 #include "statusbar.h"
43 #include "trackcanvas.h"
45 #include "vwindowgui.h"
49 #define BGREY 0xc0c0e0 //MEGEY with a shade of blue
50 #define DDBLUE 0x000050 //Dark blue with the shade of grey
53 PluginClient* new_plugin(PluginServer *server)
55 return new BlueDotThemeMain(server);
58 BlueDotThemeMain::BlueDotThemeMain(PluginServer *server)
59 : PluginTClient(server)
63 BlueDotThemeMain::~BlueDotThemeMain()
67 const char* BlueDotThemeMain::plugin_title() { return N_("Blue Dot"); }
69 Theme* BlueDotThemeMain::new_theme()
71 theme = new BlueDotTheme;
72 extern unsigned char _binary_theme_blue_dot_data_start[];
73 theme->set_data(_binary_theme_blue_dot_data_start);
78 BlueDotTheme::BlueDotTheme()
83 BlueDotTheme::~BlueDotTheme()
85 delete camerakeyframe_data;
86 delete channel_bg_data;
87 delete channel_position_data;
89 delete maskkeyframe_data;
90 delete modekeyframe_data;
92 delete pankeyframe_data;
93 delete projectorkeyframe_data;
96 void BlueDotTheme::initialize()
98 BC_Resources *resources = BC_WindowBase::get_resources();
100 // about_bg = new_image("about_bg.png");
103 resources->text_default = 0x000000;
104 resources->text_background = 0xffffff;
105 resources->text_background_disarmed = 0xff3939;
106 resources->text_border1 = 0x4a484a; // (top outer)
107 resources->text_border2 = 0x000000; // (top inner)
108 resources->text_border3 = 0xacaeac; // (bottom inner)
109 resources->text_border4 = 0xffffff; // (bottom outer)
110 resources->text_inactive_highlight = 0xacacac;
111 resources->text_highlight = BGREY;
113 resources->bg_color = FGGREY; //bg of windows (where no pics...
114 resources->default_text_color = 0x000000;
115 resources->menu_title_text = 0x000000;
116 resources->popup_title_text = 0x000000;
117 resources->menu_item_text = BLACK;
119 resources->generic_button_margin = xS(15); //Length of buttons and color tabs
120 resources->pot_needle_color = resources->text_default;
121 resources->pot_offset = 0;
122 resources->progress_text = resources->text_default;
123 resources->meter_font = SMALLFONT; //Specific to BD
124 resources->meter_font_color = BLACK;
125 resources->meter_title_w = xS(20); //Specific to BD
126 resources->meter_3d = 0; //Specific to BD
128 resources->menu_light = FTGREY; //menu
129 resources->menu_highlighted = BGREY; //NMBLUE
130 resources->menu_down = BGREY;
131 resources->menu_up = FGGREY;
132 resources->menu_shadow = FTGREY;
134 resources->popupmenu_margin = xS(10);
135 resources->popupmenu_triangle_margin = xS(15);
138 resources->listbox_title_color = 0x000000;
140 resources->listbox_title_margin = 0;
141 resources->listbox_title_hotspot = 5; // No. of pixels around the borders to allow dragging
142 resources->listbox_border1 = 0x4a484a; // (top outer)
143 resources->listbox_border2 = 0x000000; // (top inner)
144 resources->listbox_border3 = 0xffe200; // (bottom inner)
145 resources->listbox_border4 = 0xffffff; // (bottom outer)
146 resources->listbox_highlighted = 0xeee6ee;
147 resources->listbox_inactive = 0xffffffff; // (background)
148 resources->listbox_bg = new_image("list_bg.png"); //NOT COPIED!
149 resources->listbox_text = 0x000000;
150 resources->listbox_selected = BGREY;
152 resources->dirbox_margin = yS(50);
153 resources->filebox_margin = yS(105);
154 resources->file_color = 0x000000;
155 resources->directory_color = DKBLUE;
156 resources->menu_highlighted_fontcolor = DDBLUE; //Specific to BD
158 new_toggle("loadmode_new.png",
161 "loadmode_checked.png",
163 "loadmode_checkedhi.png",
165 new_toggle("loadmode_none.png",
168 "loadmode_checked.png",
170 "loadmode_checkedhi.png",
172 new_toggle("loadmode_newcat.png",
175 "loadmode_checked.png",
177 "loadmode_checkedhi.png",
179 new_toggle("loadmode_cat.png",
182 "loadmode_checked.png",
184 "loadmode_checkedhi.png",
186 new_toggle("loadmode_newtracks.png",
189 "loadmode_checked.png",
191 "loadmode_checkedhi.png",
192 "loadmode_newtracks");
193 new_toggle("loadmode_paste.png",
196 "loadmode_checked.png",
198 "loadmode_checkedhi.png",
200 new_toggle("loadmode_resource.png",
203 "loadmode_checked.png",
205 "loadmode_checkedhi.png",
206 "loadmode_resource");
208 new_toggle("loadmode_edl_clip.png",
211 "loadmode_checked.png",
213 "loadmode_checkedhi.png",
214 "loadmode_edl_clip");
215 new_toggle("loadmode_edl_nested.png",
218 "loadmode_checked.png",
220 "loadmode_checkedhi.png",
221 "loadmode_edl_nested");
222 new_toggle("loadmode_edl_fileref.png",
225 "loadmode_checked.png",
227 "loadmode_checkedhi.png",
228 "loadmode_edl_fileref");
230 //There are differences here, but we won't change until the end.
232 resources->filebox_icons_images = new_image_set(3,
234 "file_icons_uphi.png",
235 "file_icons_dn.png");
237 resources->filebox_text_images = new_image_set(3,
239 "file_text_uphi.png",
242 resources->filebox_newfolder_images = new_image_set(3,
243 "file_newfolder_up.png",
244 "file_newfolder_uphi.png",
245 "file_newfolder_dn.png");
247 resources->filebox_updir_images = new_image_set(3,
249 "file_updir_uphi.png",
250 "file_updir_dn.png");
252 resources->filebox_delete_images = new_image_set(3,
253 "file_delete_up.png",
254 "file_delete_uphi.png",
255 "file_delete_dn.png");
257 resources->filebox_reload_images = new_image_set(3,
258 "file_reload_up.png",
259 "file_reload_uphi.png",
260 "file_reload_dn.png");
263 resources->filebox_descend_images = new_image_set(3,
264 "file_openfolder_up.png",
265 "file_openfolder_uphi.png",
266 "file_openfolder_dn.png");
269 resources->usethis_button_images =
270 resources->ok_images = new_button("ok.png",
282 new_button("reset.png",
288 new_button("unclear.png",
294 new_button("keyframe.png",
300 resources->cancel_images = new_button("cancel.png",
306 new_button("cancel.png",
310 "new_cancel_images");
312 new_button("mask_pnt_linear.png",
313 "mask_button_up.png",
314 "mask_button_hi.png",
315 "mask_button_dn.png",
316 "mask_pnt_linear_images");
317 new_button("mask_crv_linear.png",
318 "mask_button_up.png",
319 "mask_button_hi.png",
320 "mask_button_dn.png",
321 "mask_crv_linear_images");
322 new_button("mask_all_linear.png",
323 "mask_button_up.png",
324 "mask_button_hi.png",
325 "mask_button_dn.png",
326 "mask_all_linear_images");
328 new_button("mask_pnt_smooth.png",
329 "mask_button_up.png",
330 "mask_button_hi.png",
331 "mask_button_dn.png",
332 "mask_pnt_smooth_images");
333 new_button("mask_crv_smooth.png",
334 "mask_button_up.png",
335 "mask_button_hi.png",
336 "mask_button_dn.png",
337 "mask_crv_smooth_images");
338 new_button("mask_all_smooth.png",
339 "mask_button_up.png",
340 "mask_button_hi.png",
341 "mask_button_dn.png",
342 "mask_all_smooth_images");
344 resources->bar_data = new_image("bar", "bar.png");
346 new_button("mask_prst_sqr.png",
347 "mask_button_up.png",
348 "mask_button_hi.png",
349 "mask_button_dn.png",
350 "mask_prst_sqr_images");
351 new_button("mask_prst_crc.png",
352 "mask_button_up.png",
353 "mask_button_hi.png",
354 "mask_button_dn.png",
355 "mask_prst_crc_images");
356 new_button("mask_prst_tri.png",
357 "mask_button_up.png",
358 "mask_button_hi.png",
359 "mask_button_dn.png",
360 "mask_prst_tri_images");
361 new_button("mask_prst_ovl.png",
362 "mask_button_up.png",
363 "mask_button_hi.png",
364 "mask_button_dn.png",
365 "mask_prst_ovl_images");
367 new_button("mask_prst_load.png",
368 "mask_button_up.png",
369 "mask_button_hi.png",
370 "mask_button_dn.png",
371 "mask_prst_load_images");
372 new_button("mask_prst_save.png",
373 "mask_button_up.png",
374 "mask_button_hi.png",
375 "mask_button_dn.png",
376 "mask_prst_save_images");
377 new_button("mask_prst_trsh.png",
378 "mask_button_up.png",
379 "mask_button_hi.png",
380 "mask_button_dn.png",
381 "mask_prst_trsh_images");
383 new_button("mask_pstn_cen.png",
384 "mask_button_up.png",
385 "mask_button_hi.png",
386 "mask_button_dn.png",
387 "mask_pstn_cen_images");
388 new_button("mask_pstn_nrm.png",
389 "mask_button_up.png",
390 "mask_button_hi.png",
391 "mask_button_dn.png",
392 "mask_pstn_nrm_images");
395 resources->medium_7segment = new_image_set(20,
396 "black_0.png", "black_1.png", "black_2.png", "black_3.png",
397 "black_4.png", "black_5.png", "black_6.png", "black_7.png",
398 "black_8.png", "black_9.png", "black_colon.png", "black_period.png",
399 "black_a.png", "black_b.png", "black_c.png", "black_d.png",
400 "black_e.png", "black_f.png", "black_space.png", "black_dash.png");
402 resources->bar_data = new_image("bar", "bar.png");
403 resources->check = new_image("check", "check.png");
405 resources->min_menu_w = 0;
406 resources->menu_popup_bg = 0; // if (0) use menu_light, menu_up, menu_shadow
407 resources->menu_item_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
408 resources->menu_bar_bg = 0; // if (0) use menu_light, menu_shadow, and height of MEDIUMFONT + 8
409 resources->menu_title_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
412 resources->popupmenu_images = 0; // if (0) get_resources()->use generic_button_images
414 resources->toggle_highlight_bg = 0; // if (0) "Draw a plain box" as per bctoggle.C
416 resources->generic_button_images = new_image_set(3,
420 resources->horizontal_slider_data = new_image_set(6,
426 "hslider_bg_dn.png");
427 resources->vertical_slider_data = new_image_set(6,
428 "vertical_slider_fg_up.png",
429 "vertical_slider_fg_hi.png",
430 "vertical_slider_fg_dn.png",
431 "vertical_slider_bg_up.png",
432 "vertical_slider_bg_hi.png",
433 "vertical_slider_bg_dn.png");
434 resources->progress_images = new_image_set(2,
437 resources->tumble_data = new_image_set(4,
442 new_image_set("tumblepatch_data", 4,
443 "tumblepatch_up.png",
444 "tumblepatch_hi.png",
445 "tumblepatch_bottom.png",
446 "tumblepatch_top.png");
447 resources->listbox_button = new_image_set(4,
448 "listbox_button_up.png",
449 "listbox_button_hi.png",
450 "listbox_button_dn.png",
451 "listbox_button_disabled.png"); // probably need to make this for the suv theme
452 resources->listbox_column = new_image_set(3,
456 resources->listbox_expand = new_image_set(5,
457 "listbox_expandup.png",
458 "listbox_expanduphi.png",
459 "listbox_expandchecked.png",
460 "listbox_expanddn.png",
461 "listbox_expandcheckedhi.png");
462 resources->listbox_up = new_image("listbox_up.png");
463 resources->listbox_dn = new_image("listbox_dn.png");
464 resources->pan_data = new_image_set(7,
470 "pan_channel_small.png",
471 "pan_stick_small.png");
472 resources->pan_text_color = WHITE;
474 resources->pot_images = new_image_set(3,
477 "pot_dn.png"); //Graphic Copied from default. Improve!!
479 resources->checkbox_images = new_image_set(5,
482 "checkbox_checked.png",
484 "checkbox_checkedhi.png");
486 resources->radial_images = new_image_set(5,
489 "radial_checked.png",
491 "radial_checkedhi.png");
493 resources->xmeter_images = new_image_set(7,
501 resources->ymeter_images = new_image_set(7,
510 resources->hscroll_data = new_image_set(10,
511 "hscroll_center_up.png",
512 "hscroll_center_hi.png",
513 "hscroll_center_dn.png",
515 "hscroll_back_up.png",
516 "hscroll_back_hi.png",
517 "hscroll_back_dn.png",
518 "hscroll_fwd_up.png",
519 "hscroll_fwd_hi.png",
520 "hscroll_fwd_dn.png");
522 resources->vscroll_data = new_image_set(10,
523 "vscroll_center_up.png",
524 "vscroll_center_hi.png",
525 "vscroll_center_dn.png",
527 "vscroll_back_up.png",
528 "vscroll_back_hi.png",
529 "vscroll_back_dn.png",
530 "vscroll_fwd_up.png",
531 "vscroll_fwd_hi.png",
532 "vscroll_fwd_dn.png");
534 //Graphic Copied from default. Improve!!
535 //To make this work better, it may be neccessary to replace new_button with new_image_set
536 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
537 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
538 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
539 new_button("swap_extents.png",
544 //swap_extents.png not copied
547 rgui_batch = new_image("recordgui_batch.png");
548 rgui_controls = new_image("recordgui_controls.png");
549 rgui_list = new_image("recordgui_list.png");
550 rmonitor_panel = new_image("recordmonitor_panel.png");
551 rmonitor_meters = new_image("recordmonitor_meters.png");
555 preferences_category_overlap = 0;
556 preferencescategory_x = xS(5);
557 preferencescategory_y = yS(5);
558 preferencestitle_x = xS(5);
559 preferencestitle_y = yS(10);
560 preferencesoptions_x = xS(5);
561 preferencesoptions_y = 0;
566 message_normal = resources->text_default;
568 mtransport_margin = xS(11);
569 toggle_margin = xS(11);
572 new_image("mbutton_left","mbutton_left.png");
573 new_image("mbutton_right","mbutton_right.png");
574 new_image("timebar_bg", "timebar_bg.png");
575 new_image("timebar_brender", "timebar_brender.png");
576 new_image("clock_bg", "mclock.png");
577 new_image("patchbay_bg", "patchbay_bg.png");
578 new_image("tracks_bg","tracks_bg.png");
579 new_image("zoombar_left","zoombar_left.png");
580 new_image("zoombar_right","zoombar_right.png");
581 new_image("statusbar_left","statusbar_left.png");
582 new_image("statusbar_right","statusbar_right.png");
584 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
585 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
586 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
588 //Here an improvement may be needed
589 new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
590 new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
591 new_image_set("auto_range", 4, "autorange_up.png", "autorange_hi.png", "autorange_bottom.png", "autorange_top.png");
593 //Graphic Copied from default. Improve!!
594 new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
595 new_image("mode_add", "mode_add.png");
596 new_image("mode_divide", "mode_divide.png");
597 new_image("mode_multiply", "mode_multiply.png");
598 new_image("mode_normal", "mode_normal.png");
599 new_image("mode_replace", "mode_replace.png");
600 new_image("mode_subtract", "mode_subtract.png");
601 new_image("mode_max", "mode_max.png");
602 new_image("mode_min", "mode_min.png");
604 //Graphic Copied from default. Improve!!
605 new_toggle("plugin_on.png",
606 "pluginbutton_hi.png",
607 "pluginbutton_hi.png",
608 "pluginbutton_select.png",
609 "pluginbutton_dn.png",
610 "pluginbutton_selecthi.png",
613 //Graphic Copied from default. Improve!!
614 new_toggle("plugin_show.png",
616 "pluginbutton_hi.png",
617 "pluginbutton_select.png",
618 "pluginbutton_dn.png",
619 "pluginbutton_selecthi.png",
622 new_image("cpanel_bg", "cpanel_bg.png");
623 new_image("cbuttons_left", "cbuttons_left.png");
624 new_image("cbuttons_right", "cbuttons_right.png");
625 new_image("cmeter_bg", "cmeter_bg.png");
626 new_image("cwindow_focus", "cwindow_focus.png");
627 new_image("vbuttons_left", "vbuttons_left.png");
628 new_image("vbuttons_right", "vbuttons_right.png");
629 timebar_view_data = new_image("timebar_view.png");
632 new_image("cpanel_bg.png");
633 new_image("cbuttons_left.png");
634 new_image("cbuttons_right.png");
635 new_image("cmeter_bg.png");
638 new_image("vbuttons_left.png");
639 new_image("vbuttons_right.png");
640 new_image("vmeter_bg.png");
642 new_image("preferences_bg", "preferences_bg.png");
645 new_image("new_bg", "new_bg.png");
646 new_image("setformat_bg", "setformat_bg2.png");
648 // x, y of Format dialog box
649 setformat_w = xS(600);
650 setformat_h = yS(560);
651 setformat_x1 = xS(15);
652 setformat_x2 = xS(100);
654 setformat_x3 = xS(315);
655 setformat_x4 = xS(415);
656 setformat_y1 = yS(20);
657 setformat_y2 = yS(85);
658 setformat_y3 = yS(125);
659 setformat_margin = xS(30);
660 setformat_channels_x = xS(25);
661 setformat_channels_y = yS(242);
662 setformat_channels_w = xS(250);
663 setformat_channels_h = yS(250);
665 loadfile_pad = yS(70);
668 //This buttons miss a bit. May need to be improved
669 new_image_set("playpatch_data",
673 "playpatch_checked.png",
675 "playpatch_checkedhi.png");
677 new_image_set("recordpatch_data",
679 "recordpatch_up.png",
680 "recordpatch_hi.png",
681 "recordpatch_checked.png",
682 "recordpatch_dn.png",
683 "recordpatch_checkedhi.png");
685 new_image_set("gangpatch_data",
689 "gangpatch_checked.png",
691 "gangpatch_checkedhi.png");
693 new_image_set("drawpatch_data",
697 "drawpatch_checked.png",
699 "drawpatch_checkedhi.png");
701 new_toggle("masterpatch.png",
706 "patch_checkedhi.png",
710 new_image_set("mutepatch_data",
714 "mutepatch_checked.png",
716 "mutepatch_checkedhi.png");
718 new_image_set("expandpatch_data",
720 "expandpatch_up.png",
721 "expandpatch_hi.png",
722 "expandpatch_checked.png",
723 "expandpatch_dn.png",
724 "expandpatch_checkedhi.png");
732 //Graphic Copied from default. Improve!! -> See outpoint.png/inpoint.png
733 out_point = new_image_set(5,
738 "out_checkedhi.png");
739 in_point = new_image_set(5,
746 //Graphic Copied from default. Improve!! -> see label.png
747 label_toggle = new_image_set(5,
748 "labeltoggle_up.png",
749 "labeltoggle_uphi.png",
751 "labeltoggle_dn.png",
752 "label_checkedhi.png");
754 ffmpeg_toggle = new_image_set(5,
761 proxy_p_toggle = new_image_set(5,
766 "proxy_p_chkdhi.png");
768 proxy_s_toggle = new_image_set(5,
773 "proxy_s_chkdhi.png");
775 mask_mode_toggle = new_image_set(5,
778 "mask_mode_chkd.png",
779 "mask_mode_down.png",
780 "mask_mode_chkdhi.png");
782 shbtn_data = new_image_set(3,
787 new_image_set("preset_edit",
793 statusbar_cancel_data = new_image_set(3,
794 "statusbar_cancel_up.png",
795 "statusbar_cancel_hi.png",
796 "statusbar_cancel_dn.png");
798 //Graphic Copied from default. Improve!! -> make transparent edges
799 VFrame *editpanel_up = new_image("editpanel_up.png");
800 VFrame *editpanel_hi = new_image("editpanel_hi.png");
801 VFrame *editpanel_dn = new_image("editpanel_dn.png");
802 VFrame *editpanel_checked = new_image("editpanel_checked.png");
803 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
805 //Graphic Copied from default. Improve!!
806 new_image("panel_divider", "panel_divider.png");
807 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
808 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
809 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
810 new_button("lok.png", editpanel_up, editpanel_hi, editpanel_dn, "lok");
812 new_toggle("histogram_toggle.png",
819 new_toggle("histogram_rgb.png",
825 "histogram_rgb_toggle");
826 new_toggle("waveform.png",
833 new_toggle("waveform_rgb.png",
839 "waveform_rgb_toggle");
840 new_toggle("scope.png",
848 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
849 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
851 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
852 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
853 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
854 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
855 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
856 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
857 // indelete_data = new_button("clearinpoint.png", editpanel_up, editpanel_hi, editpanel_dn); //Specific to BD
858 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
859 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
860 new_button("magnifyS.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "magnify_button");
861 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
862 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
863 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
864 // outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn); //Specific to BD
865 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
866 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
867 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
868 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
869 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
870 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
871 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
872 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
873 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
874 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
875 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
876 new_button("clapper.png", editpanel_up, editpanel_hi, editpanel_dn, "clapperbutton");
877 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
878 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
879 new_button("wrench.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "wrench");
881 VFrame **edge_on = new_toggle("edge_on.png",
882 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "edge_on");
883 VFrame **edge_off = new_toggle("edge_off.png",
884 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "edge_off");
885 new_image_set_images("bump_edge", 5,
886 new VFrame(*edge_off[0]), new VFrame(*edge_off[1]),
887 new VFrame(*edge_on[0]), new VFrame(*edge_off[3]),
888 new VFrame(*edge_on[4]));
889 VFrame **span_on = new_toggle("span_on.png",
890 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "span_on");
891 VFrame **span_off = new_toggle("span_off.png",
892 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "span_off");
893 new_image_set_images("bump_span", 5,
894 new VFrame(*span_off[0]), new VFrame(*span_off[1]),
895 new VFrame(*span_on[0]), new VFrame(*span_off[3]),
896 new VFrame(*span_on[4]));
898 //Make transparent borders
899 #define TRANSPORT_LEFT_IMAGES "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
900 #define TRANSPORT_CENTER_IMAGES "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
901 #define TRANSPORT_RIGHT_IMAGES "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
902 // build_transport(duplex_data, get_image_data("duplex.png"), transport_bg, 1); //Specific to BD
903 new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
904 new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
905 new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
906 new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
907 new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
908 new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
909 //Graphic Copied from default. Improve!!
910 new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
911 new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
912 //Graphic Copied from default. Improve!!
913 new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
914 new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
915 new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
916 new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
917 new_button("stoprec.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
922 //Graphic Copied from default. Improve!!
923 new_image("cwindow_inactive", "cwindow_inactive.png");
924 new_image("cwindow_active", "cwindow_active.png");
927 new_image_set("batch_render_start",
931 "batchstart_dn.png");
932 new_image_set("batch_render_stop",
937 new_image_set("batch_render_cancel",
939 "batchcancel_up.png",
940 "batchcancel_hi.png",
941 "batchcancel_dn.png");
943 //Graphic Copied from default. Improve!!
944 new_image_set("category_button",
946 "preferencesbutton_dn.png",
947 "preferencesbutton_dnhi.png",
948 "preferencesbutton_dnlo.png");
950 new_image_set("category_button_checked",
952 "preferencesbutton_up.png",
953 "preferencesbutton_uphi.png",
954 "preferencesbutton_dnlo.png");
957 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
958 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
959 new_toggle("spankeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "spankeyframe");
960 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
961 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
962 new_toggle("blank30x30.png",
963 new_image("locklabels_locked.png"),
964 new_image("locklabels_lockedhi.png"),
965 new_image("locklabels_unlocked.png"),
966 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
967 new_image("locklabels_unlockedhi.png"),
969 new_toggle("gang0.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang0");
970 new_toggle("gang1.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang1");
971 new_toggle("gang2.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang2");
973 //Is that necessary??
974 VFrame *cpanel_up = new_image("editpanel_up.png");
975 VFrame *cpanel_hi = new_image("editpanel_hi.png");
976 VFrame *cpanel_dn = new_image("editpanel_dn.png");
977 VFrame *cpanel_checked = new_image("editpanel_checked.png");
978 VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
980 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
981 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
982 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
983 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
984 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
985 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
986 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
987 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
988 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
989 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
991 // toggle for tangent mode (compositor/tool window)
992 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
993 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
994 new_toggle("tan_tangent.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_tangent");
995 new_toggle("tan_free.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_free");
996 new_toggle("tan_bump.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_bump");
998 new_toggle("mask_scale_x.png", "mask_scale_up.png", "mask_scale_uphi.png",
999 "mask_scale_chkd.png", "mask_scale_xdown.png", "mask_scale_chkdhi.png",
1001 new_toggle("mask_scale_y.png", "mask_scale_up.png", "mask_scale_uphi.png",
1002 "mask_scale_chkd.png", "mask_scale_ydown.png", "mask_scale_chkdhi.png",
1004 new_toggle("mask_scale_xy.png", "mask_scale_up.png", "mask_scale_uphi.png",
1005 "mask_scale_chkd.png", "mask_scale_xydown.png", "mask_scale_chkdhi.png",
1010 title_font = MEDIUMFONT;
1011 title_color = BLACK;
1012 recordgui_fixed_color = BLACK;
1013 recordgui_variable_color = RED;
1015 int font_size = (int)(14*resources->font_scale + 0.5);
1016 char string[BCTEXTLEN];
1017 sprintf(string,"-*-helvetica-medium-r-normal-*-%d-*", font_size);
1018 delete [] resources->medium_font;
1019 resources->medium_font = cstrdup(string);
1021 channel_position_color = MEYELLOW;
1022 resources->meter_title_w = xS(28);
1024 // (asset) edit info text color
1025 edit_font_color = BLACK;
1029 resources->draw_clock_background = 0;
1033 resources->button_highlighted = LTGREY;
1034 resources->button_uphighlighted = DKGREY;
1035 resources->button_light = WHITE;
1036 resources->button_up = LTGREY;
1037 resources->button_shadow = DKGREY;
1038 resources->button_down = MDGREY;
1044 resources->label_images = new_image_set(5,
1047 "radial_checked.png",
1049 "radial_checkedhi.png");
1051 /* resources->type_to_icon = new_image_set(5,
1060 resources->audiovideo_color = DKGREY;
1064 resources->tooltip_bg_color = 0xfff7e3;
1067 #define CWINDOW_METER_MARGIN xS(5)
1068 #define VWINDOW_METER_MARGIN xS(5)
1071 void BlueDotTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
1073 // Position of menu buttons (start, stop, ff, etc.)
1075 mbuttons_y = gui->mainmenu->get_h();
1076 mbuttons_w = w - (ffmpeg_toggle[0]->get_w()+xS(2) + proxy_p_toggle[0]->get_w()+xS(2));
1077 mbuttons_h = get_image("mbutton_left")->get_h();
1078 mclock_x = xS(20); //x position of digits in clock window
1079 mclock_y = mbuttons_y + 1 + mbuttons_h + CWINDOW_METER_MARGIN;
1080 mclock_w = get_image("clock_bg")->get_w() - xS(72);
1081 mclock_h = get_image("clock_bg")->get_h();
1083 //Time bar - coordinates and dimensions
1084 mtimebar_x = get_image("patchbay_bg")->get_w();
1085 mtimebar_y = mbuttons_y + mbuttons_h;
1086 mtimebar_w = w - mtimebar_x;
1087 mtimebar_h = get_image("timebar_bg")->get_h();
1089 // Zooming tracks - just above the status bar
1090 mzoom_h = get_image("zoombar_left")->get_h();
1092 mzoom_y = h - get_image("statusbar_left")->get_h() - mzoom_h;
1095 // Status bar at the very bottom of the screen.
1097 // mstatus_y = mzoom_y + mzoom_h;
1098 mstatus_y = mzoom_y + mzoom_h;
1100 mstatus_h = h - mstatus_y;
1101 mstatus_message_x = xS(10);
1102 mstatus_message_y = yS(8);
1103 mstatus_progress_w = xS(230);
1104 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - xS(240);
1105 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
1108 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
1109 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
1111 //This is Patch Bay - on the left side of the tracks.
1113 patchbay_y = mtimebar_y + mtimebar_h;
1114 patchbay_w = get_image("patchbay_bg")->get_w();
1115 patchbay_h = mzoom_y - patchbay_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
1117 //Canvas where audio and video tracks are
1119 mcanvas_y = mtimebar_y + mtimebar_h;
1121 mcanvas_h = patchbay_h;
1123 control_pixels = (mcanvas_w * control_pixels) / 1000;
1124 pane_w = get_image_set("xpane")[0]->get_w();
1125 pane_h = get_image_set("ypane")[0]->get_h();
1126 pane_x = mcanvas_x + mcanvas_w;
1127 pane_y = mcanvas_y + mcanvas_h;
1129 mhscroll_y = mzoom_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
1130 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT);
1131 mvscroll_x = mcanvas_x + mcanvas_w;
1132 mvscroll_y = mcanvas_y;
1133 mvscroll_h = mcanvas_h;
1137 void BlueDotTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
1139 if(cwindow_controls)
1143 ccomposite_y = yS(5);
1144 ccomposite_w = get_image("cpanel_bg")->get_w();
1145 ccomposite_h = mwindow->session->cwindow_h -
1146 get_image("cbuttons_left")->get_h();
1148 cslider_y = ccomposite_h + yS(23);
1150 cedit_y = cslider_y + yS(17);
1151 ctransport_x = xS(10);
1152 ctransport_y = mwindow->session->cwindow_h -
1153 get_image_set("autokeyframe")[0]->get_h();
1154 ccanvas_x = ccomposite_x + ccomposite_w;
1156 ccanvas_h = ccomposite_h;
1158 cstatus_x = xS(453);
1159 cstatus_y = mwindow->session->cwindow_h - yS(66);
1161 if(mwindow->edl->session->cwindow_meter)
1163 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(this,
1164 mwindow->edl->session->audio_channels, mwindow->edl->session->cwindow_meter);
1165 ccanvas_w = cmeter_x - ccanvas_x - xS(5);
1169 cmeter_x = mwindow->session->cwindow_w;
1170 ccanvas_w = cmeter_x - ccanvas_x;
1177 ccomposite_x = -get_image("cpanel_bg")->get_w();
1179 ccomposite_w = get_image("cpanel_bg")->get_w();
1180 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
1183 cslider_y = mwindow->session->cwindow_h;
1185 cedit_y = cslider_y + yS(17);
1186 ctransport_x = xS(10);
1187 ctransport_y = cedit_y + yS(40);
1190 ccanvas_w = mwindow->session->cwindow_w;
1191 ccanvas_h = mwindow->session->cwindow_h;
1192 cmeter_x = mwindow->session->cwindow_w;
1194 cstatus_x = mwindow->session->cwindow_w;
1195 cstatus_y = mwindow->session->cwindow_h;
1202 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + xS(20);
1203 czoom_y = ctransport_y + yS(5);
1206 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
1208 ctimebar_x = ccanvas_x;
1209 ctimebar_y = ccanvas_y + ccanvas_h;
1210 ctimebar_w = ccanvas_w;
1213 cslider_w = ccanvas_x + ccanvas_w - cslider_x;
1214 ctimebar_x = ccanvas_x;
1215 ctimebar_y = ccanvas_y + ccanvas_h;
1216 ctimebar_w = ccanvas_w;
1217 ctimebar_h = yS(16);
1221 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
1222 ctime_y = ctransport_y;
1224 cdest_y = czoom_y + yS(30);
1230 void BlueDotTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
1235 // COPIED START--------
1236 void BlueDotTheme::get_rmonitor_sizes(int do_audio,
1243 Theme::get_rmonitor_sizes(do_audio,
1249 if(!do_video && do_audio)
1251 rmonitor_meter_y -= yS(30);
1252 rmonitor_meter_h += yS(30);
1255 // COPIED END--------
1258 void BlueDotTheme::get_vwindow_sizes(VWindowGUI *gui)
1261 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
1264 vcanvas_h = mwindow->session->vwindow_h - get_image("vbuttons_left")->get_h();
1266 if(mwindow->edl->session->vwindow_meter)
1268 vmeter_x = mwindow->session->vwindow_w -
1269 VWINDOW_METER_MARGIN -
1270 MeterPanel::get_meters_width(this,
1271 mwindow->edl->session->audio_channels, mwindow->edl->session->vwindow_meter);
1272 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
1276 vmeter_x = mwindow->session->vwindow_w;
1277 vcanvas_w = mwindow->session->vwindow_w;
1280 vtimebar_x = vcanvas_x;
1281 vtimebar_y = vcanvas_y + vcanvas_h;
1282 vtimebar_w = vcanvas_w;
1283 vtimebar_h = yS(16);
1287 vslider_y = vtimebar_y + yS(25);
1288 vslider_w = vtimebar_w - vslider_x;
1290 vedit_y = vslider_y + yS(17);
1291 vtransport_x = xS(10);
1292 vtransport_y = mwindow->session->vwindow_h -
1293 get_image_set("autokeyframe")[0]->get_h();
1295 vtime_y = vedit_y + yS(7);
1298 vzoom_x = vtime_x + xS(150);
1300 vsource_x = vtime_x + xS(50);
1301 vsource_y = vtransport_y + yS(5);
1305 void BlueDotTheme::build_icons()
1307 new_image("mwindow_icon", "heroine_icon.png");
1308 new_image("vwindow_icon", "heroine_icon.png");
1309 new_image("cwindow_icon", "heroine_icon.png");
1310 new_image("awindow_icon", "heroine_icon.png");
1311 new_image("record_icon", "heroine_icon.png");
1316 void BlueDotTheme::build_bg_data()
1319 channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
1320 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
1323 new_image1("resource1024", "resource1024.png");
1324 new_image1("resource512", "resource512.png");
1325 new_image1("resource256", "resource256.png");
1326 new_image1("resource128", "resource128.png");
1327 new_image1("resource64", "resource64.png");
1328 new_image1("resource32", "resource32.png");
1329 //Graphic Copied from default. Improve!!
1330 new_image("plugin_bg_data", "plugin_bg.png");
1331 new_image("title_bg_data", "title_bg.png");
1332 new_image("vtimebar_bg_data", "vwindow_timebar.png");
1336 //Graphic Copied from default. Improve!! -- use your imagination
1337 void BlueDotTheme::build_overlays()
1339 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
1340 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
1341 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
1342 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
1343 hardedge_data = new VFramePng(get_image_data("hardedge.png"));
1344 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
1345 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
1356 void BlueDotTheme::draw_rwindow_bg(RecordGUI *gui)
1359 // int margin = xS(50);
1360 // int margin2 = xS(80);
1361 // gui->draw_9segment(recordgui_batch_x - margin, 0,
1362 // mwindow->session->rwindow_w - recordgui_status_x + margin,
1363 // recordgui_buttons_y,
1365 // gui->draw_3segmenth(recordgui_options_x - margin2,
1366 // recordgui_buttons_y - yS(5),
1367 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
1369 // y = recordgui_buttons_y - yS(5) + rgui_controls->get_h();
1370 // gui->draw_9segment(0, y,
1371 // mwindow->session->rwindow_w,
1372 // mwindow->session->rwindow_h - y,
1376 void BlueDotTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1378 // int margin = xS(45);
1379 // int panel_w = xS(300);
1380 // int x = rmonitor_meter_x - margin;
1381 // int w = mwindow->session->rmonitor_w - x;
1382 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1383 // gui->clear_box(0, 0,
1384 // mwindow->session->rmonitor_w,
1385 // mwindow->session->rmonitor_h);
1386 // gui->draw_9segment(x, 0,
1388 // mwindow->session->rmonitor_h,
1389 // rmonitor_meters);
1393 void BlueDotTheme::draw_mwindow_bg(MWindowGUI *gui)
1395 // Button bar (not menu bar)
1396 #define MBUTTONS_RIGHTEDGE xS(290 + 11 + 2*30 + 11 + 2*30 + 11 + 14*30)
1397 gui->draw_3segmenth(mbuttons_x,
1400 get_image("mbutton_left"),
1402 gui->draw_3segmenth(mbuttons_x + MBUTTONS_RIGHTEDGE,
1404 mbuttons_w - xS(500),
1405 get_image("mbutton_right"));
1407 gui->draw_vframe(get_image("panel_divider"),
1408 mbuttons_x + xS(290 + 5),
1411 gui->draw_vframe(get_image("panel_divider"),
1412 mbuttons_x + xS(290 + 11 + 30 * 2 + 5),
1415 gui->draw_vframe(get_image("panel_divider"),
1416 mbuttons_x + xS(290 + 11 + 30 * 2 + 11 + 30 * 3 + 5),
1420 // Clock (here the background of the clock is drawn)
1421 gui->draw_3segmenth(0,
1422 mbuttons_y + get_image("mbutton_left")->get_h(),
1423 get_image("patchbay_bg")->get_w(),
1424 get_image("clock_bg"));
1428 gui->draw_3segmentv(patchbay_x, patchbay_y,
1429 patchbay_h, get_image("patchbay_bg"));
1430 //patchbay_h + yS(10),
1433 //Drawing of Track's canvas
1434 gui->draw_9segment(mcanvas_x, mcanvas_y,
1435 mcanvas_w, patchbay_h + yS(26),
1436 get_image("tracks_bg"));
1437 //patchbay_h + yS(10),
1440 gui->draw_3segmenth(mtimebar_x, mtimebar_y,
1441 mtimebar_w, get_image("timebar_bg"));
1445 #define ZOOMBAR_CENTER xS(1100)
1446 gui->draw_3segmenth(mzoom_x, mzoom_y,
1447 ZOOMBAR_CENTER, get_image("zoombar_left"));
1448 if(mzoom_w > ZOOMBAR_CENTER)
1449 gui->draw_3segmenth(mzoom_x + ZOOMBAR_CENTER, mzoom_y,
1450 mzoom_w - ZOOMBAR_CENTER, get_image("zoombar_right"));
1452 gui->draw_3segmenth(mstatus_x, mstatus_y,
1453 ZOOMBAR_CENTER, get_image("statusbar_left"));
1455 if(mstatus_w > ZOOMBAR_CENTER)
1456 gui->draw_3segmenth(mstatus_x + ZOOMBAR_CENTER, mstatus_y,
1457 mstatus_w - ZOOMBAR_CENTER, get_image("statusbar_right"));
1461 void BlueDotTheme::draw_cwindow_bg(CWindowGUI *gui)
1464 const int button_division = xS(530);
1465 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1466 gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1467 if(mwindow->edl->session->cwindow_meter)
1469 gui->draw_3segmenth(button_division,
1471 cmeter_x - CWINDOW_METER_MARGIN - button_division,
1472 get_image("cbuttons_right"));
1473 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
1475 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
1476 mwindow->session->cwindow_h,
1477 get_image("cmeter_bg"));
1481 gui->draw_3segmenth(button_division,
1483 cmeter_x - CWINDOW_METER_MARGIN - button_division + xS(100),
1484 get_image("cbuttons_right"));
1488 void BlueDotTheme::draw_vwindow_bg(VWindowGUI *gui)
1491 const int button_division = xS(535);
1492 gui->draw_3segmenth(0,
1495 get_image("vbuttons_left"));
1496 if(mwindow->edl->session->vwindow_meter)
1498 gui->draw_3segmenth(button_division,
1500 vmeter_x - VWINDOW_METER_MARGIN - button_division,
1501 get_image("vbuttons_right"));
1502 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
1504 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
1505 mwindow->session->vwindow_h,
1506 get_image("vmeter_bg"));
1510 gui->draw_3segmenth(button_division,
1512 vmeter_x - VWINDOW_METER_MARGIN - button_division + xS(100),
1513 get_image("vbuttons_right"));
1517 void BlueDotTheme::get_preferences_sizes()
1522 void BlueDotTheme::draw_preferences_bg(PreferencesWindow *gui)
1524 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - yS(40), get_image("preferences_bg"));
1527 void BlueDotTheme::get_new_sizes(NewWindow *gui)
1531 void BlueDotTheme::draw_new_bg(NewWindow *gui)
1533 gui->draw_vframe(get_image("new_bg"), 0, 0);
1536 void BlueDotTheme::draw_setformat_bg(SetFormatWindow *gui)
1538 gui->draw_vframe(get_image("setformat_bg"), 0, 0);