00001 #include "cwindowgui.h"
00002 #include "edl.h"
00003 #include "edlsession.h"
00004 #include "loadmode.h"
00005 #include "mainmenu.h"
00006 #include "mainsession.h"
00007 #include "microtheme.h"
00008 #include "mwindow.h"
00009 #include "mwindowgui.h"
00010 #include "statusbar.h"
00011 #include "timebar.h"
00012 #include "trackcanvas.h"
00013 #include "vframe.h"
00014
00015 PluginClient* new_plugin(PluginServer *server)
00016 {
00017 return new MicroThemeMain(server);
00018 }
00019
00020
00021 MicroThemeMain::MicroThemeMain(PluginServer *server)
00022 : PluginTClient(server)
00023 {
00024 }
00025
00026 MicroThemeMain::~MicroThemeMain()
00027 {
00028 }
00029
00030
00031 char* MicroThemeMain::plugin_title()
00032 {
00033 return "Microscopic";
00034 }
00035
00036 Theme* MicroThemeMain::new_theme()
00037 {
00038 return theme = new MicroTheme;
00039 }
00040
00041
00042
00043
00044
00045 MicroTheme::MicroTheme()
00046 : Theme()
00047 {
00048 }
00049 MicroTheme::~MicroTheme()
00050 {
00051 }
00052
00053 void MicroTheme::initialize()
00054 {
00055
00056 mwindow_icon = new VFrame(get_image("mwindow_icon.png"));
00057 vwindow_icon = new VFrame(get_image("mwindow_icon.png"));
00058 cwindow_icon = new VFrame(get_image("mwindow_icon.png"));
00059 awindow_icon = new VFrame(get_image("mwindow_icon.png"));
00060 record_icon = new VFrame(get_image("mwindow_icon.png"));
00061 clip_icon = new VFrame(get_image("clip_icon.png"));
00062
00063
00064 static VFrame *default_patchbay_bg = new VFrame(get_image("patchbay_bg.png"));
00065
00066 BC_WindowBase::get_resources()->bg_color = WHITE;
00067 BC_WindowBase::get_resources()->menu_light = WHITE;
00068 BC_WindowBase::get_resources()->menu_highlighted = WHITE;
00069 BC_WindowBase::get_resources()->menu_down = LTGREY;
00070 BC_WindowBase::get_resources()->menu_up = WHITE;
00071 BC_WindowBase::get_resources()->menu_shadow = MEGREY;
00072 BC_WindowBase::get_resources()->medium_font = "-*-helvetica-medium-r-normal-*-10-*";
00073
00074 static VFrame* default_listbox_bg = new VFrame(get_image("patchbay_bg.png"));
00075 BC_WindowBase::get_resources()->listbox_bg = default_listbox_bg;
00076 BC_WindowBase::get_resources()->button_light = WHITE;
00077 BC_WindowBase::get_resources()->button_up = WHITE;
00078
00079
00080 static VFrame *default_cancel_images[] =
00081 {
00082 new VFrame(get_image("cancel_up.png")), new VFrame(get_image("cancel_hi.png")), new VFrame(get_image("cancel_dn.png"))
00083 };
00084 BC_WindowBase::get_resources()->cancel_images = default_cancel_images;
00085
00086 static VFrame *default_ok_images[] =
00087 {
00088 new VFrame(get_image("ok_up.png")), new VFrame(get_image("ok_hi.png")), new VFrame(get_image("ok_dn.png"))
00089 };
00090 BC_WindowBase::get_resources()->ok_images = default_ok_images;
00091
00092 static VFrame *default_button_images[] =
00093 {
00094 new VFrame(get_image("generic_up.png")), new VFrame(get_image("generic_hi.png")), new VFrame(get_image("generic_dn.png"))
00095 };
00096 BC_WindowBase::get_resources()->generic_button_images = default_button_images;
00097
00098 static VFrame *default_tumble_images[] =
00099 {
00100 new VFrame(get_image("tumble_up.png")), new VFrame(get_image("tumble_hi.png")), new VFrame(get_image("tumble_bottomdn.png")), new VFrame(get_image("tumble_topdn.png"))
00101 };
00102 BC_WindowBase::get_resources()->tumble_data = default_tumble_images;
00103
00104 static VFrame *default_checkbox_images[] =
00105 {
00106 new VFrame(get_image("checkbox_up.png")), new VFrame(get_image("checkbox_hi.png")), new VFrame(get_image("checkbox_checked.png")), new VFrame(get_image("checkbox_dn.png")), new VFrame(get_image("checkbox_checkedhi.png"))
00107 };
00108 BC_WindowBase::get_resources()->checkbox_images = default_checkbox_images;
00109
00110 static VFrame *default_radial_images[] =
00111 {
00112 new VFrame(get_image("radial_up.png")), new VFrame(get_image("radial_hi.png")), new VFrame(get_image("radial_checked.png")), new VFrame(get_image("radial_dn.png")), new VFrame(get_image("radial_checkedhi.png"))
00113 };
00114 BC_WindowBase::get_resources()->radial_images = default_radial_images;
00115
00116 static VFrame* default_xmeter_data[] =
00117 {
00118 new VFrame(get_image("xmeter_normal.png")),
00119 new VFrame(get_image("xmeter_green.png")),
00120 new VFrame(get_image("xmeter_red.png")),
00121 new VFrame(get_image("xmeter_yellow.png")),
00122 new VFrame(get_image("over_horiz.png"))
00123 };
00124
00125 static VFrame* default_ymeter_data[] =
00126 {
00127 new VFrame(get_image("ymeter_normal.png")),
00128 new VFrame(get_image("ymeter_green.png")),
00129 new VFrame(get_image("ymeter_red.png")),
00130 new VFrame(get_image("ymeter_yellow.png")),
00131 new VFrame(get_image("over_vert.png"))
00132 };
00133 BC_WindowBase::get_resources()->xmeter_images = default_xmeter_data;
00134 BC_WindowBase::get_resources()->ymeter_images = default_ymeter_data;
00135 BC_WindowBase::get_resources()->meter_font = SMALLFONT;
00136 BC_WindowBase::get_resources()->meter_font_color = BLACK;
00137 BC_WindowBase::get_resources()->meter_title_w = 25;
00138 BC_WindowBase::get_resources()->meter_3d = 0;
00139
00140 static VFrame* default_pan_data[] =
00141 {
00142 new VFrame(get_image("pan_up.png")),
00143 new VFrame(get_image("pan_hi.png")),
00144 new VFrame(get_image("pan_popup.png")),
00145 new VFrame(get_image("pan_channel.png")),
00146 new VFrame(get_image("pan_stick.png")),
00147 new VFrame(get_image("pan_channel_small.png")),
00148 new VFrame(get_image("pan_stick_small.png"))
00149 };
00150 BC_WindowBase::get_resources()->pan_data = default_pan_data;
00151 BC_WindowBase::get_resources()->pan_text_color = BLACK;
00152
00153 static VFrame *default_hscroll_data[] =
00154 {
00155 new VFrame(get_image("hscroll_handle_up.png")),
00156 new VFrame(get_image("hscroll_handle_hi.png")),
00157 new VFrame(get_image("hscroll_handle_dn.png")),
00158 new VFrame(get_image("hscroll_handle_bg.png")),
00159 new VFrame(get_image("hscroll_left_up.png")),
00160 new VFrame(get_image("hscroll_left_hi.png")),
00161 new VFrame(get_image("hscroll_left_dn.png")),
00162 new VFrame(get_image("hscroll_right_up.png")),
00163 new VFrame(get_image("hscroll_right_hi.png")),
00164 new VFrame(get_image("hscroll_right_dn.png"))
00165 };
00166 static VFrame *default_vscroll_data[] =
00167 {
00168 new VFrame(get_image("vscroll_handle_up.png")),
00169 new VFrame(get_image("vscroll_handle_hi.png")),
00170 new VFrame(get_image("vscroll_handle_dn.png")),
00171 new VFrame(get_image("vscroll_handle_bg.png")),
00172 new VFrame(get_image("vscroll_left_up.png")),
00173 new VFrame(get_image("vscroll_left_hi.png")),
00174 new VFrame(get_image("vscroll_left_dn.png")),
00175 new VFrame(get_image("vscroll_right_up.png")),
00176 new VFrame(get_image("vscroll_right_hi.png")),
00177 new VFrame(get_image("vscroll_right_dn.png"))
00178 };
00179 BC_WindowBase::get_resources()->hscroll_data = default_hscroll_data;
00180 BC_WindowBase::get_resources()->vscroll_data = default_vscroll_data;
00181
00182 channel_bg_data = new VFrame(get_image("channel_bg.png"));
00183 channel_position_data = new VFrame(get_image("channel_position.png"));
00184 channel_position_color = BLACK;
00185 recordgui_fixed_color = BLACK;
00186 recordgui_variable_color = RED;
00187
00188 patchbay_bg = default_patchbay_bg;
00189 resource1024_bg_data = new VFrame(get_image("resource1024.png"));
00190 resource512_bg_data = new VFrame(get_image("resource512.png"));
00191 resource256_bg_data = new VFrame(get_image("resource256.png"));
00192 resource128_bg_data = new VFrame(get_image("resource128.png"));
00193 resource64_bg_data = new VFrame(get_image("resource64.png"));
00194 resource32_bg_data = new VFrame(get_image("resource32.png"));
00195 plugin_bg_data = new VFrame(get_image("plugin_bg.png"));
00196 title_bg_data = new VFrame(get_image("title_bg.png"));
00197 timebar_bg_data = new VFrame(get_image("timebar_bg.png"));
00198 vtimebar_bg_data = new VFrame(get_image("vwindow_timebar.png"));
00199
00200 keyframe_data = new VFrame(get_image("keyframe3.png"));
00201 camerakeyframe_data = new VFrame(get_image("camerakeyframe.png"));
00202 maskkeyframe_data = new VFrame(get_image("maskkeyframe.png"));
00203 modekeyframe_data = new VFrame(get_image("modekeyframe.png"));
00204 pankeyframe_data = new VFrame(get_image("pankeyframe.png"));
00205 projectorkeyframe_data = new VFrame(get_image("projectorkeyframe.png"));
00206
00207 VFrame editpanel_up(get_image("editpanel_up.png"));
00208 VFrame editpanel_hi(get_image("editpanel_hi.png"));
00209 VFrame editpanel_dn(get_image("editpanel_dn.png"));
00210 VFrame editpanel_checked(get_image("editpanel_checked.png"));
00211 VFrame editpanel_checkedhi(get_image("editpanel_checkedhi.png"));
00212
00213 static VFrame *default_inpoint[] = { new VFrame(get_image("out_up.png")), new VFrame(get_image("out_hi.png")), new VFrame(get_image("out_checked.png")), new VFrame(get_image("out_dn.png")), new VFrame(get_image("out_checkedhi.png")) };
00214 static VFrame *default_labeltoggle[] = { new VFrame(get_image("labeltoggle_up.png")), new VFrame(get_image("labeltoggle_uphi.png")), new VFrame(get_image("label_checked.png")), new VFrame(get_image("labeltoggle_dn.png")), new VFrame(get_image("label_checkedhi.png")) };
00215 static VFrame *default_outpoint[] = { new VFrame(get_image("in_up.png")), new VFrame(get_image("in_hi.png")), new VFrame(get_image("in_checked.png")), new VFrame(get_image("in_dn.png")), new VFrame(get_image("in_checkedhi.png")) };
00216 static VFrame *transport_bg[] = { new VFrame(get_image("transportup.png")), new VFrame(get_image("transporthi.png")), new VFrame(get_image("transportdn.png")) };
00217 static VFrame *patches_bg[] = { new VFrame(get_image("patches_up.png")), new VFrame(get_image("patches_hi.png")), new VFrame(get_image("patches_checked.png")), new VFrame(get_image("patches_dn.png")), new VFrame(get_image("patches_checkedhi.png")) };
00218
00219 build_button(BC_WindowBase::get_resources()->filebox_updir_images, get_image("filebox_updir.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00220 build_button(BC_WindowBase::get_resources()->filebox_newfolder_images, get_image("filebox_newfolder.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00221 build_button(BC_WindowBase::get_resources()->filebox_icons_images, get_image("filebox_icons.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00222 build_button(BC_WindowBase::get_resources()->filebox_text_images, get_image("filebox_text.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00223
00224 build_button(BC_WindowBase::get_resources()->listbox_button, get_image("listbox_button.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00225 build_button(bottom_justify, get_image("bottom_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00226 build_button(center_justify, get_image("center_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00227 build_button(copy_data, get_image("copy.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00228 build_button(cut_data, get_image("cut.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00229 build_button(fit_data, get_image("fit.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00230 build_button(in_data, get_image("outpoint.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00231 build_button(indelete_data, get_image("clearinpoint.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00232 build_button(labelbutton_data, get_image("label.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00233 build_button(left_justify, get_image("left_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00234 build_button(magnify_button_data, get_image("magnify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00235 build_button(middle_justify, get_image("middle_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00236 build_button(nextlabel_data, get_image("nextlabel.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00237 build_button(out_data, get_image("inpoint.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00238 build_button(outdelete_data, get_image("clearoutpoint.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00239 build_button(over_button, get_image("over.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00240 build_button(overwrite_data, get_image("overwrite.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00241 build_button(paste_data, get_image("paste.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00242 build_button(prevlabel_data, get_image("prevlabel.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00243 build_button(redo_data, get_image("redo.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00244 build_button(right_justify, get_image("right_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00245 build_button(splice_data, get_image("splice.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00246 build_button(statusbar_cancel_data, get_image("cancel_small.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00247 build_button(toclip_data, get_image("toclip.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00248 build_button(top_justify, get_image("top_justify.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00249 build_button(undo_data, get_image("undo.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00250 build_toggle(arrow_data, get_image("arrow.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00251 build_toggle(autokeyframe_data, get_image("autokeyframe.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00252 build_toggle(camera_data, get_image("camera.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00253 build_toggle(crop_data, get_image("crop.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00254 build_toggle(ibeam_data, get_image("ibeam.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00255 build_toggle(magnify_data, get_image("magnify.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00256 build_toggle(mask_data, get_image("mask.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00257 build_toggle(proj_data, get_image("projector.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00258 build_toggle(protect_data, get_image("protect.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00259 build_toggle(show_meters, get_image("show_meters.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00260 build_toggle(titlesafe_data, get_image("titlesafe.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00261 build_toggle(tool_data, get_image("toolwindow.png"), &editpanel_up, &editpanel_hi, &editpanel_checked, &editpanel_dn, &editpanel_checkedhi);
00262 build_transport(duplex_data, get_image("duplex.png"), transport_bg, 1);
00263 build_transport(end_data, get_image("end.png"), transport_bg, 2);
00264 build_transport(fastfwd_data, get_image("fastfwd.png"), transport_bg, 1);
00265 build_transport(fastrev_data, get_image("fastrev.png"), transport_bg, 1);
00266 build_transport(forward_data, get_image("play.png"), transport_bg, 1);
00267 build_transport(framefwd_data, get_image("framefwd.png"), transport_bg, 1);
00268 build_transport(framefwd_data, get_image("framefwd.png"), transport_bg, 1);
00269 build_transport(framerev_data, get_image("framerev.png"), transport_bg, 1);
00270 build_transport(rec_data, get_image("record.png"), transport_bg, 1);
00271 build_transport(recframe_data, get_image("singleframe.png"), transport_bg, 1);
00272 build_transport(reverse_data, get_image("reverse.png"), transport_bg, 1);
00273 build_transport(rewind_data, get_image("rewind.png"), transport_bg, 0);
00274 build_transport(stop_data, get_image("stop.png"), transport_bg, 1);
00275 build_transport(stoprec_data, get_image("stoprec.png"), transport_bg, 2);
00276
00277 build_patches(playpatch_data, get_image("playpatch.png"), patches_bg, 0);
00278 build_patches(recordpatch_data, get_image("recordpatch.png"), patches_bg, 1);
00279 build_patches(gangpatch_data, get_image("gangpatch.png"), patches_bg, 1);
00280 build_patches(drawpatch_data, get_image("drawpatch.png"), patches_bg, 1);
00281 build_patches(mutepatch_data, get_image("mutepatch.png"), patches_bg, 2);
00282
00283 static VFrame *default_expandpatch_data[] =
00284 {
00285 new VFrame(get_image("expandpatch_up.png")),
00286 new VFrame(get_image("expandpatch_hi.png")),
00287 new VFrame(get_image("expandpatch_checked.png")),
00288 new VFrame(get_image("expandpatch_dn.png")),
00289 new VFrame(get_image("expandpatch_checkedhi.png"))
00290 };
00291 expandpatch_data = default_expandpatch_data;
00292
00293 build_button(channel_data, get_image("channel.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00294 build_button(wrench_data, get_image("wrench.png"), &editpanel_up, &editpanel_hi, &editpanel_dn);
00295 in_point = default_inpoint;
00296 label_toggle = default_labeltoggle;
00297 out_point = default_outpoint;
00298
00299 fade_h = BC_WindowBase::get_resources()->horizontal_slider_data[0]->get_h();
00300 mode_h = BC_WindowBase::get_resources()->generic_button_images[0]->get_h();
00301 meter_h = BC_WindowBase::get_resources()->xmeter_images[0]->get_h();
00302 pan_h = BC_WindowBase::get_resources()->pan_data[PAN_UP]->get_h();
00303 play_h = playpatch_data[0]->get_h();
00304 title_h = 18;
00305 pan_x = 25;
00306
00307 title_font = MEDIUMFONT;
00308 title_color = BLACK;
00309
00310 loadmode_w = 250;
00311 flush_images();
00312
00313 }
00314
00315 void MicroTheme::draw_mwindow_bg(MWindowGUI *gui)
00316 {
00317 gui->clear_box(0, 0, gui->get_w(), gui->get_h());
00318 }
00319
00320 void MicroTheme::get_cwindow_sizes(CWindowGUI *gui)
00321 {
00322
00323 cauto_x = 0;
00324 cauto_y = 0;
00325 cauto_w = 0;
00326 cauto_h = 0;
00327 ccomposite_x = 0;
00328 ccomposite_y = 5;
00329 ccomposite_w = protect_data[0]->get_w();
00330 ccomposite_h = mwindow->session->cwindow_h - ccomposite_y;
00331 ccanvas_x = ccomposite_x + ccomposite_w;
00332 ccanvas_y = 0;
00333
00334
00335
00336 if(mwindow->edl->session->cwindow_meter)
00337 {
00338 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
00339 mwindow->edl->session->cwindow_meter);
00340 ccanvas_w = cmeter_x - ccanvas_x - 5;
00341 }
00342 else
00343 {
00344 cmeter_x = mwindow->session->cwindow_w;
00345 ccanvas_w = cmeter_x - ccanvas_x;
00346 }
00347
00348
00349 cmeter_y = 10;
00350 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
00351 cedit_x = 10;
00352 cedit_y = mwindow->session->cwindow_h - autokeyframe_data[0]->get_h();
00353
00354 ctransport_x = 10;
00355 ctransport_y = cedit_y - forward_data[0]->get_h();
00356 cslider_x = 5;
00357 cslider_y = ctransport_y -
00358 BC_WindowBase::get_resources()->horizontal_slider_data[0]->get_h();
00359 cslider_w = ccanvas_x + ccanvas_w - cslider_x - cslider_x;
00360 ccanvas_h = cslider_y - 5;
00361
00362 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
00363 ctime_y = ctransport_y;
00364
00365 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
00366
00367 czoom_y = ctime_y;
00368 cdest_x = czoom_x;
00369 cdest_y = czoom_y + 30;
00370
00371 }
00372
00373
00374 void MicroTheme::get_vwindow_sizes(VWindowGUI *gui)
00375 {
00376 vcanvas_x = 0;
00377 vcanvas_y = 0;
00378 if(mwindow->edl->session->vwindow_meter)
00379 {
00380 vmeter_x = mwindow->session->vwindow_w -
00381 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
00382 mwindow->edl->session->vwindow_meter);
00383 vcanvas_w = vmeter_x - vcanvas_x - 5;
00384 }
00385 else
00386 {
00387 vmeter_x = mwindow->session->vwindow_w;
00388 vcanvas_w = mwindow->session->vwindow_w;
00389 }
00390
00391 vedit_x = 5;
00392 vedit_y = mwindow->session->vwindow_h - autokeyframe_data[0]->get_h();
00393 vtransport_x = 5;
00394 vtransport_y = vedit_y - forward_data[0]->get_h();
00395 vslider_x = 5;
00396 vslider_y = vtransport_y -
00397 BC_WindowBase::get_resources()->horizontal_slider_data[0]->get_h();
00398 vslider_w = vcanvas_w - vslider_x - 5;
00399 vtimebar_x = 0;
00400 vtimebar_y = vslider_y - 20;
00401 vtimebar_w = vcanvas_w - vcanvas_x;
00402
00403
00404 vcanvas_h = vtimebar_y;
00405
00406 vmeter_y = 5;
00407 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
00408
00409
00410
00411 vtime_x = vtransport_x + PlayTransport::get_transport_width(mwindow) + 5;
00412 vtime_y = vtransport_y;
00413 vtime_w = 150;
00414 vzoom_x = vtime_x + 150;
00415 vzoom_y = vtime_y;
00416 vsource_x = vtime_x;
00417 vsource_y = vedit_y;
00418 }
00419
00420
00421 #define PATCHBAY_W 100
00422 #define ZOOM_H 20
00423 void MicroTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
00424 {
00425 mbuttons_x = 0;
00426 mbuttons_y = gui->mainmenu->get_h();
00427 mbuttons_w = w;
00428 mbuttons_h = arrow_data[0]->get_h() + 4;
00429 mclock_x = 0;
00430 mclock_y = mbuttons_y + mbuttons_h;
00431 mclock_w = PATCHBAY_W - 10;
00432 mclock_h = timebar_bg_data->get_h();
00433 mtimebar_x = PATCHBAY_W;
00434 mtimebar_y = mclock_y;
00435 mtimebar_w = w - mtimebar_x;
00436 mtimebar_h = timebar_bg_data->get_h();
00437 mstatus_x = 0;
00438 mstatus_y = h - statusbar_cancel_data[0]->get_h();
00439 mstatus_w = w;
00440 mstatus_h = statusbar_cancel_data[0]->get_h();
00441 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
00442 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
00443 mstatus_progress_w = 230;
00444 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
00445 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
00446 mzoom_x = 0;
00447 mzoom_y = mstatus_y - ZOOM_H;
00448 mzoom_h = ZOOM_H;
00449 mzoom_w = w;
00450 patchbay_x = 0;
00451 patchbay_y = mtimebar_y + mtimebar_h;
00452 patchbay_w = PATCHBAY_W;
00453 patchbay_h = mzoom_y - patchbay_y;
00454 mcanvas_x = patchbay_x + patchbay_w;
00455 mcanvas_y = patchbay_y;
00456 mcanvas_w = w - patchbay_w;
00457 mcanvas_h = patchbay_h;
00458 }
00459
00460 void MicroTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
00461 {
00462 recordgui_status_x = 5;
00463 recordgui_status_y = 5;
00464 recordgui_status_x2 = 100;
00465 recordgui_batch_x = 220;
00466 recordgui_batch_y = 5;
00467 recordgui_batchcaption_x = recordgui_batch_x + 70;
00468
00469
00470 recordgui_transport_x = recordgui_batch_x;
00471 recordgui_transport_y = recordgui_batch_y + 150;
00472
00473 recordgui_buttons_x = 220;
00474 recordgui_buttons_y = recordgui_transport_y + 30;
00475 recordgui_options_x = 220;
00476 recordgui_options_y = recordgui_buttons_y + 30;
00477
00478 recordgui_batches_x = 10;
00479 recordgui_batches_y = 250;
00480 recordgui_batches_w = w - 20;
00481 recordgui_batches_h = h - recordgui_batches_y - 70;
00482 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
00483 recordgui_loadmode_y = h - 50;
00484
00485 recordgui_controls_x = 10;
00486 recordgui_controls_y = h - 30;
00487 }
00488
00489
00490
00491
00492
00493
00494
00495
00496