3 #include "cwindowgui.h"
4 #include "defaulttheme.h"
6 #include "edlsession.h"
8 #include "mainsession.h"
10 #include "meterpanel.h"
12 #include "mwindowgui.h"
15 #include "preferencesthread.h"
16 #include "recordgui.h"
17 #include "recordmonitor.h"
18 #include "setformat.h"
19 #include "statusbar.h"
21 #include "trackcanvas.h"
23 #include "vwindowgui.h"
29 PluginClient* new_plugin(PluginServer *server)
31 return new BlondThemeMain(server);
40 BlondThemeMain::BlondThemeMain(PluginServer *server)
41 : PluginTClient(server)
45 BlondThemeMain::~BlondThemeMain()
49 char* BlondThemeMain::plugin_title()
54 Theme* BlondThemeMain::new_theme()
56 theme = new BlondTheme;
57 extern unsigned char _binary_defaulttheme_data_start[];
58 theme->set_data(_binary_defaulttheme_data_start);
69 BlondTheme::BlondTheme()
74 BlondTheme::~BlondTheme()
78 void BlondTheme::initialize()
80 BC_Resources *resources = BC_WindowBase::get_resources();
81 resources->generic_button_images = new_image_set(3,
85 resources->horizontal_slider_data = new_image_set(6,
92 resources->vertical_slider_data = new_image_set(6,
93 "vertical_slider_fg_up.png",
94 "vertical_slider_fg_hi.png",
95 "vertical_slider_fg_dn.png",
96 "vertical_slider_bg_up.png",
97 "vertical_slider_bg_hi.png",
98 "vertical_slider_bg_dn.png");
99 resources->progress_images = new_image_set(2,
102 resources->tumble_data = new_image_set(4,
107 resources->listbox_button = new_image_set(4,
108 "listbox_button_up.png",
109 "listbox_button_hi.png",
110 "listbox_button_dn.png",
111 "listbox_button_disabled.png");
112 resources->listbox_column = new_image_set(3,
113 "listbox_column_up.png",
114 "listbox_column_hi.png",
115 "listbox_column_dn.png");
116 resources->listbox_expand = new_image_set(5,
117 "listbox_expandup.png",
118 "listbox_expanduphi.png",
119 "listbox_expandchecked.png",
120 "listbox_expanddn.png",
121 "listbox_expandcheckedhi.png");
122 resources->listbox_up = new_image("listbox_up.png");
123 resources->listbox_dn = new_image("listbox_dn.png");
124 resources->pan_data = new_image_set(7,
130 "pan_channel_small.png",
131 "pan_stick_small.png");
132 resources->pan_text_color = WHITE;
134 resources->pot_images = new_image_set(3,
139 resources->checkbox_images = new_image_set(5,
142 "checkbox_checked.png",
144 "checkbox_checkedhi.png");
146 resources->radial_images = new_image_set(5,
149 "radial_checked.png",
151 "radial_checkedhi.png");
153 resources->xmeter_images = new_image_set(6,
160 resources->ymeter_images = new_image_set(6,
168 resources->hscroll_data = new_image_set(10,
169 "hscroll_center_up.png",
170 "hscroll_center_hi.png",
171 "hscroll_center_dn.png",
173 "hscroll_back_up.png",
174 "hscroll_back_hi.png",
175 "hscroll_back_dn.png",
176 "hscroll_fwd_up.png",
177 "hscroll_fwd_hi.png",
178 "hscroll_fwd_dn.png");
180 resources->vscroll_data = new_image_set(10,
181 "vscroll_center_up.png",
182 "vscroll_center_hi.png",
183 "vscroll_center_dn.png",
185 "vscroll_back_up.png",
186 "vscroll_back_hi.png",
187 "vscroll_back_dn.png",
188 "vscroll_fwd_up.png",
189 "vscroll_fwd_hi.png",
190 "vscroll_fwd_dn.png");
192 resources->ok_images = new_button("ok.png",
197 resources->cancel_images = new_button("cancel.png",
204 rgui_batch = new_image("recordgui_batch.png");
205 rgui_controls = new_image("recordgui_controls.png");
206 rgui_list = new_image("recordgui_list.png");
207 rmonitor_panel = new_image("recordmonitor_panel.png");
208 rmonitor_meters = new_image("recordmonitor_meters.png");
212 mbutton_left = new_image("mbutton_left.png");
213 mbutton_right = new_image("mbutton_right.png");
214 new_image("timebar_bg", "timebar_bg.png");
215 new_image("timebar_brender", "timebar_brender.png");
216 new_image("clock_bg", "mclock.png");
217 new_image("patchbay_bg", "patchbay_bg.png");
218 tracks_bg = new_image("tracks_bg.png");
219 zoombar_left = new_image("zoombar_left.png");
220 zoombar_right = new_image("zoombar_right.png");
221 statusbar_left = new_image("statusbar_left.png");
222 statusbar_right = new_image("statusbar_right.png");
225 cpanel_bg = new_image("cpanel_bg.png");
226 cbuttons_left = new_image("cbuttons_left.png");
227 cbuttons_right = new_image("cbuttons_right.png");
228 cmeter_bg = new_image("cmeter_bg.png");
231 vbuttons_left = new_image("vbuttons_left.png");
232 vbuttons_right = new_image("vbuttons_right.png");
233 vmeter_bg = new_image("vmeter_bg.png");
235 preferences_bg = new_image("preferences_bg.png");
238 new_bg = new_image("new_bg.png");
239 setformat_bg = new_image("setformat_bg2.png");
242 timebar_view_data = new_image("timebar_view.png");
254 setformat_margin = 30;
255 setformat_channels_x = 25;
256 setformat_channels_y = 242;
257 setformat_channels_w = 250;
258 setformat_channels_h = 250;
272 new_image_set("drawpatch_data", 5, "drawpatch_up.png", "drawpatch_hi.png", "drawpatch_checked.png", "drawpatch_dn.png", "drawpatch_checkedhi.png");
273 new_image_set("expandpatch_data", 5, "expandpatch_up.png", "expandpatch_hi.png", "expandpatch_checked.png", "expandpatch_dn.png", "expandpatch_checkedhi.png");
274 new_image_set("gangpatch_data", 5, "gangpatch_up.png", "gangpatch_hi.png", "gangpatch_checked.png", "gangpatch_dn.png", "gangpatch_checkedhi.png");
275 new_image_set("mutepatch_data", 5, "mutepatch_up.png", "mutepatch_hi.png", "mutepatch_checked.png", "mutepatch_dn.png", "mutepatch_checkedhi.png");
276 new_image_set("playpatch_data", 5, "playpatch_up.png", "playpatch_hi.png", "playpatch_checked.png", "playpatch_dn.png", "playpatch_checkedhi.png");
277 new_image_set("recordpatch_data", 5, "recordpatch_up.png", "recordpatch_hi.png", "recordpatch_checked.png", "recordpatch_dn.png", "recordpatch_checkedhi.png");
284 out_point = new_image_set(5,
289 "out_checkedhi.png");
290 in_point = new_image_set(5,
297 label_toggle = new_image_set(5,
298 "labeltoggle_up.png",
299 "labeltoggle_uphi.png",
301 "labeltoggle_dn.png",
302 "label_checkedhi.png");
305 statusbar_cancel_data = new_image_set(3,
306 "statusbar_cancel_up.png",
307 "statusbar_cancel_hi.png",
308 "statusbar_cancel_dn.png");
311 VFrame *editpanel_up = new_image("editpanel_up.png");
312 VFrame *editpanel_hi = new_image("editpanel_hi.png");
313 VFrame *editpanel_dn = new_image("editpanel_dn.png");
314 VFrame *editpanel_checked = new_image("editpanel_checked.png");
315 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
317 bottom_justify = new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
318 center_justify = new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
319 channel_data = new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn);
320 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
321 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
322 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
323 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
324 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
325 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
326 left_justify = new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
327 magnify_button_data = new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn);
328 middle_justify = new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
329 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
330 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
331 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
332 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
333 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
334 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
335 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
336 right_justify = new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
337 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
338 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
339 top_justify = new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
340 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
341 wrench_data = new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn);
344 new_image("cwindow_inactive", "cwindow_inactive.png");
345 new_image("cwindow_active", "cwindow_active.png");
348 new_image_set("batch_render_start",
352 "batchstart_dn.png");
353 new_image_set("batch_render_stop",
358 new_image_set("batch_render_cancel",
360 "batchcancel_up.png",
361 "batchcancel_hi.png",
362 "batchcancel_dn.png");
364 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
365 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
366 camera_data = new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
367 crop_data = new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
368 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
369 magnify_data = new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
370 mask_data = new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
371 proj_data = new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
372 protect_data = new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
373 show_meters = new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
374 titlesafe_data = new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
375 tool_data = new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
376 new_toggle("eyedrop.png",
387 static VFrame **transport_bg = new_image_set(3,
391 build_transport("end", get_image_data("end.png"), transport_bg, 2);
392 build_transport("fastfwd", get_image_data("fastfwd.png"), transport_bg, 1);
393 build_transport("fastrev", get_image_data("fastrev.png"), transport_bg, 1);
394 build_transport("play", get_image_data("play.png"), transport_bg, 1);
395 build_transport("framefwd", get_image_data("framefwd.png"), transport_bg, 1);
396 build_transport("framerev", get_image_data("framerev.png"), transport_bg, 1);
397 build_transport("pause", get_image_data("pause.png"), transport_bg, 1);
398 build_transport("record", get_image_data("record.png"), transport_bg, 1);
399 build_transport("singleframe", get_image_data("singleframe.png"), transport_bg, 1);
400 build_transport("reverse", get_image_data("reverse.png"), transport_bg, 1);
401 build_transport("rewind", get_image_data("rewind.png"), transport_bg, 0);
402 build_transport("stop", get_image_data("stop.png"), transport_bg, 1);
403 build_transport("stoprec", get_image_data("stoprec.png"), transport_bg, 2);
406 title_font = MEDIUMFONT_3D;
408 recordgui_fixed_color = YELLOW;
409 recordgui_variable_color = RED;
410 resources->medium_font = N_("-*-helvetica-bold-r-normal-*-14-*");
412 channel_position_color = MEYELLOW;
413 resources->meter_title_w = 25;
415 // (asset) edit info text color
416 edit_font_color = YELLOW;
419 resources->bg_color = BLOND;
422 resources->checkbox_images = new_image_set(5,
425 "checkbox_checked.png",
427 "checkbox_checkedhi.png");
430 resources->radial_images = new_image_set(5,
433 "radial_checked.png",
435 "radial_checkedhi.png");
438 resources->label_images = new_image_set(5,
441 "radial_checked.png",
443 "radial_checkedhi.png");
446 resources->filebox_text_images = new_image_set(3,
448 "file_text_uphi.png",
450 resources->filebox_icons_images = new_image_set(3,
452 "file_icons_uphi.png",
453 "file_icons_dn.png");
454 resources->filebox_updir_images = new_image_set(3,
456 "file_updir_uphi.png",
457 "file_updir_dn.png");
458 resources->filebox_newfolder_images = new_image_set(3,
459 "file_newfolder_up.png",
460 "file_newfolder_uphi.png",
461 "file_newfolder_dn.png");
463 resources->type_to_icon = new_image_set(5,
471 resources->listbox_bg = new_image("list_bg.png");
476 #define CWINDOW_METER_MARGIN 5
477 #define VWINDOW_METER_MARGIN 5
479 void BlondTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
482 mbuttons_y = gui->mainmenu->get_h();
484 mbuttons_h = mbutton_left->get_h();
486 mclock_y = mbuttons_y + mbuttons_h + CWINDOW_METER_MARGIN;
487 mclock_w = get_image("clock_bg")->get_w() - 40;
488 mclock_h = get_image("clock_bg")->get_h();
489 mtimebar_x = get_image("patchbay_bg")->get_w();
490 mtimebar_y = mbuttons_y + mbuttons_h;
491 mtimebar_w = w - mtimebar_x;
492 mtimebar_h = get_image("timebar_bg")->get_h();
494 mstatus_y = h - statusbar_left->get_h();
496 mstatus_h = statusbar_left->get_h();
497 mstatus_message_x = 10;
498 mstatus_message_y = 5;
499 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
500 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
501 mstatus_progress_w = 230;
502 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
503 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
505 mzoom_y = mstatus_y - zoombar_left->get_h();
506 mzoom_h = zoombar_left->get_h();
509 patchbay_y = mtimebar_y + mtimebar_h;
510 patchbay_w = get_image("patchbay_bg")->get_w();
511 patchbay_h = mzoom_y - patchbay_y;
512 mcanvas_x = patchbay_x + patchbay_w;
513 mcanvas_y = mtimebar_y + mtimebar_h;
514 mcanvas_w = w - patchbay_w - BC_ScrollBar::get_span(SCROLL_VERT);
515 mcanvas_h = patchbay_h;
517 mhscroll_y = mcanvas_y + mcanvas_h;
518 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT) - patchbay_w;
519 mvscroll_x = mcanvas_x + mcanvas_w;
520 mvscroll_y = mcanvas_y;
521 mvscroll_h = mcanvas_h;
524 void BlondTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
530 ccomposite_w = cpanel_bg->get_w();
531 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
533 cslider_y = ccomposite_h + 23;
535 cedit_y = cslider_y + 17;
537 ctransport_y = mwindow->session->cwindow_h - get_image_set("autokeyframe")[0]->get_h();
538 ccanvas_x = ccomposite_x + ccomposite_w;
540 ccanvas_h = ccomposite_h;
542 cstatus_y = mwindow->session->cwindow_h - 40;
543 if(mwindow->edl->session->cwindow_meter)
545 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
546 mwindow->edl->session->cwindow_meter);
547 ccanvas_w = cmeter_x - ccanvas_x - 5;
551 cmeter_x = mwindow->session->cwindow_w;
552 ccanvas_w = cmeter_x - ccanvas_x;
557 ccomposite_x = -cpanel_bg->get_w();
559 ccomposite_w = cpanel_bg->get_w();
560 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
563 cslider_y = mwindow->session->cwindow_h;
565 cedit_y = cslider_y + 17;
567 ctransport_y = cedit_y + 40;
570 ccanvas_w = mwindow->session->cwindow_w;
571 ccanvas_h = mwindow->session->cwindow_h;
572 cmeter_x = mwindow->session->cwindow_w;
573 cstatus_x = mwindow->session->cwindow_w;
574 cstatus_y = mwindow->session->cwindow_h;
578 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
579 czoom_y = ctransport_y + 5;
583 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
585 cslider_w = ccanvas_x + ccanvas_w - cslider_x;
586 ctimebar_x = ccanvas_x;
587 ctimebar_y = ccanvas_y + ccanvas_h;
588 ctimebar_w = ccanvas_w;
593 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
594 ctime_y = ctransport_y;
596 cdest_y = czoom_y + 30;
601 void BlondTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
603 recordgui_status_x = 10;
604 recordgui_status_y = 10;
605 recordgui_status_x2 = 160;
606 recordgui_batch_x = 310;
607 recordgui_batch_y = 10;
608 recordgui_batchcaption_x = recordgui_batch_x + 110;
611 recordgui_transport_x = recordgui_batch_x;
612 recordgui_transport_y = recordgui_batch_y + 150;
614 recordgui_buttons_x = recordgui_batch_x - 50;
615 recordgui_buttons_y = recordgui_transport_y + 40;
616 recordgui_options_x = recordgui_buttons_x;
617 recordgui_options_y = recordgui_buttons_y + 35;
619 recordgui_batches_x = 10;
620 recordgui_batches_y = 270;
621 recordgui_batches_w = w - 20;
622 recordgui_batches_h = h - recordgui_batches_y - 70;
623 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
624 recordgui_loadmode_y = h - 60;
626 recordgui_controls_x = 10;
627 recordgui_controls_y = h - 40;
632 void BlondTheme::get_vwindow_sizes(VWindowGUI *gui)
635 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
638 vcanvas_h = mwindow->session->vwindow_h - vbuttons_left->get_h();
640 if(mwindow->edl->session->vwindow_meter)
642 vmeter_x = mwindow->session->vwindow_w -
643 VWINDOW_METER_MARGIN -
644 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
645 mwindow->edl->session->vwindow_meter);
646 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
650 vmeter_x = mwindow->session->vwindow_w;
651 vcanvas_w = mwindow->session->vwindow_w;
654 vtimebar_x = vcanvas_x;
655 vtimebar_y = vcanvas_y + vcanvas_h;
656 vtimebar_w = vcanvas_w;
660 vslider_y = vtimebar_y + 25;
661 vslider_w = vtimebar_w - vslider_x;
663 vedit_y = vslider_y + 17;
665 vtransport_y = mwindow->session->vwindow_h - get_image_set("autokeyframe")[0]->get_h();
667 vtime_y = vedit_y + 10;
673 vzoom_x = vtime_x + 150;
675 vsource_x = vtime_x + 50;
676 vsource_y = vtransport_y + 5;
683 void BlondTheme::build_icons()
685 mwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
686 vwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
687 cwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
688 awindow_icon = new VFrame(get_image_data("heroine_icon.png"));
689 record_icon = new VFrame(get_image_data("heroine_icon.png"));
690 clip_icon = new VFrame(get_image_data("clip_icon.png"));
695 void BlondTheme::build_bg_data()
698 channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
699 channel_position_data = new VFrame(get_image_data("channel_position.png"));
702 new_image("resource1024", "resource1024.png");
703 new_image("resource512", "resource512.png");
704 new_image("resource256", "resource256.png");
705 new_image("resource128", "resource128.png");
706 new_image("resource64", "resource64.png");
707 new_image("resource32", "resource32.png");
708 plugin_bg_data = new VFrame(get_image_data("plugin_bg.png"));
709 title_bg_data = new VFrame(get_image_data("title_bg.png"));
710 vtimebar_bg_data = new VFrame(get_image_data("vwindow_timebar.png"));
714 void BlondTheme::build_patches()
716 static VFrame *default_drawpatch_data[] = { new VFrame(get_image_data("drawpatch_up.png")), new VFrame(get_image_data("drawpatch_hi.png")), new VFrame(get_image_data("drawpatch_checked.png")), new VFrame(get_image_data("drawpatch_dn.png")), new VFrame(get_image_data("drawpatch_checkedhi.png")) };
717 static VFrame *default_expandpatch_data[] = { new VFrame(get_image_data("expandpatch_up.png")), new VFrame(get_image_data("expandpatch_hi.png")), new VFrame(get_image_data("expandpatch_checked.png")), new VFrame(get_image_data("expandpatch_dn.png")), new VFrame(get_image_data("expandpatch_checkedhi.png")) };
718 static VFrame *default_gangpatch_data[] = { new VFrame(get_image_data("gangpatch_up.png")), new VFrame(get_image_data("gangpatch_hi.png")), new VFrame(get_image_data("gangpatch_checked.png")), new VFrame(get_image_data("gangpatch_dn.png")), new VFrame(get_image_data("gangpatch_checkedhi.png")) };
719 static VFrame *default_mutepatch_data[] = { new VFrame(get_image_data("mutepatch_up.png")), new VFrame(get_image_data("mutepatch_hi.png")), new VFrame(get_image_data("mutepatch_checked.png")), new VFrame(get_image_data("mutepatch_dn.png")), new VFrame(get_image_data("mutepatch_checkedhi.png")) };
720 static VFrame *default_patchbay_bg = new VFrame(get_image_data("patchbay_bg.png"));
721 static VFrame *default_playpatch_data[] = { new VFrame(get_image_data("playpatch_up.png")), new VFrame(get_image_data("playpatch_hi.png")), new VFrame(get_image_data("playpatch_checked.png")), new VFrame(get_image_data("playpatch_dn.png")), new VFrame(get_image_data("playpatch_checkedhi.png")) };
722 static VFrame *default_recordpatch_data[] = { new VFrame(get_image_data("recordpatch_up.png")), new VFrame(get_image_data("recordpatch_hi.png")), new VFrame(get_image_data("recordpatch_checked.png")), new VFrame(get_image_data("recordpatch_dn.png")), new VFrame(get_image_data("recordpatch_checkedhi.png")) };
725 drawpatch_data = default_drawpatch_data;
726 expandpatch_data = default_expandpatch_data;
727 gangpatch_data = default_gangpatch_data;
728 mutepatch_data = default_mutepatch_data;
729 patchbay_bg = default_patchbay_bg;
730 playpatch_data = default_playpatch_data;
731 recordpatch_data = default_recordpatch_data;
734 void BlondTheme::build_overlays()
736 keyframe_data = new VFrame(get_image_data("keyframe3.png"));
737 camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
738 maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
739 modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
740 pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
741 projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
752 void BlondTheme::draw_rwindow_bg(RecordGUI *gui)
757 gui->draw_9segment(recordgui_batch_x - margin,
759 mwindow->session->rwindow_w - recordgui_status_x + margin,
762 gui->draw_3segmenth(recordgui_options_x - margin2,
763 recordgui_buttons_y - 5,
764 mwindow->session->rwindow_w - recordgui_options_x + margin2,
766 y = recordgui_buttons_y - 5 + rgui_controls->get_h();
767 gui->draw_9segment(0,
769 mwindow->session->rwindow_w,
770 mwindow->session->rwindow_h - y,
774 void BlondTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
778 int x = rmonitor_meter_x - margin;
779 int w = mwindow->session->rmonitor_w - x;
780 if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
783 mwindow->session->rmonitor_w,
784 mwindow->session->rmonitor_h);
785 gui->draw_9segment(x,
788 mwindow->session->rmonitor_h,
797 void BlondTheme::draw_mwindow_bg(MWindowGUI *gui)
800 gui->draw_3segmenth(mbuttons_x,
804 gui->draw_3segmenth(mbuttons_x + 750,
810 gui->draw_3segmenth(0,
811 mbuttons_y + mbutton_left->get_h(),
812 get_image("patchbay_bg")->get_w(),
813 get_image("clock_bg"));
816 gui->draw_3segmentv(patchbay_x,
819 get_image("patchbay_bg"));
822 gui->draw_9segment(mcanvas_x,
829 gui->draw_3segmenth(mtimebar_x,
832 get_image("timebar_bg"));
835 int zoombar_center = 710;
836 gui->draw_3segmenth(mzoom_x,
840 if(mzoom_w > zoombar_center)
841 gui->draw_3segmenth(mzoom_x + zoombar_center,
843 mzoom_w - zoombar_center,
847 gui->draw_3segmenth(mstatus_x,
852 if(mstatus_w > zoombar_center)
853 gui->draw_3segmenth(mstatus_x + zoombar_center,
855 mstatus_w - zoombar_center,
859 void BlondTheme::draw_cwindow_bg(CWindowGUI *gui)
861 const int button_division = 530;
862 gui->draw_3segmentv(0, 0, ccomposite_h, cpanel_bg);
863 gui->draw_3segmenth(0, ccomposite_h, button_division, cbuttons_left);
864 if(mwindow->edl->session->cwindow_meter)
866 gui->draw_3segmenth(button_division,
868 cmeter_x - CWINDOW_METER_MARGIN - button_division,
870 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
872 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
873 mwindow->session->cwindow_h,
878 gui->draw_3segmenth(button_division,
880 cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
885 void BlondTheme::draw_vwindow_bg(VWindowGUI *gui)
887 const int button_division = 400;
888 gui->draw_3segmenth(0, vcanvas_h, button_division, vbuttons_left);
889 if(mwindow->edl->session->vwindow_meter)
891 gui->draw_3segmenth(button_division,
893 vmeter_x - VWINDOW_METER_MARGIN - button_division,
895 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
897 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
898 mwindow->session->vwindow_h,
903 gui->draw_3segmenth(button_division,
905 vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
910 void BlondTheme::get_preferences_sizes()
915 void BlondTheme::draw_preferences_bg(PreferencesWindow *gui)
917 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, preferences_bg);
920 void BlondTheme::get_new_sizes(NewWindow *gui)
924 void BlondTheme::draw_new_bg(NewWindow *gui)
926 gui->draw_vframe(new_bg, 0, 0);
929 void BlondTheme::draw_setformat_bg(SetFormatWindow *gui)
931 gui->draw_vframe(setformat_bg, 0, 0);