2 #include "cwindowgui.h"
3 #include "defaulttheme.h"
5 #include "edlsession.h"
7 #include "mainsession.h"
9 #include "meterpanel.h"
11 #include "mwindowgui.h"
14 #include "preferencesthread.h"
15 #include "recordgui.h"
16 #include "recordmonitor.h"
17 #include "setformat.h"
18 #include "statusbar.h"
20 #include "trackcanvas.h"
22 #include "vwindowgui.h"
28 PluginClient* new_plugin(PluginServer *server)
30 return new DefaultThemeMain(server);
39 DefaultThemeMain::DefaultThemeMain(PluginServer *server)
40 : PluginTClient(server)
44 DefaultThemeMain::~DefaultThemeMain()
48 char* DefaultThemeMain::plugin_title()
53 Theme* DefaultThemeMain::new_theme()
55 theme = new DefaultTheme;
56 theme->set_path(PluginClient::get_path());
67 DefaultTheme::DefaultTheme()
72 DefaultTheme::~DefaultTheme()
76 void DefaultTheme::initialize()
78 BC_WindowBase::get_resources()->generic_button_images = new_image_set(3,
82 BC_WindowBase::get_resources()->horizontal_slider_data = new_image_set(6,
89 BC_WindowBase::get_resources()->progress_images = new_image_set(2,
92 BC_WindowBase::get_resources()->tumble_data = new_image_set(4,
97 BC_WindowBase::get_resources()->listbox_button = new_image_set(3,
98 "listbox_button_up.png",
99 "listbox_button_hi.png",
100 "listbox_button_dn.png");
101 BC_WindowBase::get_resources()->pan_data = new_image_set(7,
107 "pan_channel_small.png",
108 "pan_stick_small.png");
109 BC_WindowBase::get_resources()->pan_text_color = WHITE;
111 BC_WindowBase::get_resources()->hscroll_data = new_image_set(10,
112 "hscroll_center_up.png",
113 "hscroll_center_hi.png",
114 "hscroll_center_dn.png",
116 "hscroll_back_up.png",
117 "hscroll_back_hi.png",
118 "hscroll_back_dn.png",
119 "hscroll_fwd_up.png",
120 "hscroll_fwd_hi.png",
121 "hscroll_fwd_dn.png");
123 BC_WindowBase::get_resources()->vscroll_data = new_image_set(10,
124 "vscroll_center_up.png",
125 "vscroll_center_hi.png",
126 "vscroll_center_dn.png",
128 "vscroll_back_up.png",
129 "vscroll_back_hi.png",
130 "vscroll_back_dn.png",
131 "vscroll_fwd_up.png",
132 "vscroll_fwd_hi.png",
133 "vscroll_fwd_dn.png");
135 BC_WindowBase::get_resources()->ok_images = new_button("ok.png",
140 BC_WindowBase::get_resources()->cancel_images = new_button("cancel.png",
147 rgui_batch = new_image("recordgui_batch.png");
148 rgui_controls = new_image("recordgui_controls.png");
149 rgui_list = new_image("recordgui_list.png");
150 rmonitor_panel = new_image("recordmonitor_panel.png");
151 rmonitor_meters = new_image("recordmonitor_meters.png");
155 mbutton_left = new_image("mbutton_left.png");
156 mbutton_right = new_image("mbutton_right.png");
157 timebar_bg_data = new_image("timebar_bg.png");
158 timebar_brender_data = new_image("timebar_brender.png");
159 clock_bg = new_image("mclock.png");
160 patchbay_bg = new_image("patchbay_bg.png");
161 tracks_bg = new_image("tracks_bg.png");
162 zoombar_left = new_image("zoombar_left.png");
163 zoombar_right = new_image("zoombar_right.png");
164 statusbar_left = new_image("statusbar_left.png");
165 statusbar_right = new_image("statusbar_right.png");
168 cpanel_bg = new_image("cpanel_bg.png");
169 cbuttons_left = new_image("cbuttons_left.png");
170 cbuttons_right = new_image("cbuttons_right.png");
171 cmeter_bg = new_image("cmeter_bg.png");
174 vbuttons_left = new_image("vbuttons_left.png");
175 vbuttons_right = new_image("vbuttons_right.png");
176 vmeter_bg = new_image("vmeter_bg.png");
178 preferences_bg = new_image("preferences_bg.png");
181 new_bg = new_image("new_bg.png");
182 setformat_bg = new_image("setformat_bg.png");
185 timebar_view_data = new_image("timebar_view.png");
193 setformat_margin = 30;
196 setformat_channels_x = 25;
197 setformat_channels_y = 173;
198 setformat_channels_w = 250;
199 setformat_channels_h = 250;
215 out_point = new_image_set(5,
220 "out_checkedhi.png");
221 in_point = new_image_set(5,
228 label_toggle = new_image_set(5,
229 "labeltoggle_up.png",
230 "labeltoggle_uphi.png",
232 "labeltoggle_dn.png",
233 "label_checkedhi.png");
236 statusbar_cancel_data = new_image_set(3,
237 "statusbar_cancel_up.png",
238 "statusbar_cancel_hi.png",
239 "statusbar_cancel_dn.png");
242 VFrame *editpanel_up = new_image("editpanel_up.png");
243 VFrame *editpanel_hi = new_image("editpanel_hi.png");
244 VFrame *editpanel_dn = new_image("editpanel_dn.png");
245 VFrame *editpanel_checked = new_image("editpanel_checked.png");
246 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
248 bottom_justify = new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
249 center_justify = new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
250 channel_data = new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn);
251 copy_data = new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn);
252 cut_data = new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn);
253 fit_data = new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn);
254 in_data = new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn);
255 indelete_data = new_button("clearinpoint.png", editpanel_up, editpanel_hi, editpanel_dn);
256 labelbutton_data = new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn);
257 left_justify = new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
258 magnify_button_data = new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn);
259 middle_justify = new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
260 nextlabel_data = new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn);
261 out_data = new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn);
262 outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn);
263 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
264 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
265 paste_data = new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn);
266 prevlabel_data = new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn);
267 redo_data = new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn);
268 right_justify = new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
269 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
270 toclip_data = new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn);
271 top_justify = new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn);
272 undo_data = new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn);
273 wrench_data = new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn);
276 arrow_data = new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
277 autokeyframe_data = new_toggle("autokeyframe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
278 camera_data = new_toggle("camera.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
279 crop_data = new_toggle("crop.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
280 ibeam_data = new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
281 magnify_data = new_toggle("magnify.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
282 mask_data = new_toggle("mask.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
283 proj_data = new_toggle("projector.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
284 protect_data = new_toggle("protect.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
285 show_meters = new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
286 titlesafe_data = new_toggle("titlesafe.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
287 tool_data = new_toggle("toolwindow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi);
292 static VFrame **transport_bg = new_image_set(3,
296 build_transport(duplex_data, get_image("duplex.png"), transport_bg, 1);
297 build_transport(end_data, get_image("end.png"), transport_bg, 2);
298 build_transport(fastfwd_data, get_image("fastfwd.png"), transport_bg, 1);
299 build_transport(fastrev_data, get_image("fastrev.png"), transport_bg, 1);
300 build_transport(forward_data, get_image("play.png"), transport_bg, 1);
301 build_transport(framefwd_data, get_image("framefwd.png"), transport_bg, 1);
302 build_transport(framefwd_data, get_image("framefwd.png"), transport_bg, 1);
303 build_transport(framerev_data, get_image("framerev.png"), transport_bg, 1);
304 build_transport(rec_data, get_image("record.png"), transport_bg, 1);
305 build_transport(recframe_data, get_image("singleframe.png"), transport_bg, 1);
306 build_transport(reverse_data, get_image("reverse.png"), transport_bg, 1);
307 build_transport(rewind_data, get_image("rewind.png"), transport_bg, 0);
308 build_transport(stop_data, get_image("stop.png"), transport_bg, 1);
309 build_transport(stoprec_data, get_image("stoprec.png"), transport_bg, 2);
312 title_font = MEDIUMFONT_3D;
314 recordgui_fixed_color = YELLOW;
315 recordgui_variable_color = RED;
317 channel_position_color = MEYELLOW;
318 BC_WindowBase::get_resources()->meter_title_w = 25;
321 #define CWINDOW_METER_MARGIN 5
322 #define VWINDOW_METER_MARGIN 5
324 void DefaultTheme::get_mwindow_sizes(MWindowGUI *gui, int w, int h)
327 mbuttons_y = gui->mainmenu->get_h();
329 mbuttons_h = mbutton_left->get_h();
331 mclock_y = mbuttons_y + mbuttons_h + CWINDOW_METER_MARGIN;
332 mclock_w = clock_bg->get_w() - 40;
333 mclock_h = clock_bg->get_h();
334 mtimebar_x = patchbay_bg->get_w();
335 mtimebar_y = mbuttons_y + mbuttons_h;
336 mtimebar_w = w - mtimebar_x;
337 mtimebar_h = timebar_bg_data->get_h();
339 mstatus_y = h - statusbar_left->get_h();
341 mstatus_h = statusbar_left->get_h();
342 mstatus_message_x = 10;
343 mstatus_message_y = 5;
344 mstatus_progress_x = mstatus_w - statusbar_cancel_data[0]->get_w() - 240;
345 mstatus_progress_y = mstatus_h - BC_WindowBase::get_resources()->progress_images[0]->get_h();
346 mstatus_progress_w = 230;
347 mstatus_cancel_x = mstatus_w - statusbar_cancel_data[0]->get_w();
348 mstatus_cancel_y = mstatus_h - statusbar_cancel_data[0]->get_h();
350 mzoom_y = mstatus_y - zoombar_left->get_h();
351 mzoom_h = zoombar_left->get_h();
354 patchbay_y = mtimebar_y + mtimebar_h;
355 patchbay_w = patchbay_bg->get_w();
356 patchbay_h = mzoom_y - patchbay_y;
357 mcanvas_x = patchbay_x + patchbay_w;
358 mcanvas_y = mtimebar_y + mtimebar_h;
359 mcanvas_w = w - patchbay_w;
360 mcanvas_h = patchbay_h;
363 void DefaultTheme::get_cwindow_sizes(CWindowGUI *gui)
367 ccomposite_w = cpanel_bg->get_w();
368 ccomposite_h = mwindow->session->cwindow_h - cbuttons_left->get_h();
370 cslider_y = ccomposite_h + 23;
372 cedit_y = cslider_y + 17;
374 ctransport_y = mwindow->session->cwindow_h - autokeyframe_data[0]->get_h();
375 czoom_x = ctransport_x + PlayTransport::get_transport_width(mwindow) + 20;
376 czoom_y = ctransport_y + 5;
377 ccanvas_x = ccomposite_x + ccomposite_w;
379 ccanvas_h = ccomposite_h;
382 if(mwindow->edl->session->cwindow_meter)
384 cmeter_x = mwindow->session->cwindow_w - MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
385 mwindow->edl->session->cwindow_meter);
386 ccanvas_w = cmeter_x - ccanvas_x - 5;
390 cmeter_x = mwindow->session->cwindow_w;
391 ccanvas_w = cmeter_x - ccanvas_x;
394 cmeter_h = mwindow->session->cwindow_h - cmeter_y;
396 cslider_w = ccanvas_x + ccanvas_w - cslider_x;
397 ctimebar_x = ccanvas_x;
398 ctimebar_y = ccanvas_y + ccanvas_h;
399 ctimebar_w = ccanvas_w;
402 ctime_x = ctransport_x + PlayTransport::get_transport_width(mwindow);
403 ctime_y = ctransport_y;
405 cdest_y = czoom_y + 30;
410 void DefaultTheme::get_recordgui_sizes(RecordGUI *gui, int w, int h)
412 recordgui_status_x = 10;
413 recordgui_status_y = 10;
414 recordgui_status_x2 = 160;
415 recordgui_batch_x = 310;
416 recordgui_batch_y = 10;
417 recordgui_batchcaption_x = recordgui_batch_x + 110;
420 recordgui_transport_x = recordgui_batch_x;
421 recordgui_transport_y = recordgui_batch_y + 150;
423 recordgui_buttons_x = recordgui_batch_x - 50;
424 recordgui_buttons_y = recordgui_transport_y + 40;
425 recordgui_options_x = recordgui_buttons_x;
426 recordgui_options_y = recordgui_buttons_y + 35;
428 recordgui_batches_x = 10;
429 recordgui_batches_y = 270;
430 recordgui_batches_w = w - 20;
431 recordgui_batches_h = h - recordgui_batches_y - 70;
432 recordgui_loadmode_x = w / 2 - loadmode_w / 2;
433 recordgui_loadmode_y = h - 60;
435 recordgui_controls_x = 10;
436 recordgui_controls_y = h - 40;
441 void DefaultTheme::get_vwindow_sizes(VWindowGUI *gui)
444 vmeter_h = mwindow->session->vwindow_h - cmeter_y;
447 vcanvas_h = mwindow->session->vwindow_h - vbuttons_left->get_h();
449 if(mwindow->edl->session->vwindow_meter)
451 vmeter_x = mwindow->session->vwindow_w -
452 VWINDOW_METER_MARGIN -
453 MeterPanel::get_meters_width(mwindow->edl->session->audio_channels,
454 mwindow->edl->session->vwindow_meter);
455 vcanvas_w = vmeter_x - vcanvas_x - VWINDOW_METER_MARGIN;
459 vmeter_x = mwindow->session->vwindow_w;
460 vcanvas_w = mwindow->session->vwindow_w;
463 vtimebar_x = vcanvas_x;
464 vtimebar_y = vcanvas_y + vcanvas_h;
465 vtimebar_w = vcanvas_w;
469 vslider_y = vtimebar_y + 25;
470 vslider_w = vtimebar_w - vslider_x;
472 vedit_y = vslider_y + 17;
474 vtransport_y = mwindow->session->vwindow_h - autokeyframe_data[0]->get_h();
476 vtime_y = vedit_y + 10;
482 vzoom_x = vtime_x + 150;
484 vsource_x = vtime_x + 50;
485 vsource_y = vtransport_y + 5;
492 void DefaultTheme::build_icons()
494 mwindow_icon = new VFrame(get_image("heroine_icon.png"));
495 vwindow_icon = new VFrame(get_image("heroine_icon.png"));
496 cwindow_icon = new VFrame(get_image("heroine_icon.png"));
497 awindow_icon = new VFrame(get_image("heroine_icon.png"));
498 record_icon = new VFrame(get_image("heroine_icon.png"));
499 clip_icon = new VFrame(get_image("clip_icon.png"));
504 void DefaultTheme::build_bg_data()
507 channel_bg_data = new VFrame(get_image("channel_bg.png"));
508 channel_position_data = new VFrame(get_image("channel_position.png"));
511 resource1024_bg_data = new VFrame(get_image("resource1024.png"));
512 resource512_bg_data = new VFrame(get_image("resource512.png"));
513 resource256_bg_data = new VFrame(get_image("resource256.png"));
514 resource128_bg_data = new VFrame(get_image("resource128.png"));
515 resource64_bg_data = new VFrame(get_image("resource64.png"));
516 resource32_bg_data = new VFrame(get_image("resource32.png"));
517 plugin_bg_data = new VFrame(get_image("plugin_bg.png"));
518 title_bg_data = new VFrame(get_image("title_bg.png"));
519 vtimebar_bg_data = new VFrame(get_image("vwindow_timebar.png"));
523 void DefaultTheme::build_patches()
525 static VFrame *default_drawpatch_data[] = { new VFrame(get_image("drawpatch_up.png")), new VFrame(get_image("drawpatch_hi.png")), new VFrame(get_image("drawpatch_checked.png")), new VFrame(get_image("drawpatch_dn.png")), new VFrame(get_image("drawpatch_checkedhi.png")) };
526 static VFrame *default_expandpatch_data[] = { new VFrame(get_image("expandpatch_up.png")), new VFrame(get_image("expandpatch_hi.png")), new VFrame(get_image("expandpatch_checked.png")), new VFrame(get_image("expandpatch_dn.png")), new VFrame(get_image("expandpatch_checkedhi.png")) };
527 static VFrame *default_gangpatch_data[] = { new VFrame(get_image("gangpatch_up.png")), new VFrame(get_image("gangpatch_hi.png")), new VFrame(get_image("gangpatch_checked.png")), new VFrame(get_image("gangpatch_dn.png")), new VFrame(get_image("gangpatch_checkedhi.png")) };
528 static VFrame *default_mutepatch_data[] = { new VFrame(get_image("mutepatch_up.png")), new VFrame(get_image("mutepatch_hi.png")), new VFrame(get_image("mutepatch_checked.png")), new VFrame(get_image("mutepatch_dn.png")), new VFrame(get_image("mutepatch_checkedhi.png")) };
529 static VFrame *default_patchbay_bg = new VFrame(get_image("patchbay_bg.png"));
530 static VFrame *default_playpatch_data[] = { new VFrame(get_image("playpatch_up.png")), new VFrame(get_image("playpatch_hi.png")), new VFrame(get_image("playpatch_checked.png")), new VFrame(get_image("playpatch_dn.png")), new VFrame(get_image("playpatch_checkedhi.png")) };
531 static VFrame *default_recordpatch_data[] = { new VFrame(get_image("recordpatch_up.png")), new VFrame(get_image("recordpatch_hi.png")), new VFrame(get_image("recordpatch_checked.png")), new VFrame(get_image("recordpatch_dn.png")), new VFrame(get_image("recordpatch_checkedhi.png")) };
534 drawpatch_data = default_drawpatch_data;
535 expandpatch_data = default_expandpatch_data;
536 gangpatch_data = default_gangpatch_data;
537 mutepatch_data = default_mutepatch_data;
538 patchbay_bg = default_patchbay_bg;
539 playpatch_data = default_playpatch_data;
540 recordpatch_data = default_recordpatch_data;
543 void DefaultTheme::build_overlays()
545 keyframe_data = new VFrame(get_image("keyframe3.png"));
546 camerakeyframe_data = new VFrame(get_image("camerakeyframe.png"));
547 maskkeyframe_data = new VFrame(get_image("maskkeyframe.png"));
548 modekeyframe_data = new VFrame(get_image("modekeyframe.png"));
549 pankeyframe_data = new VFrame(get_image("pankeyframe.png"));
550 projectorkeyframe_data = new VFrame(get_image("projectorkeyframe.png"));
561 void DefaultTheme::draw_rwindow_bg(RecordGUI *gui)
566 gui->draw_9segment(recordgui_batch_x - margin,
568 mwindow->session->rwindow_w - recordgui_status_x + margin,
571 gui->draw_3segmenth(recordgui_options_x - margin2,
572 recordgui_buttons_y - 5,
573 mwindow->session->rwindow_w - recordgui_options_x + margin2,
575 y = recordgui_buttons_y - 5 + rgui_controls->get_h();
576 gui->draw_9segment(0,
578 mwindow->session->rwindow_w,
579 mwindow->session->rwindow_h - y,
583 void DefaultTheme::draw_rmonitor_bg(RecordMonitorGUI *gui)
587 int x = rmonitor_meter_x - margin;
588 int w = mwindow->session->rmonitor_w - x;
589 if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
592 mwindow->session->rmonitor_w,
593 mwindow->session->rmonitor_h);
594 gui->draw_9segment(x,
597 mwindow->session->rmonitor_h,
606 void DefaultTheme::draw_mwindow_bg(MWindowGUI *gui)
609 gui->draw_3segmenth(mbuttons_x,
613 gui->draw_3segmenth(mbuttons_x + 750,
619 gui->draw_3segmenth(0,
620 mbuttons_y + mbutton_left->get_h(),
621 patchbay_bg->get_w(),
625 gui->draw_3segmentv(patchbay_x,
631 gui->draw_9segment(mcanvas_x,
638 gui->draw_3segmenth(mtimebar_x,
644 int zoombar_center = 710;
645 gui->draw_3segmenth(mzoom_x,
649 if(mzoom_w > zoombar_center)
650 gui->draw_3segmenth(mzoom_x + zoombar_center,
652 mzoom_w - zoombar_center,
656 gui->draw_3segmenth(mstatus_x,
661 if(mstatus_w > zoombar_center)
662 gui->draw_3segmenth(mstatus_x + zoombar_center,
664 mstatus_w - zoombar_center,
668 void DefaultTheme::draw_cwindow_bg(CWindowGUI *gui)
670 const int button_division = 530;
671 gui->draw_3segmentv(0, 0, ccomposite_h, cpanel_bg);
672 gui->draw_3segmenth(0, ccomposite_h, button_division, cbuttons_left);
673 if(mwindow->edl->session->cwindow_meter)
675 gui->draw_3segmenth(button_division,
677 cmeter_x - CWINDOW_METER_MARGIN - button_division,
679 gui->draw_9segment(cmeter_x - CWINDOW_METER_MARGIN,
681 mwindow->session->cwindow_w - cmeter_x + CWINDOW_METER_MARGIN,
682 mwindow->session->cwindow_h,
687 gui->draw_3segmenth(button_division,
689 cmeter_x - CWINDOW_METER_MARGIN - button_division + 100,
694 void DefaultTheme::draw_vwindow_bg(VWindowGUI *gui)
696 const int button_division = 400;
697 gui->draw_3segmenth(0, vcanvas_h, button_division, vbuttons_left);
698 if(mwindow->edl->session->vwindow_meter)
700 gui->draw_3segmenth(button_division,
702 vmeter_x - VWINDOW_METER_MARGIN - button_division,
704 gui->draw_9segment(vmeter_x - VWINDOW_METER_MARGIN,
706 mwindow->session->vwindow_w - vmeter_x + VWINDOW_METER_MARGIN,
707 mwindow->session->vwindow_h,
712 gui->draw_3segmenth(button_division,
714 vmeter_x - VWINDOW_METER_MARGIN - button_division + 100,
719 void DefaultTheme::get_preferences_sizes()
724 void DefaultTheme::draw_preferences_bg(PreferencesWindow *gui)
726 gui->draw_9segment(0, 0, gui->get_w(), gui->get_h() - 40, preferences_bg);
729 void DefaultTheme::get_new_sizes(NewWindow *gui)
733 void DefaultTheme::draw_new_bg(NewWindow *gui)
735 gui->draw_vframe(new_bg, 0, 0);
738 void DefaultTheme::draw_setformat_bg(SetFormatWindow *gui)
740 gui->draw_vframe(setformat_bg, 0, 0);