mixer undo fix, new ffmpeg opts, docs
[goodguy/history.git] / cinelerra-5.1 / plugins / theme_blue_dot / bluedottheme.C
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #include "bcsignals.h"
23 #include "clip.h"
24 #include "cstrdup.h"
25 #include "cwindowgui.h"
26 #include "bluedottheme.h"
27 #include "edl.h"
28 #include "edlsession.h"
29 #include "mainmenu.h"
30 #include "mainsession.h"
31 #include "mbuttons.h"
32 #include "meterpanel.h"
33 #include "mwindow.h"
34 #include "mwindowgui.h"
35 #include "new.h"
36 #include "patchbay.h"
37 #include "preferencesthread.h"
38 #include "recordgui.h"
39 #include "recordmonitor.h"
40 #include "setformat.h"
41 #include "statusbar.h"
42 #include "timebar.h"
43 #include "trackcanvas.h"
44 #include "vframe.h"
45 #include "vwindowgui.h"
46 #include "zoombar.h"
47
48
49 #define BGREY   0xc0c0e0                //MEGEY with a shade of blue
50 #define DDBLUE  0x000050                //Dark blue with the shade of grey
51
52
53 PluginClient* new_plugin(PluginServer *server)
54 {
55         return new BlueDotThemeMain(server);
56 }
57
58
59
60
61
62
63
64 BlueDotThemeMain::BlueDotThemeMain(PluginServer *server)
65  : PluginTClient(server)
66 {
67 }
68
69 BlueDotThemeMain::~BlueDotThemeMain()
70 {
71 }
72
73 const char* BlueDotThemeMain::plugin_title()
74 {
75         return _("Blue Dot");
76 }
77
78 Theme* BlueDotThemeMain::new_theme()
79 {
80         theme = new BlueDotTheme;
81         extern unsigned char _binary_theme_blue_dot_data_start[];
82         theme->set_data(_binary_theme_blue_dot_data_start);
83         return theme;
84 }
85
86
87
88
89
90
91
92
93 BlueDotTheme::BlueDotTheme()
94  : Theme()
95 {
96 }
97
98 BlueDotTheme::~BlueDotTheme()
99 {
100         delete camerakeyframe_data;
101         delete channel_bg_data;
102         delete channel_position_data;
103         delete keyframe_data;
104         delete maskkeyframe_data;
105         delete modekeyframe_data;
106         delete pankeyframe_data;
107         delete projectorkeyframe_data;
108 }
109
110 void BlueDotTheme::initialize()
111 {
112         BC_Resources *resources = BC_WindowBase::get_resources();
113
114 //      about_bg = new_image("about_bg.png");
115
116
117         // COPIED FROM DEFAULT THEME 1>>
118         resources->text_default = 0x000000;
119         resources->text_background = 0xffffff;
120                 //listbox borders
121         resources->text_border1 = 0x4a484a; // (top outer)
122         resources->text_border2 = 0x000000; // (top inner)
123         resources->text_border3 = 0xacaeac; // (bottom inner)
124         resources->text_border4 = 0xffffff; // (bottom outer)
125         resources->text_inactive_highlight = 0xacacac;
126         resources->text_highlight = BGREY;
127         // COPIED FROM DEFAULT THEME <<1
128
129         resources->bg_color = FGGREY;                   //bg of windows (where no pics...
130         // COPIED FROM DEFAULT THEME 2>>
131         resources->default_text_color = 0x000000;
132         resources->menu_title_text    = 0x000000;
133         resources->popup_title_text   = 0x000000;
134         // COPIED FROM DEFAULT THEME <<2
135         resources->menu_item_text = BLACK;
136
137         // COPIED FROM DEFAULT THEME 3>>
138         resources->generic_button_margin = 15;          //Length of buttons and color tabs
139         resources->pot_needle_color = resources->text_default;
140         resources->pot_offset = 0;
141         resources->progress_text = resources->text_default;
142         // COPIED FROM DEFAULT THEME <<3
143         resources->meter_font = SMALLFONT;  //Specific to BD
144         resources->meter_font_color = BLACK;
145         resources->meter_title_w = 20;  //Specific to BD
146         resources->meter_3d = 0;   //Specific to BD
147
148         resources->menu_light = FTGREY;         //menu
149         resources->menu_highlighted = BGREY;            //NMBLUE
150         resources->menu_down = BGREY;
151         resources->menu_up = FGGREY;
152         resources->menu_shadow = FTGREY;
153
154         // MIHA: COPIED FROM DEFAULT THEME M1>>
155         resources->popupmenu_margin = 10;          // ugly
156         resources->popupmenu_triangle_margin = 15; // ugly
157         // MIHA: COPIED FROM DEFAULT THEME M1<<
158
159
160         // COPIED FROM DEFAULT THEME 4>>
161         resources->listbox_title_color = 0x000000;
162
163         resources->listbox_title_margin = 0;
164         resources->listbox_title_hotspot = 5;  // No. of pixels around the borders to allow dragging
165         resources->listbox_border1 = 0x4a484a; // (top outer)
166         resources->listbox_border2 = 0x000000; // (top inner)
167         resources->listbox_border3 = 0xffe200; // (bottom inner)
168         resources->listbox_border4 = 0xffffff; // (bottom outer)
169         resources->listbox_highlighted = 0xeee6ee;
170         resources->listbox_inactive = 0xffffffff; // (background)
171         resources->listbox_bg = new_image("list_bg.png"); //NOT COPIED!
172         resources->listbox_text = 0x000000;
173         resources->listbox_selected = BGREY;
174
175         resources->dirbox_margin = 50;
176         resources->filebox_margin = 101;
177         resources->file_color = 0x000000;
178         resources->directory_color = DKBLUE;
179         // COPIED FROM DEFAULT THEME <<4
180         resources->menu_highlighted_fontcolor = DDBLUE;    //Specific to BD
181
182         new_toggle("loadmode_new.png",
183                 "loadmode_up.png",
184                 "loadmode_hi.png",
185                 "loadmode_checked.png",
186                 "loadmode_dn.png",
187                 "loadmode_checkedhi.png",
188                 "loadmode_new");
189         new_toggle("loadmode_none.png",
190                 "loadmode_up.png",
191                 "loadmode_hi.png",
192                 "loadmode_checked.png",
193                 "loadmode_dn.png",
194                 "loadmode_checkedhi.png",
195                 "loadmode_none");
196         new_toggle("loadmode_newcat.png",
197                 "loadmode_up.png",
198                 "loadmode_hi.png",
199                 "loadmode_checked.png",
200                 "loadmode_dn.png",
201                 "loadmode_checkedhi.png",
202                 "loadmode_newcat");
203         new_toggle("loadmode_cat.png",
204                 "loadmode_up.png",
205                 "loadmode_hi.png",
206                 "loadmode_checked.png",
207                 "loadmode_dn.png",
208                 "loadmode_checkedhi.png",
209                 "loadmode_cat");
210         new_toggle("loadmode_newtracks.png",
211                 "loadmode_up.png",
212                 "loadmode_hi.png",
213                 "loadmode_checked.png",
214                 "loadmode_dn.png",
215                 "loadmode_checkedhi.png",
216                 "loadmode_newtracks");
217         new_toggle("loadmode_paste.png",
218                 "loadmode_up.png",
219                 "loadmode_hi.png",
220                 "loadmode_checked.png",
221                 "loadmode_dn.png",
222                 "loadmode_checkedhi.png",
223                 "loadmode_paste");
224         new_toggle("loadmode_resource.png",
225                 "loadmode_up.png",
226                 "loadmode_hi.png",
227                 "loadmode_checked.png",
228                 "loadmode_dn.png",
229                 "loadmode_checkedhi.png",
230                 "loadmode_resource");
231         new_toggle("loadmode_nested.png",
232                 "loadmode_up.png",
233                 "loadmode_hi.png",
234                 "loadmode_checked.png",
235                 "loadmode_dn.png",
236                 "loadmode_checkedhi.png",
237                 "loadmode_nested");
238
239 //There are differences here, but we won't change until the end.
240 //Specific to BD
241         resources->filebox_icons_images = new_image_set(3,
242                 "file_icons_up.png",
243                 "file_icons_uphi.png",
244                 "file_icons_dn.png");
245
246         resources->filebox_text_images = new_image_set(3,
247                 "file_text_up.png",
248                 "file_text_uphi.png",
249                 "file_text_dn.png");
250
251         resources->filebox_newfolder_images = new_image_set(3,
252                 "file_newfolder_up.png",
253                 "file_newfolder_uphi.png",
254                 "file_newfolder_dn.png");
255
256         resources->filebox_updir_images = new_image_set(3,
257                 "file_updir_up.png",
258                 "file_updir_uphi.png",
259                 "file_updir_dn.png");
260
261         resources->filebox_delete_images = new_image_set(3,
262                 "file_delete_up.png",
263                 "file_delete_uphi.png",
264                 "file_delete_dn.png");
265
266         resources->filebox_reload_images = new_image_set(3,
267                 "file_reload_up.png",
268                 "file_reload_uphi.png",
269                 "file_reload_dn.png");
270
271
272         resources->filebox_descend_images = new_image_set(3,
273                 "file_openfolder_up.png",
274                 "file_openfolder_uphi.png",
275                 "file_openfolder_dn.png");
276 //Specific to BD
277
278         resources->usethis_button_images =
279                 resources->ok_images = new_button("ok.png",
280                 "generic_up.png",
281                 "generic_hi.png",
282                 "generic_dn.png",
283                 "ok_button");
284
285         new_button("ok.png",
286                 "generic_up.png",
287                 "generic_hi.png",
288                 "generic_dn.png",
289                 "new_ok_images");
290
291         resources->cancel_images = new_button("cancel.png",
292                 "generic_up.png",
293                 "generic_hi.png",
294                 "generic_dn.png",
295                 "cancel_button");
296
297         new_button("cancel.png",
298                 "generic_up.png",
299                 "generic_hi.png",
300                 "generic_dn.png",
301                 "new_cancel_images");
302
303         resources->bar_data = new_image("bar", "bar.png");
304
305         //clock font
306         resources->medium_7segment =  new_image_set(20,
307                 "black_0.png",
308                 "black_1.png",
309                 "black_2.png",
310                 "black_3.png",
311                 "black_4.png",
312                 "black_5.png",
313                 "black_6.png",
314                 "black_7.png",
315                 "black_8.png",
316                 "black_9.png",
317                 "black_colon.png",
318                 "black_period.png",
319                 "black_a.png",
320                 "black_b.png",
321                 "black_c.png",
322                 "black_d.png",
323                 "black_e.png",
324                 "black_f.png",
325                 "black_space.png",
326                 "black_dash.png");
327
328         resources->bar_data = new_image("bar", "bar.png");
329         resources->check = new_image("check", "check.png");
330
331         resources->min_menu_w = 0;
332         resources->menu_popup_bg = 0;  // if (0) use menu_light, menu_up, menu_shadow
333         resources->menu_item_bg = 0;   // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
334         resources->menu_bar_bg = 0;    // if (0) use menu_light, menu_shadow, and height of MEDIUMFONT + 8
335         resources->menu_title_bg =  0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
336
337
338         resources->popupmenu_images = 0; // if (0) get_resources()->use generic_button_images
339
340         resources->toggle_highlight_bg = 0; // if (0) "Draw a plain box" as per bctoggle.C
341
342         resources->generic_button_images = new_image_set(3,
343                         "generic_up.png",
344                         "generic_hi.png",
345                         "generic_dn.png");
346         resources->horizontal_slider_data = new_image_set(6,
347                         "hslider_fg_up.png",
348                         "hslider_fg_hi.png",
349                         "hslider_fg_dn.png",
350                         "hslider_bg_up.png",
351                         "hslider_bg_hi.png",
352                         "hslider_bg_dn.png");
353         resources->vertical_slider_data = new_image_set(6,
354                         "vertical_slider_fg_up.png",
355                         "vertical_slider_fg_hi.png",
356                         "vertical_slider_fg_dn.png",
357                         "vertical_slider_bg_up.png",
358                         "vertical_slider_bg_hi.png",
359                         "vertical_slider_bg_dn.png");
360         resources->progress_images = new_image_set(2,
361                         "progress_bg.png",
362                         "progress_hi.png");
363         resources->tumble_data = new_image_set(4,
364                 "tumble_up.png",
365                 "tumble_hi.png",
366                 "tumble_bottom.png",
367                 "tumble_top.png");
368         resources->listbox_button = new_image_set(4,
369                 "listbox_button_up.png",
370                 "listbox_button_hi.png",
371                 "listbox_button_dn.png",
372                 "listbox_button_disabled.png"); // probably need to make this for the suv theme
373         resources->listbox_column = new_image_set(3,
374                 "column_up.png",
375                 "column_hi.png",
376                 "column_dn.png");
377         resources->listbox_expand = new_image_set(5,
378                 "listbox_expandup.png",
379                 "listbox_expanduphi.png",
380                 "listbox_expandchecked.png",
381                 "listbox_expanddn.png",
382                 "listbox_expandcheckedhi.png");
383         resources->listbox_up = new_image("listbox_up.png");
384         resources->listbox_dn = new_image("listbox_dn.png");
385         resources->pan_data = new_image_set(7,
386                         "pan_up.png",
387                         "pan_hi.png",
388                         "pan_popup.png",
389                         "pan_channel.png",
390                         "pan_stick.png",
391                         "pan_channel_small.png",
392                         "pan_stick_small.png");
393         resources->pan_text_color = WHITE;
394
395         resources->pot_images = new_image_set(3,
396                 "pot_up.png",
397                 "pot_hi.png",
398                 "pot_dn.png");   //Graphic Copied from default. Improve!!
399
400         resources->checkbox_images = new_image_set(5,
401                 "checkbox_up.png",
402                 "checkbox_uphi.png",
403                 "checkbox_checked.png",
404                 "checkbox_down.png",
405                 "checkbox_checkedhi.png");
406
407         resources->radial_images = new_image_set(5,
408                 "radial_up.png",
409                 "radial_uphi.png",
410                 "radial_checked.png",
411                 "radial_down.png",
412                 "radial_checkedhi.png");
413
414         resources->xmeter_images = new_image_set(7,
415                 "xmeter_normal.png",
416                 "xmeter_green.png",
417                 "xmeter_red.png",
418                 "xmeter_yellow.png",
419                 "xmeter_normal.png",
420                 "xmeter_over.png",
421                 "downmix51_2.png");
422         resources->ymeter_images = new_image_set(7,
423                 "ymeter_normal.png",
424                 "ymeter_green.png",
425                 "ymeter_red.png",
426                 "ymeter_yellow.png",
427                 "ymeter_normal.png",
428                 "ymeter_over.png",
429                 "downmix51_2.png");
430
431         resources->hscroll_data = new_image_set(10,
432                         "hscroll_center_up.png",
433                         "hscroll_center_hi.png",
434                         "hscroll_center_dn.png",
435                         "hscroll_bg.png",
436                         "hscroll_back_up.png",
437                         "hscroll_back_hi.png",
438                         "hscroll_back_dn.png",
439                         "hscroll_fwd_up.png",
440                         "hscroll_fwd_hi.png",
441                         "hscroll_fwd_dn.png");
442
443         resources->vscroll_data = new_image_set(10,
444                         "vscroll_center_up.png",
445                         "vscroll_center_hi.png",
446                         "vscroll_center_dn.png",
447                         "vscroll_bg.png",
448                         "vscroll_back_up.png",
449                         "vscroll_back_hi.png",
450                         "vscroll_back_dn.png",
451                         "vscroll_fwd_up.png",
452                         "vscroll_fwd_hi.png",
453                         "vscroll_fwd_dn.png");
454
455 //Graphic Copied from default. Improve!!
456 //To make this work better, it may be neccessary to replace new_button with new_image_set
457         new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
458         new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
459         new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
460         new_button("swap_extents.png",
461                 "editpanel_up.png",
462                 "editpanel_hi.png",
463                 "editpanel_dn.png",
464                 "swap_extents");
465 //swap_extents.png not copied
466
467 // Record windows
468         rgui_batch = new_image("recordgui_batch.png");
469         rgui_controls = new_image("recordgui_controls.png");
470         rgui_list = new_image("recordgui_list.png");
471         rmonitor_panel = new_image("recordmonitor_panel.png");
472         rmonitor_meters = new_image("recordmonitor_meters.png");
473
474
475 //COPY START >>
476         preferences_category_overlap = 0;
477         preferencescategory_x = 5;
478         preferencescategory_y = 5;
479         preferencestitle_x = 5;
480         preferencestitle_y = 10;
481         preferencesoptions_x = 5;
482         preferencesoptions_y = 0;
483 //COPY END<<
484
485 // MWindow
486 //COPY START >>
487         message_normal = resources->text_default;
488         audio_color = BLACK;
489         mtransport_margin = 11;
490         toggle_margin = 11;
491 //COPY END >>
492
493         new_image("mbutton_left","mbutton_left.png");
494         new_image("mbutton_right","mbutton_right.png");
495         new_image("timebar_bg", "timebar_bg.png");
496         new_image("timebar_brender", "timebar_brender.png");
497         new_image("clock_bg", "mclock.png");
498         new_image("patchbay_bg", "patchbay_bg.png");
499         new_image("tracks_bg","tracks_bg.png");
500         new_image("zoombar_left","zoombar_left.png");
501         new_image("zoombar_right","zoombar_right.png");
502         new_image("statusbar_left","statusbar_left.png");
503         new_image("statusbar_right","statusbar_right.png");
504
505         new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
506         new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
507         new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
508
509         //Here an improvement may be needed
510         new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
511         new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
512
513 //Graphic Copied from default. Improve!!
514         new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
515         new_image("mode_add", "mode_add.png");
516         new_image("mode_divide", "mode_divide.png");
517         new_image("mode_multiply", "mode_multiply.png");
518         new_image("mode_normal", "mode_normal.png");
519         new_image("mode_replace", "mode_replace.png");
520         new_image("mode_subtract", "mode_subtract.png");
521         new_image("mode_max", "mode_max.png");
522         new_image("mode_min", "mode_min.png");
523
524 //Graphic Copied from default. Improve!!
525         new_toggle("plugin_on.png",
526                 "pluginbutton_hi.png",
527                 "pluginbutton_hi.png",
528                 "pluginbutton_select.png",
529                 "pluginbutton_dn.png",
530                 "pluginbutton_selecthi.png",
531                 "plugin_on");
532
533 //Graphic Copied from default. Improve!!
534         new_toggle("plugin_show.png",
535                 "plugin_show.png",
536                 "pluginbutton_hi.png",
537                 "pluginbutton_select.png",
538                 "pluginbutton_dn.png",
539                 "pluginbutton_selecthi.png",
540                 "plugin_show");
541
542         new_image("cpanel_bg", "cpanel_bg.png");
543         new_image("cbuttons_left", "cbuttons_left.png");
544         new_image("cbuttons_right", "cbuttons_right.png");
545         new_image("cmeter_bg", "cmeter_bg.png");
546         new_image("vbuttons_left", "vbuttons_left.png");
547         new_image("vbuttons_right", "vbuttons_right.png");
548         timebar_view_data = new_image("timebar_view.png");
549
550 // CWindow
551         new_image("cpanel_bg.png");
552         new_image("cbuttons_left.png");
553         new_image("cbuttons_right.png");
554         new_image("cmeter_bg.png");
555
556 // VWindow
557         new_image("vbuttons_left.png");
558         new_image("vbuttons_right.png");
559         new_image("vmeter_bg.png");
560
561         new_image("preferences_bg", "preferences_bg.png");
562
563
564         new_image("new_bg", "new_bg.png");
565         new_image("setformat_bg", "setformat_bg2.png");
566
567 // x, y of Format dialog box
568         setformat_w = 600;
569         setformat_h = 560;
570         setformat_x1 = 15;
571         setformat_x2 = 100;
572
573         setformat_x3 = 315;
574         setformat_x4 = 415;
575         setformat_y1 = 20;
576         setformat_y2 = 85;
577         setformat_y3 = 125;
578         setformat_margin = 30;
579         setformat_channels_x = 25;
580         setformat_channels_y = 242;
581         setformat_channels_w = 250;
582         setformat_channels_h = 250;
583
584         loadfile_pad = 70;
585         browse_pad = 20;
586
587 //This buttons miss a bit. May need to be improved
588         new_image_set("playpatch_data",
589                 5,
590                 "playpatch_up.png",
591                 "playpatch_hi.png",
592                 "playpatch_checked.png",
593                 "playpatch_dn.png",
594                 "playpatch_checkedhi.png");
595
596         new_image_set("recordpatch_data",
597                 5,
598                 "recordpatch_up.png",
599                 "recordpatch_hi.png",
600                 "recordpatch_checked.png",
601                 "recordpatch_dn.png",
602                 "recordpatch_checkedhi.png");
603
604         new_image_set("gangpatch_data",
605                 5,
606                 "gangpatch_up.png",
607                 "gangpatch_hi.png",
608                 "gangpatch_checked.png",
609                 "gangpatch_dn.png",
610                 "gangpatch_checkedhi.png");
611
612         new_image_set("drawpatch_data",
613                 5,
614                 "drawpatch_up.png",
615                 "drawpatch_hi.png",
616                 "drawpatch_checked.png",
617                 "drawpatch_dn.png",
618                 "drawpatch_checkedhi.png");
619
620
621         new_image_set("mutepatch_data",
622                 5,
623                 "mutepatch_up.png",
624                 "mutepatch_hi.png",
625                 "mutepatch_checked.png",
626                 "mutepatch_dn.png",
627                 "mutepatch_checkedhi.png");
628
629         new_image_set("expandpatch_data",
630                 5,
631                 "expandpatch_up.png",
632                 "expandpatch_hi.png",
633                 "expandpatch_checked.png",
634                 "expandpatch_dn.png",
635                 "expandpatch_checkedhi.png");
636
637         build_icons();
638         build_bg_data();
639         build_overlays();
640
641
642
643 //Graphic Copied from default. Improve!! -> See outpoint.png/inpoint.png
644         out_point = new_image_set(5,
645                 "out_up.png",
646                 "out_hi.png",
647                 "out_checked.png",
648                 "out_dn.png",
649                 "out_checkedhi.png");
650         in_point = new_image_set(5,
651                 "in_up.png",
652                 "in_hi.png",
653                 "in_checked.png",
654                 "in_dn.png",
655                 "in_checkedhi.png");
656
657 //Graphic Copied from default. Improve!! -> see label.png
658         label_toggle = new_image_set(5,
659                 "labeltoggle_up.png",
660                 "labeltoggle_uphi.png",
661                 "label_checked.png",
662                 "labeltoggle_dn.png",
663                 "label_checkedhi.png");
664
665         ffmpeg_toggle = new_image_set(5,
666                 "ff_up.png",
667                 "ff_hi.png",
668                 "ff_checked.png",
669                 "ff_down.png",
670                 "ff_checkedhi.png");
671
672         shbtn_data = new_image_set(3,
673                 "shbtn_up.png",
674                 "shbtn_hi.png",
675                 "shbtn_dn.png");
676
677         new_image_set("preset_edit",
678                 3,
679                 "preset_edit0.png",
680                 "preset_edit1.png",
681                 "preset_edit2.png");
682
683         statusbar_cancel_data = new_image_set(3,
684                 "statusbar_cancel_up.png",
685                 "statusbar_cancel_hi.png",
686                 "statusbar_cancel_dn.png");
687
688 //Graphic Copied from default. Improve!! -> make transparent edges
689         VFrame *editpanel_up = new_image("editpanel_up.png");
690         VFrame *editpanel_hi = new_image("editpanel_hi.png");
691         VFrame *editpanel_dn = new_image("editpanel_dn.png");
692         VFrame *editpanel_checked = new_image("editpanel_checked.png");
693         VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
694
695 //Graphic Copied from default. Improve!!
696         new_image("panel_divider", "panel_divider.png");
697         new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
698         new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
699         new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
700
701         new_toggle("histogram_toggle.png",
702                 editpanel_up,
703                 editpanel_hi,
704                 editpanel_checked,
705                 editpanel_dn,
706                 editpanel_checkedhi,
707                 "histogram_toggle");
708         new_toggle("histogram_rgb.png",
709                 editpanel_up,
710                 editpanel_hi,
711                 editpanel_checked,
712                 editpanel_dn,
713                 editpanel_checkedhi,
714                 "histogram_rgb_toggle");
715         new_toggle("waveform.png",
716                 editpanel_up,
717                 editpanel_hi,
718                 editpanel_checked,
719                 editpanel_dn,
720                 editpanel_checkedhi,
721                 "waveform_toggle");
722         new_toggle("waveform_rgb.png",
723                 editpanel_up,
724                 editpanel_hi,
725                 editpanel_checked,
726                 editpanel_dn,
727                 editpanel_checkedhi,
728                 "waveform_rgb_toggle");
729         new_toggle("scope.png",
730                 editpanel_up,
731                 editpanel_hi,
732                 editpanel_checked,
733                 editpanel_dn,
734                 editpanel_checkedhi,
735                 "scope_toggle");
736
737         new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
738         new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
739
740         new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
741         new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
742         new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
743         new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
744         new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
745         new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
746 //      indelete_data = new_button("clearinpoint.png", editpanel_up, editpanel_hi, editpanel_dn);   //Specific to BD
747         new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
748         new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
749         new_button("magnifyS.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "magnify_button");
750         new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
751         new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
752         new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
753 //      outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn);   //Specific to BD
754         over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
755         overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
756         new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
757         new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
758         new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
759         new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
760         new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
761         new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
762         splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
763         new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
764         new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
765         new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
766         new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
767         new_button("wrench.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "wrench");
768
769 //Make transparent borders
770 #define TRANSPORT_LEFT_IMAGES  "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
771 #define TRANSPORT_CENTER_IMAGES  "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
772 #define TRANSPORT_RIGHT_IMAGES  "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
773 //      build_transport(duplex_data, get_image_data("duplex.png"), transport_bg, 1);    //Specific to BD
774         new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
775         new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
776         new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
777         new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
778         new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
779         new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
780 //Graphic Copied from default. Improve!!
781         new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
782         new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
783 //Graphic Copied from default. Improve!!
784         new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
785         new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
786         new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
787         new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
788         new_button("stoprec.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
789
790
791
792 // CWindow icons
793 //Graphic Copied from default. Improve!!
794         new_image("cwindow_inactive", "cwindow_inactive.png");
795         new_image("cwindow_active", "cwindow_active.png");
796
797
798         new_image_set("batch_render_start",
799                 3,
800                 "batchstart_up.png",
801                 "batchstart_hi.png",
802                 "batchstart_dn.png");
803         new_image_set("batch_render_stop",
804                 3,
805                 "batchstop_up.png",
806                 "batchstop_hi.png",
807                 "batchstop_dn.png");
808         new_image_set("batch_render_cancel",
809                 3,
810                 "batchcancel_up.png",
811                 "batchcancel_hi.png",
812                 "batchcancel_dn.png");
813
814 // MIHA: COPIED FROM DEFAULT THEME M2>>
815 //Graphic Copied from default. Improve!!
816         new_image_set("category_button",
817                 3,
818                 "preferencesbutton_dn.png",
819                 "preferencesbutton_dnhi.png",
820                 "preferencesbutton_dnlo.png");
821
822         new_image_set("category_button_checked",
823                 3,
824                 "preferencesbutton_up.png",
825                 "preferencesbutton_uphi.png",
826                 "preferencesbutton_dnlo.png");
827 // MIHA: COPIED FROM DEFAULT THEME M2<<
828
829
830         new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
831         new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
832         new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
833         new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
834         new_toggle("blank30x30.png",
835                    new_image("locklabels_locked.png"),
836                    new_image("locklabels_lockedhi.png"),
837                    new_image("locklabels_unlocked.png"),
838                    new_image("locklabels_dn.png"), // can't have seperate down for each!!??
839                    new_image("locklabels_unlockedhi.png"),
840                    "locklabels");
841
842 // MIHA: COPIED FROM DEFAULT THEME M3>>
843 //Is that necessary??
844         VFrame *cpanel_up = new_image("editpanel_up.png");
845         VFrame *cpanel_hi = new_image("editpanel_hi.png");
846         VFrame *cpanel_dn = new_image("editpanel_dn.png");
847         VFrame *cpanel_checked = new_image("editpanel_checked.png");
848         VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
849
850         new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
851         new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
852         new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
853         new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
854         new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
855         new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
856         new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
857         new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
858         new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
859         new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
860
861 // MIHA: COPIED FROM DEFAULT THEME M3<<
862
863 // Maybe we can live without the commented part
864 // MIHA: Commented out in favor of default version M4>>
865 //      new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"camera");
866 //      new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"crop");
867 //      new_toggle("eyedrop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"eyedrop");
868 //      new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"magnify");
869 //      new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"mask");
870 //      new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"projector");
871 //      new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"protect");
872 //      new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"titlesafe");
873 //      new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"tool");
874 // MIHA: Commented out in favor of default version M4<<
875
876         // toggle for tangent mode (compositor/tool window)
877         new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
878         new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
879
880
881         flush_images();
882
883         title_font = MEDIUMFONT;
884         title_color = BLACK;
885         recordgui_fixed_color = BLACK;
886         recordgui_variable_color = RED;
887
888         int font_size = (int)(14*resources->font_scale + 0.5);
889         char string[BCTEXTLEN];
890         sprintf(string,"-*-helvetica-medium-r-normal-*-%d-*", font_size);
891         delete [] resources->medium_font;
892         resources->medium_font = cstrdup(string);
893
894         channel_position_color = MEYELLOW;
895         resources->meter_title_w = 25;
896
897         // (asset) edit info text color
898         edit_font_color = BLACK;
899
900 //Specific to BD
901         //clock
902         resources->draw_clock_background = 0;
903
904 //Specific to BD
905         //buttons
906         resources->button_highlighted = LTGREY;
907         resources->button_uphighlighted = DKGREY;
908         resources->button_light = WHITE;
909         resources->button_up = LTGREY;
910         resources->button_shadow = DKGREY;
911         resources->button_down = MDGREY;
912
913 //Specific to BD
914         //listbox
915
916         //labels
917         resources->label_images = new_image_set(5,
918                 "radial_up.png",
919                 "radial_uphi.png",
920                 "radial_checked.png",
921                 "radial_down.png",
922                 "radial_checkedhi.png");
923
924         /*      resources->type_to_icon = new_image_set(5,
925             "file_folder.png",
926                 "file_unknown.png",
927                 "file_film.png",
928                 "file_sound.png",
929                 "file_column.png");
930    */
931
932 //Specific to BD
933         resources->audiovideo_color = DKGREY;
934
935 //Specific to BD
936         //tooltip
937         resources->tooltip_bg_color = 0xfff7e3;
938 }
939
940 //CWINDOW is probalby ComposerWindow, V=ViewerWindow
941 #define CWINDOW_METER_MARGIN 5
942 #define VWINDOW_METER_MARGIN 5
943
944 //Specific to BD
945 void BlueDotTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
946 {
947 // Position of menu buttons (start, stop, ff, etc.)
948         mbuttons_x = 0;
949         mbuttons_y = gui->mainmenu->get_h();
950         mbuttons_w = w;
951         mbuttons_h = get_image("mbutton_left")->get_h();
952         mclock_x = 20;          //x position of digits in clock window
953         mclock_y = mbuttons_y + 1 + mbuttons_h + CWINDOW_METER_MARGIN;
954         mclock_w = get_image("clock_bg")->get_w() - 72;
955         mclock_h = get_image("clock_bg")->get_h();
956
957 //Time bar - coordinates and dimensions
958         mtimebar_x = get_image("patchbay_bg")->get_w();
959         mtimebar_y = mbuttons_y + mbuttons_h;
960         mtimebar_w = w - mtimebar_x;
961         mtimebar_h = get_image("timebar_bg")->get_h();
962
963 // Zooming tracks - just above the status bar
964         mzoom_h =  get_image("zoombar_left")->get_h();
965         mzoom_x = 0;
966         mzoom_y = h - get_image("statusbar_left")->get_h() - mzoom_h;
967         mzoom_w = w;
968
969 // Status bar at the very bottom of the screen.
970         mstatus_x = 0;
971 //      mstatus_y = mzoom_y + mzoom_h;
972         mstatus_y = mzoom_y + mzoom_h;
973         mstatus_w = w;
974         mstatus_h = h - mstatus_y;
975         mstatus_message_x = 10;
976         mstatus_message_y = 8;
977         mstatus_progress_w = 230;
978         mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
979         mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
980
981 //Specific to BD
982         mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
983         mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
984
985 //This is Patch Bay - on the left side of the tracks.
986         patchbay_x = 0;
987         patchbay_y = mtimebar_y + mtimebar_h;
988         patchbay_w = get_image("patchbay_bg")->get_w();
989         patchbay_h = mzoom_y - patchbay_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
990
991 //Canvas where audio and video tracks are
992         mcanvas_x = 0;
993         mcanvas_y = mtimebar_y + mtimebar_h;
994         mcanvas_w = w;
995         mcanvas_h = patchbay_h;
996 //COPIED START
997         mhscroll_x = 0;
998         mhscroll_y = mzoom_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
999         mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT);
1000         mvscroll_x = mcanvas_x + mcanvas_w;
1001         mvscroll_y = mcanvas_y;
1002         mvscroll_h = mcanvas_h;
1003 //COPIED END
1004 }
1005
1006 void BlueDotTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
1007 {
1008         if(cwindow_controls)
1009         {
1010 SET_TRACE
1011                 ccomposite_x = 0;
1012                 ccomposite_y = 5;
1013                 ccomposite_w = get_image("cpanel_bg")->get_w();
1014                 ccomposite_h = mwindow->session->cwindow_h -
1015                         get_image("cbuttons_left")->get_h();
1016                 cslider_x = 5;
1017                 cslider_y = ccomposite_h + 23;
1018                 cedit_x = 10;
1019                 cedit_y = cslider_y + 17;
1020                 ctransport_x = 10;
1021                 ctransport_y = mwindow->session->cwindow_h -
1022                         get_image_set("autokeyframe")[0]->get_h();
1023                 ccanvas_x = ccomposite_x + ccomposite_w;
1024                 ccanvas_y = 0;
1025                 ccanvas_h = ccomposite_h;
1026 //COPIED START
1027                 cstatus_x = 453;
1028                 cstatus_y = mwindow->session->cwindow_h - 66;
1029 //COPIED END
1030                 if(mwindow->edl->session->cwindow_meter)
1031                 {
1032                         cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(this,
1033                                 mwindow->edl->session->audio_channels, mwindow->edl->session->cwindow_meter);
1034                         ccanvas_w = cmeter_x - ccanvas_x - 5;
1035                 }
1036                 else
1037                 {
1038                         cmeter_x = mwindow->session->cwindow_w;
1039                         ccanvas_w = cmeter_x - ccanvas_x;
1040                 }
1041 SET_TRACE
1042         }
1043         else
1044         {
1045 SET_TRACE
1046                 ccomposite_x = -get_image("cpanel_bg")->get_w();
1047                 ccomposite_y = 0;
1048                 ccomposite_w = get_image("cpanel_bg")->get_w();
1049                 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
1050
1051                 cslider_x = 5;
1052                 cslider_y = mwindow->session->cwindow_h;
1053                 cedit_x = 10;
1054                 cedit_y = cslider_y + 17;
1055                 ctransport_x = 10;
1056                 ctransport_y = cedit_y + 40;
1057                 ccanvas_x = 0;
1058                 ccanvas_y = 0;
1059                 ccanvas_w = mwindow->session->cwindow_w;
1060                 ccanvas_h = mwindow->session->cwindow_h;
1061                 cmeter_x = mwindow->session->cwindow_w;
1062 //COPIED START
1063                 cstatus_x = mwindow->session->cwindow_w;
1064                 cstatus_y = mwindow->session->cwindow_h;
1065 //COPIED END
1066 SET_TRACE
1067         }
1068
1069 SET_TRACE
1070
1071         czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
1072         czoom_y = ctransport_y + 5;
1073
1074         cmeter_y = 5;
1075         cmeter_h = mwindow->session->cwindow_h - cmeter_y;
1076
1077         ctimebar_x = ccanvas_x;
1078         ctimebar_y = ccanvas_y + ccanvas_h;
1079         ctimebar_w = ccanvas_w;
1080
1081 //Specific to BD
1082         cslider_w = ccanvas_x + ccanvas_w - cslider_x;
1083         ctimebar_x = ccanvas_x;
1084         ctimebar_y = ccanvas_y + ccanvas_h;
1085         ctimebar_w = ccanvas_w;
1086         ctimebar_h = 16;
1087
1088
1089 // Not used
1090         ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
1091         ctime_y = ctransport_y;
1092         cdest_x = czoom_x;
1093         cdest_y = czoom_y + 30;
1094 SET_TRACE
1095 }
1096
1097
1098
1099 void BlueDotTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
1100 {
1101
1102 }
1103
1104 // COPIED START--------
1105 void BlueDotTheme::get_rmonitor_sizes(int do_audio,
1106         int do_video,
1107         int do_channel,
1108         int do_interlace,
1109         int do_avc,
1110         int audio_channels)
1111 {
1112         Theme::get_rmonitor_sizes(do_audio,
1113                 do_video,
1114                 do_channel,
1115                 do_interlace,
1116                 do_avc,
1117                 audio_channels);
1118         if(!do_video && do_audio)
1119         {
1120                 rmonitor_meter_y -= 30;
1121                 rmonitor_meter_h += 30;
1122         }
1123 }
1124 // COPIED END--------
1125
1126
1127 void BlueDotTheme::get_vwindow_sizes(VWindowGUI *gui)
1128 {
1129         vmeter_y = 5;
1130         vmeter_h = mwindow->session->vwindow_h - cmeter_y;
1131         vcanvas_x = 0;
1132         vcanvas_y = 0;
1133         vcanvas_h = mwindow->session->vwindow_h - get_image("vbuttons_left")->get_h();
1134
1135         if(mwindow->edl->session->vwindow_meter)
1136         {
1137                 vmeter_x = mwindow->session->vwindow_w -
1138                         VWINDOW_METER_MARGIN -
1139                         MeterPanel::get_meters_width(this,
1140                         mwindow->edl->session->audio_channels, mwindow->edl->session->vwindow_meter);
1141                 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
1142         }
1143         else
1144         {
1145                 vmeter_x = mwindow->session->vwindow_w;
1146                 vcanvas_w = mwindow->session->vwindow_w;
1147         }
1148
1149         vtimebar_x = vcanvas_x;
1150         vtimebar_y = vcanvas_y + vcanvas_h;
1151         vtimebar_w = vcanvas_w;
1152         vtimebar_h = 16;
1153
1154 //Specific to BD
1155         vslider_x = 10;
1156         vslider_y = vtimebar_y + 25;
1157         vslider_w = vtimebar_w - vslider_x;
1158         vedit_x = 10;
1159         vedit_y = vslider_y + 17;
1160         vtransport_x = 10;
1161         vtransport_y = mwindow->session->vwindow_h -
1162                 get_image_set("autokeyframe")[0]->get_h();
1163         vtime_x = 373;
1164         vtime_y = vedit_y + 7;
1165         vtime_w = 100;
1166
1167
1168
1169
1170         vzoom_x = vtime_x + 150;
1171         vzoom_y = vtime_y;
1172         vsource_x = vtime_x + 50;
1173         vsource_y = vtransport_y + 5;
1174 }
1175
1176
1177
1178
1179
1180 void BlueDotTheme::build_icons()
1181 {
1182         new_image("mwindow_icon", "heroine_icon.png");
1183         new_image("vwindow_icon", "heroine_icon.png");
1184         new_image("cwindow_icon", "heroine_icon.png");
1185         new_image("awindow_icon", "heroine_icon.png");
1186         new_image("record_icon", "heroine_icon.png");
1187 }
1188
1189
1190
1191 void BlueDotTheme::build_bg_data()
1192 {
1193 // Audio settings
1194         channel_bg_data = new VFramePng(get_image_data("channel_bg.png"));
1195         channel_position_data = new VFramePng(get_image_data("channel_position.png"));
1196
1197 // Track bitmaps
1198         new_image("resource1024", "resource1024.png");
1199         new_image("resource512", "resource512.png");
1200         new_image("resource256", "resource256.png");
1201         new_image("resource128", "resource128.png");
1202         new_image("resource64", "resource64.png");
1203         new_image("resource32", "resource32.png");
1204 //Graphic Copied from default. Improve!!
1205         new_image("plugin_bg_data", "plugin_bg.png");
1206         new_image("title_bg_data", "title_bg.png");
1207         new_image("vtimebar_bg_data", "vwindow_timebar.png");
1208 }
1209
1210
1211 //Graphic Copied from default. Improve!!  -- use your imagination
1212 void BlueDotTheme::build_overlays()
1213 {
1214         keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
1215         camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
1216         maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
1217         modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
1218         pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
1219         projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
1220 }
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230 void BlueDotTheme::draw_rwindow_bg(RecordGUI *gui)
1231 {
1232 //      int y;
1233 //      int margin = 50;
1234 //      int margin2 = 80;
1235 //      gui->draw_9segment(recordgui_batch_x - margin,
1236 //              0,
1237 //              mwindow->session->rwindow_w - recordgui_status_x + margin,
1238 //              recordgui_buttons_y,
1239 //              rgui_batch);
1240 //      gui->draw_3segmenth(recordgui_options_x - margin2,
1241 //              recordgui_buttons_y - 5,
1242 //              mwindow->session->rwindow_w - recordgui_options_x + margin2,
1243 //              rgui_controls);
1244 //      y = recordgui_buttons_y - 5 + rgui_controls->get_h();
1245 //      gui->draw_9segment(0,
1246 //              y,
1247 //              mwindow->session->rwindow_w,
1248 //              mwindow->session->rwindow_h - y,
1249 //              rgui_list);
1250 }
1251
1252 void BlueDotTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1253 {
1254 //      int margin = 45;
1255 //      int panel_w = 300;
1256 //      int x = rmonitor_meter_x - margin;
1257 //      int w = mwindow->session->rmonitor_w - x;
1258 //      if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1259 //      gui->clear_box(0,
1260 //              0,
1261 //              mwindow->session->rmonitor_w,
1262 //              mwindow->session->rmonitor_h);
1263 //      gui->draw_9segment(x,
1264 //              0,
1265 //              w,
1266 //              mwindow->session->rmonitor_h,
1267 //              rmonitor_meters);
1268 }
1269
1270
1271
1272
1273
1274 //Specific to BD
1275 void BlueDotTheme::draw_mwindow_bg(MWindowGUI *gui)
1276 {
1277 // Button bar (not menu bar)
1278 #define MBUTTONS_RIGHTEDGE 290 + 11 + 2*30 + 11 + 2*30 + 11 + 14*30
1279         gui->draw_3segmenth(mbuttons_x,
1280                 mbuttons_y,
1281                 MBUTTONS_RIGHTEDGE,
1282                 get_image("mbutton_left"),
1283                 0);
1284         gui->draw_3segmenth(mbuttons_x + MBUTTONS_RIGHTEDGE,
1285                 mbuttons_y,
1286                 mbuttons_w - 500,
1287                 get_image("mbutton_right"));
1288
1289 // MIHA: COPIED FROM DEFAULT THEME M6>>
1290         gui->draw_vframe(get_image("panel_divider"),
1291                 mbuttons_x + 290 + 5,
1292                 mbuttons_y - 1);
1293
1294         gui->draw_vframe(get_image("panel_divider"),
1295                 mbuttons_x + 290 + 11 + 30 * 2 + 5,
1296                 mbuttons_y - 1);
1297
1298         gui->draw_vframe(get_image("panel_divider"),
1299                 mbuttons_x + 290 + 11 +  30 * 2 + 11 + 30 * 2 + 5,
1300                 mbuttons_y - 1);
1301
1302
1303 // MIHA: COPIED FROM DEFAULT THEME M6<<
1304
1305 //Specific to BD
1306 // Clock (here the background of the clock is drawn)
1307         gui->draw_3segmenth(0,
1308                 mbuttons_y + get_image("mbutton_left")->get_h(),
1309                 get_image("patchbay_bg")->get_w(),
1310                 get_image("clock_bg"));
1311
1312 //Specific to BD
1313 // Patchbay
1314         gui->draw_3segmentv(patchbay_x,
1315                 patchbay_y,
1316                 patchbay_h,
1317                 get_image("patchbay_bg"));
1318
1319 //patchbay_h + 10,
1320
1321
1322 //Specific to BD
1323 //Drawing of Track's canvas
1324         gui->draw_9segment(mcanvas_x,
1325                 mcanvas_y,
1326                 mcanvas_w,
1327                 patchbay_h + 26,
1328                 get_image("tracks_bg"));
1329 //patchbay_h + 10,
1330
1331 // Timebar
1332         gui->draw_3segmenth(mtimebar_x,
1333                 mtimebar_y,
1334                 mtimebar_w,
1335                 get_image("timebar_bg"));
1336
1337 //Specific to BD
1338 // Zoombar
1339 #define ZOOMBAR_CENTER 1100
1340         gui->draw_3segmenth(mzoom_x,
1341                 mzoom_y,
1342                 ZOOMBAR_CENTER,
1343                 get_image("zoombar_left"));
1344         if(mzoom_w > ZOOMBAR_CENTER)
1345                 gui->draw_3segmenth(mzoom_x + ZOOMBAR_CENTER,
1346                         mzoom_y,
1347                         mzoom_w - ZOOMBAR_CENTER,
1348                         get_image("zoombar_right"));
1349
1350
1351 // Status
1352         gui->draw_3segmenth(mstatus_x,
1353                 mstatus_y,
1354                 ZOOMBAR_CENTER,
1355                 get_image("statusbar_left"));
1356
1357         if(mstatus_w > ZOOMBAR_CENTER)
1358           gui->draw_3segmenth(mstatus_x + ZOOMBAR_CENTER,
1359                               mstatus_y,
1360                               mstatus_w - ZOOMBAR_CENTER,
1361                               get_image("statusbar_right"));
1362
1363 }
1364
1365 void BlueDotTheme::draw_cwindow_bg(CWindowGUI *gui)
1366 {
1367 //Specific to BD
1368         const int button_division = 530;
1369         gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1370         gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1371         if(mwindow->edl->session->cwindow_meter)
1372         {
1373                 gui->draw_3segmenth(button_division,
1374                         ccomposite_h,
1375                         cmeter_x - CWINDOW_METER_MARGIN - button_division,
1376                         get_image("cbuttons_right"));
1377                 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
1378                         0,
1379                         mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
1380                         mwindow->session->cwindow_h,
1381                         get_image("cmeter_bg"));
1382         }
1383         else
1384         {
1385                 gui->draw_3segmenth(button_division,
1386                         ccomposite_h,
1387                         cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
1388                         get_image("cbuttons_right"));
1389         }
1390 }
1391
1392 void BlueDotTheme::draw_vwindow_bg(VWindowGUI *gui)
1393 {
1394 //Specific to BD
1395         const int button_division = 535;
1396         gui->draw_3segmenth(0,
1397                 vcanvas_h,
1398                 button_division,
1399                 get_image("vbuttons_left"));
1400         if(mwindow->edl->session->vwindow_meter)
1401         {
1402                 gui->draw_3segmenth(button_division,
1403                         vcanvas_h,
1404                         vmeter_x - VWINDOW_METER_MARGIN - button_division,
1405                         get_image("vbuttons_right"));
1406                 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
1407                         0,
1408                         mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
1409                         mwindow->session->vwindow_h,
1410                         get_image("vmeter_bg"));
1411         }
1412         else
1413         {
1414                 gui->draw_3segmenth(button_division,
1415                         vcanvas_h,
1416                         vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
1417                         get_image("vbuttons_right"));
1418         }
1419 }
1420
1421 void BlueDotTheme::get_preferences_sizes()
1422 {
1423 }
1424
1425 //Specific to BD
1426 void BlueDotTheme::draw_preferences_bg(PreferencesWindow *gui)
1427 {
1428         gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, get_image("preferences_bg"));
1429 }
1430
1431 void BlueDotTheme::get_new_sizes(NewWindow *gui)
1432 {
1433 }
1434
1435 void BlueDotTheme::draw_new_bg(NewWindow *gui)
1436 {
1437         gui->draw_vframe(get_image("new_bg"), 0, 0);
1438 }
1439
1440 void BlueDotTheme::draw_setformat_bg(SetFormatWindow *gui)
1441 {
1442         gui->draw_vframe(get_image("setformat_bg"), 0, 0);
1443 }
1444
1445
1446
1447
1448