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 "blondcvtheme.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"
48 PluginClient* new_plugin(PluginServer *server)
50 return new BlondCVThemeMain(server);
53 BlondCVThemeMain::BlondCVThemeMain(PluginServer *server)
54 : PluginTClient(server)
58 BlondCVThemeMain::~BlondCVThemeMain()
62 const char* BlondCVThemeMain::plugin_title() { return N_("Blond-cv"); }
64 Theme* BlondCVThemeMain::new_theme()
66 theme = new BlondCVTheme;
67 extern unsigned char _binary_theme_blond_cv_data_start[];
68 theme->set_data(_binary_theme_blond_cv_data_start);
73 BlondCVTheme::BlondCVTheme()
78 BlondCVTheme::~BlondCVTheme()
80 delete camerakeyframe_data;
81 delete channel_bg_data;
82 delete channel_position_data;
84 delete maskkeyframe_data;
85 delete modekeyframe_data;
87 delete pankeyframe_data;
88 delete projectorkeyframe_data;
91 void BlondCVTheme::initialize()
93 BC_Resources *resources = BC_WindowBase::get_resources();
94 resources->generic_button_images = new_image_set(3,
98 resources->horizontal_slider_data = new_image_set(6,
104 "hslider_bg_dn.png");
105 resources->vertical_slider_data = new_image_set(6,
111 "hslider_bg_dn.png");
112 for( int i=0; i<6; ++i )
113 resources->vertical_slider_data[i]->rotate90();
115 resources->progress_images = new_image_set(2,
118 resources->tumble_data = new_image_set(4,
123 new_image_set("tumblepatch_data", 4,
124 "tumblepatch_up.png",
125 "tumblepatch_hi.png",
126 "tumblepatch_bottom.png",
127 "tumblepatch_top.png");
128 resources->listbox_button = new_image_set(4,
129 "listbox_button_up.png",
130 "listbox_button_hi.png",
131 "listbox_button_dn.png",
132 "listbox_button_hi.png");
133 resources->listbox_column = new_image_set(3,
134 "listbox_column_up.png",
135 "listbox_column_hi.png",
136 "listbox_column_dn.png");
137 resources->pan_data = new_image_set(7,
143 "pan_channel_small.png",
144 "pan_stick_small.png");
145 resources->pan_text_color = WHITE;
147 resources->pot_images = new_image_set(3,
152 resources->text_default = 0x000000;
153 resources->text_background = 0xffffff;
154 resources->text_background_disarmed = 0xff0000;
155 resources->text_border1 = 0x4a484a; // (top outer)
156 resources->text_border2 = 0x000000; // (top inner)
157 resources->text_border3 = 0xacaeac; // (bottom inner)
158 resources->text_border4 = 0xffffff; // (bottom outer)
159 resources->text_inactive_highlight = 0xacacac;
160 resources->checkbox_images = new_image_set(5,
163 "checkbox_checked.png",
165 "checkbox_checkedhi.png");
167 resources->bg_color = BLOND;
168 resources->default_text_color = 0x000000;
169 resources->menu_title_text = 0x000000;
170 resources->popup_title_text = 0x000000;
171 resources->menu_item_text = 0x000000;
172 resources->radial_images = new_image_set(5,
175 "radial_checked.png",
177 "radial_checkedhi.png");
179 resources->generic_button_margin = xS(15);
180 resources->pot_needle_color = resources->text_default;
181 resources->pot_offset = 1;
182 resources->progress_text = resources->text_default;
183 resources->meter_font_color = RED;
184 resources->xmeter_images = new_image_set(7,
192 resources->ymeter_images = new_image_set(7,
201 resources->menu_light = 0x00cacd;
202 resources->menu_highlighted = 0x9c95ff;
203 resources->menu_down = 0x007d7b;
204 resources->menu_up = 0x009594;
205 resources->menu_shadow = 0x004a4a;
206 resources->popupmenu_margin = xS(10);
207 resources->popupmenu_triangle_margin = xS(15);
208 resources->hscroll_data = new_image_set(10,
209 "hscroll_center_up.png",
210 "hscroll_center_hi.png",
211 "hscroll_center_dn.png",
213 "hscroll_back_up.png",
214 "hscroll_back_hi.png",
215 "hscroll_back_dn.png",
216 "hscroll_fwd_up.png",
217 "hscroll_fwd_hi.png",
218 "hscroll_fwd_dn.png");
220 resources->listbox_title_color = 0x000000;
221 resources->vscroll_data = new_image_set(10,
222 "vscroll_center_up.png",
223 "vscroll_center_hi.png",
224 "vscroll_center_dn.png",
226 "vscroll_back_up.png",
227 "vscroll_back_hi.png",
228 "vscroll_back_dn.png",
229 "vscroll_fwd_up.png",
230 "vscroll_fwd_hi.png",
231 "vscroll_fwd_dn.png");
233 resources->listbox_title_margin = 0;
234 resources->listbox_title_hotspot = xS(5); // No. of pixels around the borders to allow dragging
235 resources->listbox_border1 = 0x4a484a; // (top outer)
236 resources->listbox_border2 = 0x000000; // (top inner)
237 resources->listbox_border3 = 0xffe200; // (bottom inner)
238 resources->listbox_border4 = 0xffffff; // (bottom outer)
239 resources->listbox_highlighted = 0xeee6ee;
240 resources->listbox_inactive = 0xffffffff; // (background)
241 resources->listbox_bg = new_image("list_bg.png");
242 resources->listbox_text = 0x000000;
243 resources->ok_images = new_button("ok.png",
249 resources->dirbox_margin = yS(50);
250 resources->filebox_margin = yS(120);
251 resources->file_color = 0x000000;
252 resources->directory_color = 0x0000ff;
255 rgui_batch = new_image("recordgui_batch.png");
256 rgui_controls = new_image("recordgui_controls.png");
257 rgui_list = new_image("recordgui_list.png");
258 rmonitor_panel = new_image("recordmonitor_panel.png");
259 rmonitor_meters = new_image("recordmonitor_meters.png");
261 resources->filebox_icons_images = new_button("icons.png",
262 "fileboxbutton_up.png",
263 "fileboxbutton_hi.png",
264 "fileboxbutton_dn.png",
267 resources->filebox_text_images = new_button("text.png",
268 "fileboxbutton_up.png",
269 "fileboxbutton_hi.png",
270 "fileboxbutton_dn.png",
273 resources->filebox_newfolder_images = new_button("folder.png",
274 "fileboxbutton_up.png",
275 "fileboxbutton_hi.png",
276 "fileboxbutton_dn.png",
277 "filebox_newfolder");
279 resources->filebox_rename_images = new_button("rename.png",
280 "fileboxbutton_up.png",
281 "fileboxbutton_hi.png",
282 "fileboxbutton_dn.png",
285 resources->filebox_updir_images = new_button("updir.png",
286 "fileboxbutton_up.png",
287 "fileboxbutton_hi.png",
288 "fileboxbutton_dn.png",
291 resources->filebox_delete_images = new_button("delete.png",
292 "fileboxbutton_up.png",
293 "fileboxbutton_hi.png",
294 "fileboxbutton_dn.png",
297 resources->filebox_reload_images = new_button("reload.png",
298 "fileboxbutton_up.png",
299 "fileboxbutton_hi.png",
300 "fileboxbutton_dn.png",
304 resources->filebox_descend_images = new_button("openfolder.png",
310 resources->usethis_button_images =
311 resources->ok_images = new_button("ok.png",
323 new_button("reset.png",
329 new_button("unclear.png",
335 new_button("keyframe.png",
341 resources->cancel_images = new_button("cancel.png",
347 new_button("cancel.png",
351 "new_cancel_images");
353 new_button("mask_pnt_linear.png",
354 "mask_button_up.png",
355 "mask_button_hi.png",
356 "mask_button_dn.png",
357 "mask_pnt_linear_images");
358 new_button("mask_crv_linear.png",
359 "mask_button_up.png",
360 "mask_button_hi.png",
361 "mask_button_dn.png",
362 "mask_crv_linear_images");
363 new_button("mask_all_linear.png",
364 "mask_button_up.png",
365 "mask_button_hi.png",
366 "mask_button_dn.png",
367 "mask_all_linear_images");
369 new_button("mask_pnt_smooth.png",
370 "mask_button_up.png",
371 "mask_button_hi.png",
372 "mask_button_dn.png",
373 "mask_pnt_smooth_images");
374 new_button("mask_crv_smooth.png",
375 "mask_button_up.png",
376 "mask_button_hi.png",
377 "mask_button_dn.png",
378 "mask_crv_smooth_images");
379 new_button("mask_all_smooth.png",
380 "mask_button_up.png",
381 "mask_button_hi.png",
382 "mask_button_dn.png",
383 "mask_all_smooth_images");
385 new_button("mask_prst_sqr.png",
386 "mask_button_up.png",
387 "mask_button_hi.png",
388 "mask_button_dn.png",
389 "mask_prst_sqr_images");
390 new_button("mask_prst_crc.png",
391 "mask_button_up.png",
392 "mask_button_hi.png",
393 "mask_button_dn.png",
394 "mask_prst_crc_images");
395 new_button("mask_prst_tri.png",
396 "mask_button_up.png",
397 "mask_button_hi.png",
398 "mask_button_dn.png",
399 "mask_prst_tri_images");
400 new_button("mask_prst_ovl.png",
401 "mask_button_up.png",
402 "mask_button_hi.png",
403 "mask_button_dn.png",
404 "mask_prst_ovl_images");
406 new_button("mask_prst_load.png",
407 "mask_button_up.png",
408 "mask_button_hi.png",
409 "mask_button_dn.png",
410 "mask_prst_load_images");
411 new_button("mask_prst_save.png",
412 "mask_button_up.png",
413 "mask_button_hi.png",
414 "mask_button_dn.png",
415 "mask_prst_save_images");
416 new_button("mask_prst_trsh.png",
417 "mask_button_up.png",
418 "mask_button_hi.png",
419 "mask_button_dn.png",
420 "mask_prst_trsh_images");
422 new_button("mask_pstn_cen.png",
423 "mask_button_up.png",
424 "mask_button_hi.png",
425 "mask_button_dn.png",
426 "mask_pstn_cen_images");
427 new_button("mask_pstn_nrm.png",
428 "mask_button_up.png",
429 "mask_button_hi.png",
430 "mask_button_dn.png",
431 "mask_pstn_nrm_images");
433 new_toggle("loadmode_new.png",
436 "loadmode_checked.png",
438 "loadmode_checkedhi.png",
440 new_toggle("loadmode_none.png",
443 "loadmode_checked.png",
445 "loadmode_checkedhi.png",
447 new_toggle("loadmode_newcat.png",
450 "loadmode_checked.png",
452 "loadmode_checkedhi.png",
454 new_toggle("loadmode_cat.png",
457 "loadmode_checked.png",
459 "loadmode_checkedhi.png",
461 new_toggle("loadmode_newtracks.png",
464 "loadmode_checked.png",
466 "loadmode_checkedhi.png",
467 "loadmode_newtracks");
468 new_toggle("loadmode_paste.png",
471 "loadmode_checked.png",
473 "loadmode_checkedhi.png",
475 new_toggle("loadmode_resource.png",
478 "loadmode_checked.png",
480 "loadmode_checkedhi.png",
481 "loadmode_resource");
483 new_toggle("loadmode_edl_clip.png",
486 "loadmode_checked.png",
488 "loadmode_checkedhi.png",
489 "loadmode_edl_clip");
490 new_toggle("loadmode_edl_nested.png",
493 "loadmode_checked.png",
495 "loadmode_checkedhi.png",
496 "loadmode_edl_nested");
497 new_toggle("loadmode_edl_fileref.png",
500 "loadmode_checked.png",
502 "loadmode_checkedhi.png",
503 "loadmode_edl_fileref");
505 resources->bar_data = new_image("bar", "bar.png");
507 resources->min_menu_w = 0;
508 resources->menu_popup_bg = 0; // if (0) use menu_light, menu_up, menu_shadow
509 resources->menu_item_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
510 resources->menu_bar_bg = 0; // if (0) use menu_light, menu_shadow, and height of MEDIUMFONT + 8
511 resources->menu_title_bg = 0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
514 resources->popupmenu_images = 0; // if (0) get_resources()->use generic_button_images
516 resources->toggle_highlight_bg = 0; // if (0) "Draw a plain box" as per bctoggle.C
518 resources->vertical_slider_data = new_image_set(6,
519 "vertical_slider_fg_up.png",
520 "vertical_slider_fg_hi.png",
521 "vertical_slider_fg_dn.png",
522 "vertical_slider_bg_up.png",
523 "vertical_slider_bg_hi.png",
524 "vertical_slider_bg_dn.png");
525 resources->listbox_expand = new_image_set(5,
526 "listbox_expandup.png",
527 "listbox_expanduphi.png",
528 "listbox_expandchecked.png",
529 "listbox_expanddn.png",
530 "listbox_expandcheckedhi.png");
531 resources->listbox_up = new_image("listbox_up.png");
532 resources->listbox_dn = new_image("listbox_dn.png");
535 mbutton_left = new_image("mbutton_left.png");
536 mbutton_right = new_image("mbutton_right.png");
537 new_image("timebar_bg", "timebar_bg.png");
538 new_image("timebar_brender", "timebar_brender.png");
539 new_image("clock_bg", "mclock.png");
540 new_image("patchbay_bg", "patchbay_bg.png");
541 tracks_bg = new_image("tracks_bg.png");
542 zoombar_left = new_image("zoombar_left.png");
543 zoombar_right = new_image("zoombar_right.png");
544 statusbar_left = new_image("statusbar_left.png");
545 statusbar_right = new_image("statusbar_right.png");
547 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
548 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
549 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
551 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
552 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
553 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
554 new_button("swap_extents.png",
559 preferences_category_overlap = 0;
560 preferencescategory_x = xS(5);
561 preferencescategory_y = yS(5);
562 preferencestitle_x = xS(5);
563 preferencestitle_y = yS(10);
564 preferencesoptions_x = xS(5);
565 preferencesoptions_y = 0;
567 cpanel_bg = new_image("cpanel_bg.png");
568 cbuttons_left = new_image("cbuttons_left.png");
569 cbuttons_right = new_image("cbuttons_right.png");
570 cmeter_bg = new_image("cmeter_bg.png");
571 new_image("cwindow_focus", "cwindow_focus.png");
573 ctimebar_x = ccanvas_x;
574 ctimebar_y = ccanvas_y + ccanvas_h;
575 ctimebar_w = ccanvas_w;
577 message_normal = resources->text_default;
579 mtransport_margin = xS(11);
580 toggle_margin = xS(11);
582 vbuttons_left = new_image("vbuttons_left.png");
583 vbuttons_right = new_image("vbuttons_right.png");
584 vmeter_bg = new_image("vmeter_bg.png");
586 new_image("mbutton_bg", "mbutton_bg.png");
587 new_image("mbutton_blue", "mbutton_blue.png");
588 new_image("tracks_bg","tracks_bg.png");
589 new_image("zoombar_left","zoombar_left.png");
590 new_image("zoombar_right","zoombar_right.png");
591 new_image("statusbar_left","statusbar_left.png");
592 new_image("statusbar_right","statusbar_right.png");
593 preferences_bg = new_image("preferences_bg.png");
595 new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
596 new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
597 new_image_set("auto_range", 4, "autorange_up.png", "autorange_hi.png", "autorange_bottom.png", "autorange_top.png");
599 new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
600 new_image("mode_add", "mode_add.png");
601 new_image("mode_divide", "mode_divide.png");
602 new_image("mode_multiply", "mode_multiply.png");
603 new_image("mode_normal", "mode_normal.png");
604 new_image("mode_replace", "mode_replace.png");
605 new_image("mode_subtract", "mode_subtract.png");
606 new_image("mode_max", "mode_max.png");
607 new_image("mode_min", "mode_min.png");
609 new_bg = new_image("new_bg.png");
610 setformat_bg = new_image("setformat_bg2.png");
612 new_toggle("plugin_on.png",
613 "pluginbutton_hi.png",
614 "pluginbutton_hi.png",
615 "pluginbutton_select.png",
616 "pluginbutton_dn.png",
617 "pluginbutton_selecthi.png",
620 new_toggle("plugin_show.png",
622 "pluginbutton_hi.png",
623 "pluginbutton_select.png",
624 "pluginbutton_dn.png",
625 "pluginbutton_selecthi.png",
627 new_image("cpanel_bg", "cpanel_bg.png");
628 new_image("cbuttons_left", "cbuttons_left.png");
629 new_image("cbuttons_right", "cbuttons_right.png");
630 new_image("cmeter_bg", "cmeter_bg.png");
631 new_image("vbuttons_left", "vbuttons_left.png");
632 timebar_view_data = new_image("timebar_view.png");
634 new_image("preferences_bg", "preferences_bg.png");
637 new_image("new_bg", "new_bg.png");
638 new_image("setformat_bg", "setformat_bg2.png");
639 setformat_w = get_image("setformat_bg")->get_w();
640 setformat_h = get_image("setformat_bg")->get_h();
641 setformat_x1 = xS(15);
642 setformat_x2 = xS(100);
643 setformat_x3 = xS(315);
644 setformat_x4 = xS(415);
645 setformat_y1 = yS(20);
646 setformat_y2 = yS(85);
647 setformat_y3 = yS(125);
648 setformat_margin = xS(30);
649 setformat_channels_x = xS(25);
650 setformat_channels_y = yS(242);
651 setformat_channels_w = xS(250);
652 setformat_channels_h = yS(250);
654 loadfile_pad = yS(52);
657 new_image_set("playpatch_data",
661 "playpatch_checked.png",
663 "playpatch_checkedhi.png");
665 new_image_set("recordpatch_data",
667 "recordpatch_up.png",
668 "recordpatch_hi.png",
669 "recordpatch_checked.png",
670 "recordpatch_dn.png",
671 "recordpatch_checkedhi.png");
673 new_image_set("gangpatch_data",
677 "gangpatch_checked.png",
679 "gangpatch_checkedhi.png");
681 new_image_set("drawpatch_data",
685 "drawpatch_checked.png",
687 "drawpatch_checkedhi.png");
690 new_image_set("mutepatch_data",
694 "mutepatch_checked.png",
696 "mutepatch_checkedhi.png");
700 new_image_set("expandpatch_data",
702 "expandpatch_up.png",
703 "expandpatch_hi.png",
704 "expandpatch_checked.png",
705 "expandpatch_dn.png",
706 "expandpatch_checkedhi.png");
707 new_image_set("drawpatch_data", 5, "drawpatch_up.png", "drawpatch_hi.png", "drawpatch_checked.png", "drawpatch_dn.png", "drawpatch_checkedhi.png");
708 new_image_set("expandpatch_data", 5, "expandpatch_up.png", "expandpatch_hi.png", "expandpatch_checked.png", "expandpatch_dn.png", "expandpatch_checkedhi.png");
709 new_image_set("gangpatch_data", 5, "gangpatch_up.png", "gangpatch_hi.png", "gangpatch_checked.png", "gangpatch_dn.png", "gangpatch_checkedhi.png");
710 new_image_set("mutepatch_data", 5, "mutepatch_up.png", "mutepatch_hi.png", "mutepatch_checked.png", "mutepatch_dn.png", "mutepatch_checkedhi.png");
711 new_image_set("playpatch_data", 5, "playpatch_up.png", "playpatch_hi.png", "playpatch_checked.png", "playpatch_dn.png", "playpatch_checkedhi.png");
712 new_image_set("recordpatch_data", 5, "recordpatch_up.png", "recordpatch_hi.png", "recordpatch_checked.png", "recordpatch_dn.png", "recordpatch_checkedhi.png");
716 out_point = new_image_set(5,
721 "out_checkedhi.png");
722 in_point = new_image_set(5,
729 label_toggle = new_image_set(5,
730 "labeltoggle_up.png",
731 "labeltoggle_uphi.png",
733 "labeltoggle_dn.png",
734 "label_checkedhi.png");
736 ffmpeg_toggle = new_image_set(5,
743 proxy_p_toggle = new_image_set(5,
748 "proxy_p_chkdhi.png");
750 proxy_s_toggle = new_image_set(5,
755 "proxy_s_chkdhi.png");
757 mask_mode_toggle = new_image_set(5,
760 "mask_mode_chkd.png",
761 "mask_mode_down.png",
762 "mask_mode_chkdhi.png");
764 shbtn_data = new_image_set(3,
769 new_image_set("preset_edit",
775 statusbar_cancel_data = new_image_set(3,
776 "statusbar_cancel_up.png",
777 "statusbar_cancel_hi.png",
778 "statusbar_cancel_dn.png");
781 VFrame *editpanel_up = new_image("editpanel_up.png");
782 VFrame *editpanel_hi = new_image("editpanel_hi.png");
783 VFrame *editpanel_dn = new_image("editpanel_dn.png");
784 VFrame *editpanel_checked = new_image("editpanel_checked.png");
785 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
787 new_image("panel_divider", "panel_divider.png");
788 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
789 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
790 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
791 new_button("lok.png", editpanel_up, editpanel_hi, editpanel_dn, "lok");
793 new_toggle("histogram_toggle.png",
800 new_toggle("histogram_rgb.png",
806 "histogram_rgb_toggle");
807 new_toggle("waveform.png",
814 new_toggle("waveform_rgb.png",
820 "waveform_rgb_toggle");
821 new_toggle("scope.png",
829 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
830 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
832 //bottom_justify = new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
833 //center_justify = new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
834 //channel_data = new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn);
835 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
836 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
837 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
838 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
839 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
840 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
841 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
842 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
843 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
844 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
845 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
846 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
847 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
848 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
849 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
850 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
851 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
852 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
853 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
854 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
855 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
856 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
857 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
858 new_button("clapper.png", editpanel_up, editpanel_hi, editpanel_dn, "clapperbutton");
859 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
860 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
861 //new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
862 //wrench_data = new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn);
864 VFrame **edge_on = new_toggle("edge_on.png",
865 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "edge_on");
866 VFrame **edge_off = new_toggle("edge_off.png",
867 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "edge_off");
868 new_image_set_images("bump_edge", 5,
869 new VFrame(*edge_off[0]), new VFrame(*edge_off[1]),
870 new VFrame(*edge_on[0]), new VFrame(*edge_off[3]),
871 new VFrame(*edge_on[4]));
872 VFrame **span_on = new_toggle("span_on.png",
873 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "span_on");
874 VFrame **span_off = new_toggle("span_off.png",
875 editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "span_off");
876 new_image_set_images("bump_span", 5,
877 new VFrame(*span_off[0]), new VFrame(*span_off[1]),
878 new VFrame(*span_on[0]), new VFrame(*span_off[3]),
879 new VFrame(*span_on[4]));
882 new_image("cwindow_inactive", "cwindow_inactive.png");
883 new_image("cwindow_active", "cwindow_active.png");
885 #define TRANSPORT_LEFT_IMAGES "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
886 #define TRANSPORT_CENTER_IMAGES "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
887 #define TRANSPORT_RIGHT_IMAGES "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
889 new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
890 new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
891 new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
892 new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
893 new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
894 new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
895 new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
896 new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
897 new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
898 new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
899 new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
900 new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
901 new_button("stop.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
902 new_image_set("batch_render_start",
906 "batchstart_dn.png");
907 new_image_set("batch_render_stop",
912 new_image_set("batch_render_cancel",
914 "batchcancel_up.png",
915 "batchcancel_hi.png",
916 "batchcancel_dn.png");
919 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
920 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
921 new_toggle("spankeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "spankeyframe");
922 new_image_set("category_button",
924 "preferencesbutton_dn.png",
925 "preferencesbutton_dnhi.png",
926 "preferencesbutton_dnlo.png");
927 //camera_data = new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
928 //crop_data = new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
929 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
930 //magnify_data = new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
931 //mask_data = new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
932 //proj_data = new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
933 //protect_data = new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
934 //show_meters = new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
935 //titlesafe_data = new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
936 //tool_data = new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
937 new_toggle("gang0.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang0");
938 new_toggle("gang1.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang1");
939 new_toggle("gang2.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang2");
940 new_toggle("eyedrop.png",
948 new_image_set("category_button_checked",
950 "preferencesbutton_up.png",
951 "preferencesbutton_uphi.png",
952 "preferencesbutton_dnlo.png");
959 static VFrame **transport_bg = new_image_set(3,
963 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
964 build_transport((char*)"end", get_image_data("end.png"), transport_bg, 2);
965 build_transport((char*)"fastfwd", get_image_data("fastfwd.png"), transport_bg, 1);
966 build_transport((char*)"fastrev", get_image_data("fastrev.png"), transport_bg, 1);
967 build_transport((char*)"play", get_image_data("play.png"), transport_bg, 1);
968 build_transport((char*)"framefwd", get_image_data("framefwd.png"), transport_bg, 1);
969 build_transport((char*)"framerev", get_image_data("framerev.png"), transport_bg, 1);
970 build_transport((char*)"pause", get_image_data("pause.png"), transport_bg, 1);
971 build_transport((char*)"record", get_image_data("record.png"), transport_bg, 1);
972 build_transport((char*)"singleframe", get_image_data("singleframe.png"), transport_bg, 1);
973 build_transport((char*)"reverse", get_image_data("reverse.png"), transport_bg, 1);
974 build_transport((char*)"rewind", get_image_data("rewind.png"), transport_bg, 0);
975 build_transport((char*)"stop", get_image_data("stop.png"), transport_bg, 1);
976 build_transport((char*)"stoprec", get_image_data("stoprec.png"), transport_bg, 2);
978 VFrame *cpanel_up = new_image("editpanel_up.png");
979 VFrame *cpanel_hi = new_image("editpanel_hi.png");
980 VFrame *cpanel_dn = new_image("editpanel_dn.png");
981 VFrame *cpanel_checked = new_image("editpanel_checked.png");
982 VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
983 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
984 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
985 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
986 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
987 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
988 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
989 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
990 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
991 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
992 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
993 // toggle for tangent mode (compositor/tool window)
994 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
995 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
996 new_toggle("tan_tangent.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_tangent");
997 new_toggle("tan_free.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_free");
998 new_toggle("tan_bump.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_bump");
1000 new_toggle("mask_scale_x.png", "mask_scale_up.png", "mask_scale_uphi.png",
1001 "mask_scale_chkd.png", "mask_scale_xdown.png", "mask_scale_chkdhi.png",
1003 new_toggle("mask_scale_y.png", "mask_scale_up.png", "mask_scale_uphi.png",
1004 "mask_scale_chkd.png", "mask_scale_ydown.png", "mask_scale_chkdhi.png",
1006 new_toggle("mask_scale_xy.png", "mask_scale_up.png", "mask_scale_uphi.png",
1007 "mask_scale_chkd.png", "mask_scale_xydown.png", "mask_scale_chkdhi.png",
1012 new_toggle("blank30x30.png",
1013 new_image("locklabels_locked.png"),
1014 new_image("locklabels_lockedhi.png"),
1015 new_image("locklabels_unlocked.png"),
1016 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
1017 new_image("locklabels_unlockedhi.png"),
1019 title_font = MEDIUMFONT_3D;
1020 title_color = WHITE;
1021 recordgui_fixed_color = YELLOW;
1022 recordgui_variable_color = RED;
1024 int font_size = (int)(14*resources->font_scale + 0.5);
1025 char string[BCTEXTLEN];
1026 sprintf(string,"-*-helvetica-bold-r-normal-*-%d-*", font_size);
1027 delete [] resources->medium_font;
1028 resources->medium_font = cstrdup(string);
1030 channel_position_color = MEYELLOW;
1031 resources->meter_title_w = xS(28);
1033 // (asset) edit info text color
1034 edit_font_color = YELLOW;
1037 resources->label_images = new_image_set(5,
1040 "radial_checked.png",
1042 "radial_checkedhi.png");
1044 /* resources->type_to_icon = new_image_set(5,
1054 #define CWINDOW_METER_MARGIN xS(5)
1055 #define VWINDOW_METER_MARGIN xS(5)
1058 void BlondCVTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
1061 mbuttons_y = gui->mainmenu->get_h();
1062 mbuttons_w = w - (ffmpeg_toggle[0]->get_w()+xS(2) + proxy_p_toggle[0]->get_w()+xS(2));
1063 mbuttons_h = get_image("mbutton_bg")->get_h();
1065 mclock_y = mbuttons_y + mbuttons_h + CWINDOW_METER_MARGIN;
1066 mclock_w = get_image("clock_bg")->get_w() - xS(40);
1067 mclock_h = get_image("clock_bg")->get_h();
1068 mtimebar_x = get_image("patchbay_bg")->get_w();
1069 mtimebar_y = mbuttons_y + mbuttons_h;
1070 mtimebar_w = w - mtimebar_x;
1071 mtimebar_h = get_image("timebar_bg")->get_h();
1073 mstatus_y = h - statusbar_left->get_h();
1075 mstatus_h = statusbar_left->get_h();
1076 mstatus_message_x = xS(10);
1077 mstatus_message_y = yS(5);
1078 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - xS(240);
1079 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
1080 mstatus_progress_w = xS(230);
1081 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
1082 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
1084 mzoom_y = mstatus_y - zoombar_left->get_h();
1085 mzoom_h = zoombar_left->get_h();
1088 patchbay_y = mtimebar_y + mtimebar_h;
1089 patchbay_w = get_image("patchbay_bg")->get_w();
1090 patchbay_h = mzoom_y - patchbay_y;
1092 mcanvas_y = mtimebar_y + mtimebar_h;
1094 mcanvas_h = patchbay_h;
1095 pane_w = get_image_set("xpane")[0]->get_w();
1096 pane_h = get_image_set("ypane")[0]->get_h();
1097 pane_x = mcanvas_x + mcanvas_w;
1098 pane_y = mcanvas_y + mcanvas_h;
1100 mhscroll_y = mcanvas_y + mcanvas_h;
1101 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT) - patchbay_w;
1102 mvscroll_x = mcanvas_x + mcanvas_w;
1103 mvscroll_y = mcanvas_y;
1104 mvscroll_h = mcanvas_h;
1107 void BlondCVTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
1109 if(cwindow_controls)
1112 ccomposite_y = yS(5);
1113 ccomposite_w = cpanel_bg->get_w();
1114 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
1116 cedit_y = ccomposite_h + yS(17);
1117 ctransport_x = xS(10);
1118 ctransport_y = mwindow->session->cwindow_h - get_image_set("autokeyframe")[0]->get_h();
1119 ccanvas_x = ccomposite_x + ccomposite_w;
1121 ccanvas_h = ccomposite_h;
1122 cstatus_x = xS(525);
1123 cstatus_y = mwindow->session->cwindow_h - yS(40);
1124 if(mwindow->edl->session->cwindow_meter)
1126 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(this,mwindow->edl->session->audio_channels,
1127 mwindow->edl->session->cwindow_meter);
1128 ccanvas_w = cmeter_x - ccanvas_x - xS(5);
1132 cmeter_x = mwindow->session->cwindow_w;
1133 ccanvas_w = cmeter_x - ccanvas_x;
1140 ccomposite_x = -cpanel_bg->get_w();
1142 ccomposite_w = cpanel_bg->get_w();
1143 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
1146 cedit_y = mwindow->session->cwindow_h + yS(17);
1147 ctransport_x = xS(10);
1148 ctransport_y = cedit_y + yS(40);
1151 ccanvas_w = mwindow->session->cwindow_w;
1152 ccanvas_h = mwindow->session->cwindow_h;
1153 cmeter_x = mwindow->session->cwindow_w;
1154 cstatus_x = mwindow->session->cwindow_w;
1155 cstatus_y = mwindow->session->cwindow_h;
1161 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + xS(20);
1162 czoom_y = ctransport_y + yS(5);
1165 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
1167 cslider_w = ccanvas_x + ccanvas_w - cslider_x - xS(5);
1168 ctimebar_x = ccanvas_x;
1169 ctimebar_y = ccanvas_y + ccanvas_h;
1170 ctimebar_w = ccanvas_w;
1171 ctimebar_h = yS(16);
1175 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
1176 ctime_y = ctransport_y;
1178 cdest_y = czoom_y + yS(30);
1183 void BlondCVTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
1186 recordgui_status_x = xS(10);
1187 recordgui_status_y = yS(10);
1188 recordgui_status_x2 = xS(160);
1189 recordgui_batch_x = xS(310);
1190 recordgui_batch_y = yS(10);
1191 recordgui_batchcaption_x = recordgui_batch_x + xS(110);
1194 recordgui_transport_x = recordgui_batch_x;
1195 recordgui_transport_y = recordgui_batch_y + yS(150);
1197 //recordgui_buttons_x = recordgui_batch_x - xS(50);
1198 //recordgui_buttons_y = recordgui_transport_y + yS(40);
1199 //recordgui_options_x = recordgui_buttons_x;
1200 //recordgui_options_y = recordgui_buttons_y + yS(35);
1202 recordgui_batches_x = xS(10);
1203 recordgui_batches_y = yS(270);
1204 recordgui_batches_w = w - xS(20);
1205 recordgui_batches_h = h - recordgui_batches_y - yS(70);
1206 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
1207 recordgui_loadmode_y = h - yS(60);
1209 recordgui_controls_x = xS(10);
1210 recordgui_controls_y = h - yS(40);
1213 void BlondCVTheme::get_rmonitor_sizes(int do_audio, int do_video,
1214 int do_channel, int do_interlace, int do_avc, int audio_channels)
1216 Theme::get_rmonitor_sizes(do_audio, do_video,
1217 do_channel, do_interlace, do_avc, audio_channels);
1218 if(!do_video && do_audio)
1220 rmonitor_meter_y -= yS(30);
1221 rmonitor_meter_h += yS(30);
1226 void BlondCVTheme::get_vwindow_sizes(VWindowGUI *gui)
1229 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
1232 vcanvas_h = mwindow->session->vwindow_h - vbuttons_left->get_h();
1234 if(mwindow->edl->session->vwindow_meter)
1236 rmonitor_meter_y -= yS(30);
1237 rmonitor_meter_h += yS(30);
1238 vmeter_x = mwindow->session->vwindow_w -
1239 VWINDOW_METER_MARGIN -
1240 MeterPanel::get_meters_width(this,
1241 mwindow->edl->session->audio_channels,
1242 mwindow->edl->session->vwindow_meter);
1243 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
1247 vmeter_x = mwindow->session->vwindow_w;
1248 vcanvas_w = mwindow->session->vwindow_w;
1251 vtimebar_x = vcanvas_x;
1252 vtimebar_y = vcanvas_y + vcanvas_h;
1253 vtimebar_w = vcanvas_w;
1254 vtimebar_h = yS(16);
1257 vslider_y = vtimebar_y + yS(25);
1258 vslider_w = vtimebar_w - vslider_x;
1260 vedit_y = vslider_y + BC_Slider::get_span(0);
1261 vtransport_x = xS(10);
1262 vtransport_y = mwindow->session->vwindow_h -
1263 get_image_set("autokeyframe")[0]->get_h();
1265 vtime_y = vedit_y + yS(10);
1273 void BlondCVTheme::build_icons()
1275 new_image("mwindow_icon", "heroine_icon.png");
1276 new_image("vwindow_icon", "heroine_icon.png");
1277 new_image("cwindow_icon", "heroine_icon.png");
1278 new_image("awindow_icon", "heroine_icon.png");
1279 new_image("record_icon", "heroine_icon.png");
1284 void BlondCVTheme::build_bg_data()
1287 channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
1288 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
1291 new_image1("resource1024", "resource1024.png");
1292 new_image1("resource512", "resource512.png");
1293 new_image1("resource256", "resource256.png");
1294 new_image1("resource128", "resource128.png");
1295 new_image1("resource64", "resource64.png");
1296 new_image1("resource32", "resource32.png");
1297 new_image("plugin_bg_data", "plugin_bg.png");
1298 new_image("title_bg_data", "title_bg.png");
1299 new_image("vtimebar_bg_data", "vwindow_timebar.png");
1304 void BlondCVTheme::build_overlays()
1306 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
1307 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
1308 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
1309 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
1310 hardedge_data = new VFramePng(get_image_data("hardedge.png"));
1311 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
1312 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
1316 void BlondCVTheme::draw_rwindow_bg(RecordGUI *gui)
1319 // int margin = xS(50);
1320 // int margin2 = xS(80);
1321 // gui->draw_9segment(recordgui_batch_x - margin,
1323 // mwindow->session->rwindow_w - recordgui_status_x + margin,
1324 // recordgui_buttons_y,
1326 // gui->draw_3segmenth(recordgui_options_x - margin2,
1327 // recordgui_buttons_y - yS(5),
1328 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
1330 // y = recordgui_buttons_y - yS(5) + rgui_controls->get_h();
1331 // gui->draw_9segment(0,
1333 // mwindow->session->rwindow_w,
1334 // mwindow->session->rwindow_h - y,
1338 void BlondCVTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1340 // int margin = xS(45);
1341 // int panel_w = xS(300);
1342 // int x = rmonitor_meter_x - margin;
1343 // int w = mwindow->session->rmonitor_w - x;
1344 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1345 // gui->clear_box(0, 0,
1346 // mwindow->session->rmonitor_w,
1347 // mwindow->session->rmonitor_h);
1348 // gui->draw_9segment(x, 0,
1350 // mwindow->session->rmonitor_h,
1351 // rmonitor_meters);
1355 void BlondCVTheme::draw_mwindow_bg(MWindowGUI *gui)
1358 gui->draw_3segmenth(mbuttons_x, mbuttons_y,
1359 xS(750), mbutton_left);
1360 gui->draw_3segmenth(mbuttons_x + xS(750), mbuttons_y,
1361 mbuttons_w - xS(500), mbutton_right);
1364 gui->draw_3segmenth(0, mbuttons_y + mbutton_left->get_h(),
1365 get_image("patchbay_bg")->get_w(), get_image("clock_bg"));
1368 gui->draw_3segmentv(patchbay_x, patchbay_y,
1369 patchbay_h + yS(20), get_image("patchbay_bg"));
1372 gui->draw_9segment(mcanvas_x, mcanvas_y,
1373 mcanvas_w, patchbay_h + yS(20),
1377 gui->draw_3segmenth(mtimebar_x, mtimebar_y,
1379 get_image("timebar_bg"));
1382 int zoombar_center = xS(710);
1383 gui->draw_3segmenth(mzoom_x, mzoom_y,
1384 zoombar_center, zoombar_left);
1385 if(mzoom_w > zoombar_center)
1386 gui->draw_3segmenth(mzoom_x + zoombar_center, mzoom_y,
1387 mzoom_w - zoombar_center, zoombar_right);
1390 gui->draw_3segmenth(mstatus_x, mstatus_y,
1391 zoombar_center, statusbar_left);
1393 if(mstatus_w > zoombar_center)
1394 gui->draw_3segmenth(mstatus_x + zoombar_center,
1396 mstatus_w - zoombar_center,
1400 void BlondCVTheme::draw_cwindow_bg(CWindowGUI *gui)
1402 const int button_division = xS(570);
1403 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1404 gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1405 if(mwindow->edl->session->cwindow_meter)
1407 gui->draw_3segmenth(button_division,
1409 cmeter_x - CWINDOW_METER_MARGIN - button_division,
1410 get_image("cbuttons_right"));
1411 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
1413 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
1414 mwindow->session->cwindow_h,
1415 get_image("cmeter_bg"));
1419 gui->draw_3segmenth(button_division,
1421 cmeter_x - CWINDOW_METER_MARGIN - button_division + xS(100),
1422 get_image("cbuttons_right"));
1426 void BlondCVTheme::draw_vwindow_bg(VWindowGUI *gui)
1428 const int button_division = xS(400);
1429 gui->draw_3segmenth(0, vcanvas_h,
1430 button_division, get_image("vbuttons_left"));
1431 if(mwindow->edl->session->vwindow_meter)
1433 gui->draw_3segmenth(button_division, vcanvas_h,
1434 vmeter_x - VWINDOW_METER_MARGIN - button_division,
1435 get_image("cbuttons_right"));
1436 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN, 0,
1437 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
1438 mwindow->session->vwindow_h,
1439 get_image("cmeter_bg"));
1443 gui->draw_3segmenth(button_division, vcanvas_h,
1444 vmeter_x - VWINDOW_METER_MARGIN - button_division + xS(100),
1445 get_image("cbuttons_right"));
1449 void BlondCVTheme::get_preferences_sizes()
1454 void BlondCVTheme::draw_preferences_bg(PreferencesWindow *gui)
1456 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1459 void BlondCVTheme::get_new_sizes(NewWindow *gui)
1463 void BlondCVTheme::draw_new_bg(NewWindow *gui)
1465 gui->draw_vframe(get_image("new_bg"), 0, 0);
1468 void BlondCVTheme::draw_setformat_bg(SetFormatWindow *gui)
1470 gui->draw_vframe(get_image("setformat_bg"), 0, 0);
1471 gui->draw_vframe(setformat_bg, 0, 0);
1475 // pmd: SUV (same), 1_2_2blond (nonexist)
1476 void BlondCVTheme::get_plugindialog_sizes()
1478 int xs10 = xS(10), xs20 = xS(20);
1479 int ys10 = yS(10), ys120 = yS(120);
1480 int x = xs10, y = yS(30);
1481 plugindialog_new_x = x;
1482 plugindialog_new_y = y;
1483 plugindialog_shared_x = mwindow->session->plugindialog_w / 3;
1484 plugindialog_shared_y = y;
1485 plugindialog_module_x = mwindow->session->plugindialog_w * 2 / 3;
1486 plugindialog_module_y = y;
1488 plugindialog_new_w = plugindialog_shared_x - plugindialog_new_x - xs10;
1489 plugindialog_new_h = mwindow->session->plugindialog_h - ys120;
1490 plugindialog_shared_w = plugindialog_module_x - plugindialog_shared_x - xs10;
1491 plugindialog_shared_h = mwindow->session->plugindialog_h - ys120;
1492 plugindialog_module_w = mwindow->session->plugindialog_w - plugindialog_module_x - xs10;
1493 plugindialog_module_h = mwindow->session->plugindialog_h - ys120;
1495 plugindialog_newattach_x = plugindialog_new_x + xs20;
1496 plugindialog_newattach_y = plugindialog_new_y + plugindialog_new_h + ys10;
1497 plugindialog_sharedattach_x = plugindialog_shared_x + xs20;
1498 plugindialog_sharedattach_y = plugindialog_shared_y + plugindialog_shared_h + ys10;
1499 plugindialog_moduleattach_x = plugindialog_module_x + xs20;
1500 plugindialog_moduleattach_y = plugindialog_module_y + plugindialog_module_h + ys10;