4 * Copyright (C) 1997-2014 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"
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"
49 PluginClient* new_plugin(PluginServer *server)
51 return new SUVMain(server);
60 SUVMain::SUVMain(PluginServer *server)
61 : PluginTClient(server)
69 const char* SUVMain::plugin_title()
74 Theme* SUVMain::new_theme()
77 extern unsigned char _binary_theme_suv_data_start[];
78 theme->set_data(_binary_theme_suv_data_start);
96 delete camerakeyframe_data;
97 delete channel_position_data;
99 delete maskkeyframe_data;
100 delete modekeyframe_data;
101 delete pankeyframe_data;
102 delete projectorkeyframe_data;
105 void SUV::initialize()
107 BC_Resources *resources = BC_WindowBase::get_resources();
110 resources->text_default = 0xbfbfbf;
111 resources->text_background = 0x373737;
112 resources->text_border1 = 0x202020;
113 resources->text_border2 = 0x373737;
114 resources->text_border3 = 0x373737;
115 resources->text_border4 = 0x969696;
116 resources->text_inactive_highlight = 0x707070;
118 resources->bg_color = 0x484848;
119 resources->border_light2 = resources->bg_color;
120 resources->border_shadow2 = resources->bg_color;
121 resources->default_text_color = 0xbfbfbf;
122 resources->menu_title_text = 0xbfbfbf;
123 resources->popup_title_text = 0xbfbfbf;
124 resources->menu_item_text = 0xbfbfbf;
125 resources->menu_highlighted_fontcolor = WHITE;
126 resources->generic_button_margin = 30;
127 resources->pot_needle_color = resources->text_default;
128 resources->pot_offset = 1;
129 resources->progress_text = resources->text_default;
130 resources->meter_font_color = resources->default_text_color;
132 resources->menu_light = 0xababab;
133 resources->menu_highlighted = 0x6f6f6f;
134 resources->menu_down = 0x4b4b4b;
135 resources->menu_up = 0x4b4b4b;
136 resources->menu_shadow = 0x202020;
137 resources->popupmenu_margin = 15;
138 resources->popupmenu_triangle_margin = 15;
140 resources->listbox_title_color = 0xbfbfbf;
142 resources->listbox_title_margin = 20;
143 resources->listbox_title_hotspot = 20;
144 resources->listbox_border1 = 0x1a1a1a;
145 resources->listbox_border2 = 0x373737;
146 resources->listbox_border3 = 0x373737;
147 resources->listbox_border4 = 0x646464;
148 resources->listbox_highlighted = 0x505050;
149 resources->listbox_inactive = 0x373737;
150 resources->listbox_bg = 0;
151 resources->listbox_text = 0xbfbfbf;
153 resources->filebox_margin = 130;
154 resources->file_color = 0xbfbfbf;
155 resources->directory_color = 0xa0a0ff;
158 new_toggle("loadmode_new.png",
161 "loadmode_checked.png",
163 "loadmode_checkedhi.png",
165 new_toggle("loadmode_none.png",
168 "loadmode_checked.png",
170 "loadmode_checkedhi.png",
172 new_toggle("loadmode_newcat.png",
175 "loadmode_checked.png",
177 "loadmode_checkedhi.png",
179 new_toggle("loadmode_cat.png",
182 "loadmode_checked.png",
184 "loadmode_checkedhi.png",
186 new_toggle("loadmode_newtracks.png",
189 "loadmode_checked.png",
191 "loadmode_checkedhi.png",
192 "loadmode_newtracks");
193 new_toggle("loadmode_paste.png",
196 "loadmode_checked.png",
198 "loadmode_checkedhi.png",
200 new_toggle("loadmode_resource.png",
203 "loadmode_checked.png",
205 "loadmode_checkedhi.png",
206 "loadmode_resource");
207 new_toggle("loadmode_nested.png",
210 "loadmode_checked.png",
212 "loadmode_checkedhi.png",
216 resources->filebox_icons_images = new_button("icons.png",
217 "fileboxbutton_up.png",
218 "fileboxbutton_hi.png",
219 "fileboxbutton_dn.png",
222 resources->filebox_text_images = new_button("text.png",
223 "fileboxbutton_up.png",
224 "fileboxbutton_hi.png",
225 "fileboxbutton_dn.png",
228 resources->filebox_newfolder_images = new_button("folder.png",
229 "fileboxbutton_up.png",
230 "fileboxbutton_hi.png",
231 "fileboxbutton_dn.png",
232 "filebox_newfolder");
234 resources->filebox_rename_images = new_button("rename.png",
235 "fileboxbutton_up.png",
236 "fileboxbutton_hi.png",
237 "fileboxbutton_dn.png",
240 resources->filebox_updir_images = new_button("updir.png",
241 "fileboxbutton_up.png",
242 "fileboxbutton_hi.png",
243 "fileboxbutton_dn.png",
246 resources->filebox_delete_images = new_button("delete.png",
247 "fileboxbutton_up.png",
248 "fileboxbutton_hi.png",
249 "fileboxbutton_dn.png",
252 resources->filebox_reload_images = new_button("reload.png",
253 "fileboxbutton_up.png",
254 "fileboxbutton_hi.png",
255 "fileboxbutton_dn.png",
259 resources->filebox_descend_images = new_button("openfolder.png",
260 "filebox_bigbutton_up.png",
261 "filebox_bigbutton_hi.png",
262 "filebox_bigbutton_dn.png",
265 resources->usethis_button_images =
266 resources->ok_images = new_button("ok.png",
267 "filebox_bigbutton_up.png",
268 "filebox_bigbutton_hi.png",
269 "filebox_bigbutton_dn.png",
273 "new_bigbutton_up.png",
274 "new_bigbutton_hi.png",
275 "new_bigbutton_dn.png",
278 resources->cancel_images = new_button("cancel.png",
279 "filebox_bigbutton_up.png",
280 "filebox_bigbutton_hi.png",
281 "filebox_bigbutton_dn.png",
284 new_button("cancel.png",
285 "new_bigbutton_up.png",
286 "new_bigbutton_hi.png",
287 "new_bigbutton_dn.png",
288 "new_cancel_images");
290 resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
312 resources->bar_data = new_image("bar", "bar.png");
313 resources->check = new_image("check", "check.png");
315 resources->min_menu_w = 96;
316 resources->menu_popup_bg = new_image("menu_popup_bg.png");
317 resources->menu_item_bg = new_image_set(3,
321 resources->menu_bar_bg = new_image("menubar_bg.png");
322 resources->menu_title_bg = new_image_set(3,
328 resources->popupmenu_images = 0;
330 // "menupopup_up.png",
331 // "menupopup_hi.png",
332 // "menupopup_dn.png");
334 resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
335 "text_highlight.png");
337 resources->generic_button_images = new_image_set(3,
341 resources->horizontal_slider_data = new_image_set(6,
347 "hslider_bg_dn.png");
348 resources->vertical_slider_data = new_image_set(6,
354 "hslider_bg_dn.png");
355 for( int i=0; i<6; ++i )
356 resources->vertical_slider_data[i]->rotate90();
358 resources->progress_images = new_image_set(2,
361 resources->tumble_data = new_image_set(4,
366 resources->listbox_button = new_button4("listbox_button.png",
372 resources->listbox_column = new_image_set(3,
376 resources->listbox_up = new_image("listbox_up.png");
377 resources->listbox_dn = new_image("listbox_dn.png");
378 resources->pan_data = new_image_set(7,
384 "pan_channel_small.png",
385 "pan_stick_small.png");
386 resources->pan_text_color = WHITE;
388 resources->pot_images = new_image_set(3,
393 resources->checkbox_images = new_image_set(5,
396 "checkbox_checked.png",
398 "checkbox_checkedhi.png");
400 resources->radial_images = new_image_set(5,
403 "radial_checked.png",
405 "radial_checkedhi.png");
407 resources->xmeter_images = new_image_set(7,
415 resources->ymeter_images = new_image_set(7,
424 resources->hscroll_data = new_image_set(10,
425 "hscroll_handle_up.png",
426 "hscroll_handle_hi.png",
427 "hscroll_handle_dn.png",
428 "hscroll_handle_bg.png",
429 "hscroll_left_up.png",
430 "hscroll_left_hi.png",
431 "hscroll_left_dn.png",
432 "hscroll_right_up.png",
433 "hscroll_right_hi.png",
434 "hscroll_right_dn.png");
436 resources->vscroll_data = new_image_set(10,
437 "vscroll_handle_up.png",
438 "vscroll_handle_hi.png",
439 "vscroll_handle_dn.png",
440 "vscroll_handle_bg.png",
441 "vscroll_left_up.png",
442 "vscroll_left_hi.png",
443 "vscroll_left_dn.png",
444 "vscroll_right_up.png",
445 "vscroll_right_hi.png",
446 "vscroll_right_dn.png");
447 resources->scroll_minhandle = 20;
450 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
451 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
452 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
453 new_button("swap_extents.png",
463 preferences_category_overlap = 0;
464 preferencescategory_x = 0;
465 preferencescategory_y = 5;
466 preferencestitle_x = 5;
467 preferencestitle_y = 10;
468 preferencesoptions_x = 5;
469 preferencesoptions_y = 0;
472 message_normal = resources->text_default;
474 mtransport_margin = 16;
477 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
478 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
479 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
481 new_image("mbutton_bg", "mbutton_bg.png");
482 new_image("timebar_bg", "timebar_bg_flat.png");
483 new_image("timebar_brender", "timebar_brender.png");
484 new_image("clock_bg", "mclock_flat.png");
485 new_image("patchbay_bg", "patchbay_bg.png");
486 new_image("statusbar", "statusbar.png");
487 // new_image("mscroll_filler", "mscroll_filler.png");
489 new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
490 new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
491 new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
492 new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
495 new_image("cpanel_bg", "cpanel_bg.png");
496 new_image("cbuttons_left", "cbuttons_left.png");
497 new_image("cbuttons_right", "cbuttons_right.png");
498 new_image("cmeter_bg", "cmeter_bg.png");
501 new_image("vbuttons_left", "vbuttons_left.png");
502 new_image("vclock", "vclock.png");
504 new_image("preferences_bg", "preferences_bg.png");
507 new_image("new_bg", "new_bg.png");
508 new_image("setformat_bg", "setformat_bg.png");
511 timebar_view_data = new_image("timebar_view.png");
513 setformat_w = get_image("setformat_bg")->get_w();
514 setformat_h = get_image("setformat_bg")->get_h();
523 setformat_margin = 30;
524 setformat_channels_x = 25;
525 setformat_channels_y = 242;
526 setformat_channels_w = 250;
527 setformat_channels_h = 250;
529 loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
533 new_toggle("playpatch.png",
538 "patch_checkedhi.png",
541 new_toggle("recordpatch.png",
546 "patch_checkedhi.png",
549 new_toggle("gangpatch.png",
554 "patch_checkedhi.png",
557 new_toggle("drawpatch.png",
562 "patch_checkedhi.png",
566 new_image_set("mutepatch_data",
570 "mutepatch_checked.png",
572 "mutepatch_checkedhi.png");
574 new_image_set("expandpatch_data",
576 "expandpatch_up.png",
577 "expandpatch_hi.png",
578 "expandpatch_checked.png",
579 "expandpatch_dn.png",
580 "expandpatch_checkedhi.png");
588 out_point = new_image_set(5,
593 "out_checkedhi.png");
594 in_point = new_image_set(5,
601 label_toggle = new_image_set(5,
602 "labeltoggle_up.png",
603 "labeltoggle_uphi.png",
605 "labeltoggle_dn.png",
606 "label_checkedhi.png");
608 ffmpeg_toggle = new_image_set(5,
615 shbtn_data = new_image_set(3,
620 new_image_set("preset_edit",
626 new_image_set("histogram_carrot",
628 "histogram_carrot_up.png",
629 "histogram_carrot_hi.png",
630 "histogram_carrot_checked.png",
631 "histogram_carrot_dn.png",
632 "histogram_carrot_checkedhi.png");
635 statusbar_cancel_data = new_image_set(3,
636 "statusbar_cancel_up.png",
637 "statusbar_cancel_hi.png",
638 "statusbar_cancel_dn.png");
641 VFrame *editpanel_up = new_image("editpanel_up.png");
642 VFrame *editpanel_hi = new_image("editpanel_hi.png");
643 VFrame *editpanel_dn = new_image("editpanel_dn.png");
644 VFrame *editpanel_checked = new_image("editpanel_checked.png");
645 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
647 new_image("panel_divider", "panel_divider.png");
648 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
649 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
650 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
652 new_toggle("histogram.png",
659 new_toggle("histogram_rgb.png",
665 "histogram_rgb_toggle");
666 new_toggle("waveform.png",
673 new_toggle("waveform_rgb.png",
679 "waveform_rgb_toggle");
680 new_toggle("scope.png",
688 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
689 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
692 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
693 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
694 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
695 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
696 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
697 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
698 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
699 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
700 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
701 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
702 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
703 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
704 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
705 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
706 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
707 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
708 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
709 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
710 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
711 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
712 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
713 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
714 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
715 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
716 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
717 new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
720 VFrame *transport_up = new_image("transportup.png");
721 VFrame *transport_hi = new_image("transporthi.png");
722 VFrame *transport_dn = new_image("transportdn.png");
724 new_button("end.png", transport_up, transport_hi, transport_dn, "end");
725 new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
726 new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
727 new_button("play.png", transport_up, transport_hi, transport_dn, "play");
728 new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
729 new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
730 new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
731 new_button("record.png", transport_up, transport_hi, transport_dn, "record");
732 new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
733 new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
734 new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
735 new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
736 new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
741 new_image("cwindow_inactive", "cwindow_inactive.png");
742 new_image("cwindow_active", "cwindow_active.png");
746 new_image_set("category_button",
748 "preferencesbutton_dn.png",
749 "preferencesbutton_dnhi.png",
750 "preferencesbutton_dnlo.png");
752 new_image_set("category_button_checked",
754 "preferencesbutton_up.png",
755 "preferencesbutton_uphi.png",
756 "preferencesbutton_dnlo.png");
762 new_image_set("color3way_point",
768 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
769 new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
770 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
771 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
772 new_toggle("blank30x30.png",
773 new_image("locklabels_locked.png"),
774 new_image("locklabels_lockedhi.png"),
775 new_image("locklabels_unlocked.png"),
776 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
777 new_image("locklabels_unlockedhi.png"),
780 VFrame *cpanel_up = new_image("cpanel_up.png");
781 VFrame *cpanel_hi = new_image("cpanel_hi.png");
782 VFrame *cpanel_dn = new_image("cpanel_dn.png");
783 VFrame *cpanel_checked = new_image("cpanel_checked.png");
784 VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
787 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
788 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
789 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
790 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
791 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
792 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
793 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
794 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
795 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
796 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
798 // toggle for tangent mode (compositor/tool window)
799 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
800 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
805 title_font = MEDIUMFONT_3D;
806 title_color = 0xbfbfbf;
807 recordgui_fixed_color = YELLOW;
808 recordgui_variable_color = RED;
810 channel_position_color = MEYELLOW;
811 resources->meter_title_w = 25;
813 // (asset) edit info text color
814 edit_font_color = YELLOW;
817 #define VWINDOW_METER_MARGIN 5
829 void SUV::build_bg_data()
832 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
835 new_image("resource1024", "resource1024.png");
836 new_image("resource512", "resource512.png");
837 new_image("resource256", "resource256.png");
838 new_image("resource128", "resource128.png");
839 new_image("resource64", "resource64.png");
840 new_image("resource32", "resource32.png");
841 new_image("plugin_bg_data", "plugin_bg.png");
842 new_image("title_bg_data", "title_bg.png");
843 new_image("vtimebar_bg_data", "vwindow_timebar.png");
848 void SUV::build_overlays()
850 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
851 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
852 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
853 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
854 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
855 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
866 void SUV::draw_rwindow_bg(RecordGUI *gui)
871 // gui->draw_9segment(recordgui_batch_x - margin,
873 // mwindow->session->rwindow_w - recordgui_status_x + margin,
874 // recordgui_buttons_y,
876 // gui->draw_3segmenth(recordgui_options_x - margin2,
877 // recordgui_buttons_y - 5,
878 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
880 // y = recordgui_buttons_y - 5 + rgui_controls->get_h();
881 // gui->draw_9segment(0,
883 // mwindow->session->rwindow_w,
884 // mwindow->session->rwindow_h - y,
888 void SUV::draw_rmonitor_bg(RecordMonitorGUI *gui)
891 // int panel_w = 300;
892 // int x = rmonitor_meter_x - margin;
893 // int w = mwindow->session->rmonitor_w - x;
894 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
897 // mwindow->session->rmonitor_w,
898 // mwindow->session->rmonitor_h);
899 // gui->draw_9segment(x,
902 // mwindow->session->rmonitor_h,
911 void SUV::draw_mwindow_bg(MWindowGUI *gui)
914 gui->draw_3segmenth(mbuttons_x, mbuttons_y - 1,
915 gui->menu_w(), get_image("mbutton_bg"));
917 int pdw = get_image("panel_divider")->get_w();
919 x += 9 * get_image("play")->get_w();
920 x += mtransport_margin; // the control buttons
922 gui->draw_vframe(get_image("panel_divider"),
923 x - toggle_margin / 2 - pdw / 2 + 2,
925 x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
927 gui->draw_vframe(get_image("panel_divider"),
928 x - toggle_margin / 2 - pdw / 2 + 2,
930 x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
932 gui->draw_vframe(get_image("panel_divider"),
933 x - toggle_margin / 2 - pdw / 2 + 2,
937 gui->draw_3segmenth(0,
938 mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
939 get_image("patchbay_bg")->get_w(),
940 get_image("clock_bg"));
943 //printf("SUV::draw_mwindow_bg %d %d %d\n", __LINE__,
946 gui->draw_3segmentv(patchbay_x,
949 get_image("patchbay_bg"));
952 gui->set_color(BLACK);
953 gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
954 mcanvas_y + mtimebar_h,
955 mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
956 mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
959 gui->draw_3segmenth(mtimebar_x,
962 get_image("timebar_bg"));
965 gui->set_color(0x373737);
966 gui->draw_box(mzoom_x,
968 mwindow->session->mwindow_w,
972 // gui->draw_vframe(get_image("mscroll_filler"),
973 // mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
974 // mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
977 gui->draw_3segmenth(mzoom_x,
980 get_image("statusbar"));
985 void SUV::draw_cwindow_bg(CWindowGUI *gui)
987 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
989 gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
991 if(mwindow->edl->session->cwindow_meter)
993 gui->draw_3segmenth(cstatus_x,
995 cmeter_x - widget_border - cstatus_x,
996 get_image("cbuttons_right"));
997 gui->draw_9segment(cmeter_x - widget_border,
999 mwindow->session->cwindow_w - cmeter_x + widget_border,
1000 mwindow->session->cwindow_h,
1001 get_image("cmeter_bg"));
1005 gui->draw_3segmenth(cstatus_x,
1007 cmeter_x - widget_border - cstatus_x + 100,
1008 get_image("cbuttons_right"));
1012 void SUV::draw_vwindow_bg(VWindowGUI *gui)
1014 gui->draw_3segmenth(0,
1017 get_image("vbuttons_left"));
1018 if(mwindow->edl->session->vwindow_meter)
1020 gui->draw_3segmenth(vdivision_x,
1022 vmeter_x - widget_border - vdivision_x,
1023 get_image("cbuttons_right"));
1024 gui->draw_9segment(vmeter_x - widget_border,
1026 mwindow->session->vwindow_w - vmeter_x + widget_border,
1027 mwindow->session->vwindow_h,
1028 get_image("cmeter_bg"));
1032 gui->draw_3segmenth(vdivision_x,
1034 vmeter_x - widget_border - vdivision_x + 100,
1035 get_image("cbuttons_right"));
1039 gui->draw_3segmenth(vtime_x - 20,
1042 get_image("vclock"));
1046 void SUV::draw_preferences_bg(PreferencesWindow *gui)
1048 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1051 void SUV::draw_new_bg(NewWindow *gui)
1053 gui->draw_vframe(get_image("new_bg"), 0, 0);
1056 void SUV::draw_setformat_bg(SetFormatWindow *gui)
1058 gui->draw_vframe(get_image("setformat_bg"), 0, 0);