4 * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
5 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * by Paolo Rampino <akir4d at gmail dot com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include "bcsignals.h"
26 #include "cwindowgui.h"
27 #include "pinkladytheme.h"
29 #include "edlsession.h"
31 #include "mainsession.h"
33 #include "meterpanel.h"
35 #include "mwindowgui.h"
38 #include "preferencesthread.h"
39 #include "recordgui.h"
40 #include "recordmonitor.h"
41 #include "setformat.h"
42 #include "statusbar.h"
44 #include "trackcanvas.h"
46 #include "vwindowgui.h"
49 PluginClient* new_plugin(PluginServer *server)
51 return new PINKLADYMain(server);
54 PINKLADYMain::PINKLADYMain(PluginServer *server)
55 : PluginTClient(server)
59 PINKLADYMain::~PINKLADYMain()
63 const char* PINKLADYMain::plugin_title() { return N_("PinkLady"); }
65 Theme* PINKLADYMain::new_theme()
68 extern unsigned char _binary_theme_pinklady_data_start[];
69 theme->set_data(_binary_theme_pinklady_data_start);
81 delete camerakeyframe_data;
82 delete channel_position_data;
84 delete maskkeyframe_data;
85 delete modekeyframe_data;
86 delete pankeyframe_data;
87 delete projectorkeyframe_data;
90 void PINKLADY::initialize()
92 BC_Resources *resources = BC_WindowBase::get_resources();
95 resources->text_default = 0x1b0f11;
96 resources->text_background = 0xffb1d0;
97 resources->text_border1 = 0x202020;
98 resources->text_border2 = 0xffb1d0;
99 resources->text_border3 = 0xffb1d0;
100 resources->text_border4 = 0x969696;
101 resources->text_inactive_highlight = 0x707070;
103 resources->bg_color = 0xd46a95;
104 resources->border_light2 = resources->bg_color;
105 resources->border_shadow2 = resources->bg_color;
106 resources->default_text_color = 0x1b0f11;
107 resources->menu_title_text = 0x1b0f11;
108 resources->popup_title_text = 0x1b0f11;
109 resources->menu_item_text = 0x1b0f11;
110 resources->menu_highlighted_fontcolor = WHITE;
111 resources->generic_button_margin = 30;
112 resources->pot_needle_color = resources->text_default;
113 resources->pot_offset = 1;
114 resources->progress_text = resources->text_default;
115 resources->meter_font_color = resources->default_text_color;
117 resources->menu_light = 0xababab;
118 resources->menu_highlighted = 0x6f6f6f;
119 resources->menu_down = 0x4b4b4b;
120 resources->menu_up = 0x4b4b4b;
121 resources->menu_shadow = 0x202020;
122 resources->popupmenu_margin = 15;
123 resources->popupmenu_triangle_margin = 15;
125 resources->listbox_title_color = 0x1b0f11;
127 resources->listbox_title_margin = 20;
128 resources->listbox_title_hotspot = 20;
129 resources->listbox_border1 = 0x1a1a1a;
130 resources->listbox_border2 = 0xffb1d0;
131 resources->listbox_border3 = 0xffb1d0;
132 resources->listbox_border4 = 0x646464;
133 resources->listbox_highlighted = 0x505050;
134 resources->listbox_inactive = 0xffb1d0;
135 resources->listbox_bg = 0;
136 resources->listbox_text = 0x1b0f11;
138 resources->filebox_margin = 130;
139 resources->file_color = 0x1b0f11;
140 resources->directory_color = 0xa0a0ff;
143 new_toggle("loadmode_new.png",
146 "loadmode_checked.png",
148 "loadmode_checkedhi.png",
150 new_toggle("loadmode_none.png",
153 "loadmode_checked.png",
155 "loadmode_checkedhi.png",
157 new_toggle("loadmode_newcat.png",
160 "loadmode_checked.png",
162 "loadmode_checkedhi.png",
164 new_toggle("loadmode_cat.png",
167 "loadmode_checked.png",
169 "loadmode_checkedhi.png",
171 new_toggle("loadmode_newtracks.png",
174 "loadmode_checked.png",
176 "loadmode_checkedhi.png",
177 "loadmode_newtracks");
178 new_toggle("loadmode_paste.png",
181 "loadmode_checked.png",
183 "loadmode_checkedhi.png",
185 new_toggle("loadmode_resource.png",
188 "loadmode_checked.png",
190 "loadmode_checkedhi.png",
191 "loadmode_resource");
192 new_toggle("loadmode_nested.png",
195 "loadmode_checked.png",
197 "loadmode_checkedhi.png",
201 resources->filebox_icons_images = new_button("icons.png",
202 "fileboxbutton_up.png",
203 "fileboxbutton_hi.png",
204 "fileboxbutton_dn.png",
207 resources->filebox_text_images = new_button("text.png",
208 "fileboxbutton_up.png",
209 "fileboxbutton_hi.png",
210 "fileboxbutton_dn.png",
213 resources->filebox_newfolder_images = new_button("folder.png",
214 "fileboxbutton_up.png",
215 "fileboxbutton_hi.png",
216 "fileboxbutton_dn.png",
217 "filebox_newfolder");
219 resources->filebox_rename_images = new_button("rename.png",
220 "fileboxbutton_up.png",
221 "fileboxbutton_hi.png",
222 "fileboxbutton_dn.png",
225 resources->filebox_updir_images = new_button("updir.png",
226 "fileboxbutton_up.png",
227 "fileboxbutton_hi.png",
228 "fileboxbutton_dn.png",
231 resources->filebox_delete_images = new_button("delete.png",
232 "fileboxbutton_up.png",
233 "fileboxbutton_hi.png",
234 "fileboxbutton_dn.png",
237 resources->filebox_reload_images = new_button("reload.png",
238 "fileboxbutton_up.png",
239 "fileboxbutton_hi.png",
240 "fileboxbutton_dn.png",
244 resources->filebox_descend_images = new_button("openfolder.png",
245 "filebox_bigbutton_up.png",
246 "filebox_bigbutton_hi.png",
247 "filebox_bigbutton_dn.png",
250 resources->usethis_button_images =
251 resources->ok_images = new_button("ok.png",
252 "filebox_bigbutton_up.png",
253 "filebox_bigbutton_hi.png",
254 "filebox_bigbutton_dn.png",
258 "new_bigbutton_up.png",
259 "new_bigbutton_hi.png",
260 "new_bigbutton_dn.png",
263 resources->cancel_images = new_button("cancel.png",
264 "filebox_bigbutton_up.png",
265 "filebox_bigbutton_hi.png",
266 "filebox_bigbutton_dn.png",
269 new_button("cancel.png",
270 "new_bigbutton_up.png",
271 "new_bigbutton_hi.png",
272 "new_bigbutton_dn.png",
273 "new_cancel_images");
275 resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
297 resources->bar_data = new_image("bar", "bar.png");
298 resources->check = new_image("check", "check.png");
300 resources->min_menu_w = 96;
301 resources->menu_popup_bg = new_image("menu_popup_bg.png");
302 resources->menu_item_bg = new_image_set(3,
306 resources->menu_bar_bg = new_image("menubar_bg.png");
307 resources->menu_title_bg = new_image_set(3,
313 resources->popupmenu_images = 0;
315 // "menupopup_up.png",
316 // "menupopup_hi.png",
317 // "menupopup_dn.png");
319 resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
320 "text_highlight.png");
322 resources->generic_button_images = new_image_set(3,
326 resources->horizontal_slider_data = new_image_set(6,
332 "hslider_bg_dn.png");
333 resources->vertical_slider_data = new_image_set(6,
339 "hslider_bg_dn.png");
340 for( int i=0; i<6; ++i )
341 resources->vertical_slider_data[i]->rotate90();
343 resources->progress_images = new_image_set(2,
346 resources->tumble_data = new_image_set(4,
351 resources->listbox_button = new_button4("listbox_button.png",
357 resources->listbox_column = new_image_set(3,
361 resources->listbox_up = new_image("listbox_up.png");
362 resources->listbox_dn = new_image("listbox_dn.png");
363 resources->pan_data = new_image_set(7,
369 "pan_channel_small.png",
370 "pan_stick_small.png");
371 resources->pan_text_color = WHITE;
373 resources->pot_images = new_image_set(3,
378 resources->checkbox_images = new_image_set(5,
381 "checkbox_checked.png",
383 "checkbox_checkedhi.png");
385 resources->radial_images = new_image_set(5,
388 "radial_checked.png",
390 "radial_checkedhi.png");
392 resources->xmeter_images = new_image_set(7,
400 resources->ymeter_images = new_image_set(7,
409 resources->hscroll_data = new_image_set(10,
410 "hscroll_handle_up.png",
411 "hscroll_handle_hi.png",
412 "hscroll_handle_dn.png",
413 "hscroll_handle_bg.png",
414 "hscroll_left_up.png",
415 "hscroll_left_hi.png",
416 "hscroll_left_dn.png",
417 "hscroll_right_up.png",
418 "hscroll_right_hi.png",
419 "hscroll_right_dn.png");
421 resources->vscroll_data = new_image_set(10,
422 "vscroll_handle_up.png",
423 "vscroll_handle_hi.png",
424 "vscroll_handle_dn.png",
425 "vscroll_handle_bg.png",
426 "vscroll_left_up.png",
427 "vscroll_left_hi.png",
428 "vscroll_left_dn.png",
429 "vscroll_right_up.png",
430 "vscroll_right_hi.png",
431 "vscroll_right_dn.png");
432 resources->scroll_minhandle = 20;
435 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
436 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
437 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
438 new_button("swap_extents.png",
448 preferences_category_overlap = 0;
449 preferencescategory_x = 0;
450 preferencescategory_y = 5;
451 preferencestitle_x = 5;
452 preferencestitle_y = 10;
453 preferencesoptions_x = 5;
454 preferencesoptions_y = 0;
457 message_normal = resources->text_default;
459 mtransport_margin = 10;
462 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
463 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
464 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
466 new_image("mbutton_bg", "mbutton_bg.png");
467 new_image("timebar_bg", "timebar_bg_flat.png");
468 new_image("timebar_brender", "timebar_brender.png");
469 new_image("clock_bg", "mclock_flat.png");
470 new_image("patchbay_bg", "patchbay_bg.png");
471 new_image("statusbar", "statusbar.png");
472 // new_image("mscroll_filler", "mscroll_filler.png");
474 new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
475 new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
477 new_image_set("mode_popup", 3, "mode_up.png", "mode_hi.png", "mode_dn.png");
478 new_image("mode_add", "mode_add.png");
479 new_image("mode_divide", "mode_divide.png");
480 new_image("mode_multiply", "mode_multiply.png");
481 new_image("mode_normal", "mode_normal.png");
482 new_image("mode_replace", "mode_replace.png");
483 new_image("mode_subtract", "mode_subtract.png");
484 new_image("mode_max", "mode_max.png");
486 new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
487 new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
490 new_image("cpanel_bg", "cpanel_bg.png");
491 new_image("cbuttons_left", "cbuttons_left.png");
492 new_image("cbuttons_right", "cbuttons_right.png");
493 new_image("cmeter_bg", "cmeter_bg.png");
496 new_image("vbuttons_left", "vbuttons_left.png");
497 new_image("vclock", "vclock.png");
499 new_image("preferences_bg", "preferences_bg.png");
502 new_image("new_bg", "new_bg.png");
503 new_image("setformat_bg", "setformat_bg.png");
506 timebar_view_data = new_image("timebar_view.png");
508 setformat_w = get_image("setformat_bg")->get_w();
509 setformat_h = get_image("setformat_bg")->get_h();
518 setformat_margin = 30;
519 setformat_channels_x = 25;
520 setformat_channels_y = 242;
521 setformat_channels_w = 250;
522 setformat_channels_h = 250;
524 loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
528 new_toggle("playpatch.png",
531 "playpatch_checked.png",
533 "playpatch_checkedhi.png",
536 new_toggle("recordpatch.png",
537 "recordpatch_up.png",
538 "recordpatch_hi.png",
539 "recordpatch_checked.png",
540 "recordpatch_dn.png",
541 "recordpatch_checkedhi.png",
544 new_toggle("gangpatch.png",
549 "patch_checkedhi.png",
552 new_toggle("drawpatch.png",
557 "patch_checkedhi.png",
561 new_image_set("mutepatch_data",
565 "mutepatch_checked.png",
567 "mutepatch_checkedhi.png");
569 new_image_set("expandpatch_data",
571 "expandpatch_up.png",
572 "expandpatch_hi.png",
573 "expandpatch_checked.png",
574 "expandpatch_dn.png",
575 "expandpatch_checkedhi.png");
583 out_point = new_image_set(5,
588 "out_checkedhi.png");
589 in_point = new_image_set(5,
596 label_toggle = new_image_set(5,
597 "labeltoggle_up.png",
598 "labeltoggle_uphi.png",
600 "labeltoggle_dn.png",
601 "label_checkedhi.png");
603 ffmpeg_toggle = new_image_set(5,
610 shbtn_data = new_image_set(3,
615 new_image_set("preset_edit",
621 new_image_set("histogram_carrot",
623 "histogram_carrot_up.png",
624 "histogram_carrot_hi.png",
625 "histogram_carrot_checked.png",
626 "histogram_carrot_dn.png",
627 "histogram_carrot_checkedhi.png");
630 statusbar_cancel_data = new_image_set(3,
631 "statusbar_cancel_up.png",
632 "statusbar_cancel_hi.png",
633 "statusbar_cancel_dn.png");
636 VFrame *editpanel_up = new_image("editpanel_up.png");
637 VFrame *editpanel_hi = new_image("editpanel_hi.png");
638 VFrame *editpanel_dn = new_image("editpanel_dn.png");
639 VFrame *editpanel_checked = new_image("editpanel_checked.png");
640 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
642 new_image("panel_divider", "panel_divider.png");
643 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
644 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
645 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
647 new_toggle("histogram_toggle.png",
654 new_toggle("histogram_rgb.png",
660 "histogram_rgb_toggle");
661 new_toggle("waveform.png",
668 new_toggle("waveform_rgb.png",
674 "waveform_rgb_toggle");
675 new_toggle("scope.png",
683 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
684 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
687 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
688 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
689 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
690 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
691 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
692 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
693 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
694 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
695 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
696 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
697 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
698 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
699 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
700 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
701 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
702 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
703 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
704 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
705 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
706 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
707 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
708 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
709 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
710 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
711 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
712 new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
715 VFrame *transport_up = new_image("transportup.png");
716 VFrame *transport_hi = new_image("transporthi.png");
717 VFrame *transport_dn = new_image("transportdn.png");
719 new_button("end.png", transport_up, transport_hi, transport_dn, "end");
720 new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
721 new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
722 new_button("play.png", transport_up, transport_hi, transport_dn, "play");
723 new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
724 new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
725 new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
726 new_button("record.png", transport_up, transport_hi, transport_dn, "record");
727 new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
728 new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
729 new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
730 new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
731 new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
736 new_image("cwindow_inactive", "cwindow_inactive.png");
737 new_image("cwindow_active", "cwindow_active.png");
741 new_image_set("category_button",
743 "preferencesbutton_dn.png",
744 "preferencesbutton_dnhi.png",
745 "preferencesbutton_dnlo.png");
747 new_image_set("category_button_checked",
749 "preferencesbutton_up.png",
750 "preferencesbutton_uphi.png",
751 "preferencesbutton_dnlo.png");
757 new_image_set("color3way_point",
763 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
764 new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
765 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
766 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
767 new_toggle("blank30x30.png",
768 new_image("locklabels_locked.png"),
769 new_image("locklabels_lockedhi.png"),
770 new_image("locklabels_unlocked.png"),
771 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
772 new_image("locklabels_unlockedhi.png"),
775 VFrame *cpanel_up = new_image("cpanel_up.png");
776 VFrame *cpanel_hi = new_image("cpanel_hi.png");
777 VFrame *cpanel_dn = new_image("cpanel_dn.png");
778 VFrame *cpanel_checked = new_image("cpanel_checked.png");
779 VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
782 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
783 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
784 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
785 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
786 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
787 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
788 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
789 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
790 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
791 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
793 // toggle for tangent mode (compositor/tool window)
794 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
795 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
800 title_font = MEDIUMFONT_3D;
801 title_color = 0x1b0f11;
802 recordgui_fixed_color = YELLOW;
803 recordgui_variable_color = RED;
805 channel_position_color = MEYELLOW;
806 resources->meter_title_w = 25;
808 // (asset) edit info text color
809 edit_font_color = YELLOW;
812 #define VWINDOW_METER_MARGIN 5
814 void PINKLADY::build_bg_data()
817 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
820 new_image("resource1024", "resource1024.png");
821 new_image("resource512", "resource512.png");
822 new_image("resource256", "resource256.png");
823 new_image("resource128", "resource128.png");
824 new_image("resource64", "resource64.png");
825 new_image("resource32", "resource32.png");
826 new_image("plugin_bg_data", "plugin_bg.png");
827 new_image("title_bg_data", "title_bg.png");
828 new_image("vtimebar_bg_data", "vwindow_timebar.png");
831 void PINKLADY::build_overlays()
833 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
834 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
835 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
836 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
837 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
838 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
841 void PINKLADY::draw_rwindow_bg(RecordGUI *gui)
846 // gui->draw_9segment(recordgui_batch_x - margin,
848 // mwindow->session->rwindow_w - recordgui_status_x + margin,
849 // recordgui_buttons_y,
851 // gui->draw_3segmenth(recordgui_options_x - margin2,
852 // recordgui_buttons_y - 5,
853 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
855 // y = recordgui_buttons_y - 5 + rgui_controls->get_h();
856 // gui->draw_9segment(0,
858 // mwindow->session->rwindow_w,
859 // mwindow->session->rwindow_h - y,
863 void PINKLADY::draw_rmonitor_bg(RecordMonitorGUI *gui)
866 // int panel_w = 300;
867 // int x = rmonitor_meter_x - margin;
868 // int w = mwindow->session->rmonitor_w - x;
869 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
872 // mwindow->session->rmonitor_w,
873 // mwindow->session->rmonitor_h);
874 // gui->draw_9segment(x,
877 // mwindow->session->rmonitor_h,
886 void PINKLADY::draw_mwindow_bg(MWindowGUI *gui)
889 gui->draw_3segmenth(mbuttons_x, mbuttons_y - 1,
890 gui->menu_w(), get_image("mbutton_bg"));
892 int pdw = get_image("panel_divider")->get_w();
894 x += 9 * get_image("play")->get_w();
895 x += mtransport_margin; // the control buttons
897 gui->draw_vframe(get_image("panel_divider"),
898 x - toggle_margin / 2 - pdw / 2 + 2,
900 x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
902 gui->draw_vframe(get_image("panel_divider"),
903 x - toggle_margin / 2 - pdw / 2 + 2,
906 x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
907 gui->draw_vframe(get_image("panel_divider"),
908 x - toggle_margin / 2 - pdw / 2 + 2,
912 gui->draw_3segmenth(0,
913 mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
914 get_image("patchbay_bg")->get_w(),
915 get_image("clock_bg"));
918 gui->draw_3segmentv(patchbay_x,
921 get_image("patchbay_bg"));
924 gui->set_color(BLACK);
925 gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
926 mcanvas_y + mtimebar_h,
927 mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
928 mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
931 gui->draw_3segmenth(mtimebar_x,
934 get_image("timebar_bg"));
937 gui->set_color(0xffb1d0);
938 gui->draw_box(mzoom_x,
940 mwindow->session->mwindow_w,
944 // gui->draw_vframe(get_image("mscroll_filler"),
945 // mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
946 // mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
949 gui->draw_3segmenth(mzoom_x,
952 get_image("statusbar"));
957 void PINKLADY::draw_cwindow_bg(CWindowGUI *gui)
959 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
961 gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
963 if(mwindow->edl->session->cwindow_meter)
965 gui->draw_3segmenth(cstatus_x,
967 cmeter_x - widget_border - cstatus_x,
968 get_image("cbuttons_right"));
969 gui->draw_9segment(cmeter_x - widget_border,
971 mwindow->session->cwindow_w - cmeter_x + widget_border,
972 mwindow->session->cwindow_h,
973 get_image("cmeter_bg"));
977 gui->draw_3segmenth(cstatus_x,
979 cmeter_x - widget_border - cstatus_x + 100,
980 get_image("cbuttons_right"));
984 void PINKLADY::draw_vwindow_bg(VWindowGUI *gui)
986 gui->draw_3segmenth(0,
989 get_image("vbuttons_left"));
990 if(mwindow->edl->session->vwindow_meter)
992 gui->draw_3segmenth(vdivision_x,
994 vmeter_x - widget_border - vdivision_x,
995 get_image("cbuttons_right"));
996 gui->draw_9segment(vmeter_x - widget_border,
998 mwindow->session->vwindow_w - vmeter_x + widget_border,
999 mwindow->session->vwindow_h,
1000 get_image("cmeter_bg"));
1004 gui->draw_3segmenth(vdivision_x,
1006 vmeter_x - widget_border - vdivision_x + 100,
1007 get_image("cbuttons_right"));
1011 gui->draw_3segmenth(vtime_x - 20,
1014 get_image("vclock"));
1017 void PINKLADY::draw_preferences_bg(PreferencesWindow *gui)
1019 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1022 void PINKLADY::draw_new_bg(NewWindow *gui)
1024 gui->draw_vframe(get_image("new_bg"), 0, 0);
1027 void PINKLADY::draw_setformat_bg(SetFormatWindow *gui)
1029 gui->draw_vframe(get_image("setformat_bg"), 0, 0);