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"
24 #include "cwindowgui.h"
25 #include "defaulttheme.h"
27 #include "edlsession.h"
29 #include "mainsession.h"
31 #include "meterpanel.h"
33 #include "mwindowgui.h"
36 #include "preferencesthread.h"
37 #include "recordgui.h"
38 #include "recordmonitor.h"
39 #include "setformat.h"
40 #include "statusbar.h"
42 #include "trackcanvas.h"
44 #include "vwindowgui.h"
50 PluginClient* new_plugin(PluginServer *server)
52 return new DefaultThemeMain(server);
61 DefaultThemeMain::DefaultThemeMain(PluginServer *server)
62 : PluginTClient(server)
66 DefaultThemeMain::~DefaultThemeMain()
68 delete camerakeyframe_data;
69 delete channel_bg_data;
70 delete channel_position_data;
72 delete maskkeyframe_data;
73 delete modekeyframe_data;
74 delete pankeyframe_data;
75 delete projectorkeyframe_data;
78 char* DefaultThemeMain::plugin_title()
83 Theme* DefaultThemeMain::new_theme()
85 theme = new DefaultTheme;
86 extern unsigned char _binary_defaulttheme_data_start[];
87 theme->set_data(_binary_defaulttheme_data_start);
98 DefaultTheme::DefaultTheme()
103 DefaultTheme::~DefaultTheme()
107 void DefaultTheme::initialize()
109 BC_Resources *resources = BC_WindowBase::get_resources();
110 resources->generic_button_images = new_image_set(3,
114 resources->horizontal_slider_data = new_image_set(6,
120 "hslider_bg_dn.png");
121 resources->progress_images = new_image_set(2,
124 resources->tumble_data = new_image_set(4,
129 resources->listbox_button = new_image_set(4,
130 "listbox_button_up.png",
131 "listbox_button_hi.png",
132 "listbox_button_dn.png",
133 "listbox_button_hi.png");
134 resources->listbox_column = new_image_set(3,
135 "listbox_column_up.png",
136 "listbox_column_hi.png",
137 "listbox_column_dn.png");
138 resources->pan_data = new_image_set(7,
144 "pan_channel_small.png",
145 "pan_stick_small.png");
146 resources->pan_text_color = WHITE;
148 resources->pot_images = new_image_set(3,
153 resources->checkbox_images = new_image_set(5,
156 "checkbox_checked.png",
158 "checkbox_checkedhi.png");
160 resources->radial_images = new_image_set(5,
163 "radial_checked.png",
165 "radial_checkedhi.png");
167 resources->xmeter_images = new_image_set(7,
175 resources->ymeter_images = new_image_set(7,
184 resources->hscroll_data = new_image_set(10,
185 "hscroll_center_up.png",
186 "hscroll_center_hi.png",
187 "hscroll_center_dn.png",
189 "hscroll_back_up.png",
190 "hscroll_back_hi.png",
191 "hscroll_back_dn.png",
192 "hscroll_fwd_up.png",
193 "hscroll_fwd_hi.png",
194 "hscroll_fwd_dn.png");
196 resources->vscroll_data = new_image_set(10,
197 "vscroll_center_up.png",
198 "vscroll_center_hi.png",
199 "vscroll_center_dn.png",
201 "vscroll_back_up.png",
202 "vscroll_back_hi.png",
203 "vscroll_back_dn.png",
204 "vscroll_fwd_up.png",
205 "vscroll_fwd_hi.png",
206 "vscroll_fwd_dn.png");
208 resources->ok_images = new_button("ok.png",
213 resources->cancel_images = new_button("cancel.png",
220 rgui_batch = new_image("recordgui_batch.png");
221 rgui_controls = new_image("recordgui_controls.png");
222 rgui_list = new_image("recordgui_list.png");
223 rmonitor_panel = new_image("recordmonitor_panel.png");
224 rmonitor_meters = new_image("recordmonitor_meters.png");
228 mbutton_left = new_image("mbutton_left.png");
229 mbutton_right = new_image("mbutton_right.png");
230 new_image("timebar_bg", "timebar_bg.png");
231 new_image("timebar_brender", "timebar_brender.png");
232 new_image("clock_bg", "mclock.png");
233 new_image("patchbay_bg", "patchbay_bg.png");
234 tracks_bg = new_image("tracks_bg.png");
235 zoombar_left = new_image("zoombar_left.png");
236 zoombar_right = new_image("zoombar_right.png");
237 statusbar_left = new_image("statusbar_left.png");
238 statusbar_right = new_image("statusbar_right.png");
241 cpanel_bg = new_image("cpanel_bg.png");
242 cbuttons_left = new_image("cbuttons_left.png");
243 cbuttons_right = new_image("cbuttons_right.png");
244 cmeter_bg = new_image("cmeter_bg.png");
247 vbuttons_left = new_image("vbuttons_left.png");
248 vbuttons_right = new_image("vbuttons_right.png");
249 vmeter_bg = new_image("vmeter_bg.png");
251 preferences_bg = new_image("preferences_bg.png");
254 new_bg = new_image("new_bg.png");
255 setformat_bg = new_image("setformat_bg2.png");
258 timebar_view_data = new_image("timebar_view.png");
270 setformat_margin = 30;
271 setformat_channels_x = 25;
272 setformat_channels_y = 242;
273 setformat_channels_w = 250;
274 setformat_channels_h = 250;
288 new_image_set("drawpatch_data", 5, "drawpatch_up.png", "drawpatch_hi.png", "drawpatch_checked.png", "drawpatch_dn.png", "drawpatch_checkedhi.png");
289 new_image_set("expandpatch_data", 5, "expandpatch_up.png", "expandpatch_hi.png", "expandpatch_checked.png", "expandpatch_dn.png", "expandpatch_checkedhi.png");
290 new_image_set("gangpatch_data", 5, "gangpatch_up.png", "gangpatch_hi.png", "gangpatch_checked.png", "gangpatch_dn.png", "gangpatch_checkedhi.png");
291 new_image_set("mutepatch_data", 5, "mutepatch_up.png", "mutepatch_hi.png", "mutepatch_checked.png", "mutepatch_dn.png", "mutepatch_checkedhi.png");
292 new_image_set("playpatch_data", 5, "playpatch_up.png", "playpatch_hi.png", "playpatch_checked.png", "playpatch_dn.png", "playpatch_checkedhi.png");
293 new_image_set("recordpatch_data", 5, "recordpatch_up.png", "recordpatch_hi.png", "recordpatch_checked.png", "recordpatch_dn.png", "recordpatch_checkedhi.png");
300 out_point = new_image_set(5,
305 "out_checkedhi.png");
306 in_point = new_image_set(5,
313 label_toggle = new_image_set(5,
314 "labeltoggle_up.png",
315 "labeltoggle_uphi.png",
317 "labeltoggle_dn.png",
318 "label_checkedhi.png");
320 ffmpeg_toggle = new_image_set(5,
327 shbtn_data = new_image_set(3,
332 statusbar_cancel_data = new_image_set(3,
333 "statusbar_cancel_up.png",
334 "statusbar_cancel_hi.png",
335 "statusbar_cancel_dn.png");
338 VFrame *editpanel_up = new_image("editpanel_up.png");
339 VFrame *editpanel_hi = new_image("editpanel_hi.png");
340 VFrame *editpanel_dn = new_image("editpanel_dn.png");
341 VFrame *editpanel_checked = new_image("editpanel_checked.png");
342 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
344 bottom_justify = new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
345 center_justify = new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
346 channel_data = new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn);
347 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
348 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
349 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
350 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
351 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
352 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
353 left_justify = new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
354 magnify_button_data = new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn);
355 middle_justify = new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
356 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
357 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
358 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
359 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
360 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
361 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
362 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
363 right_justify = new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
364 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
365 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
366 top_justify = new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
367 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
368 wrench_data = new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn);
371 new_image("cwindow_inactive", "cwindow_inactive.png");
372 new_image("cwindow_active", "cwindow_active.png");
375 new_image_set("batch_render_start",
379 "batchstart_dn.png");
380 new_image_set("batch_render_stop",
385 new_image_set("batch_render_cancel",
387 "batchcancel_up.png",
388 "batchcancel_hi.png",
389 "batchcancel_dn.png");
391 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
392 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
393 camera_data = new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
394 crop_data = new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
395 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
396 magnify_data = new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
397 mask_data = new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
398 proj_data = new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
399 protect_data = new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
400 show_meters = new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
401 titlesafe_data = new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
402 tool_data = new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
403 new_toggle("eyedrop.png",
414 static VFrame **transport_bg = new_image_set(3,
418 build_transport("end", get_image_data("end.png"), transport_bg, 2);
419 build_transport("fastfwd", get_image_data("fastfwd.png"), transport_bg, 1);
420 build_transport("fastrev", get_image_data("fastrev.png"), transport_bg, 1);
421 build_transport("play", get_image_data("play.png"), transport_bg, 1);
422 build_transport("framefwd", get_image_data("framefwd.png"), transport_bg, 1);
423 build_transport("framerev", get_image_data("framerev.png"), transport_bg, 1);
424 build_transport("pause", get_image_data("pause.png"), transport_bg, 1);
425 build_transport("record", get_image_data("record.png"), transport_bg, 1);
426 build_transport("singleframe", get_image_data("singleframe.png"), transport_bg, 1);
427 build_transport("reverse", get_image_data("reverse.png"), transport_bg, 1);
428 build_transport("rewind", get_image_data("rewind.png"), transport_bg, 0);
429 build_transport("stop", get_image_data("stop.png"), transport_bg, 1);
430 build_transport("stoprec", get_image_data("stoprec.png"), transport_bg, 2);
433 title_font = MEDIUMFONT_3D;
435 recordgui_fixed_color = YELLOW;
436 recordgui_variable_color = RED;
438 channel_position_color = MEYELLOW;
439 resources->meter_title_w = 25;
442 #define CWINDOW_METER_MARGIN 5
443 #define VWINDOW_METER_MARGIN 5
445 void DefaultTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
448 mbuttons_y = gui->mainmenu->get_h();
450 mbuttons_h = mbutton_left->get_h();
452 mclock_y = mbuttons_y + mbuttons_h + CWINDOW_METER_MARGIN;
453 mclock_w = get_image("clock_bg")->get_w() - 40;
454 mclock_h = get_image("clock_bg")->get_h();
455 mtimebar_x = get_image("patchbay_bg")->get_w();
456 mtimebar_y = mbuttons_y + mbuttons_h;
457 mtimebar_w = w - mtimebar_x;
458 mtimebar_h = get_image("timebar_bg")->get_h();
460 mstatus_y = h - statusbar_left->get_h();
462 mstatus_h = statusbar_left->get_h();
463 mstatus_message_x = 10;
464 mstatus_message_y = 5;
465 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
466 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
467 mstatus_progress_w = 230;
468 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
469 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
471 mzoom_y = mstatus_y - zoombar_left->get_h();
472 mzoom_h = zoombar_left->get_h();
475 patchbay_y = mtimebar_y + mtimebar_h;
476 patchbay_w = get_image("patchbay_bg")->get_w();
477 patchbay_h = mzoom_y - patchbay_y;
478 mcanvas_x = patchbay_x + patchbay_w;
479 mcanvas_y = mtimebar_y + mtimebar_h;
480 mcanvas_w = w - patchbay_w - BC_ScrollBar::get_span(SCROLL_VERT);
481 mcanvas_h = patchbay_h;
483 mhscroll_y = mcanvas_y + mcanvas_h;
484 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT) - patchbay_w;
485 mvscroll_x = mcanvas_x + mcanvas_w;
486 mvscroll_y = mcanvas_y;
487 mvscroll_h = mcanvas_h;
490 void DefaultTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
496 ccomposite_w = cpanel_bg->get_w();
497 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
499 cedit_y = ccomposite_h + 17;
501 ctransport_y = mwindow->session->cwindow_h - get_image_set("autokeyframe")[0]->get_h();
502 ccanvas_x = ccomposite_x + ccomposite_w;
504 ccanvas_h = ccomposite_h;
506 cstatus_y = mwindow->session->cwindow_h - 40;
507 if(mwindow->edl->session->cwindow_meter)
509 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
510 mwindow->edl->session->cwindow_meter);
511 ccanvas_w = cmeter_x - ccanvas_x - 5;
515 cmeter_x = mwindow->session->cwindow_w;
516 ccanvas_w = cmeter_x - ccanvas_x;
521 ccomposite_x = -cpanel_bg->get_w();
523 ccomposite_w = cpanel_bg->get_w();
524 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
527 cedit_y = mwindow->session->cwindow_h + 17;
529 ctransport_y = cedit_y + 40;
532 ccanvas_w = mwindow->session->cwindow_w;
533 ccanvas_h = mwindow->session->cwindow_h;
534 cmeter_x = mwindow->session->cwindow_w;
535 cstatus_x = mwindow->session->cwindow_w;
536 cstatus_y = mwindow->session->cwindow_h;
540 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
541 czoom_y = ctransport_y + 5;
545 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
547 ctimebar_x = ccanvas_x;
548 ctimebar_y = ccanvas_y + ccanvas_h;
549 ctimebar_w = ccanvas_w;
554 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
555 ctime_y = ctransport_y;
557 cdest_y = czoom_y + 30;
562 void DefaultTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
564 recordgui_status_x = 10;
565 recordgui_status_y = 10;
566 recordgui_status_x2 = 160;
567 recordgui_batch_x = 310;
568 recordgui_batch_y = 10;
569 recordgui_batchcaption_x = recordgui_batch_x + 110;
572 recordgui_transport_x = recordgui_batch_x;
573 recordgui_transport_y = recordgui_batch_y + 150;
575 recordgui_buttons_x = recordgui_batch_x - 50;
576 recordgui_buttons_y = recordgui_transport_y + 40;
577 recordgui_options_x = recordgui_buttons_x;
578 recordgui_options_y = recordgui_buttons_y + 35;
580 recordgui_batches_x = 10;
581 recordgui_batches_y = 270;
582 recordgui_batches_w = w - 20;
583 recordgui_batches_h = h - recordgui_batches_y - 70;
584 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
585 recordgui_loadmode_y = h - 60;
587 recordgui_controls_x = 10;
588 recordgui_controls_y = h - 40;
593 void DefaultTheme::get_vwindow_sizes(VWindowGUI *gui)
596 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
599 vcanvas_h = mwindow->session->vwindow_h - vbuttons_left->get_h();
601 if(mwindow->edl->session->vwindow_meter)
603 vmeter_x = mwindow->session->vwindow_w -
604 VWINDOW_METER_MARGIN -
605 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
606 mwindow->edl->session->vwindow_meter);
607 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
611 vmeter_x = mwindow->session->vwindow_w;
612 vcanvas_w = mwindow->session->vwindow_w;
615 vtimebar_x = vcanvas_x;
616 vtimebar_y = vcanvas_y + vcanvas_h;
617 vtimebar_w = vcanvas_w;
621 vslider_y = vtimebar_y + 25;
622 vslider_w = vtimebar_w - vslider_x;
624 vedit_y = vslider_y + 17;
626 vtransport_y = mwindow->session->vwindow_h - get_image_set("autokeyframe")[0]->get_h();
628 vtime_y = vedit_y + 10;
634 vzoom_x = vtime_x + 150;
636 vsource_x = vtime_x + 50;
637 vsource_y = vtransport_y + 5;
644 void DefaultTheme::build_icons()
646 mwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
647 vwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
648 cwindow_icon = new VFrame(get_image_data("heroine_icon.png"));
649 awindow_icon = new VFrame(get_image_data("heroine_icon.png"));
650 record_icon = new VFrame(get_image_data("heroine_icon.png"));
651 clip_icon = new VFrame(get_image_data("clip_icon.png"));
656 void DefaultTheme::build_bg_data()
659 channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
660 channel_position_data = new VFrame(get_image_data("channel_position.png"));
663 new_image("resource1024", "resource1024.png");
664 new_image("resource512", "resource512.png");
665 new_image("resource256", "resource256.png");
666 new_image("resource128", "resource128.png");
667 new_image("resource64", "resource64.png");
668 new_image("resource32", "resource32.png");
669 plugin_bg_data = new VFrame(get_image_data("plugin_bg.png"));
670 title_bg_data = new VFrame(get_image_data("title_bg.png"));
671 vtimebar_bg_data = new VFrame(get_image_data("vwindow_timebar.png"));
676 void DefaultTheme::build_overlays()
678 keyframe_data = new VFrame(get_image_data("keyframe3.png"));
679 camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
680 maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
681 modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
682 pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
683 projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
694 void DefaultTheme::draw_rwindow_bg(RecordGUI *gui)
699 gui->draw_9segment(recordgui_batch_x - margin,
701 mwindow->session->rwindow_w - recordgui_status_x + margin,
704 gui->draw_3segmenth(recordgui_options_x - margin2,
705 recordgui_buttons_y - 5,
706 mwindow->session->rwindow_w - recordgui_options_x + margin2,
708 y = recordgui_buttons_y - 5 + rgui_controls->get_h();
709 gui->draw_9segment(0,
711 mwindow->session->rwindow_w,
712 mwindow->session->rwindow_h - y,
716 void DefaultTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
720 int x = rmonitor_meter_x - margin;
721 int w = mwindow->session->rmonitor_w - x;
722 if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
725 mwindow->session->rmonitor_w,
726 mwindow->session->rmonitor_h);
727 gui->draw_9segment(x,
730 mwindow->session->rmonitor_h,
739 void DefaultTheme::draw_mwindow_bg(MWindowGUI *gui)
742 gui->draw_3segmenth(mbuttons_x,
746 gui->draw_3segmenth(mbuttons_x + 750,
752 gui->draw_3segmenth(0,
753 mbuttons_y + mbutton_left->get_h(),
754 get_image("patchbay_bg")->get_w(),
755 get_image("clock_bg"));
758 gui->draw_3segmentv(patchbay_x,
761 get_image("patchbay_bg"));
764 gui->draw_9segment(mcanvas_x,
771 gui->draw_3segmenth(mtimebar_x,
774 get_image("timebar_bg"));
777 int zoombar_center = 710;
778 gui->draw_3segmenth(mzoom_x,
782 if(mzoom_w > zoombar_center)
783 gui->draw_3segmenth(mzoom_x + zoombar_center,
785 mzoom_w - zoombar_center,
789 gui->draw_3segmenth(mstatus_x,
794 if(mstatus_w > zoombar_center)
795 gui->draw_3segmenth(mstatus_x + zoombar_center,
797 mstatus_w - zoombar_center,
801 void DefaultTheme::draw_cwindow_bg(CWindowGUI *gui)
803 const int button_division = 530;
804 gui->draw_3segmentv(0, 0, ccomposite_h, cpanel_bg);
805 gui->draw_3segmenth(0, ccomposite_h, button_division, cbuttons_left);
806 if(mwindow->edl->session->cwindow_meter)
808 gui->draw_3segmenth(button_division,
810 cmeter_x - CWINDOW_METER_MARGIN - button_division,
812 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
814 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
815 mwindow->session->cwindow_h,
820 gui->draw_3segmenth(button_division,
822 cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
827 void DefaultTheme::draw_vwindow_bg(VWindowGUI *gui)
829 const int button_division = 400;
830 gui->draw_3segmenth(0, vcanvas_h, button_division, vbuttons_left);
831 if(mwindow->edl->session->vwindow_meter)
833 gui->draw_3segmenth(button_division,
835 vmeter_x - VWINDOW_METER_MARGIN - button_division,
837 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
839 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
840 mwindow->session->vwindow_h,
845 gui->draw_3segmenth(button_division,
847 vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
852 void DefaultTheme::get_preferences_sizes()
857 void DefaultTheme::draw_preferences_bg(PreferencesWindow *gui)
859 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, preferences_bg);
862 void DefaultTheme::get_new_sizes(NewWindow *gui)
866 void DefaultTheme::draw_new_bg(NewWindow *gui)
868 gui->draw_vframe(new_bg, 0, 0);
871 void DefaultTheme::draw_setformat_bg(SetFormatWindow *gui)
873 gui->draw_vframe(setformat_bg, 0, 0);