X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftrackscroll.C;h=15c79bb491d9b610ec007eb65fac82ec2b1586c4;hp=4d5a4313426659e6d581541c1593e498e36aec24;hb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;hpb=5a1b2bb96f2bd6b7ef4f8031763683726c02219d diff --git a/cinelerra-5.1/cinelerra/trackscroll.C b/cinelerra-5.1/cinelerra/trackscroll.C index 4d5a4313..15c79bb4 100644 --- a/cinelerra-5.1/cinelerra/trackscroll.C +++ b/cinelerra-5.1/cinelerra/trackscroll.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 1997-2014 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "edl.h" @@ -33,17 +33,17 @@ #include "tracks.h" #include "trackscroll.h" -TrackScroll::TrackScroll(MWindow *mwindow, - MWindowGUI *gui, - int x, - int y, +TrackScroll::TrackScroll(MWindow *mwindow, + MWindowGUI *gui, + int x, + int y, int h) - : BC_ScrollBar(x, - y, - SCROLL_VERT, - h, - 0, - 0, + : BC_ScrollBar(x, + y, + SCROLL_VERT, + h, + 0, + 0, 0) { this->mwindow = mwindow; @@ -52,17 +52,17 @@ TrackScroll::TrackScroll(MWindow *mwindow, old_position = 0; } -TrackScroll::TrackScroll(MWindow *mwindow, - TimelinePane *pane, - int x, - int y, +TrackScroll::TrackScroll(MWindow *mwindow, + TimelinePane *pane, + int x, + int y, int h) - : BC_ScrollBar(x, - y, - SCROLL_VERT, - h, - 0, - 0, + : BC_ScrollBar(x, + y, + SCROLL_VERT, + h, + 0, + 0, 0) { this->mwindow = mwindow; @@ -87,8 +87,8 @@ int TrackScroll::update() int TrackScroll::resize_event() { - reposition_window(mwindow->theme->mvscroll_x, - mwindow->theme->mvscroll_y, + reposition_window(mwindow->theme->mvscroll_x, + mwindow->theme->mvscroll_y, mwindow->theme->mvscroll_h); update(); return 0; @@ -96,8 +96,8 @@ int TrackScroll::resize_event() int TrackScroll::resize_event(int x, int y, int h) { - reposition_window(x, - y, + reposition_window(x, + y, h); update(); return 0; @@ -131,18 +131,18 @@ void TrackScroll::set_position() int TrackScroll::handle_event() { - int64_t distance = get_value() - + int64_t distance = get_value() - mwindow->edl->local_session->track_start[pane->number]; mwindow->trackmovement(distance, pane->number); // mwindow->edl->local_session->track_start[pane->number] = get_value(); // if(pane->number == TOP_RIGHT_PANE) -// mwindow->edl->local_session->track_start[TOP_LEFT_PANE] = +// mwindow->edl->local_session->track_start[TOP_LEFT_PANE] = // mwindow->edl->local_session->track_start[pane->number]; // else // if(pane->number == BOTTOM_RIGHT_PANE) -// mwindow->edl->local_session->track_start[BOTTOM_LEFT_PANE] = +// mwindow->edl->local_session->track_start[BOTTOM_LEFT_PANE] = // mwindow->edl->local_session->track_start[pane->number]; -// +// // mwindow->edl->tracks->update_y_pixels(mwindow->theme); // mwindow->gui->draw_canvas(0, 0); // mwindow->gui->draw_cursor(1);