3 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef TIMELINEPANE_H
22 #define TIMELINEPANE_H
24 #include "maincursor.inc"
25 #include "mtimebar.inc"
26 #include "mwindow.inc"
27 #include "mwindowgui.inc"
28 #include "patchbay.inc"
29 #include "samplescroll.inc"
31 #include "trackcanvas.inc"
32 #include "trackscroll.inc"
39 // coordinates are relative to the main window
40 TimelinePane(MWindow *mwindow,
47 void create_objects();
48 void resize_event(int x, int y, int w, int h);
49 void update(int scrollbars,
54 void create_track_scroll(int view_x, int view_y, int view_w, int view_h);
55 void create_sample_scroll(int view_x, int view_y, int view_w, int view_h);
57 Track *over_patchbay();
65 SampleScroll *samplescroll;
66 TrackScroll *trackscroll;
70 // total area including widgets
72 // area for drawing tracks, excluding the widgets
73 int view_x, view_y, view_w, view_h;