00001 #include "bcsignals.h"
00002 #include "clip.h"
00003 #include "cwindowgui.h"
00004 #include "bluedottheme.h"
00005 #include "edl.h"
00006 #include "edlsession.h"
00007 #include "mainmenu.h"
00008 #include "mainsession.h"
00009 #include "mbuttons.h"
00010 #include "meterpanel.h"
00011 #include "mwindow.h"
00012 #include "mwindowgui.h"
00013 #include "new.h"
00014 #include "patchbay.h"
00015 #include "preferencesthread.h"
00016 #include "recordgui.h"
00017 #include "recordmonitor.h"
00018 #include "setformat.h"
00019 #include "statusbar.h"
00020 #include "timebar.h"
00021 #include "trackcanvas.h"
00022 #include "vframe.h"
00023 #include "vwindowgui.h"
00024 #include "zoombar.h"
00025
00026
00027 #define BGREY 0xc0c0e0 //MEGEY with a shade of blue
00028 #define DDBLUE 0x000050 //Dark blue with the shade of grey
00029
00030
00031 PluginClient* new_plugin(PluginServer *server)
00032 {
00033 return new BlueDotThemeMain(server);
00034 }
00035
00036
00037
00038
00039
00040
00041
00042 BlueDotThemeMain::BlueDotThemeMain(PluginServer *server)
00043 : PluginTClient(server)
00044 {
00045 }
00046
00047 BlueDotThemeMain::~BlueDotThemeMain()
00048 {
00049 }
00050
00051 char* BlueDotThemeMain::plugin_title()
00052 {
00053 return "Blue Dot";
00054 }
00055
00056 Theme* BlueDotThemeMain::new_theme()
00057 {
00058 theme = new BlueDotTheme;
00059 extern unsigned char _binary_bluedottheme_data_start[];
00060 theme->set_data(_binary_bluedottheme_data_start);
00061 return theme;
00062 }
00063
00064
00065
00066
00067
00068
00069
00070
00071 BlueDotTheme::BlueDotTheme()
00072 : Theme()
00073 {
00074 }
00075
00076 BlueDotTheme::~BlueDotTheme()
00077 {
00078 }
00079
00080 void BlueDotTheme::initialize()
00081 {
00082 BC_Resources *resources = BC_WindowBase::get_resources();
00083
00084
00085
00086
00087
00088 resources->text_default = 0x000000;
00089 resources->text_background = 0xffffff;
00090
00091 resources->text_border1 = 0x4a484a;
00092 resources->text_border2 = 0x000000;
00093 resources->text_border3 = 0xacaeac;
00094 resources->text_border4 = 0xffffff;
00095 resources->text_inactive_highlight = 0xacacac;
00096 resources->text_highlight = BGREY;
00097
00098
00099 resources->bg_color = FGGREY;
00100
00101 resources->default_text_color = 0x000000;
00102 resources->menu_title_text = 0x000000;
00103 resources->popup_title_text = 0x000000;
00104
00105 resources->menu_item_text = BLACK;
00106
00107
00108 resources->generic_button_margin = 15;
00109 resources->pot_needle_color = resources->text_default;
00110 resources->pot_offset = 0;
00111 resources->progress_text = resources->text_default;
00112
00113 resources->meter_font = SMALLFONT;
00114 resources->meter_font_color = BLACK;
00115 resources->meter_title_w = 20;
00116 resources->meter_3d = 0;
00117
00118 resources->menu_light = FTGREY;
00119 resources->menu_highlighted = BGREY;
00120 resources->menu_down = BGREY;
00121 resources->menu_up = FGGREY;
00122 resources->menu_shadow = FTGREY;
00123
00124
00125 resources->popupmenu_margin = 10;
00126 resources->popupmenu_triangle_margin = 15;
00127
00128
00129
00130
00131 resources->listbox_title_color = 0x000000;
00132
00133 resources->listbox_title_margin = 0;
00134 resources->listbox_title_hotspot = 5;
00135 resources->listbox_border1 = 0x4a484a;
00136 resources->listbox_border2 = 0x000000;
00137 resources->listbox_border3 = 0xffe200;
00138 resources->listbox_border4 = 0xffffff;
00139 resources->listbox_highlighted = 0xeee6ee;
00140 resources->listbox_inactive = 0xffffffff;
00141 resources->listbox_bg = new_image("list_bg.png");
00142 resources->listbox_text = 0x000000;
00143 resources->listbox_selected = BGREY;
00144
00145 resources->dirbox_margin = 50;
00146 resources->filebox_margin = 101;
00147 resources->file_color = 0x000000;
00148 resources->directory_color = DKBLUE;
00149
00150 resources->menu_highlighted_fontcolor = DDBLUE;
00151
00152
00153
00154
00155 resources->filebox_icons_images = new_image_set(3,
00156 "file_icons_up.png",
00157 "file_icons_uphi.png",
00158 "file_icons_dn.png");
00159
00160 resources->filebox_text_images = new_image_set(3,
00161 "file_text_up.png",
00162 "file_text_uphi.png",
00163 "file_text_dn.png");
00164
00165 resources->filebox_newfolder_images = new_image_set(3,
00166 "file_newfolder_up.png",
00167 "file_newfolder_uphi.png",
00168 "file_newfolder_dn.png");
00169
00170 resources->filebox_updir_images = new_image_set(3,
00171 "file_updir_up.png",
00172 "file_updir_uphi.png",
00173 "file_updir_dn.png");
00174
00175 resources->filebox_delete_images = new_image_set(3,
00176 "file_delete_up.png",
00177 "file_delete_uphi.png",
00178 "file_delete_dn.png");
00179
00180 resources->filebox_reload_images = new_image_set(3,
00181 "file_reload_up.png",
00182 "file_reload_uphi.png",
00183 "file_reload_dn.png");
00184
00185
00186 resources->filebox_descend_images = new_image_set(3,
00187 "file_openfolder_up.png",
00188 "file_openfolder_uphi.png",
00189 "file_openfolder_dn.png");
00190
00191
00192 resources->usethis_button_images =
00193 resources->ok_images = new_button("ok.png",
00194 "generic_up.png",
00195 "generic_hi.png",
00196 "generic_dn.png");
00197
00198 new_button("ok.png",
00199 "generic_up.png",
00200 "generic_hi.png",
00201 "generic_dn.png",
00202 "new_ok_images");
00203
00204 resources->cancel_images = new_button("cancel.png",
00205 "generic_up.png",
00206 "generic_hi.png",
00207 "generic_dn.png");
00208
00209 new_button("cancel.png",
00210 "generic_up.png",
00211 "generic_hi.png",
00212 "generic_dn.png",
00213 "new_cancel_images");
00214
00215 resources->bar_data = new_image("bar", "bar.png");
00216
00217
00218 resources->min_menu_w = 0;
00219 resources->menu_popup_bg = 0;
00220 resources->menu_item_bg = 0;
00221 resources->menu_bar_bg = 0;
00222 resources->menu_title_bg = 0;
00223
00224
00225 resources->popupmenu_images = 0;
00226
00227 resources->toggle_highlight_bg = 0;
00228
00229 resources->generic_button_images = new_image_set(3,
00230 "generic_up.png",
00231 "generic_hi.png",
00232 "generic_dn.png");
00233 resources->horizontal_slider_data = new_image_set(6,
00234 "hslider_fg_up.png",
00235 "hslider_fg_hi.png",
00236 "hslider_fg_dn.png",
00237 "hslider_bg_up.png",
00238 "hslider_bg_hi.png",
00239 "hslider_bg_dn.png");
00240 resources->vertical_slider_data = new_image_set(6,
00241 "vertical_slider_fg_up.png",
00242 "vertical_slider_fg_hi.png",
00243 "vertical_slider_fg_dn.png",
00244 "vertical_slider_bg_up.png",
00245 "vertical_slider_bg_hi.png",
00246 "vertical_slider_bg_dn.png");
00247 resources->progress_images = new_image_set(2,
00248 "progress_bg.png",
00249 "progress_hi.png");
00250 resources->tumble_data = new_image_set(4,
00251 "tumble_up.png",
00252 "tumble_hi.png",
00253 "tumble_bottom.png",
00254 "tumble_top.png");
00255 resources->listbox_button = new_image_set(4,
00256 "listbox_button_up.png",
00257 "listbox_button_hi.png",
00258 "listbox_button_dn.png",
00259 "listbox_button_disabled.png");
00260 resources->listbox_column = new_image_set(3,
00261 "column_up.png",
00262 "column_hi.png",
00263 "column_dn.png");
00264 resources->listbox_expand = new_image_set(5,
00265 "listbox_expandup.png",
00266 "listbox_expanduphi.png",
00267 "listbox_expandchecked.png",
00268 "listbox_expanddn.png",
00269 "listbox_expandcheckedhi.png");
00270 resources->listbox_up = new_image("listbox_up.png");
00271 resources->listbox_dn = new_image("listbox_dn.png");
00272 resources->pan_data = new_image_set(7,
00273 "pan_up.png",
00274 "pan_hi.png",
00275 "pan_popup.png",
00276 "pan_channel.png",
00277 "pan_stick.png",
00278 "pan_channel_small.png",
00279 "pan_stick_small.png");
00280 resources->pan_text_color = WHITE;
00281
00282 resources->pot_images = new_image_set(3,
00283 "pot_up.png",
00284 "pot_hi.png",
00285 "pot_dn.png");
00286
00287 resources->checkbox_images = new_image_set(5,
00288 "checkbox_up.png",
00289 "checkbox_uphi.png",
00290 "checkbox_checked.png",
00291 "checkbox_down.png",
00292 "checkbox_checkedhi.png");
00293
00294 resources->radial_images = new_image_set(5,
00295 "radial_up.png",
00296 "radial_uphi.png",
00297 "radial_checked.png",
00298 "radial_down.png",
00299 "radial_checkedhi.png");
00300
00301 resources->xmeter_images = new_image_set(6,
00302 "xmeter_normal.png",
00303 "xmeter_green.png",
00304 "xmeter_red.png",
00305 "xmeter_yellow.png",
00306 "xmeter_normal.png",
00307 "xmeter_over.png");
00308 resources->ymeter_images = new_image_set(6,
00309 "ymeter_normal.png",
00310 "ymeter_green.png",
00311 "ymeter_red.png",
00312 "ymeter_yellow.png",
00313 "ymeter_normal.png",
00314 "ymeter_over.png");
00315
00316 resources->hscroll_data = new_image_set(10,
00317 "hscroll_center_up.png",
00318 "hscroll_center_hi.png",
00319 "hscroll_center_dn.png",
00320 "hscroll_bg.png",
00321 "hscroll_back_up.png",
00322 "hscroll_back_hi.png",
00323 "hscroll_back_dn.png",
00324 "hscroll_fwd_up.png",
00325 "hscroll_fwd_hi.png",
00326 "hscroll_fwd_dn.png");
00327
00328 resources->vscroll_data = new_image_set(10,
00329 "vscroll_center_up.png",
00330 "vscroll_center_hi.png",
00331 "vscroll_center_dn.png",
00332 "vscroll_bg.png",
00333 "vscroll_back_up.png",
00334 "vscroll_back_hi.png",
00335 "vscroll_back_dn.png",
00336 "vscroll_fwd_up.png",
00337 "vscroll_fwd_hi.png",
00338 "vscroll_fwd_dn.png");
00339
00340
00341
00342 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
00343 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
00344 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
00345 new_button("swap_extents.png",
00346 "editpanel_up.png",
00347 "editpanel_hi.png",
00348 "editpanel_dn.png",
00349 "swap_extents");
00350
00351
00352
00353 rgui_batch = new_image("recordgui_batch.png");
00354 rgui_controls = new_image("recordgui_controls.png");
00355 rgui_list = new_image("recordgui_list.png");
00356 rmonitor_panel = new_image("recordmonitor_panel.png");
00357 rmonitor_meters = new_image("recordmonitor_meters.png");
00358
00359
00360
00361 preferences_category_overlap = 0;
00362 preferencescategory_x = 5;
00363 preferencescategory_y = 5;
00364 preferencestitle_x = 5;
00365 preferencestitle_y = 10;
00366 preferencesoptions_x = 5;
00367 preferencesoptions_y = 0;
00368
00369
00370
00371
00372 message_normal = resources->text_default;
00373 audio_color = BLACK;
00374 mtransport_margin = 11;
00375 toggle_margin = 11;
00376
00377
00378 new_image("mbutton_left","mbutton_left.png");
00379 new_image("mbutton_right","mbutton_right.png");
00380 new_image("timebar_bg", "timebar_bg.png");
00381 new_image("timebar_brender", "timebar_brender.png");
00382 new_image("clock_bg", "mclock.png");
00383 new_image("patchbay_bg", "patchbay_bg.png");
00384 new_image("tracks_bg","tracks_bg.png");
00385 new_image("zoombar_left","zoombar_left.png");
00386 new_image("zoombar_right","zoombar_right.png");
00387 new_image("statusbar_left","statusbar_left.png");
00388 new_image("statusbar_right","statusbar_right.png");
00389
00390
00391 new_image_set("zoombar_menu", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
00392 new_image_set("zoombar_tumbler", 4, "tumble_up.png", "tumble_hi.png", "tumble_bottom.png", "tumble_top.png");
00393
00394
00395 new_image_set("mode_popup", 3, "generic_up.png", "generic_hi.png", "generic_dn.png");
00396 new_image("mode_add", "mode_add.png");
00397 new_image("mode_divide", "mode_divide.png");
00398 new_image("mode_multiply", "mode_multiply.png");
00399 new_image("mode_normal", "mode_normal.png");
00400 new_image("mode_replace", "mode_replace.png");
00401 new_image("mode_subtract", "mode_subtract.png");
00402 new_image("mode_max", "mode_max.png");
00403
00404
00405 new_toggle("plugin_on.png",
00406 "pluginbutton_hi.png",
00407 "pluginbutton_hi.png",
00408 "pluginbutton_select.png",
00409 "pluginbutton_dn.png",
00410 "pluginbutton_selecthi.png",
00411 "plugin_on");
00412
00413
00414 new_toggle("plugin_show.png",
00415 "plugin_show.png",
00416 "pluginbutton_hi.png",
00417 "pluginbutton_select.png",
00418 "pluginbutton_dn.png",
00419 "pluginbutton_selecthi.png",
00420 "plugin_show");
00421
00422
00423 new_image("cpanel_bg", "cpanel_bg.png");
00424 new_image("cbuttons_left", "cbuttons_left.png");
00425 new_image("cbuttons_right", "cbuttons_right.png");
00426 new_image("cmeter_bg", "cmeter_bg.png");
00427
00428
00429 new_image("vbuttons_left", "vbuttons_left.png");
00430 new_image("vbuttons_right","vbuttons_right.png");
00431 new_image("vmeter_bg","vmeter_bg.png");
00432
00433 new_image("preferences_bg", "preferences_bg.png");
00434
00435
00436 new_image("new_bg", "new_bg.png");
00437 new_image("setformat_bg", "setformat_bg2.png");
00438
00439
00440 timebar_view_data = new_image("timebar_view.png");
00441
00442
00443 setformat_w = 600;
00444 setformat_h = 560;
00445 setformat_x1 = 15;
00446 setformat_x2 = 100;
00447
00448 setformat_x3 = 315;
00449 setformat_x4 = 415;
00450 setformat_y1 = 20;
00451 setformat_y2 = 85;
00452 setformat_y3 = 125;
00453 setformat_margin = 30;
00454 setformat_channels_x = 25;
00455 setformat_channels_y = 242;
00456 setformat_channels_w = 250;
00457 setformat_channels_h = 250;
00458
00459 loadfile_pad = 70;
00460 browse_pad = 20;
00461
00462
00463 new_image_set("playpatch_data",
00464 5,
00465 "playpatch_up.png",
00466 "playpatch_hi.png",
00467 "playpatch_checked.png",
00468 "playpatch_dn.png",
00469 "playpatch_checkedhi.png");
00470
00471 new_image_set("recordpatch_data",
00472 5,
00473 "recordpatch_up.png",
00474 "recordpatch_hi.png",
00475 "recordpatch_checked.png",
00476 "recordpatch_dn.png",
00477 "recordpatch_checkedhi.png");
00478
00479 new_image_set("gangpatch_data",
00480 5,
00481 "gangpatch_up.png",
00482 "gangpatch_hi.png",
00483 "gangpatch_checked.png",
00484 "gangpatch_dn.png",
00485 "gangpatch_checkedhi.png");
00486
00487 new_image_set("drawpatch_data",
00488 5,
00489 "drawpatch_up.png",
00490 "drawpatch_hi.png",
00491 "drawpatch_checked.png",
00492 "drawpatch_dn.png",
00493 "drawpatch_checkedhi.png");
00494
00495
00496 new_image_set("mutepatch_data",
00497 5,
00498 "mutepatch_up.png",
00499 "mutepatch_hi.png",
00500 "mutepatch_checked.png",
00501 "mutepatch_dn.png",
00502 "mutepatch_checkedhi.png");
00503
00504 new_image_set("expandpatch_data",
00505 5,
00506 "expandpatch_up.png",
00507 "expandpatch_hi.png",
00508 "expandpatch_checked.png",
00509 "expandpatch_dn.png",
00510 "expandpatch_checkedhi.png");
00511
00512 build_icons();
00513 build_bg_data();
00514 build_overlays();
00515
00516
00517
00518
00519 out_point = new_image_set(5,
00520 "out_up.png",
00521 "out_hi.png",
00522 "out_checked.png",
00523 "out_dn.png",
00524 "out_checkedhi.png");
00525 in_point = new_image_set(5,
00526 "in_up.png",
00527 "in_hi.png",
00528 "in_checked.png",
00529 "in_dn.png",
00530 "in_checkedhi.png");
00531
00532
00533 label_toggle = new_image_set(5,
00534 "labeltoggle_up.png",
00535 "labeltoggle_uphi.png",
00536 "label_checked.png",
00537 "labeltoggle_dn.png",
00538 "label_checkedhi.png");
00539
00540
00541 statusbar_cancel_data = new_image_set(3,
00542 "statusbar_cancel_up.png",
00543 "statusbar_cancel_hi.png",
00544 "statusbar_cancel_dn.png");
00545
00546
00547 VFrame *editpanel_up = new_image("editpanel_up.png");
00548 VFrame *editpanel_hi = new_image("editpanel_hi.png");
00549 VFrame *editpanel_dn = new_image("editpanel_dn.png");
00550 VFrame *editpanel_checked = new_image("editpanel_checked.png");
00551 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
00552
00553
00554 new_image("panel_divider", "panel_divider.png");
00555 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
00556 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
00557 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
00558
00559
00560 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
00561 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
00562 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
00563 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
00564 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
00565
00566 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
00567 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
00568 new_button("magnifyS.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "magnify_button");
00569 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
00570 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
00571 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
00572
00573 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
00574 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
00575 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
00576 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
00577 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
00578 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
00579 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
00580 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
00581 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
00582 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
00583 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
00584 new_button("wrench.png", "editpanelW_up.png", "editpanelW_hi.png", "editpanelW_dn.png", "wrench");
00585
00586
00587 #define TRANSPORT_LEFT_IMAGES "transport_left_up.png", "transport_left_hi.png", "transport_left_dn.png"
00588 #define TRANSPORT_CENTER_IMAGES "transport_center_up.png", "transport_center_hi.png", "transport_center_dn.png"
00589 #define TRANSPORT_RIGHT_IMAGES "transport_right_up.png", "transport_right_hi.png", "transport_right_dn.png"
00590
00591 new_button("end.png", TRANSPORT_RIGHT_IMAGES, "end");
00592 new_button("fastfwd.png",TRANSPORT_CENTER_IMAGES, "fastfwd");
00593 new_button("fastrev.png",TRANSPORT_CENTER_IMAGES, "fastrev");
00594 new_button("play.png",TRANSPORT_CENTER_IMAGES, "play");
00595 new_button("framefwd.png", TRANSPORT_CENTER_IMAGES, "framefwd");
00596 new_button("framerev.png", TRANSPORT_CENTER_IMAGES, "framerev");
00597
00598 new_button("pause.png", TRANSPORT_CENTER_IMAGES, "pause");
00599 new_button("record.png", TRANSPORT_CENTER_IMAGES, "record");
00600
00601 new_button("singleframe.png", TRANSPORT_CENTER_IMAGES, "recframe");
00602 new_button("reverse.png", TRANSPORT_CENTER_IMAGES, "reverse");
00603 new_button("rewind.png", TRANSPORT_LEFT_IMAGES, "rewind");
00604 new_button("stop.png", TRANSPORT_CENTER_IMAGES, "stop");
00605 new_button("stoprec.png", TRANSPORT_RIGHT_IMAGES, "stoprec");
00606
00607
00608
00609
00610
00611 new_image("cwindow_inactive", "cwindow_inactive.png");
00612 new_image("cwindow_active", "cwindow_active.png");
00613
00614
00615 new_image_set("batch_render_start",
00616 3,
00617 "batchstart_up.png",
00618 "batchstart_hi.png",
00619 "batchstart_dn.png");
00620 new_image_set("batch_render_stop",
00621 3,
00622 "batchstop_up.png",
00623 "batchstop_hi.png",
00624 "batchstop_dn.png");
00625 new_image_set("batch_render_cancel",
00626 3,
00627 "batchcancel_up.png",
00628 "batchcancel_hi.png",
00629 "batchcancel_dn.png");
00630
00631
00632
00633 new_image_set("category_button",
00634 3,
00635 "preferencesbutton_dn.png",
00636 "preferencesbutton_dnhi.png",
00637 "preferencesbutton_dnlo.png");
00638
00639 new_image_set("category_button_checked",
00640 3,
00641 "preferencesbutton_up.png",
00642 "preferencesbutton_uphi.png",
00643 "preferencesbutton_dnlo.png");
00644
00645
00646
00647 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
00648 new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
00649 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
00650 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
00651 new_toggle("blank30x30.png",
00652 new_image("locklabels_locked.png"),
00653 new_image("locklabels_lockedhi.png"),
00654 new_image("locklabels_unlocked.png"),
00655 new_image("locklabels_dn.png"),
00656 new_image("locklabels_unlockedhi.png"),
00657 "locklabels");
00658
00659
00660
00661 VFrame *cpanel_up = new_image("editpanel_up.png");
00662 VFrame *cpanel_hi = new_image("editpanel_hi.png");
00663 VFrame *cpanel_dn = new_image("editpanel_dn.png");
00664 VFrame *cpanel_checked = new_image("editpanel_checked.png");
00665 VFrame *cpanel_checkedhi = new_image("editpanel_checkedhi.png");
00666
00667 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
00668 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
00669 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
00670 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
00671 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
00672 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
00673 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
00674 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
00675 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
00676
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00690
00691
00692
00693 flush_images();
00694
00695 title_font = MEDIUMFONT;
00696 title_color = BLACK;
00697 recordgui_fixed_color = BLACK;
00698 recordgui_variable_color = RED;
00699 resources->medium_font = N_("-*-helvetica-medium-r-normal-*-14-*");
00700
00701 channel_position_color = MEYELLOW;
00702 resources->meter_title_w = 25;
00703
00704
00705 edit_font_color = BLACK;
00706
00707
00708
00709 resources->draw_clock_background = 0;
00710
00711
00712
00713 resources->button_highlighted = LTGREY;
00714 resources->button_uphighlighted = DKGREY;
00715 resources->button_light = WHITE;
00716 resources->button_up = LTGREY;
00717 resources->button_shadow = DKGREY;
00718 resources->button_down = MDGREY;
00719
00720
00721
00722
00723
00724 resources->label_images = new_image_set(5,
00725 "radial_up.png",
00726 "radial_uphi.png",
00727 "radial_checked.png",
00728 "radial_down.png",
00729 "radial_checkedhi.png");
00730
00731
00732
00733
00734
00735
00736
00737
00738
00739
00740 resources->audiovideo_color = DKGREY;
00741
00742
00743
00744 resources->medium_7segment = new_image_set(20,
00745 "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");
00746
00747
00748
00749 resources->tooltip_bg_color = 0xfff7e3;
00750 }
00751
00752
00753 #define CWINDOW_METER_MARGIN 5
00754 #define VWINDOW_METER_MARGIN 5
00755
00756
00757 void BlueDotTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
00758 {
00759
00760 mbuttons_x = 0;
00761 mbuttons_y = gui->mainmenu->get_h();
00762 mbuttons_w = w;
00763 mbuttons_h = get_image("mbutton_left")->get_h();
00764 mclock_x = 20;
00765 mclock_y = mbuttons_y + 1 + mbuttons_h + CWINDOW_METER_MARGIN;
00766 mclock_w = get_image("clock_bg")->get_w() - 72;
00767 mclock_h = get_image("clock_bg")->get_h();
00768
00769
00770 mtimebar_x = get_image("patchbay_bg")->get_w();
00771 mtimebar_y = mbuttons_y + mbuttons_h;
00772 mtimebar_w = w - mtimebar_x;
00773 mtimebar_h = get_image("timebar_bg")->get_h();
00774
00775
00776 mzoom_h = get_image("zoombar_left")->get_h();
00777 mzoom_x = 0;
00778 mzoom_y = h - get_image("statusbar_left")->get_h() - mzoom_h;
00779 mzoom_w = w;
00780
00781
00782 mstatus_x = 0;
00783
00784 mstatus_y = mzoom_y + mzoom_h;
00785 mstatus_w = w;
00786 mstatus_h = h - mstatus_y;
00787 mstatus_message_x = 10;
00788 mstatus_message_y = 8;
00789 mstatus_progress_w = 230;
00790 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
00791 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
00792
00793
00794 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
00795 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
00796
00797
00798 patchbay_x = 0;
00799 patchbay_y = mtimebar_y + mtimebar_h;
00800 patchbay_w = get_image("patchbay_bg")->get_w();
00801 patchbay_h = mzoom_y - patchbay_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
00802
00803
00804 mcanvas_x = patchbay_x + patchbay_w;
00805 mcanvas_y = mtimebar_y + mtimebar_h;
00806 mcanvas_w = w - patchbay_w - BC_ScrollBar::get_span(SCROLL_VERT);
00807 mcanvas_h = patchbay_h;
00808
00809 mhscroll_x = 0;
00810 mhscroll_y = mzoom_y - BC_ScrollBar::get_span(SCROLL_HORIZ);
00811 mhscroll_w = w - BC_ScrollBar::get_span(SCROLL_VERT);
00812 mvscroll_x = mcanvas_x + mcanvas_w;
00813 mvscroll_y = mcanvas_y;
00814 mvscroll_h = mcanvas_h;
00815
00816 }
00817
00818 void BlueDotTheme::get_cwindow_sizes(CWindowGUI *gui, int cwindow_controls)
00819 {
00820 if(cwindow_controls)
00821 {
00822 SET_TRACE
00823 ccomposite_x = 0;
00824 ccomposite_y = 5;
00825 ccomposite_w = get_image("cpanel_bg")->get_w();
00826 ccomposite_h = mwindow->session->cwindow_h -
00827 get_image("cbuttons_left")->get_h();
00828 cslider_x = 5;
00829 cslider_y = ccomposite_h + 23;
00830 cedit_x = 10;
00831 cedit_y = cslider_y + 17;
00832 ctransport_x = 10;
00833 ctransport_y = mwindow->session->cwindow_h -
00834 get_image_set("autokeyframe")[0]->get_h();
00835 ccanvas_x = ccomposite_x + ccomposite_w;
00836 ccanvas_y = 0;
00837 ccanvas_h = ccomposite_h;
00838
00839 cstatus_x = 453;
00840 cstatus_y = mwindow->session->cwindow_h - 66;
00841
00842 if(mwindow->edl->session->cwindow_meter)
00843 {
00844 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
00845 mwindow->edl->session->cwindow_meter);
00846 ccanvas_w = cmeter_x - ccanvas_x - 5;
00847 }
00848 else
00849 {
00850 cmeter_x = mwindow->session->cwindow_w;
00851 ccanvas_w = cmeter_x - ccanvas_x;
00852 }
00853 SET_TRACE
00854 }
00855 else
00856 {
00857 SET_TRACE
00858 ccomposite_x = -get_image("cpanel_bg")->get_w();
00859 ccomposite_y = 0;
00860 ccomposite_w = get_image("cpanel_bg")->get_w();
00861 ccomposite_h = mwindow->session->cwindow_h - get_image("cbuttons_left")->get_h();
00862
00863 cslider_x = 5;
00864 cslider_y = mwindow->session->cwindow_h;
00865 cedit_x = 10;
00866 cedit_y = cslider_y + 17;
00867 ctransport_x = 10;
00868 ctransport_y = cedit_y + 40;
00869 ccanvas_x = 0;
00870 ccanvas_y = 0;
00871 ccanvas_w = mwindow->session->cwindow_w;
00872 ccanvas_h = mwindow->session->cwindow_h;
00873 cmeter_x = mwindow->session->cwindow_w;
00874
00875 cstatus_x = mwindow->session->cwindow_w;
00876 cstatus_y = mwindow->session->cwindow_h;
00877
00878 SET_TRACE
00879 }
00880
00881 SET_TRACE
00882
00883 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
00884 czoom_y = ctransport_y + 5;
00885
00886
00887 cmeter_y = 5;
00888 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
00889
00890
00891 cslider_w = ccanvas_x + ccanvas_w - cslider_x;
00892 ctimebar_x = ccanvas_x;
00893 ctimebar_y = ccanvas_y + ccanvas_h;
00894 ctimebar_w = ccanvas_w;
00895 ctimebar_h = 16;
00896
00897
00898
00899 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
00900 ctime_y = ctransport_y;
00901 cdest_x = czoom_x;
00902 cdest_y = czoom_y + 30;
00903 SET_TRACE
00904 }
00905
00906
00907
00908 void BlueDotTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
00909 {
00910
00911 }
00912
00913
00914 void BlueDotTheme::get_rmonitor_sizes(int do_audio,
00915 int do_video,
00916 int do_channel,
00917 int do_interlace,
00918 int do_avc,
00919 int audio_channels)
00920 {
00921 Theme::get_rmonitor_sizes(do_audio,
00922 do_video,
00923 do_channel,
00924 do_interlace,
00925 do_avc,
00926 audio_channels);
00927 if(!do_video && do_audio)
00928 {
00929 rmonitor_meter_y -= 30;
00930 rmonitor_meter_h += 30;
00931 }
00932 }
00933
00934
00935
00936 void BlueDotTheme::get_vwindow_sizes(VWindowGUI *gui)
00937 {
00938 vmeter_y = 5;
00939 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
00940 vcanvas_x = 0;
00941 vcanvas_y = 0;
00942 vcanvas_h = mwindow->session->vwindow_h - get_image("vbuttons_left")->get_h();
00943
00944 if(mwindow->edl->session->vwindow_meter)
00945 {
00946 vmeter_x = mwindow->session->vwindow_w -
00947 VWINDOW_METER_MARGIN -
00948 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
00949 mwindow->edl->session->vwindow_meter);
00950 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
00951 }
00952 else
00953 {
00954 vmeter_x = mwindow->session->vwindow_w;
00955 vcanvas_w = mwindow->session->vwindow_w;
00956 }
00957
00958 vtimebar_x = vcanvas_x;
00959 vtimebar_y = vcanvas_y + vcanvas_h;
00960 vtimebar_w = vcanvas_w;
00961 vtimebar_h = 16;
00962
00963
00964 vslider_x = 10;
00965 vslider_y = vtimebar_y + 25;
00966 vslider_w = vtimebar_w - vslider_x;
00967 vedit_x = 10;
00968 vedit_y = vslider_y + 17;
00969 vtransport_x = 10;
00970 vtransport_y = mwindow->session->vwindow_h -
00971 get_image_set("autokeyframe")[0]->get_h();
00972 vtime_x = 373;
00973 vtime_y = vedit_y + 7;
00974 vtime_w = 100;
00975
00976
00977
00978
00979 vzoom_x = vtime_x + 150;
00980 vzoom_y = vtime_y;
00981 vsource_x = vtime_x + 50;
00982 vsource_y = vtransport_y + 5;
00983 }
00984
00985
00986
00987
00988
00989 void BlueDotTheme::build_icons()
00990 {
00991 new_image("mwindow_icon", "heroine_icon.png");
00992 new_image("vwindow_icon", "heroine_icon.png");
00993 new_image("cwindow_icon", "heroine_icon.png");
00994 new_image("awindow_icon", "heroine_icon.png");
00995 new_image("record_icon", "heroine_icon.png");
00996 new_image("clip_icon", "clip_icon.png");
00997 }
00998
00999
01000
01001 void BlueDotTheme::build_bg_data()
01002 {
01003
01004 channel_bg_data = new VFrame(get_image_data("channel_bg.png"));
01005 channel_position_data = new VFrame(get_image_data("channel_position.png"));
01006
01007
01008 new_image("resource1024", "resource1024.png");
01009 new_image("resource512", "resource512.png");
01010 new_image("resource256", "resource256.png");
01011 new_image("resource128", "resource128.png");
01012 new_image("resource64", "resource64.png");
01013 new_image("resource32", "resource32.png");
01014
01015 new_image("plugin_bg_data", "plugin_bg.png");
01016 new_image("title_bg_data", "title_bg.png");
01017 new_image("vtimebar_bg_data", "vwindow_timebar.png");
01018 }
01019
01020
01021
01022 void BlueDotTheme::build_overlays()
01023 {
01024 keyframe_data = new VFrame(get_image_data("keyframe3.png"));
01025 camerakeyframe_data = new VFrame(get_image_data("camerakeyframe.png"));
01026 maskkeyframe_data = new VFrame(get_image_data("maskkeyframe.png"));
01027 modekeyframe_data = new VFrame(get_image_data("modekeyframe.png"));
01028 pankeyframe_data = new VFrame(get_image_data("pankeyframe.png"));
01029 projectorkeyframe_data = new VFrame(get_image_data("projectorkeyframe.png"));
01030 }
01031
01032
01033
01034
01035
01036
01037
01038
01039
01040 void BlueDotTheme::draw_rwindow_bg(RecordGUI *gui)
01041 {
01042
01043
01044
01045
01046
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056
01057
01058
01059
01060 }
01061
01062 void BlueDotTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
01063 {
01064
01065
01066
01067
01068
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078 }
01079
01080
01081
01082
01083
01084
01085 void BlueDotTheme::draw_mwindow_bg(MWindowGUI *gui)
01086 {
01087
01088 #define MBUTTONS_RIGHTEDGE 290 + 11 + 2*30 + 11 + 2*30 + 11 + 14*30
01089 gui->draw_3segmenth(mbuttons_x,
01090 mbuttons_y,
01091 MBUTTONS_RIGHTEDGE,
01092 get_image("mbutton_left"),
01093 0);
01094 gui->draw_3segmenth(mbuttons_x + MBUTTONS_RIGHTEDGE,
01095 mbuttons_y,
01096 mbuttons_w - 500,
01097 get_image("mbutton_right"));
01098
01099
01100 gui->draw_vframe(get_image("panel_divider"),
01101 mbuttons_x + 290 + 5,
01102 mbuttons_y - 1);
01103
01104 gui->draw_vframe(get_image("panel_divider"),
01105 mbuttons_x + 290 + 11 + 30 * 2 + 5,
01106 mbuttons_y - 1);
01107
01108 gui->draw_vframe(get_image("panel_divider"),
01109 mbuttons_x + 290 + 11 + 30 * 2 + 11 + 30 * 2 + 5,
01110 mbuttons_y - 1);
01111
01112
01113
01114
01115
01116
01117 gui->draw_3segmenth(0,
01118 mbuttons_y + get_image("mbutton_left")->get_h(),
01119 get_image("patchbay_bg")->get_w(),
01120 get_image("clock_bg"));
01121
01122
01123
01124 gui->draw_3segmentv(patchbay_x,
01125 patchbay_y,
01126 patchbay_h,
01127 get_image("patchbay_bg"));
01128
01129
01130
01131
01132
01133
01134 gui->draw_9segment(mcanvas_x,
01135 mcanvas_y,
01136 mcanvas_w,
01137 patchbay_h + 26,
01138 get_image("tracks_bg"));
01139
01140
01141
01142 gui->draw_3segmenth(mtimebar_x,
01143 mtimebar_y,
01144 mtimebar_w,
01145 get_image("timebar_bg"));
01146
01147
01148
01149 #define ZOOMBAR_CENTER 1100
01150 gui->draw_3segmenth(mzoom_x,
01151 mzoom_y,
01152 ZOOMBAR_CENTER,
01153 get_image("zoombar_left"));
01154 if(mzoom_w > ZOOMBAR_CENTER)
01155 gui->draw_3segmenth(mzoom_x + ZOOMBAR_CENTER,
01156 mzoom_y,
01157 mzoom_w - ZOOMBAR_CENTER,
01158 get_image("zoombar_right"));
01159
01160
01161
01162 gui->draw_3segmenth(mstatus_x,
01163 mstatus_y,
01164 ZOOMBAR_CENTER,
01165 get_image("statusbar_left"));
01166
01167 if(mstatus_w > ZOOMBAR_CENTER)
01168 gui->draw_3segmenth(mstatus_x + ZOOMBAR_CENTER,
01169 mstatus_y,
01170 mstatus_w - ZOOMBAR_CENTER,
01171 get_image("statusbar_right"));
01172
01173 }
01174
01175 void BlueDotTheme::draw_cwindow_bg(CWindowGUI *gui)
01176 {
01177
01178 const int button_division = 530;
01179 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
01180 gui->draw_3segmenth(0, ccomposite_h, button_division, get_image("cbuttons_left"));
01181 if(mwindow->edl->session->cwindow_meter)
01182 {
01183 gui->draw_3segmenth(button_division,
01184 ccomposite_h,
01185 cmeter_x - CWINDOW_METER_MARGIN - button_division,
01186 get_image("cbuttons_right"));
01187 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
01188 0,
01189 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
01190 mwindow->session->cwindow_h,
01191 get_image("cmeter_bg"));
01192 }
01193 else
01194 {
01195 gui->draw_3segmenth(button_division,
01196 ccomposite_h,
01197 cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
01198 get_image("cbuttons_right"));
01199 }
01200 }
01201
01202 void BlueDotTheme::draw_vwindow_bg(VWindowGUI *gui)
01203 {
01204
01205 const int button_division = 535;
01206 gui->draw_3segmenth(0,
01207 vcanvas_h,
01208 button_division,
01209 get_image("vbuttons_left"));
01210 if(mwindow->edl->session->vwindow_meter)
01211 {
01212 gui->draw_3segmenth(button_division,
01213 vcanvas_h,
01214 vmeter_x - VWINDOW_METER_MARGIN - button_division,
01215 get_image("vbuttons_right"));
01216 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
01217 0,
01218 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
01219 mwindow->session->vwindow_h,
01220 get_image("vmeter_bg"));
01221 }
01222 else
01223 {
01224 gui->draw_3segmenth(button_division,
01225 vcanvas_h,
01226 vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
01227 get_image("vbuttons_right"));
01228 }
01229 }
01230
01231 void BlueDotTheme::get_preferences_sizes()
01232 {
01233 }
01234
01235
01236 void BlueDotTheme::draw_preferences_bg(PreferencesWindow *gui)
01237 {
01238 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, get_image("preferences_bg"));
01239 }
01240
01241 void BlueDotTheme::get_new_sizes(NewWindow *gui)
01242 {
01243 }
01244
01245 void BlueDotTheme::draw_new_bg(NewWindow *gui)
01246 {
01247 gui->draw_vframe(get_image("new_bg"), 0, 0);
01248 }
01249
01250 void BlueDotTheme::draw_setformat_bg(SetFormatWindow *gui)
01251 {
01252 gui->draw_vframe(get_image("setformat_bg"), 0, 0);
01253 }
01254
01255
01256
01257
01258