2 * Neophyte theme (2018-08-01)
3 * Design: Olaf Wolff <cinmail · womentie.de>
4 * Based on unflat theme, based on S.U.V. theme.
7 * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
8 * by Paolo Rampino <info at tuttoainternet dot it>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "bcsignals.h"
28 #include "cwindowgui.h"
31 #include "edlsession.h"
33 #include "mainsession.h"
35 #include "meterpanel.h"
37 #include "mwindowgui.h"
40 #include "preferencesthread.h"
41 #include "recordgui.h"
42 #include "recordmonitor.h"
43 #include "setformat.h"
44 #include "statusbar.h"
46 #include "trackcanvas.h"
48 #include "vwindowgui.h"
50 #define ALARM 0xff00ff // not yet defined, to search for the element
51 #define CreamyWhite 0xe6e4dd // creamy white 10% black
52 #define CreamyWhiteBright 0xfffdee // creamy white without black
53 #define BlackNineTwo 0x141414 // 92% black
54 #define BlackSevenTwo 0x474747 // 72% black
55 #define BlackEightFive 0x262626 // 85% black
56 #define BlackFive 0xf2f2f2 // 5% black
57 #define BabyBlue 0x5f8dd3 // baby-blue
58 #define BabyBlueDark 0x162d50 // baby-blue -3 (inkscape), e.g. dialog Subtitle
60 // light green 0x27ae60/0x37c871 - just on the buttons.
61 #define ComicYellow 0xffcc00 // heads up!
62 #define DarkRed 0xaa0000 // locked or not switched on.
63 #define LockedRed 0x400000
65 PluginClient* new_plugin(PluginServer *server)
67 return new NEOPHYTETHEMEMain(server);
70 NEOPHYTETHEMEMain::NEOPHYTETHEMEMain(PluginServer *server)
71 : PluginTClient(server)
75 NEOPHYTETHEMEMain::~NEOPHYTETHEMEMain()
79 const char* NEOPHYTETHEMEMain::plugin_title() { return N_("Neophyte"); }
81 Theme* NEOPHYTETHEMEMain::new_theme()
83 theme = new NEOPHYTETHEME;
84 extern unsigned char _binary_theme_neophyte_data_start[];
85 theme->set_data(_binary_theme_neophyte_data_start);
89 NEOPHYTETHEME::NEOPHYTETHEME()
94 NEOPHYTETHEME::~NEOPHYTETHEME()
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 NEOPHYTETHEME::initialize()
107 BC_Resources *resources = BC_WindowBase::get_resources();
109 // something own, fitting to the theme and independent of the integrated splash screen/about
110 about_bg = new VFramePng(get_image_data("about_bg.png")); // Preferences: About (logo)
111 // new_image("mwindow_icon", "cinelerra_icon_mwin.png"); // replacement for the heroine icon, maybe
112 // new_image("vwindow_icon", "cinelerra_icon_vwin.png");
113 // new_image("cwindow_icon", "cinelerra_icon_cwin.png");
114 // new_image("awindow_icon", "cinelerra_icon_awin.png");
115 // new_image("record_icon", "cinelerra_icon_rec.png");
117 resources->text_default = CreamyWhite; // general text color
118 resources->text_background = BlackNineTwo; //
119 resources->text_background_disarmed = LockedRed; // arm track locked (!)
121 resources->text_border2 = BlackNineTwo; // l,t outside
122 resources->text_border1 = BLACK; // l,t inside
123 resources->text_border3 = BlackSevenTwo; // r,d inside
124 resources->text_border4 = BlackNineTwo; // r,d outside
125 resources->text_border2_hi = ComicYellow; // highlighting on mouseover
126 resources->text_border3_hi = ComicYellow;
128 resources->text_inactive_highlight = BabyBlueDark; // e.g. Subtitle (double click on inactive text, choose next or prev and be amazed).
129 resources->text_highlight = BabyBlue;
131 resources->bg_color = BlackEightFive;
132 resources->border_light2 = resources->bg_color;
133 resources->border_shadow2 = resources->bg_color;
135 resources->default_text_color = CreamyWhite; // Timeline, dialogs and much more.
136 resources->menu_title_text = WHITE; // high contrast
137 resources->popup_title_text = WHITE; //
138 resources->menu_item_text = WHITE; //
140 resources->menu_highlighted_fontcolor = CreamyWhiteBright;
141 resources->generic_button_margin = 20; // [15] (Pref top right, 17)
142 resources->pot_needle_color = CreamyWhite; // [resources->text_default] – marginal
143 resources->pot_offset = 1; // only the needle
144 resources->progress_text = resources->text_default;
145 resources->meter_font_color = resources->default_text_color;
147 resources->menu_light = BlackEightFive; // the following four are overwritten by graphics
148 resources->menu_down = ALARM; //
149 resources->menu_up = ALARM; //
150 resources->menu_shadow = ALARM; //
152 resources->menu_highlighted = BabyBlue; //
153 resources->popupmenu_margin = 15; // indent, moves the button text to the right
154 resources->popupmenu_triangle_margin = 15;
156 resources->listbox_title_color = CreamyWhiteBright; // columns header
157 resources->listbox_title_margin = 15; // [20] indent
158 resources->listbox_title_hotspot = 15; // [20]
160 resources->listbox_border2 = BlackNineTwo; // as text_border
161 resources->listbox_border1 = BLACK;
162 resources->listbox_border3 = BlackSevenTwo;
163 resources->listbox_border4 = BlackNineTwo;
164 // ../../guicast/bcresources.C:684:
165 resources->listbox_border2_hi = BabyBlue; // highlighting on mouseover
166 resources->listbox_border3_hi = BabyBlue;
168 resources->listbox_highlighted = BabyBlue; // recources, loadfiles
169 resources->listbox_inactive = BlackNineTwo; // background
170 resources->listbox_bg = 0; // see ../theme_blond_cv/blondcvtheme.C:249
171 resources->listbox_text = CreamyWhite; //
172 resources->listbox_selected = 0x3d5477; // approximately matches column_hi
174 resources->filebox_margin = 130; // [130]
175 resources->file_color = WHITE;
176 resources->directory_color = BabyBlue;
178 // Footage in the timeline
179 title_font = MEDIUMFONT; // ../../guicast/fonts.h
182 // Because the colors of the text in the list are fixed. So it is at least uniform.
183 recordgui_fixed_color = YELLOW; //
184 recordgui_variable_color = RED; // [RED]
186 channel_position_color = ComicYellow; // Set Format, speaker numbers
187 resources->meter_title_w = 25;
189 // (asset) edit info text color
190 edit_font_color = ComicYellow; // ? ../../cinelerra/theme.h:282
191 assetedit_color = CreamyWhiteBright; // variable attributes
193 // flash_color = ALARM; // ../../cinelerra/recordgui.C:135
194 timebar_cursor_color = WHITE; // ../../cinelerra/theme.C:73
196 // tooltip ../../guicast/bcresources.C:786
197 resources->tooltip_bg_color = CreamyWhiteBright;
198 // resources->tooltip_fg_color = ALARM; // undefined.
199 resources->tooltip_delay = 1500; // [1000]
201 // Waveform of audio tracks.
202 // Instead of squeaky [GREEN]. This three are soft, warm and matte.
206 audio_color = 0x6d876f;
208 // Resources: the text overlay location display. What for?
209 // Affects a) Preferences, Performace: BR "Video" (text).
211 resources->audiovideo_color = CreamyWhite; // BlackNineTwo;
213 // ../../guicast/bcresources.C-781 ff.: Delays must all be different for repeaters
214 resources->blink_rate = 750; // [250] - we're not on the run.
216 // ../../cinelerra/theme.C:87
217 // clock_bg_color = BLACK; // -> vclock
218 clock_fg_color = ComicYellow;
224 "loadmode_checked.png",
226 "loadmode_checkedhi.png",
232 "loadmode_checked.png",
234 "loadmode_checkedhi.png",
237 "loadmode_newcat.png",
240 "loadmode_checked.png",
242 "loadmode_checkedhi.png",
248 "loadmode_checked.png",
250 "loadmode_checkedhi.png",
253 "loadmode_newtracks.png",
256 "loadmode_checked.png",
258 "loadmode_checkedhi.png",
259 "loadmode_newtracks");
261 "loadmode_paste.png",
264 "loadmode_checked.png",
266 "loadmode_checkedhi.png",
269 "loadmode_resource.png",
272 "loadmode_checked.png",
274 "loadmode_checkedhi.png",
275 "loadmode_resource");
277 "loadmode_nested.png",
280 "loadmode_checked.png",
282 "loadmode_checkedhi.png",
285 resources->filebox_icons_images = new_button(
287 "fileboxbutton_up.png",
288 "fileboxbutton_hi.png",
289 "fileboxbutton_dn.png",
292 resources->filebox_text_images = new_button("text.png",
293 "fileboxbutton_up.png",
294 "fileboxbutton_hi.png",
295 "fileboxbutton_dn.png",
298 resources->filebox_newfolder_images = new_button("folder.png",
299 "fileboxbutton_up.png",
300 "fileboxbutton_hi.png",
301 "fileboxbutton_dn.png",
302 "filebox_newfolder");
304 resources->filebox_rename_images = new_button("rename.png",
305 "fileboxbutton_up.png",
306 "fileboxbutton_hi.png",
307 "fileboxbutton_dn.png",
310 resources->filebox_updir_images = new_button("updir.png",
311 "fileboxbutton_up.png",
312 "fileboxbutton_hi.png",
313 "fileboxbutton_dn.png",
316 resources->filebox_delete_images = new_button("delete.png",
317 "fileboxbutton_up.png",
318 "fileboxbutton_hi.png",
319 "fileboxbutton_dn.png",
322 resources->filebox_reload_images = new_button("reload.png",
323 "fileboxbutton_up.png",
324 "fileboxbutton_hi.png",
325 "fileboxbutton_dn.png",
328 resources->filebox_descend_images = new_button("openfolder.png",
329 "filebox_bigbutton_up.png",
330 "filebox_bigbutton_hi.png",
331 "filebox_bigbutton_dn.png",
334 resources->usethis_button_images =
335 resources->ok_images = new_button("ok.png",
336 "filebox_bigbutton_up.png",
337 "filebox_bigbutton_hi.png",
338 "filebox_bigbutton_dn.png",
342 "new_bigbutton_up.png",
343 "new_bigbutton_hi.png",
344 "new_bigbutton_dn.png",
347 resources->cancel_images = new_button("cancel.png",
348 "filebox_bigbutton_up.png",
349 "filebox_bigbutton_hi.png",
350 "filebox_bigbutton_dn.png",
353 new_button("cancel.png",
354 "new_bigbutton_up.png",
355 "new_bigbutton_hi.png",
356 "new_bigbutton_dn.png",
357 "new_cancel_images");
359 // Clock - is not used (AFAIK). See also clock color.
360 // resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
382 resources->bar_data = new_image("bar", "bar.png");
383 resources->check = new_image("check", "check.png");
385 resources->min_menu_w = 96;
386 resources->menu_popup_bg = new_image("menu_popup_bg.png");
387 resources->menu_item_bg = new_image_set(3,
391 resources->menu_bar_bg = new_image("menubar_bg.png");
392 resources->menu_title_bg = new_image_set(3,
397 resources->popupmenu_images = 0;
399 // "menupopup_up.png",
400 // "menupopup_hi.png",
401 // "menupopup_dn.png");
403 resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
404 "text_highlight.png");
406 resources->generic_button_images = new_image_set(3,
410 resources->horizontal_slider_data = new_image_set(6,
416 "hslider_bg_dn.png");
417 resources->vertical_slider_data = new_image_set(6,
423 "hslider_bg_dn.png");
424 for( int i=0; i<6; ++i )
425 resources->vertical_slider_data[i]->rotate90();
427 resources->progress_images = new_image_set(2,
430 resources->tumble_data = new_image_set(4,
435 resources->listbox_button = new_button4("listbox_button.png",
442 // Dialog "Load files…" switch SI/IEC
443 resources->filebox_szfmt_images = new_image_set(12,
444 "file_size_capb_up.png",
445 "file_size_capb_hi.png",
446 "file_size_capb_dn.png",
447 "file_size_semi_up.png",
448 "file_size_semi_hi.png",
449 "file_size_semi_dn.png",
450 "file_size_lwrb_up.png",
451 "file_size_lwrb_hi.png",
452 "file_size_lwrb_dn.png",
453 "file_size_zero_up.png",
454 "file_size_zero_hi.png",
455 "file_size_zero_dn.png");
457 resources->listbox_column = new_image_set(3,
461 resources->listbox_up = new_image("listbox_up.png");
462 resources->listbox_dn = new_image("listbox_dn.png");
463 resources->pan_data = new_image_set(7,
469 "pan_channel_small.png",
470 "pan_stick_small.png");
471 resources->pan_text_color = CreamyWhiteBright;
473 resources->pot_images = new_image_set(3,
478 resources->checkbox_images = new_image_set(5,
481 "checkbox_checked.png",
483 "checkbox_checkedhi.png");
485 resources->radial_images = new_image_set(5,
488 "radial_checked.png",
490 "radial_checkedhi.png");
492 resources->xmeter_images = new_image_set(7,
500 resources->ymeter_images = new_image_set(7,
509 resources->hscroll_data = new_image_set(10,
510 "hscroll_handle_up.png",
511 "hscroll_handle_hi.png",
512 "hscroll_handle_dn.png",
513 "hscroll_handle_bg.png",
514 "hscroll_left_up.png",
515 "hscroll_left_hi.png",
516 "hscroll_left_dn.png",
517 "hscroll_right_up.png",
518 "hscroll_right_hi.png",
519 "hscroll_right_dn.png");
521 resources->vscroll_data = new_image_set(10,
522 "vscroll_handle_up.png",
523 "vscroll_handle_hi.png",
524 "vscroll_handle_dn.png",
525 "vscroll_handle_bg.png",
526 "vscroll_left_up.png",
527 "vscroll_left_hi.png",
528 "vscroll_left_dn.png",
529 "vscroll_right_up.png",
530 "vscroll_right_hi.png",
531 "vscroll_right_dn.png");
532 resources->scroll_minhandle = 20;
534 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
535 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
536 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
537 new_button("swap_extents.png",
544 preferences_category_overlap = 0;
545 preferencescategory_x = 0;
546 preferencescategory_y = 5;
547 preferencestitle_x = 5;
548 preferencestitle_y = 10;
549 preferencesoptions_x = 5;
550 preferencesoptions_y = 0;
553 message_normal = resources->text_default;
555 mtransport_margin = 10;
558 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
559 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
560 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
562 new_image("mbutton_bg", "mbutton_bg.png");
563 new_image("timebar_bg", "timebar_bg_flat.png");
564 new_image("timebar_brender", "timebar_brender.png");
565 new_image("clock_bg", "mclock_flat.png");
566 new_image("patchbay_bg", "patchbay_bg.png");
567 new_image("statusbar", "statusbar.png");
568 // new_image("mscroll_filler", "mscroll_filler.png");
570 new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
571 new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
573 new_image_set("mode_popup", 3, "mode_up.png", "mode_hi.png", "mode_dn.png");
574 new_image("mode_add", "mode_add.png");
575 new_image("mode_divide", "mode_divide.png");
576 new_image("mode_multiply", "mode_multiply.png");
577 new_image("mode_normal", "mode_normal.png");
578 new_image("mode_replace", "mode_replace.png");
579 new_image("mode_subtract", "mode_subtract.png");
580 new_image("mode_max", "mode_max.png");
582 new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
583 new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
586 new_image_set("mixpatch_data", 5, "mixpatch_up.png", "mixpatch_hi.png", "mixpatch_checked.png", "mixpatch_dn.png", "mixpatch_checkedhi.png");
589 new_image("cpanel_bg", "cpanel_bg.png");
590 new_image("cbuttons_left", "cbuttons_left.png");
591 new_image("cbuttons_right", "cbuttons_right.png");
592 new_image("cmeter_bg", "cmeter_bg.png");
595 new_image("vbuttons_left", "vbuttons_left.png");
596 new_image("vclock", "vclock.png");
598 new_image("preferences_bg", "preferences_bg.png");
600 new_image("new_bg", "new_bg.png");
601 new_image("setformat_bg", "setformat_bg.png");
603 timebar_view_data = new_image("timebar_view.png");
605 setformat_w = get_image("setformat_bg")->get_w();
606 setformat_h = get_image("setformat_bg")->get_h();
615 setformat_margin = 30;
616 setformat_channels_x = 25;
617 setformat_channels_y = 242;
618 setformat_channels_w = 250;
619 setformat_channels_h = 250;
621 loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
624 new_toggle("playpatch.png",
627 "playpatch_checked.png",
629 "playpatch_checkedhi.png",
632 new_toggle("recordpatch.png",
633 "recordpatch_up.png",
634 "recordpatch_hi.png",
635 "recordpatch_checked.png",
636 "recordpatch_dn.png",
637 "recordpatch_checkedhi.png",
640 new_toggle("gangpatch.png",
645 "patch_checkedhi.png",
648 new_toggle("drawpatch.png",
653 "patch_checkedhi.png",
656 new_image_set("mutepatch_data",
660 "mutepatch_checked.png",
662 "mutepatch_checkedhi.png");
664 new_image_set("expandpatch_data",
666 "expandpatch_up.png",
667 "expandpatch_hi.png",
668 "expandpatch_checked.png",
669 "expandpatch_dn.png",
670 "expandpatch_checkedhi.png");
675 out_point = new_image_set(5,
680 "out_checkedhi.png");
681 in_point = new_image_set(5,
688 label_toggle = new_image_set(5,
689 "labeltoggle_up.png",
690 "labeltoggle_uphi.png",
692 "labeltoggle_dn.png",
693 "label_checkedhi.png");
695 ffmpeg_toggle = new_image_set(5,
702 proxy_p_toggle = new_image_set(5,
707 "proxy_p_chkdhi.png");
709 proxy_s_toggle = new_image_set(5, // proxy use ffmpeg scaler
714 "proxy_s_chkdhi.png");
716 shbtn_data = new_image_set(3,
721 new_image_set("preset_edit",
727 new_image_set("histogram_carrot",
729 "histogram_carrot_up.png",
730 "histogram_carrot_hi.png",
731 "histogram_carrot_checked.png",
732 "histogram_carrot_dn.png",
733 "histogram_carrot_checkedhi.png");
735 statusbar_cancel_data = new_image_set(3,
736 "statusbar_cancel_up.png",
737 "statusbar_cancel_hi.png",
738 "statusbar_cancel_dn.png");
740 VFrame *editpanel_up = new_image("editpanel_up.png");
741 VFrame *editpanel_hi = new_image("editpanel_hi.png");
742 VFrame *editpanel_dn = new_image("editpanel_dn.png");
743 VFrame *editpanel_checked = new_image("editpanel_checked.png");
744 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
746 new_image("panel_divider", "panel_divider.png");
747 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
748 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
749 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
751 new_toggle("histogram_toggle.png",
758 new_toggle("histogram_rgb.png",
764 "histogram_rgb_toggle");
765 new_toggle("waveform.png",
772 new_toggle("waveform_rgb.png",
778 "waveform_rgb_toggle");
779 new_toggle("scope.png",
787 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
788 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
790 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
791 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial"); // ?
792 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
793 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
794 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
795 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
796 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
797 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
798 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
799 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
800 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
801 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
802 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
803 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
804 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
805 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn,"overbutton");
806 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn,"overwritebutton");
807 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
808 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
809 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
810 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn,"splicebutton");
811 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
812 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
813 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
814 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
815 new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
817 VFrame *transport_up = new_image("transportup.png");
818 VFrame *transport_hi = new_image("transporthi.png");
819 VFrame *transport_dn = new_image("transportdn.png");
821 new_button("end.png", transport_up, transport_hi, transport_dn, "end");
822 new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
823 new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
824 new_button("play.png", transport_up, transport_hi, transport_dn, "play");
825 new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
826 new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
827 new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
828 new_button("record.png", transport_up, transport_hi, transport_dn, "record");
829 new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
830 new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
831 new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
832 new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
833 new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
836 new_image("cwindow_inactive", "cwindow_inactive.png");
837 new_image("cwindow_active", "cwindow_active.png");
839 new_image_set("category_button",
841 "preferencesbutton_dn.png",
842 "preferencesbutton_dnhi.png",
843 "preferencesbutton_dnlo.png");
845 new_image_set("category_button_checked",
847 "preferencesbutton_up.png",
848 "preferencesbutton_uphi.png",
849 "preferencesbutton_dnlo.png");
851 new_image_set("color3way_point",
857 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
858 new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
859 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
860 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
861 new_toggle("blank30x30.png",
862 new_image("locklabels_locked.png"),
863 new_image("locklabels_lockedhi.png"),
864 new_image("locklabels_unlocked.png"),
865 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
866 new_image("locklabels_unlockedhi.png"),
869 VFrame *cpanel_up = new_image("cpanel_up.png");
870 VFrame *cpanel_hi = new_image("cpanel_hi.png");
871 VFrame *cpanel_dn = new_image("cpanel_dn.png");
872 VFrame *cpanel_checked = new_image("cpanel_checked.png");
873 VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
875 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
876 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
877 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
878 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
879 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
880 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
881 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
882 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
883 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
884 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
886 // toggle for tangent mode (compositor/tool window)
887 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
888 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
894 // BD: CWINDOW is probalby ComposerWindow, V=ViewerWindow
895 #define VWINDOW_METER_MARGIN 5
896 //#define CWINDOW_METER_MARGIN 5
898 void NEOPHYTETHEME::build_bg_data()
901 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
904 new_image("resource1024", "resource1024.png");
905 new_image("resource512", "resource512.png");
906 new_image("resource256", "resource256.png");
907 new_image("resource128", "resource128.png");
908 new_image("resource64", "resource64.png");
909 new_image("resource32", "resource32.png");
910 new_image("plugin_bg_data", "plugin_bg.png");
911 new_image("title_bg_data", "title_bg.png");
912 new_image("vtimebar_bg_data", "vwindow_timebar.png");
915 void NEOPHYTETHEME::build_overlays()
917 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
918 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
919 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
920 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
921 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
922 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
925 void NEOPHYTETHEME::draw_rwindow_bg(RecordGUI *gui)
930 // gui->draw_9segment(recordgui_batch_x - margin,
932 // mwindow->session->rwindow_w - recordgui_status_x + margin,
933 // recordgui_buttons_y,
935 // gui->draw_3segmenth(recordgui_options_x - margin2,
936 // recordgui_buttons_y - 5,
937 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
939 // y = recordgui_buttons_y - 5 + rgui_controls->get_h();
940 // gui->draw_9segment(0,
942 // mwindow->session->rwindow_w,
943 // mwindow->session->rwindow_h - y,
947 void NEOPHYTETHEME::draw_rmonitor_bg(RecordMonitorGUI *gui)
950 // int panel_w = 300;
951 // int x = rmonitor_meter_x - margin;
952 // int w = mwindow->session->rmonitor_w - x;
953 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
956 // mwindow->session->rmonitor_w,
957 // mwindow->session->rmonitor_h);
958 // gui->draw_9segment(x,
961 // mwindow->session->rmonitor_h,
965 void NEOPHYTETHEME::draw_mwindow_bg(MWindowGUI *gui)
968 gui->draw_3segmenth(mbuttons_x, mbuttons_y - 1,
969 gui->menu_w(), get_image("mbutton_bg"));
971 int pdw = get_image("panel_divider")->get_w();
973 x += 9 * get_image("play")->get_w();
974 x += mtransport_margin; // the control buttons
976 gui->draw_vframe(get_image("panel_divider"),
977 x - toggle_margin / 2 - pdw / 2 + 2,
979 x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
981 gui->draw_vframe(get_image("panel_divider"),
982 x - toggle_margin / 2 - pdw / 2 + 2,
985 x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
986 gui->draw_vframe(get_image("panel_divider"),
987 x - toggle_margin / 2 - pdw / 2 + 2,
991 gui->draw_3segmenth(0,
992 mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
993 get_image("patchbay_bg")->get_w(),
994 get_image("clock_bg"));
997 gui->draw_3segmentv(patchbay_x,
1000 get_image("patchbay_bg"));
1003 gui->set_color(BLACK);
1004 gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
1005 mcanvas_y + mtimebar_h,
1006 mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
1007 mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
1010 gui->draw_3segmenth(mtimebar_x,
1013 get_image("timebar_bg"));
1016 gui->set_color(BlackNineTwo);
1017 gui->draw_box(mzoom_x,
1019 mwindow->session->mwindow_w,
1023 // gui->draw_vframe(get_image("mscroll_filler"),
1024 // mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
1025 // mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
1028 gui->draw_3segmenth(mzoom_x,
1031 get_image("statusbar"));
1035 void NEOPHYTETHEME::draw_cwindow_bg(CWindowGUI *gui)
1037 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1039 gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
1041 if(mwindow->edl->session->cwindow_meter)
1043 gui->draw_3segmenth(cstatus_x,
1045 cmeter_x - widget_border - cstatus_x,
1046 get_image("cbuttons_right"));
1047 gui->draw_9segment(cmeter_x - widget_border,
1049 mwindow->session->cwindow_w - cmeter_x + widget_border,
1050 mwindow->session->cwindow_h,
1051 get_image("cmeter_bg"));
1055 gui->draw_3segmenth(cstatus_x,
1057 cmeter_x - widget_border - cstatus_x + 100,
1058 get_image("cbuttons_right"));
1062 void NEOPHYTETHEME::draw_vwindow_bg(VWindowGUI *gui)
1064 gui->draw_3segmenth(0,
1067 get_image("vbuttons_left"));
1068 if(mwindow->edl->session->vwindow_meter)
1070 gui->draw_3segmenth(vdivision_x,
1072 vmeter_x - widget_border - vdivision_x,
1073 get_image("cbuttons_right"));
1074 gui->draw_9segment(vmeter_x - widget_border,
1076 mwindow->session->vwindow_w - vmeter_x + widget_border,
1077 mwindow->session->vwindow_h,
1078 get_image("cmeter_bg"));
1082 gui->draw_3segmenth(vdivision_x,
1084 vmeter_x - widget_border - vdivision_x + 100,
1085 get_image("cbuttons_right"));
1089 gui->draw_3segmenth(vtime_x - 20,
1092 get_image("vclock"));
1096 void NEOPHYTETHEME::draw_preferences_bg(PreferencesWindow *gui)
1098 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1101 void NEOPHYTETHEME::draw_new_bg(NewWindow *gui)
1103 gui->draw_vframe(get_image("new_bg"), 0, 0);
1106 void NEOPHYTETHEME::draw_setformat_bg(SetFormatWindow *gui)
1108 gui->draw_vframe(get_image("setformat_bg"), 0, 0);