h);
cursor = new MainCursor(mwindow, this);
cursor->create_objects();
h);
cursor = new MainCursor(mwindow, this);
cursor->create_objects();
if(number == TOP_LEFT_PANE)
{
patchbay_y += mwindow->theme->mtimebar_h;
patchbay_h -= mwindow->theme->mtimebar_h;
}
if(number == TOP_LEFT_PANE)
{
patchbay_y += mwindow->theme->mtimebar_h;
patchbay_h -= mwindow->theme->mtimebar_h;
}
patchbay_y,
mwindow->theme->patchbay_w,
patchbay_h));
patchbay->create_objects();
}
patchbay_y,
mwindow->theme->patchbay_w,
patchbay_h));
patchbay->create_objects();
}
create_sample_scroll(view_x, view_y, view_w, view_h);
create_track_scroll(view_x, view_y, view_w, view_h);
create_sample_scroll(view_x, view_y, view_w, view_h);
create_track_scroll(view_x, view_y, view_w, view_h);
(number == TOP_LEFT_PANE ||
number == BOTTOM_LEFT_PANE)) ||
number == TOP_RIGHT_PANE ||
number == BOTTOM_RIGHT_PANE)
timebar_w += BC_ScrollBar::get_span(SCROLL_VERT);
(number == TOP_LEFT_PANE ||
number == BOTTOM_LEFT_PANE)) ||
number == TOP_RIGHT_PANE ||
number == BOTTOM_RIGHT_PANE)
timebar_w += BC_ScrollBar::get_span(SCROLL_VERT);
patchbay->resize_event(x,
patchbay_y,
mwindow->theme->patchbay_w,
patchbay_h);
}
patchbay->resize_event(x,
patchbay_y,
mwindow->theme->patchbay_w,
patchbay_h);
}
}
else
create_sample_scroll(view_x, view_y, view_w, view_h);
}
else
create_sample_scroll(view_x, view_y, view_w, view_h);
//printf("TimelinePane::create_sample_scroll %d %d\n", __LINE__, number);
if(number == BOTTOM_LEFT_PANE ||
number == BOTTOM_RIGHT_PANE ||
//printf("TimelinePane::create_sample_scroll %d %d\n", __LINE__, number);
if(number == BOTTOM_LEFT_PANE ||
number == BOTTOM_RIGHT_PANE ||
gui->pane[TOP_LEFT_PANE] &&
gui->pane[TOP_RIGHT_PANE]) ||
gui->total_panes() == 1)
{
//printf("TimelinePane::create_sample_scroll %d %d %d\n", __LINE__, y, h);
gui->pane[TOP_LEFT_PANE] &&
gui->pane[TOP_RIGHT_PANE]) ||
gui->total_panes() == 1)
{
//printf("TimelinePane::create_sample_scroll %d %d %d\n", __LINE__, y, h);
- gui->add_subwindow(samplescroll = new SampleScroll(mwindow,
- this,
- view_x,
- y + h - BC_ScrollBar::get_span(SCROLL_VERT),
+ gui->add_subwindow(samplescroll = new SampleScroll(mwindow,
+ this,
+ view_x,
+ y + h - BC_ScrollBar::get_span(SCROLL_VERT),
{
if(samplescroll && this->samplescroll) samplescroll->set_position();
if(trackscroll && this->trackscroll) trackscroll->set_position();
{
if(samplescroll && this->samplescroll) samplescroll->set_position();
if(trackscroll && this->trackscroll) trackscroll->set_position();
if( canvas_y < 0 || canvas_y >= canvas->get_h() ) return 0;
int pane_y = canvas_y + mwindow->edl->local_session->track_start[number];
for( Track *track=mwindow->edl->tracks->first; track; track=track->next ) {
if( canvas_y < 0 || canvas_y >= canvas->get_h() ) return 0;
int pane_y = canvas_y + mwindow->edl->local_session->track_start[number];
for( Track *track=mwindow->edl->tracks->first; track; track=track->next ) {
int canvas_y = patch_y + patchbay->get_y() - canvas->get_y();
int pane_y = canvas_y + mwindow->edl->local_session->track_start[number];
for( Track *track=mwindow->edl->tracks->first; track; track=track->next ) {
int canvas_y = patch_y + patchbay->get_y() - canvas->get_y();
int pane_y = canvas_y + mwindow->edl->local_session->track_start[number];
for( Track *track=mwindow->edl->tracks->first; track; track=track->next ) {