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");
598 new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
599 new_image("mode_add", "mode_add.png");
600 new_image("mode_divide", "mode_divide.png");
601 new_image("mode_multiply", "mode_multiply.png");
602 new_image("mode_normal", "mode_normal.png");
603 new_image("mode_replace", "mode_replace.png");
604 new_image("mode_subtract", "mode_subtract.png");
605 new_image("mode_max", "mode_max.png");
606 new_image("mode_min", "mode_min.png");
608 new_bg = new_image("new_bg.png");
609 setformat_bg = new_image("setformat_bg2.png");
611 new_toggle("plugin_on.png",
612 "pluginbutton_hi.png",
613 "pluginbutton_hi.png",
614 "pluginbutton_select.png",
615 "pluginbutton_dn.png",
616 "pluginbutton_selecthi.png",
619 new_toggle("plugin_show.png",
621 "pluginbutton_hi.png",
622 "pluginbutton_select.png",
623 "pluginbutton_dn.png",
624 "pluginbutton_selecthi.png",
626 new_image("cpanel_bg", "cpanel_bg.png");
627 new_image("cbuttons_left", "cbuttons_left.png");
628 new_image("cbuttons_right", "cbuttons_right.png");
629 new_image("cmeter_bg", "cmeter_bg.png");
630 new_image("vbuttons_left", "vbuttons_left.png");
631 timebar_view_data = new_image("timebar_view.png");
633 new_image("preferences_bg", "preferences_bg.png");
636 new_image("new_bg", "new_bg.png");
637 new_image("setformat_bg", "setformat_bg2.png");
638 setformat_w = get_image("setformat_bg")->get_w();
639 setformat_h = get_image("setformat_bg")->get_h();
640 setformat_x1 = xS(15);
641 setformat_x2 = xS(100);
642 setformat_x3 = xS(315);
643 setformat_x4 = xS(415);
644 setformat_y1 = yS(20);
645 setformat_y2 = yS(85);
646 setformat_y3 = yS(125);
647 setformat_margin = xS(30);
648 setformat_channels_x = xS(25);
649 setformat_channels_y = yS(242);
650 setformat_channels_w = xS(250);
651 setformat_channels_h = yS(250);
653 loadfile_pad = yS(52);
656 new_image_set("playpatch_data",
660 "playpatch_checked.png",
662 "playpatch_checkedhi.png");
664 new_image_set("recordpatch_data",
666 "recordpatch_up.png",
667 "recordpatch_hi.png",
668 "recordpatch_checked.png",
669 "recordpatch_dn.png",
670 "recordpatch_checkedhi.png");
672 new_image_set("gangpatch_data",
676 "gangpatch_checked.png",
678 "gangpatch_checkedhi.png");
680 new_image_set("drawpatch_data",
684 "drawpatch_checked.png",
686 "drawpatch_checkedhi.png");
689 new_image_set("mutepatch_data",
693 "mutepatch_checked.png",
695 "mutepatch_checkedhi.png");
699 new_image_set("expandpatch_data",
701 "expandpatch_up.png",
702 "expandpatch_hi.png",
703 "expandpatch_checked.png",
704 "expandpatch_dn.png",
705 "expandpatch_checkedhi.png");
706 new_image_set("drawpatch_data", 5, "drawpatch_up.png", "drawpatch_hi.png", "drawpatch_checked.png", "drawpatch_dn.png", "drawpatch_checkedhi.png");
707 new_image_set("expandpatch_data", 5, "expandpatch_up.png", "expandpatch_hi.png", "expandpatch_checked.png", "expandpatch_dn.png", "expandpatch_checkedhi.png");
708 new_image_set("gangpatch_data", 5, "gangpatch_up.png", "gangpatch_hi.png", "gangpatch_checked.png", "gangpatch_dn.png", "gangpatch_checkedhi.png");
709 new_image_set("mutepatch_data", 5, "mutepatch_up.png", "mutepatch_hi.png", "mutepatch_checked.png", "mutepatch_dn.png", "mutepatch_checkedhi.png");
710 new_image_set("playpatch_data", 5, "playpatch_up.png", "playpatch_hi.png", "playpatch_checked.png", "playpatch_dn.png", "playpatch_checkedhi.png");
711 new_image_set("recordpatch_data", 5, "recordpatch_up.png", "recordpatch_hi.png", "recordpatch_checked.png", "recordpatch_dn.png", "recordpatch_checkedhi.png");
715 out_point = new_image_set(5,
720 "out_checkedhi.png");
721 in_point = new_image_set(5,
728 label_toggle = new_image_set(5,
729 "labeltoggle_up.png",
730 "labeltoggle_uphi.png",
732 "labeltoggle_dn.png",
733 "label_checkedhi.png");
735 ffmpeg_toggle = new_image_set(5,
742 proxy_p_toggle = new_image_set(5,
747 "proxy_p_chkdhi.png");
749 proxy_s_toggle = new_image_set(5,
754 "proxy_s_chkdhi.png");
756 mask_mode_toggle = new_image_set(5,
759 "mask_mode_chkd.png",
760 "mask_mode_down.png",
761 "mask_mode_chkdhi.png");
763 shbtn_data = new_image_set(3,
768 new_image_set("preset_edit",
774 statusbar_cancel_data = new_image_set(3,
775 "statusbar_cancel_up.png",
776 "statusbar_cancel_hi.png",
777 "statusbar_cancel_dn.png");
780 VFrame *editpanel_up = new_image("editpanel_up.png");
781 VFrame *editpanel_hi = new_image("editpanel_hi.png");
782 VFrame *editpanel_dn = new_image("editpanel_dn.png");
783 VFrame *editpanel_checked = new_image("editpanel_checked.png");
784 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
786 new_image("panel_divider", "panel_divider.png");
787 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
788 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
789 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
790 new_button("lok.png", editpanel_up, editpanel_hi, editpanel_dn, "lok");
792 new_toggle("histogram_toggle.png",
799 new_toggle("histogram_rgb.png",
805 "histogram_rgb_toggle");
806 new_toggle("waveform.png",
813 new_toggle("waveform_rgb.png",
819 "waveform_rgb_toggle");
820 new_toggle("scope.png",
828 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
829 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
831 //bottom_justify = new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
832 //center_justify = new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
833 //channel_data = new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn);
834 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
835 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
836 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
837 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
838 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
839 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
840 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
841 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
842 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
843 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
844 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
845 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
846 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
847 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
848 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
849 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
850 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
851 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
852 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
853 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
854 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
855 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
856 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
857 new_button("clapper.png", editpanel_up, editpanel_hi, editpanel_dn, "clapperbutton");
858 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
859 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
860 //new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
861 //wrench_data = new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn);
864 new_image("cwindow_inactive", "cwindow_inactive.png");
865 new_image("cwindow_active", "cwindow_active.png");
867 #define TRANSPORT_LEFT_IMAGES "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
868 #define TRANSPORT_CENTER_IMAGES "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
869 #define TRANSPORT_RIGHT_IMAGES "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
871 new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
872 new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
873 new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
874 new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
875 new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
876 new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
877 new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
878 new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
879 new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
880 new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
881 new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
882 new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
883 new_button("stop.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
884 new_image_set("batch_render_start",
888 "batchstart_dn.png");
889 new_image_set("batch_render_stop",
894 new_image_set("batch_render_cancel",
896 "batchcancel_up.png",
897 "batchcancel_hi.png",
898 "batchcancel_dn.png");
901 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
902 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
903 new_toggle("spankeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "spankeyframe");
904 new_image_set("category_button",
906 "preferencesbutton_dn.png",
907 "preferencesbutton_dnhi.png",
908 "preferencesbutton_dnlo.png");
909 //camera_data = new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
910 //crop_data = new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
911 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
912 //magnify_data = new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
913 //mask_data = new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
914 //proj_data = new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
915 //protect_data = new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
916 //show_meters = new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
917 //titlesafe_data = new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
918 //tool_data = new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
919 new_toggle("gang0.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang0");
920 new_toggle("gang1.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang1");
921 new_toggle("gang2.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "gang2");
922 new_toggle("eyedrop.png",
930 new_image_set("category_button_checked",
932 "preferencesbutton_up.png",
933 "preferencesbutton_uphi.png",
934 "preferencesbutton_dnlo.png");
941 static VFrame **transport_bg = new_image_set(3,
945 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
946 build_transport((char*)"end", get_image_data("end.png"), transport_bg, 2);
947 build_transport((char*)"fastfwd", get_image_data("fastfwd.png"), transport_bg, 1);
948 build_transport((char*)"fastrev", get_image_data("fastrev.png"), transport_bg, 1);
949 build_transport((char*)"play", get_image_data("play.png"), transport_bg, 1);
950 build_transport((char*)"framefwd", get_image_data("framefwd.png"), transport_bg, 1);
951 build_transport((char*)"framerev", get_image_data("framerev.png"), transport_bg, 1);
952 build_transport((char*)"pause", get_image_data("pause.png"), transport_bg, 1);
953 build_transport((char*)"record", get_image_data("record.png"), transport_bg, 1);
954 build_transport((char*)"singleframe", get_image_data("singleframe.png"), transport_bg, 1);
955 build_transport((char*)"reverse", get_image_data("reverse.png"), transport_bg, 1);
956 build_transport((char*)"rewind", get_image_data("rewind.png"), transport_bg, 0);
957 build_transport((char*)"stop", get_image_data("stop.png"), transport_bg, 1);
958 build_transport((char*)"stoprec", get_image_data("stoprec.png"), transport_bg, 2);
960 VFrame *cpanel_up = new_image("editpanel_up.png");
961 VFrame *cpanel_hi = new_image("editpanel_hi.png");
962 VFrame *cpanel_dn = new_image("editpanel_dn.png");
963 VFrame *cpanel_checked = new_image("editpanel_checked.png");
964 VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
965 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
966 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
967 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
968 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
969 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
970 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
971 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
972 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
973 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
974 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
975 // toggle for tangent mode (compositor/tool window)
976 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
977 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
979 new_toggle("mask_scale_x.png", "mask_scale_up.png", "mask_scale_uphi.png",
980 "mask_scale_chkd.png", "mask_scale_xdown.png", "mask_scale_chkdhi.png",
982 new_toggle("mask_scale_y.png", "mask_scale_up.png", "mask_scale_uphi.png",
983 "mask_scale_chkd.png", "mask_scale_ydown.png", "mask_scale_chkdhi.png",
985 new_toggle("mask_scale_xy.png", "mask_scale_up.png", "mask_scale_uphi.png",
986 "mask_scale_chkd.png", "mask_scale_xydown.png", "mask_scale_chkdhi.png",
991 new_toggle("blank30x30.png",
992 new_image("locklabels_locked.png"),
993 new_image("locklabels_lockedhi.png"),
994 new_image("locklabels_unlocked.png"),
995 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
996 new_image("locklabels_unlockedhi.png"),
998 title_font = MEDIUMFONT_3D;
1000 recordgui_fixed_color = YELLOW;
1001 recordgui_variable_color = RED;
1003 int font_size = (int)(14*resources->font_scale + 0.5);
1004 char string[BCTEXTLEN];
1005 sprintf(string,"-*-helvetica-bold-r-normal-*-%d-*", font_size);
1006 delete [] resources->medium_font;
1007 resources->medium_font = cstrdup(string);
1009 channel_position_color = MEYELLOW;
1010 resources->meter_title_w = xS(28);
1012 // (asset) edit info text color
1013 edit_font_color = YELLOW;
1016 resources->label_images = new_image_set(5,
1019 "radial_checked.png",
1021 "radial_checkedhi.png");
1023 /* resources->type_to_icon = new_image_set(5,
1033 #define CWINDOW_METER_MARGIN xS(5)
1034 #define VWINDOW_METER_MARGIN xS(5)
1037 void BlondCVTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
1040 mbuttons_y = gui->mainmenu->get_h();
1041 mbuttons_w = w - (ffmpeg_toggle[0]->get_w()+xS(2) + proxy_p_toggle[0]->get_w()+xS(2));
1042 mbuttons_h = get_image("mbutton_bg")->get_h();
1044 mclock_y = mbuttons_y + mbuttons_h + CWINDOW_METER_MARGIN;
1045 mclock_w = get_image("clock_bg")->get_w() - xS(40);
1046 mclock_h = get_image("clock_bg")->get_h();
1047 mtimebar_x = get_image("patchbay_bg")->get_w();
1048 mtimebar_y = mbuttons_y + mbuttons_h;
1049 mtimebar_w = w - mtimebar_x;
1050 mtimebar_h = get_image("timebar_bg")->get_h();
1052 mstatus_y = h - statusbar_left->get_h();
1054 mstatus_h = statusbar_left->get_h();
1055 mstatus_message_x = xS(10);
1056 mstatus_message_y = yS(5);
1057 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - xS(240);
1058 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
1059 mstatus_progress_w = xS(230);
1060 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
1061 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
1063 mzoom_y = mstatus_y - zoombar_left->get_h();
1064 mzoom_h = zoombar_left->get_h();
1067 patchbay_y = mtimebar_y + mtimebar_h;
1068 patchbay_w = get_image("patchbay_bg")->get_w();
1069 patchbay_h = mzoom_y - patchbay_y;
1071 mcanvas_y = mtimebar_y + mtimebar_h;
1073 mcanvas_h = patchbay_h;
1074 pane_w = get_image_set("xpane")[0]->get_w();
1075 pane_h = get_image_set("ypane")[0]->get_h();
1076 pane_x = mcanvas_x + mcanvas_w;
1077 pane_y = mcanvas_y + mcanvas_h;
1079 mhscroll_y = mcanvas_y + mcanvas_h;
1080 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT) - patchbay_w;
1081 mvscroll_x = mcanvas_x + mcanvas_w;
1082 mvscroll_y = mcanvas_y;
1083 mvscroll_h = mcanvas_h;
1086 void BlondCVTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
1088 if(cwindow_controls)
1091 ccomposite_y = yS(5);
1092 ccomposite_w = cpanel_bg->get_w();
1093 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
1095 cedit_y = ccomposite_h + yS(17);
1096 ctransport_x = xS(10);
1097 ctransport_y = mwindow->session->cwindow_h - get_image_set("autokeyframe")[0]->get_h();
1098 ccanvas_x = ccomposite_x + ccomposite_w;
1100 ccanvas_h = ccomposite_h;
1101 cstatus_x = xS(525);
1102 cstatus_y = mwindow->session->cwindow_h - yS(40);
1103 if(mwindow->edl->session->cwindow_meter)
1105 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(this,mwindow->edl->session->audio_channels,
1106 mwindow->edl->session->cwindow_meter);
1107 ccanvas_w = cmeter_x - ccanvas_x - xS(5);
1111 cmeter_x = mwindow->session->cwindow_w;
1112 ccanvas_w = cmeter_x - ccanvas_x;
1119 ccomposite_x = -cpanel_bg->get_w();
1121 ccomposite_w = cpanel_bg->get_w();
1122 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
1125 cedit_y = mwindow->session->cwindow_h + yS(17);
1126 ctransport_x = xS(10);
1127 ctransport_y = cedit_y + yS(40);
1130 ccanvas_w = mwindow->session->cwindow_w;
1131 ccanvas_h = mwindow->session->cwindow_h;
1132 cmeter_x = mwindow->session->cwindow_w;
1133 cstatus_x = mwindow->session->cwindow_w;
1134 cstatus_y = mwindow->session->cwindow_h;
1140 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + xS(20);
1141 czoom_y = ctransport_y + yS(5);
1144 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
1146 cslider_w = ccanvas_x + ccanvas_w - cslider_x - xS(5);
1147 ctimebar_x = ccanvas_x;
1148 ctimebar_y = ccanvas_y + ccanvas_h;
1149 ctimebar_w = ccanvas_w;
1150 ctimebar_h = yS(16);
1154 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
1155 ctime_y = ctransport_y;
1157 cdest_y = czoom_y + yS(30);
1162 void BlondCVTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
1165 recordgui_status_x = xS(10);
1166 recordgui_status_y = yS(10);
1167 recordgui_status_x2 = xS(160);
1168 recordgui_batch_x = xS(310);
1169 recordgui_batch_y = yS(10);
1170 recordgui_batchcaption_x = recordgui_batch_x + xS(110);
1173 recordgui_transport_x = recordgui_batch_x;
1174 recordgui_transport_y = recordgui_batch_y + yS(150);
1176 //recordgui_buttons_x = recordgui_batch_x - xS(50);
1177 //recordgui_buttons_y = recordgui_transport_y + yS(40);
1178 //recordgui_options_x = recordgui_buttons_x;
1179 //recordgui_options_y = recordgui_buttons_y + yS(35);
1181 recordgui_batches_x = xS(10);
1182 recordgui_batches_y = yS(270);
1183 recordgui_batches_w = w - xS(20);
1184 recordgui_batches_h = h - recordgui_batches_y - yS(70);
1185 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
1186 recordgui_loadmode_y = h - yS(60);
1188 recordgui_controls_x = xS(10);
1189 recordgui_controls_y = h - yS(40);
1192 void BlondCVTheme::get_rmonitor_sizes(int do_audio, int do_video,
1193 int do_channel, int do_interlace, int do_avc, int audio_channels)
1195 Theme::get_rmonitor_sizes(do_audio, do_video,
1196 do_channel, do_interlace, do_avc, audio_channels);
1197 if(!do_video && do_audio)
1199 rmonitor_meter_y -= yS(30);
1200 rmonitor_meter_h += yS(30);
1205 void BlondCVTheme::get_vwindow_sizes(VWindowGUI *gui)
1208 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
1211 vcanvas_h = mwindow->session->vwindow_h - vbuttons_left->get_h();
1213 if(mwindow->edl->session->vwindow_meter)
1215 rmonitor_meter_y -= yS(30);
1216 rmonitor_meter_h += yS(30);
1217 vmeter_x = mwindow->session->vwindow_w -
1218 VWINDOW_METER_MARGIN -
1219 MeterPanel::get_meters_width(this,
1220 mwindow->edl->session->audio_channels,
1221 mwindow->edl->session->vwindow_meter);
1222 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
1226 vmeter_x = mwindow->session->vwindow_w;
1227 vcanvas_w = mwindow->session->vwindow_w;
1230 vtimebar_x = vcanvas_x;
1231 vtimebar_y = vcanvas_y + vcanvas_h;
1232 vtimebar_w = vcanvas_w;
1233 vtimebar_h = yS(16);
1236 vslider_y = vtimebar_y + yS(25);
1237 vslider_w = vtimebar_w - vslider_x;
1239 vedit_y = vslider_y + BC_Slider::get_span(0);
1240 vtransport_x = xS(10);
1241 vtransport_y = mwindow->session->vwindow_h -
1242 get_image_set("autokeyframe")[0]->get_h();
1244 vtime_y = vedit_y + yS(10);
1252 void BlondCVTheme::build_icons()
1254 new_image("mwindow_icon", "heroine_icon.png");
1255 new_image("vwindow_icon", "heroine_icon.png");
1256 new_image("cwindow_icon", "heroine_icon.png");
1257 new_image("awindow_icon", "heroine_icon.png");
1258 new_image("record_icon", "heroine_icon.png");
1263 void BlondCVTheme::build_bg_data()
1266 channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
1267 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
1270 new_image1("resource1024", "resource1024.png");
1271 new_image1("resource512", "resource512.png");
1272 new_image1("resource256", "resource256.png");
1273 new_image1("resource128", "resource128.png");
1274 new_image1("resource64", "resource64.png");
1275 new_image1("resource32", "resource32.png");
1276 new_image("plugin_bg_data", "plugin_bg.png");
1277 new_image("title_bg_data", "title_bg.png");
1278 new_image("vtimebar_bg_data", "vwindow_timebar.png");
1283 void BlondCVTheme::build_overlays()
1285 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
1286 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
1287 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
1288 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
1289 hardedge_data = new VFramePng(get_image_data("hardedge.png"));
1290 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
1291 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
1295 void BlondCVTheme::draw_rwindow_bg(RecordGUI *gui)
1298 // int margin = xS(50);
1299 // int margin2 = xS(80);
1300 // gui->draw_9segment(recordgui_batch_x - margin,
1302 // mwindow->session->rwindow_w - recordgui_status_x + margin,
1303 // recordgui_buttons_y,
1305 // gui->draw_3segmenth(recordgui_options_x - margin2,
1306 // recordgui_buttons_y - yS(5),
1307 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
1309 // y = recordgui_buttons_y - yS(5) + rgui_controls->get_h();
1310 // gui->draw_9segment(0,
1312 // mwindow->session->rwindow_w,
1313 // mwindow->session->rwindow_h - y,
1317 void BlondCVTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1319 // int margin = xS(45);
1320 // int panel_w = xS(300);
1321 // int x = rmonitor_meter_x - margin;
1322 // int w = mwindow->session->rmonitor_w - x;
1323 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1324 // gui->clear_box(0, 0,
1325 // mwindow->session->rmonitor_w,
1326 // mwindow->session->rmonitor_h);
1327 // gui->draw_9segment(x, 0,
1329 // mwindow->session->rmonitor_h,
1330 // rmonitor_meters);
1334 void BlondCVTheme::draw_mwindow_bg(MWindowGUI *gui)
1337 gui->draw_3segmenth(mbuttons_x, mbuttons_y,
1338 xS(750), mbutton_left);
1339 gui->draw_3segmenth(mbuttons_x + xS(750), mbuttons_y,
1340 mbuttons_w - xS(500), mbutton_right);
1343 gui->draw_3segmenth(0, mbuttons_y + mbutton_left->get_h(),
1344 get_image("patchbay_bg")->get_w(), get_image("clock_bg"));
1347 gui->draw_3segmentv(patchbay_x, patchbay_y,
1348 patchbay_h + yS(20), get_image("patchbay_bg"));
1351 gui->draw_9segment(mcanvas_x, mcanvas_y,
1352 mcanvas_w, patchbay_h + yS(20),
1356 gui->draw_3segmenth(mtimebar_x, mtimebar_y,
1358 get_image("timebar_bg"));
1361 int zoombar_center = xS(710);
1362 gui->draw_3segmenth(mzoom_x, mzoom_y,
1363 zoombar_center, zoombar_left);
1364 if(mzoom_w > zoombar_center)
1365 gui->draw_3segmenth(mzoom_x + zoombar_center, mzoom_y,
1366 mzoom_w - zoombar_center, zoombar_right);
1369 gui->draw_3segmenth(mstatus_x, mstatus_y,
1370 zoombar_center, statusbar_left);
1372 if(mstatus_w > zoombar_center)
1373 gui->draw_3segmenth(mstatus_x + zoombar_center,
1375 mstatus_w - zoombar_center,
1379 void BlondCVTheme::draw_cwindow_bg(CWindowGUI *gui)
1381 const int button_division = xS(570);
1382 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1383 gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1384 if(mwindow->edl->session->cwindow_meter)
1386 gui->draw_3segmenth(button_division,
1388 cmeter_x - CWINDOW_METER_MARGIN - button_division,
1389 get_image("cbuttons_right"));
1390 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
1392 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
1393 mwindow->session->cwindow_h,
1394 get_image("cmeter_bg"));
1398 gui->draw_3segmenth(button_division,
1400 cmeter_x - CWINDOW_METER_MARGIN - button_division + xS(100),
1401 get_image("cbuttons_right"));
1405 void BlondCVTheme::draw_vwindow_bg(VWindowGUI *gui)
1407 const int button_division = xS(400);
1408 gui->draw_3segmenth(0, vcanvas_h,
1409 button_division, get_image("vbuttons_left"));
1410 if(mwindow->edl->session->vwindow_meter)
1412 gui->draw_3segmenth(button_division, vcanvas_h,
1413 vmeter_x - VWINDOW_METER_MARGIN - button_division,
1414 get_image("cbuttons_right"));
1415 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN, 0,
1416 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
1417 mwindow->session->vwindow_h,
1418 get_image("cmeter_bg"));
1422 gui->draw_3segmenth(button_division, vcanvas_h,
1423 vmeter_x - VWINDOW_METER_MARGIN - button_division + xS(100),
1424 get_image("cbuttons_right"));
1428 void BlondCVTheme::get_preferences_sizes()
1433 void BlondCVTheme::draw_preferences_bg(PreferencesWindow *gui)
1435 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1438 void BlondCVTheme::get_new_sizes(NewWindow *gui)
1442 void BlondCVTheme::draw_new_bg(NewWindow *gui)
1444 gui->draw_vframe(get_image("new_bg"), 0, 0);
1447 void BlondCVTheme::draw_setformat_bg(SetFormatWindow *gui)
1449 gui->draw_vframe(get_image("setformat_bg"), 0, 0);
1450 gui->draw_vframe(setformat_bg, 0, 0);
1454 // pmd: SUV (same), 1_2_2blond (nonexist)
1455 void BlondCVTheme::get_plugindialog_sizes()
1457 int xs10 = xS(10), xs20 = xS(20);
1458 int ys10 = yS(10), ys120 = yS(120);
1459 int x = xs10, y = yS(30);
1460 plugindialog_new_x = x;
1461 plugindialog_new_y = y;
1462 plugindialog_shared_x = mwindow->session->plugindialog_w / 3;
1463 plugindialog_shared_y = y;
1464 plugindialog_module_x = mwindow->session->plugindialog_w * 2 / 3;
1465 plugindialog_module_y = y;
1467 plugindialog_new_w = plugindialog_shared_x - plugindialog_new_x - xs10;
1468 plugindialog_new_h = mwindow->session->plugindialog_h - ys120;
1469 plugindialog_shared_w = plugindialog_module_x - plugindialog_shared_x - xs10;
1470 plugindialog_shared_h = mwindow->session->plugindialog_h - ys120;
1471 plugindialog_module_w = mwindow->session->plugindialog_w - plugindialog_module_x - xs10;
1472 plugindialog_module_h = mwindow->session->plugindialog_h - ys120;
1474 plugindialog_newattach_x = plugindialog_new_x + xs20;
1475 plugindialog_newattach_y = plugindialog_new_y + plugindialog_new_h + ys10;
1476 plugindialog_sharedattach_x = plugindialog_shared_x + xs20;
1477 plugindialog_sharedattach_y = plugindialog_shared_y + plugindialog_shared_h + ys10;
1478 plugindialog_moduleattach_x = plugindialog_module_x + xs20;
1479 plugindialog_moduleattach_y = plugindialog_module_y + plugindialog_module_h + ys10;