r1008: pt_BR translation update
[cinelerra_cv/mob.git] / plugins / bluedottheme / bluedottheme.C
blob8ba557a8d276ba2bcba441e85fd2b50730c54820
1 #include "bcsignals.h"
2 #include "clip.h"
3 #include "cwindowgui.h"
4 #include "bluedottheme.h"
5 #include "edl.h"
6 #include "edlsession.h"
7 #include "mainmenu.h"
8 #include "mainsession.h"
9 #include "mbuttons.h"
10 #include "meterpanel.h"
11 #include "mwindow.h"
12 #include "mwindowgui.h"
13 #include "new.h"
14 #include "patchbay.h"
15 #include "preferencesthread.h"
16 #include "recordgui.h"
17 #include "recordmonitor.h"
18 #include "setformat.h"
19 #include "statusbar.h"
20 #include "timebar.h"
21 #include "trackcanvas.h"
22 #include "vframe.h"
23 #include "vwindowgui.h"
24 #include "zoombar.h"
27 #define BGREY   0xc0c0e0                //MEGEY with a shade of blue
28 #define DDBLUE  0x000050                //Dark blue with the shade of grey
31 PluginClient* new_plugin(PluginServer *server)
33         return new BlueDotThemeMain(server);
42 BlueDotThemeMain::BlueDotThemeMain(PluginServer *server)
43  : PluginTClient(server)
47 BlueDotThemeMain::~BlueDotThemeMain()
51 char* BlueDotThemeMain::plugin_title()
53         return "Blue Dot";
56 Theme* BlueDotThemeMain::new_theme()
58         theme = new BlueDotTheme;
59         extern unsigned char _binary_bluedottheme_data_start[];
60         theme->set_data(_binary_bluedottheme_data_start);
61         return theme;
71 BlueDotTheme::BlueDotTheme()
72  : Theme()
76 BlueDotTheme::~BlueDotTheme()
80 void BlueDotTheme::initialize()
82         BC_Resources *resources = BC_WindowBase::get_resources();
84 //      about_bg = new_image("about_bg.png");
87         // COPIED FROM DEFAULT THEME 1>>
88         resources->text_default = 0x000000;
89         resources->text_background = 0xffffff;
90                 //listbox borders
91         resources->text_border1 = 0x4a484a; // (top outer)
92         resources->text_border2 = 0x000000; // (top inner)
93         resources->text_border3 = 0xacaeac; // (bottom inner)
94         resources->text_border4 = 0xffffff; // (bottom outer)
95         resources->text_inactive_highlight = 0xacacac;
96         resources->text_highlight = BGREY;
97         // COPIED FROM DEFAULT THEME <<1
99         resources->bg_color = FGGREY;                   //bg of windows (where no pics...
100         // COPIED FROM DEFAULT THEME 2>>
101         resources->default_text_color = 0x000000;
102         resources->menu_title_text    = 0x000000;
103         resources->popup_title_text   = 0x000000;
104         // COPIED FROM DEFAULT THEME <<2
105         resources->menu_item_text = BLACK;
107         // COPIED FROM DEFAULT THEME 3>>
108         resources->generic_button_margin = 15;          //Length of buttons and color tabs
109         resources->pot_needle_color = resources->text_default;
110         resources->pot_offset = 0;
111         resources->progress_text = resources->text_default;
112         // COPIED FROM DEFAULT THEME <<3
113         resources->meter_font = SMALLFONT;  //Specific to BD
114         resources->meter_font_color = BLACK;
115         resources->meter_title_w = 20;  //Specific to BD
116         resources->meter_3d = 0;   //Specific to BD
118         resources->menu_light = FTGREY;         //menu
119         resources->menu_highlighted = BGREY;            //NMBLUE
120         resources->menu_down = BGREY;
121         resources->menu_up = FGGREY;
122         resources->menu_shadow = FTGREY;
124         // MIHA: COPIED FROM DEFAULT THEME M1>>
125         resources->popupmenu_margin = 10;          // ugly
126         resources->popupmenu_triangle_margin = 15; // ugly
127         // MIHA: COPIED FROM DEFAULT THEME M1<<
130         // COPIED FROM DEFAULT THEME 4>>
131         resources->listbox_title_color = 0x000000;
133         resources->listbox_title_margin = 0;
134         resources->listbox_title_hotspot = 5;  // No. of pixels around the borders to allow dragging
135         resources->listbox_border1 = 0x4a484a; // (top outer)
136         resources->listbox_border2 = 0x000000; // (top inner)
137         resources->listbox_border3 = 0xffe200; // (bottom inner)
138         resources->listbox_border4 = 0xffffff; // (bottom outer)
139         resources->listbox_highlighted = 0xeee6ee;
140         resources->listbox_inactive = 0xffffffff; // (background)
141         resources->listbox_bg = new_image("list_bg.png"); //NOT COPIED!
142         resources->listbox_text = 0x000000;
143         resources->listbox_selected = BGREY;
145         resources->dirbox_margin = 50;
146         resources->filebox_margin = 101;
147         resources->file_color = 0x000000;
148         resources->directory_color = DKBLUE;
149         // COPIED FROM DEFAULT THEME <<4
150         resources->menu_highlighted_fontcolor = DDBLUE;    //Specific to BD
153 //There are differences here, but we won't change until the end.        
154 //Specific to BD
155         resources->filebox_icons_images = new_image_set(3,
156                 "file_icons_up.png",
157                 "file_icons_uphi.png",
158                 "file_icons_dn.png");
160         resources->filebox_text_images = new_image_set(3,
161                 "file_text_up.png",
162                 "file_text_uphi.png",
163                 "file_text_dn.png");
165         resources->filebox_newfolder_images = new_image_set(3,
166                 "file_newfolder_up.png",
167                 "file_newfolder_uphi.png",
168                 "file_newfolder_dn.png");
170         resources->filebox_updir_images = new_image_set(3,
171                 "file_updir_up.png",
172                 "file_updir_uphi.png",
173                 "file_updir_dn.png");
175         resources->filebox_delete_images = new_image_set(3,
176                 "file_delete_up.png",
177                 "file_delete_uphi.png",
178                 "file_delete_dn.png");
180         resources->filebox_reload_images = new_image_set(3,
181                 "file_reload_up.png",
182                 "file_reload_uphi.png",
183                 "file_reload_dn.png");
186         resources->filebox_descend_images = new_image_set(3,
187                 "file_openfolder_up.png",
188                 "file_openfolder_uphi.png", 
189                 "file_openfolder_dn.png");
190 //Specific to BD
192         resources->usethis_button_images = 
193                 resources->ok_images = new_button("ok.png",
194                 "generic_up.png", 
195                 "generic_hi.png", 
196                 "generic_dn.png");
198         new_button("ok.png",
199                 "generic_up.png", 
200                 "generic_hi.png", 
201                 "generic_dn.png",
202                 "new_ok_images");
204         resources->cancel_images = new_button("cancel.png",
205                 "generic_up.png", 
206                 "generic_hi.png", 
207                 "generic_dn.png");
209         new_button("cancel.png",
210                 "generic_up.png", 
211                 "generic_hi.png", 
212                 "generic_dn.png",
213                 "new_cancel_images");
215         resources->bar_data = new_image("bar", "bar.png");
218         resources->min_menu_w = 0;
219         resources->menu_popup_bg = 0;  // if (0) use menu_light, menu_up, menu_shadow
220         resources->menu_item_bg = 0;   // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
221         resources->menu_bar_bg = 0;    // if (0) use menu_light, menu_shadow, and height of MEDIUMFONT + 8
222         resources->menu_title_bg =  0; // if (0) use menu_light, menu_highlighted, menu_down, menu_shadow
225         resources->popupmenu_images = 0; // if (0) get_resources()->use generic_button_images
227         resources->toggle_highlight_bg = 0; // if (0) "Draw a plain box" as per bctoggle.C
229         resources->generic_button_images = new_image_set(3, 
230                         "generic_up.png", 
231                         "generic_hi.png", 
232                         "generic_dn.png");
233         resources->horizontal_slider_data = new_image_set(6,
234                         "hslider_fg_up.png",
235                         "hslider_fg_hi.png",
236                         "hslider_fg_dn.png",
237                         "hslider_bg_up.png",
238                         "hslider_bg_hi.png",
239                         "hslider_bg_dn.png");
240         resources->vertical_slider_data = new_image_set(6,
241                         "vertical_slider_fg_up.png",
242                         "vertical_slider_fg_hi.png",
243                         "vertical_slider_fg_dn.png",
244                         "vertical_slider_bg_up.png",
245                         "vertical_slider_bg_hi.png",
246                         "vertical_slider_bg_dn.png");
247         resources->progress_images = new_image_set(2,
248                         "progress_bg.png",
249                         "progress_hi.png");
250         resources->tumble_data = new_image_set(4,
251                 "tumble_up.png",
252                 "tumble_hi.png",
253                 "tumble_bottom.png",
254                 "tumble_top.png");
255         resources->listbox_button = new_image_set(4,
256                 "listbox_button_up.png",
257                 "listbox_button_hi.png",
258                 "listbox_button_dn.png",
259                 "listbox_button_disabled.png"); // probably need to make this for the suv theme
260         resources->listbox_column = new_image_set(3,
261                 "column_up.png",
262                 "column_hi.png",
263                 "column_dn.png");
264         resources->listbox_expand = new_image_set(5,
265                 "listbox_expandup.png",
266                 "listbox_expanduphi.png",
267                 "listbox_expandchecked.png",
268                 "listbox_expanddn.png",
269                 "listbox_expandcheckedhi.png");
270         resources->listbox_up = new_image("listbox_up.png");
271         resources->listbox_dn = new_image("listbox_dn.png");
272         resources->pan_data = new_image_set(7,
273                         "pan_up.png", 
274                         "pan_hi.png", 
275                         "pan_popup.png", 
276                         "pan_channel.png", 
277                         "pan_stick.png", 
278                         "pan_channel_small.png", 
279                         "pan_stick_small.png");
280         resources->pan_text_color = WHITE;
282         resources->pot_images = new_image_set(3,
283                 "pot_up.png",
284                 "pot_hi.png",
285                 "pot_dn.png");   //Graphic Copied from default. Improve!!
287         resources->checkbox_images = new_image_set(5,
288                 "checkbox_up.png",
289                 "checkbox_uphi.png",
290                 "checkbox_checked.png",
291                 "checkbox_down.png",
292                 "checkbox_checkedhi.png");
294         resources->radial_images = new_image_set(5,
295                 "radial_up.png",
296                 "radial_uphi.png",
297                 "radial_checked.png",
298                 "radial_down.png",
299                 "radial_checkedhi.png");
301         resources->xmeter_images = new_image_set(6, 
302                 "xmeter_normal.png",
303                 "xmeter_green.png",
304                 "xmeter_red.png",
305                 "xmeter_yellow.png",
306                 "xmeter_normal.png",
307                 "xmeter_over.png");
308         resources->ymeter_images = new_image_set(6, 
309                 "ymeter_normal.png",
310                 "ymeter_green.png",
311                 "ymeter_red.png",
312                 "ymeter_yellow.png",
313                 "ymeter_normal.png",
314                 "ymeter_over.png");
316         resources->hscroll_data = new_image_set(10,
317                         "hscroll_center_up.png",
318                         "hscroll_center_hi.png",
319                         "hscroll_center_dn.png",
320                         "hscroll_bg.png",
321                         "hscroll_back_up.png",
322                         "hscroll_back_hi.png",
323                         "hscroll_back_dn.png",
324                         "hscroll_fwd_up.png",
325                         "hscroll_fwd_hi.png",
326                         "hscroll_fwd_dn.png");
328         resources->vscroll_data = new_image_set(10,
329                         "vscroll_center_up.png",
330                         "vscroll_center_hi.png",
331                         "vscroll_center_dn.png",
332                         "vscroll_bg.png",
333                         "vscroll_back_up.png",
334                         "vscroll_back_hi.png",
335                         "vscroll_back_dn.png",
336                         "vscroll_fwd_up.png",
337                         "vscroll_fwd_hi.png",
338                         "vscroll_fwd_dn.png");
340 //Graphic Copied from default. Improve!!
341 //To make this work better, it may be neccessary to replace new_button with new_image_set
342         new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
343         new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
344         new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
345         new_button("swap_extents.png",
346                 "editpanel_up.png",
347                 "editpanel_hi.png",
348                 "editpanel_dn.png",
349                 "swap_extents");
350 //swap_extents.png not copied
352 // Record windows
353         rgui_batch = new_image("recordgui_batch.png");
354         rgui_controls = new_image("recordgui_controls.png");
355         rgui_list = new_image("recordgui_list.png");
356         rmonitor_panel = new_image("recordmonitor_panel.png");
357         rmonitor_meters = new_image("recordmonitor_meters.png");
360 //COPY START >>
361         preferences_category_overlap = 0;
362         preferencescategory_x = 5;
363         preferencescategory_y = 5;
364         preferencestitle_x = 5;
365         preferencestitle_y = 10;
366         preferencesoptions_x = 5;
367         preferencesoptions_y = 0;
368 //COPY END<<
370 // MWindow
371 //COPY START >>
372         message_normal = resources->text_default;
373         audio_color = BLACK;
374         mtransport_margin = 11;
375         toggle_margin = 11;
376 //COPY END >>
378         new_image("mbutton_left","mbutton_left.png");
379         new_image("mbutton_right","mbutton_right.png");
380         new_image("timebar_bg", "timebar_bg.png");
381         new_image("timebar_brender", "timebar_brender.png");
382         new_image("clock_bg", "mclock.png");
383         new_image("patchbay_bg", "patchbay_bg.png");
384         new_image("tracks_bg","tracks_bg.png");
385         new_image("zoombar_left","zoombar_left.png");
386         new_image("zoombar_right","zoombar_right.png");
387         new_image("statusbar_left","statusbar_left.png");
388         new_image("statusbar_right","statusbar_right.png");
390         //Here an improvement may be needed
391         new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
392         new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
394 //Graphic Copied from default. Improve!!        
395         new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
396         new_image("mode_add", "mode_add.png");
397         new_image("mode_divide", "mode_divide.png");
398         new_image("mode_multiply", "mode_multiply.png");
399         new_image("mode_normal", "mode_normal.png");
400         new_image("mode_replace", "mode_replace.png");
401         new_image("mode_subtract", "mode_subtract.png");
402         new_image("mode_max", "mode_max.png");
404 //Graphic Copied from default. Improve!!        
405         new_toggle("plugin_on.png", 
406                 "pluginbutton_hi.png", 
407                 "pluginbutton_hi.png", 
408                 "pluginbutton_select.png", 
409                 "pluginbutton_dn.png", 
410                 "pluginbutton_selecthi.png", 
411                 "plugin_on");
413 //Graphic Copied from default. Improve!!
414         new_toggle("plugin_show.png", 
415                 "plugin_show.png", 
416                 "pluginbutton_hi.png", 
417                 "pluginbutton_select.png", 
418                 "pluginbutton_dn.png", 
419                 "pluginbutton_selecthi.png", 
420                 "plugin_show");
422 // CWindow
423         new_image("cpanel_bg", "cpanel_bg.png");
424         new_image("cbuttons_left", "cbuttons_left.png");
425         new_image("cbuttons_right", "cbuttons_right.png");
426         new_image("cmeter_bg", "cmeter_bg.png");
428 // VWindow
429         new_image("vbuttons_left", "vbuttons_left.png");
430         new_image("vbuttons_right","vbuttons_right.png");
431         new_image("vmeter_bg","vmeter_bg.png");
433         new_image("preferences_bg", "preferences_bg.png");
436         new_image("new_bg", "new_bg.png");
437         new_image("setformat_bg", "setformat_bg2.png");
440         timebar_view_data = new_image("timebar_view.png");
442 // x, y of Format dialog box
443         setformat_w = 600;
444         setformat_h = 560;
445         setformat_x1 = 15;
446         setformat_x2 = 100;
448         setformat_x3 = 315;
449         setformat_x4 = 415;
450         setformat_y1 = 20;
451         setformat_y2 = 85;
452         setformat_y3 = 125;
453         setformat_margin = 30;
454         setformat_channels_x = 25;
455         setformat_channels_y = 242;
456         setformat_channels_w = 250;
457         setformat_channels_h = 250;
459         loadfile_pad = 70;
460         browse_pad = 20;
462 //This buttons miss a bit. May need to be improved
463         new_image_set("playpatch_data", 
464                 5,
465                 "playpatch_up.png",
466                 "playpatch_hi.png",
467                 "playpatch_checked.png",
468                 "playpatch_dn.png",
469                 "playpatch_checkedhi.png");
471         new_image_set("recordpatch_data", 
472                 5,
473                 "recordpatch_up.png",
474                 "recordpatch_hi.png",
475                 "recordpatch_checked.png",
476                 "recordpatch_dn.png",
477                 "recordpatch_checkedhi.png");
479         new_image_set("gangpatch_data", 
480                 5,
481                 "gangpatch_up.png",
482                 "gangpatch_hi.png",
483                 "gangpatch_checked.png",
484                 "gangpatch_dn.png",
485                 "gangpatch_checkedhi.png");
487         new_image_set("drawpatch_data", 
488                 5,
489                 "drawpatch_up.png",
490                 "drawpatch_hi.png",
491                 "drawpatch_checked.png",
492                 "drawpatch_dn.png",
493                 "drawpatch_checkedhi.png");
496         new_image_set("mutepatch_data", 
497                 5,
498                 "mutepatch_up.png",
499                 "mutepatch_hi.png",
500                 "mutepatch_checked.png",
501                 "mutepatch_dn.png",
502                 "mutepatch_checkedhi.png");
504         new_image_set("expandpatch_data", 
505                 5,
506                 "expandpatch_up.png",
507                 "expandpatch_hi.png",
508                 "expandpatch_checked.png",
509                 "expandpatch_dn.png",
510                 "expandpatch_checkedhi.png");
512         build_icons();
513         build_bg_data();
514         build_overlays();
518 //Graphic Copied from default. Improve!! -> See outpoint.png/inpoint.png
519         out_point = new_image_set(5,
520                 "out_up.png", 
521                 "out_hi.png", 
522                 "out_checked.png", 
523                 "out_dn.png", 
524                 "out_checkedhi.png");
525         in_point = new_image_set(5,
526                 "in_up.png", 
527                 "in_hi.png", 
528                 "in_checked.png", 
529                 "in_dn.png", 
530                 "in_checkedhi.png");
532 //Graphic Copied from default. Improve!! -> see label.png
533         label_toggle = new_image_set(5,
534                 "labeltoggle_up.png", 
535                 "labeltoggle_uphi.png", 
536                 "label_checked.png", 
537                 "labeltoggle_dn.png", 
538                 "label_checkedhi.png");
541         statusbar_cancel_data = new_image_set(3,
542                 "statusbar_cancel_up.png",
543                 "statusbar_cancel_hi.png",
544                 "statusbar_cancel_dn.png");
546 //Graphic Copied from default. Improve!! -> make transparent edges
547         VFrame *editpanel_up = new_image("editpanel_up.png");
548         VFrame *editpanel_hi = new_image("editpanel_hi.png");
549         VFrame *editpanel_dn = new_image("editpanel_dn.png");
550         VFrame *editpanel_checked = new_image("editpanel_checked.png");
551         VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
553 //Graphic Copied from default. Improve!!
554         new_image("panel_divider", "panel_divider.png");
555         new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
556         new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
557         new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
560         new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
561         new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
562         new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
563         new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
564         new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
565 //      indelete_data = new_button("clearinpoint.png", editpanel_up, editpanel_hi, editpanel_dn);   //Specific to BD 
566         new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
567         new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
568         new_button("magnifyS.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "magnify_button");
569         new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
570         new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
571         new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
572 //      outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn);   //Specific to BD
573         over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
574         overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
575         new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
576         new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
577         new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
578         new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
579         splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
580         new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
581         new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
582         new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
583         new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
584         new_button("wrench.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "wrench");
586 //Make transparent borders
587 #define TRANSPORT_LEFT_IMAGES  "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
588 #define TRANSPORT_CENTER_IMAGES  "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
589 #define TRANSPORT_RIGHT_IMAGES  "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
590 //      build_transport(duplex_data, get_image_data("duplex.png"), transport_bg, 1);    //Specific to BD
591         new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
592         new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
593         new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
594         new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
595         new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
596         new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
597 //Graphic Copied from default. Improve!!        
598         new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
599         new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
600 //Graphic Copied from default. Improve!!
601         new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
602         new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
603         new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
604         new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
605         new_button("stoprec.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
609 // CWindow icons
610 //Graphic Copied from default. Improve!!
611         new_image("cwindow_inactive", "cwindow_inactive.png");
612         new_image("cwindow_active", "cwindow_active.png");
615         new_image_set("batch_render_start",
616                 3,
617                 "batchstart_up.png",
618                 "batchstart_hi.png",
619                 "batchstart_dn.png");
620         new_image_set("batch_render_stop",
621                 3,
622                 "batchstop_up.png",
623                 "batchstop_hi.png",
624                 "batchstop_dn.png");
625         new_image_set("batch_render_cancel",
626                 3,
627                 "batchcancel_up.png",
628                 "batchcancel_hi.png",
629                 "batchcancel_dn.png");
631 // MIHA: COPIED FROM DEFAULT THEME M2>>
632 //Graphic Copied from default. Improve!!
633         new_image_set("category_button",
634                 3,
635                 "preferencesbutton_dn.png",
636                 "preferencesbutton_dnhi.png",
637                 "preferencesbutton_dnlo.png");
639         new_image_set("category_button_checked",
640                 3,
641                 "preferencesbutton_up.png",
642                 "preferencesbutton_uphi.png",
643                 "preferencesbutton_dnlo.png");
644 // MIHA: COPIED FROM DEFAULT THEME M2<<
647         new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
648         new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
649         new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
650         new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
651         new_toggle("blank30x30.png", 
652                    new_image("locklabels_locked.png"),
653                    new_image("locklabels_lockedhi.png"),
654                    new_image("locklabels_unlocked.png"),
655                    new_image("locklabels_dn.png"), // can't have seperate down for each!!??
656                    new_image("locklabels_unlockedhi.png"),
657                    "locklabels");
659 // MIHA: COPIED FROM DEFAULT THEME M3>>
660 //Is that necessary??
661         VFrame *cpanel_up = new_image("editpanel_up.png");
662         VFrame *cpanel_hi = new_image("editpanel_hi.png");
663         VFrame *cpanel_dn = new_image("editpanel_dn.png");
664         VFrame *cpanel_checked = new_image("editpanel_checked.png");
665         VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
667         new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
668         new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
669         new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
670         new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
671         new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
672         new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
673         new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
674         new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
675         new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
677 // MIHA: COPIED FROM DEFAULT THEME M3<<
679 // Maybe we can live without the commented part
680 // MIHA: Commented out in favor of default version M4>>
681 //      new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"camera");
682 //      new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"crop");
683 //      new_toggle("eyedrop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"eyedrop");
684 //      new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"magnify");
685 //      new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"mask");
686 //      new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"projector");
687 //      new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"protect");
688 //      new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"titlesafe");
689 //      new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi,"tool");
690 // MIHA: Commented out in favor of default version M4<<
693         flush_images();
695         title_font = MEDIUMFONT;
696         title_color = BLACK;
697         recordgui_fixed_color = BLACK;
698         recordgui_variable_color = RED;
699         resources->medium_font = N_("-*-helvetica-medium-r-normal-*-14-*");
701         channel_position_color = MEYELLOW;
702         resources->meter_title_w = 25;
704         // (asset) edit info text color
705         edit_font_color = BLACK;
707 //Specific to BD
708         //clock
709         resources->draw_clock_background = 0;
711 //Specific to BD
712         //buttons
713         resources->button_highlighted = LTGREY;
714         resources->button_uphighlighted = DKGREY;
715         resources->button_light = WHITE;   
716         resources->button_up = LTGREY;
717         resources->button_shadow = DKGREY;
718         resources->button_down = MDGREY;
720 //Specific to BD
721         //listbox
723         //labels
724         resources->label_images = new_image_set(5,
725                 "radial_up.png", 
726                 "radial_uphi.png", 
727                 "radial_checked.png", 
728                 "radial_down.png", 
729                 "radial_checkedhi.png");
731         /*      resources->type_to_icon = new_image_set(5,
732             "file_folder.png",
733                 "file_unknown.png",
734                 "file_film.png",
735                 "file_sound.png",
736                 "file_column.png"); 
737    */
739 //Specific to BD
740         resources->audiovideo_color = DKGREY;
742 //Specific to BD - Copied from Blonde, replace letters
743         //clock font
744         resources->medium_7segment =  new_image_set(20,
745                 "black_0.png", "black_1.png",  "black_2.png",  "black_3.png",  "black_4.png",  "black_5.png",  "black_6.png",  "black_7.png",  "black_8.png",  "black_9.png",  "black_colon.png",    "black_period.png",    "black_a.png",  "black_b.png",  "black_c.png",  "black_d.png",  "black_e.png",  "black_f.png",  "black_space.png",  "black_dash.png");      
747 //Specific to BD
748         //tooltip
749         resources->tooltip_bg_color = 0xfff7e3;
752 //CWINDOW is probalby ComposerWindow, V=ViewerWindow
753 #define CWINDOW_METER_MARGIN 5
754 #define VWINDOW_METER_MARGIN 5
756 //Specific to BD
757 void BlueDotTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
759 // Position of menu buttons (start, stop, ff, etc.)
760         mbuttons_x = 0;
761         mbuttons_y = gui->mainmenu->get_h();
762         mbuttons_w = w;
763         mbuttons_h = get_image("mbutton_left")->get_h();
764         mclock_x = 20;          //x position of digits in clock window
765         mclock_y = mbuttons_y + 1 + mbuttons_h + CWINDOW_METER_MARGIN;
766         mclock_w = get_image("clock_bg")->get_w() - 72;
767         mclock_h = get_image("clock_bg")->get_h();
769 //Time bar - coordinates and dimensions
770         mtimebar_x = get_image("patchbay_bg")->get_w();
771         mtimebar_y = mbuttons_y + mbuttons_h;
772         mtimebar_w = w - mtimebar_x;
773         mtimebar_h = get_image("timebar_bg")->get_h();
775 // Zooming tracks - just above the status bar
776         mzoom_h =  get_image("zoombar_left")->get_h();
777         mzoom_x = 0;
778         mzoom_y = h - get_image("statusbar_left")->get_h() - mzoom_h;
779         mzoom_w = w;
781 // Status bar at the very bottom of the screen.
782         mstatus_x = 0;
783 //      mstatus_y = mzoom_y + mzoom_h;
784         mstatus_y = mzoom_y + mzoom_h;
785         mstatus_w = w;
786         mstatus_h = h - mstatus_y;
787         mstatus_message_x = 10;
788         mstatus_message_y = 8;
789         mstatus_progress_w = 230;
790         mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
791         mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
793 //Specific to BD
794         mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
795         mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
797 //This is Patch Bay - on the left side of the tracks.
798         patchbay_x = 0;
799         patchbay_y = mtimebar_y + mtimebar_h;
800         patchbay_w = get_image("patchbay_bg")->get_w();
801         patchbay_h = mzoom_y - patchbay_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
803 //Canvas where audio and video tracks are
804         mcanvas_x = patchbay_x + patchbay_w;
805         mcanvas_y = mtimebar_y + mtimebar_h;
806         mcanvas_w = w - patchbay_w - BC_ScrollBar::get_span(SCROLL_VERT);
807         mcanvas_h = patchbay_h;
808 //COPIED START
809         mhscroll_x = 0;
810         mhscroll_y = mzoom_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
811         mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT);
812         mvscroll_x = mcanvas_x + mcanvas_w;
813         mvscroll_y = mcanvas_y;
814         mvscroll_h = mcanvas_h;
815 //COPIED END
818 void BlueDotTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
820         if(cwindow_controls)
821         {
822 SET_TRACE
823                 ccomposite_x = 0;
824                 ccomposite_y = 5;
825                 ccomposite_w = get_image("cpanel_bg")->get_w();
826                 ccomposite_h = mwindow->session->cwindow_h - 
827                         get_image("cbuttons_left")->get_h();
828                 cslider_x = 5;
829                 cslider_y = ccomposite_h + 23;
830                 cedit_x = 10;
831                 cedit_y = cslider_y + 17;
832                 ctransport_x = 10;
833                 ctransport_y = mwindow->session->cwindow_h - 
834                         get_image_set("autokeyframe")[0]->get_h();
835                 ccanvas_x = ccomposite_x + ccomposite_w;
836                 ccanvas_y = 0;
837                 ccanvas_h = ccomposite_h;
838 //COPIED START
839                 cstatus_x = 453;
840                 cstatus_y = mwindow->session->cwindow_h - 66;
841 //COPIED END
842                 if(mwindow->edl->session->cwindow_meter)
843                 {
844                         cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels, 
845                                 mwindow->edl->session->cwindow_meter);
846                         ccanvas_w = cmeter_x - ccanvas_x - 5;
847                 }
848                 else
849                 {
850                         cmeter_x = mwindow->session->cwindow_w;
851                         ccanvas_w = cmeter_x - ccanvas_x;
852                 }
853 SET_TRACE
854         }
855         else
856         {
857 SET_TRACE
858                 ccomposite_x = -get_image("cpanel_bg")->get_w();
859                 ccomposite_y = 0;
860                 ccomposite_w = get_image("cpanel_bg")->get_w();
861                 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
863                 cslider_x = 5;
864                 cslider_y = mwindow->session->cwindow_h;
865                 cedit_x = 10;
866                 cedit_y = cslider_y + 17;
867                 ctransport_x = 10;
868                 ctransport_y = cedit_y + 40;
869                 ccanvas_x = 0;
870                 ccanvas_y = 0;
871                 ccanvas_w = mwindow->session->cwindow_w;
872                 ccanvas_h = mwindow->session->cwindow_h;
873                 cmeter_x = mwindow->session->cwindow_w;
874 //COPIED START
875                 cstatus_x = mwindow->session->cwindow_w;
876                 cstatus_y = mwindow->session->cwindow_h;
877 //COPIED END
878 SET_TRACE
879         }
881 SET_TRACE
883         czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
884         czoom_y = ctransport_y + 5;
887         cmeter_y = 5;
888         cmeter_h = mwindow->session->cwindow_h - cmeter_y;
890 //Specific to BD
891         cslider_w = ccanvas_x + ccanvas_w - cslider_x;
892         ctimebar_x = ccanvas_x;
893         ctimebar_y = ccanvas_y + ccanvas_h;
894         ctimebar_w = ccanvas_w;
895         ctimebar_h = 16;
898 // Not used
899         ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
900         ctime_y = ctransport_y;
901         cdest_x = czoom_x;
902         cdest_y = czoom_y + 30;
903 SET_TRACE
908 void BlueDotTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
910         
913 // COPIED START--------
914 void BlueDotTheme::get_rmonitor_sizes(int do_audio, 
915         int do_video,
916         int do_channel,
917         int do_interlace,
918         int do_avc,
919         int audio_channels)
921         Theme::get_rmonitor_sizes(do_audio, 
922                 do_video,
923                 do_channel,
924                 do_interlace,
925                 do_avc,
926                 audio_channels);
927         if(!do_video && do_audio)
928         {
929                 rmonitor_meter_y -= 30;
930                 rmonitor_meter_h += 30;
931         }
933 // COPIED END--------
936 void BlueDotTheme::get_vwindow_sizes(VWindowGUI *gui)
938         vmeter_y = 5;
939         vmeter_h = mwindow->session->vwindow_h - cmeter_y;
940         vcanvas_x = 0;
941         vcanvas_y = 0;
942         vcanvas_h = mwindow->session->vwindow_h - get_image("vbuttons_left")->get_h();
944         if(mwindow->edl->session->vwindow_meter)
945         {
946                 vmeter_x = mwindow->session->vwindow_w - 
947                         VWINDOW_METER_MARGIN - 
948                         MeterPanel::get_meters_width(mwindow->edl->session->audio_channels, 
949                         mwindow->edl->session->vwindow_meter);
950                 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
951         }
952         else
953         {
954                 vmeter_x = mwindow->session->vwindow_w;
955                 vcanvas_w = mwindow->session->vwindow_w;
956         }
958         vtimebar_x = vcanvas_x;
959         vtimebar_y = vcanvas_y + vcanvas_h;
960         vtimebar_w = vcanvas_w;
961         vtimebar_h = 16;
963 //Specific to BD
964         vslider_x = 10;
965         vslider_y = vtimebar_y + 25;
966         vslider_w = vtimebar_w - vslider_x;
967         vedit_x = 10;
968         vedit_y = vslider_y + 17;
969         vtransport_x = 10;
970         vtransport_y = mwindow->session->vwindow_h - 
971                 get_image_set("autokeyframe")[0]->get_h();
972         vtime_x = 373;
973         vtime_y = vedit_y + 7;
974         vtime_w = 100;
979         vzoom_x = vtime_x + 150;
980         vzoom_y = vtime_y;
981         vsource_x = vtime_x + 50;
982         vsource_y = vtransport_y + 5;
989 void BlueDotTheme::build_icons()
991         new_image("mwindow_icon", "heroine_icon.png");
992         new_image("vwindow_icon", "heroine_icon.png");
993         new_image("cwindow_icon", "heroine_icon.png");
994         new_image("awindow_icon", "heroine_icon.png");
995         new_image("record_icon", "heroine_icon.png");
996         new_image("clip_icon", "clip_icon.png");
1001 void BlueDotTheme::build_bg_data()
1003 // Audio settings
1004         channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
1005         channel_position_data = new VFrame(get_image_data("channel_position.png"));
1007 // Track bitmaps
1008         new_image("resource1024", "resource1024.png");
1009         new_image("resource512", "resource512.png");
1010         new_image("resource256", "resource256.png");
1011         new_image("resource128", "resource128.png");
1012         new_image("resource64", "resource64.png");
1013         new_image("resource32", "resource32.png");
1014 //Graphic Copied from default. Improve!!
1015         new_image("plugin_bg_data", "plugin_bg.png");
1016         new_image("title_bg_data", "title_bg.png");
1017         new_image("vtimebar_bg_data", "vwindow_timebar.png");
1021 //Graphic Copied from default. Improve!!  -- use your imagination
1022 void BlueDotTheme::build_overlays()
1024         keyframe_data = new VFrame(get_image_data("keyframe3.png"));
1025         camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
1026         maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
1027         modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
1028         pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
1029         projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
1040 void BlueDotTheme::draw_rwindow_bg(RecordGUI *gui)
1042 //      int y;
1043 //      int margin = 50;
1044 //      int margin2 = 80;
1045 //      gui->draw_9segment(recordgui_batch_x - margin,
1046 //              0,
1047 //              mwindow->session->rwindow_w - recordgui_status_x + margin,
1048 //              recordgui_buttons_y,
1049 //              rgui_batch);
1050 //      gui->draw_3segmenth(recordgui_options_x - margin2,
1051 //              recordgui_buttons_y - 5,
1052 //              mwindow->session->rwindow_w - recordgui_options_x + margin2,
1053 //              rgui_controls);
1054 //      y = recordgui_buttons_y - 5 + rgui_controls->get_h();
1055 //      gui->draw_9segment(0,
1056 //              y,
1057 //              mwindow->session->rwindow_w,
1058 //              mwindow->session->rwindow_h - y,
1059 //              rgui_list);
1062 void BlueDotTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
1064 //      int margin = 45;
1065 //      int panel_w = 300;
1066 //      int x = rmonitor_meter_x - margin;
1067 //      int w = mwindow->session->rmonitor_w - x;
1068 //      if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
1069 //      gui->clear_box(0, 
1070 //              0, 
1071 //              mwindow->session->rmonitor_w, 
1072 //              mwindow->session->rmonitor_h);
1073 //      gui->draw_9segment(x,
1074 //              0,
1075 //              w,
1076 //              mwindow->session->rmonitor_h,
1077 //              rmonitor_meters);
1084 //Specific to BD
1085 void BlueDotTheme::draw_mwindow_bg(MWindowGUI *gui)
1087 // Button bar (not menu bar)
1088 #define MBUTTONS_RIGHTEDGE 290 + 11 + 2*30 + 11 + 2*30 + 11 + 14*30
1089         gui->draw_3segmenth(mbuttons_x, 
1090                 mbuttons_y, 
1091                 MBUTTONS_RIGHTEDGE, 
1092                 get_image("mbutton_left"),
1093                 0);
1094         gui->draw_3segmenth(mbuttons_x + MBUTTONS_RIGHTEDGE, 
1095                 mbuttons_y, 
1096                 mbuttons_w - 500, 
1097                 get_image("mbutton_right"));
1099 // MIHA: COPIED FROM DEFAULT THEME M6>>
1100         gui->draw_vframe(get_image("panel_divider"),
1101                 mbuttons_x + 290 + 5,
1102                 mbuttons_y - 1);
1104         gui->draw_vframe(get_image("panel_divider"),
1105                 mbuttons_x + 290 + 11 + 30 * 2 + 5,
1106                 mbuttons_y - 1);
1108         gui->draw_vframe(get_image("panel_divider"),
1109                 mbuttons_x + 290 + 11 +  30 * 2 + 11 + 30 * 2 + 5,
1110                 mbuttons_y - 1);
1113 // MIHA: COPIED FROM DEFAULT THEME M6<<
1115 //Specific to BD
1116 // Clock (here the background of the clock is drawn)
1117         gui->draw_3segmenth(0, 
1118                 mbuttons_y + get_image("mbutton_left")->get_h(),
1119                 get_image("patchbay_bg")->get_w(), 
1120                 get_image("clock_bg"));
1122 //Specific to BD
1123 // Patchbay
1124         gui->draw_3segmentv(patchbay_x, 
1125                 patchbay_y, 
1126                 patchbay_h, 
1127                 get_image("patchbay_bg"));
1129 //patchbay_h + 10, 
1132 //Specific to BD
1133 //Drawing of Track's canvas
1134         gui->draw_9segment(mcanvas_x, 
1135                 mcanvas_y, 
1136                 mcanvas_w, 
1137                 patchbay_h + 26, 
1138                 get_image("tracks_bg"));
1139 //patchbay_h + 10, 
1141 // Timebar
1142         gui->draw_3segmenth(mtimebar_x, 
1143                 mtimebar_y, 
1144                 mtimebar_w, 
1145                 get_image("timebar_bg"));
1147 //Specific to BD
1148 // Zoombar
1149 #define ZOOMBAR_CENTER 1100
1150         gui->draw_3segmenth(mzoom_x, 
1151                 mzoom_y,
1152                 ZOOMBAR_CENTER, 
1153                 get_image("zoombar_left"));
1154         if(mzoom_w > ZOOMBAR_CENTER)
1155                 gui->draw_3segmenth(mzoom_x + ZOOMBAR_CENTER, 
1156                         mzoom_y, 
1157                         mzoom_w - ZOOMBAR_CENTER, 
1158                         get_image("zoombar_right"));
1161 // Status
1162         gui->draw_3segmenth(mstatus_x, 
1163                 mstatus_y,
1164                 ZOOMBAR_CENTER, 
1165                 get_image("statusbar_left"));
1167         if(mstatus_w > ZOOMBAR_CENTER)
1168           gui->draw_3segmenth(mstatus_x + ZOOMBAR_CENTER, 
1169                               mstatus_y,
1170                               mstatus_w - ZOOMBAR_CENTER, 
1171                               get_image("statusbar_right"));
1175 void BlueDotTheme::draw_cwindow_bg(CWindowGUI *gui)
1177 //Specific to BD
1178         const int button_division = 530;
1179         gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
1180         gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
1181         if(mwindow->edl->session->cwindow_meter)
1182         {
1183                 gui->draw_3segmenth(button_division, 
1184                         ccomposite_h, 
1185                         cmeter_x - CWINDOW_METER_MARGIN - button_division, 
1186                         get_image("cbuttons_right"));
1187                 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN, 
1188                         0, 
1189                         mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN, 
1190                         mwindow->session->cwindow_h, 
1191                         get_image("cmeter_bg"));
1192         }
1193         else
1194         {
1195                 gui->draw_3segmenth(button_division, 
1196                         ccomposite_h, 
1197                         cmeter_x - CWINDOW_METER_MARGIN - button_division + 100, 
1198                         get_image("cbuttons_right"));
1199         }
1202 void BlueDotTheme::draw_vwindow_bg(VWindowGUI *gui)
1204 //Specific to BD
1205         const int button_division = 535;
1206         gui->draw_3segmenth(0, 
1207                 vcanvas_h, 
1208                 button_division, 
1209                 get_image("vbuttons_left"));
1210         if(mwindow->edl->session->vwindow_meter)
1211         {
1212                 gui->draw_3segmenth(button_division, 
1213                         vcanvas_h, 
1214                         vmeter_x - VWINDOW_METER_MARGIN - button_division, 
1215                         get_image("vbuttons_right"));
1216                 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
1217                         0,
1218                         mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN, 
1219                         mwindow->session->vwindow_h, 
1220                         get_image("vmeter_bg"));
1221         }
1222         else
1223         {
1224                 gui->draw_3segmenth(button_division, 
1225                         vcanvas_h, 
1226                         vmeter_x - VWINDOW_METER_MARGIN - button_division + 100, 
1227                         get_image("vbuttons_right"));
1228         }
1231 void BlueDotTheme::get_preferences_sizes()
1235 //Specific to BD
1236 void BlueDotTheme::draw_preferences_bg(PreferencesWindow *gui)
1238         gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, get_image("preferences_bg"));
1241 void BlueDotTheme::get_new_sizes(NewWindow *gui)
1245 void BlueDotTheme::draw_new_bg(NewWindow *gui)
1247         gui->draw_vframe(get_image("new_bg"), 0, 0);
1250 void BlueDotTheme::draw_setformat_bg(SetFormatWindow *gui)
1252         gui->draw_vframe(get_image("setformat_bg"), 0, 0);