Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / cinelerra / timelinepane.h
1 #ifndef TIMELINEPANE_H
2 #define TIMELINEPANE_H
3
4 #include "maincursor.inc"
5 #include "mtimebar.inc"
6 #include "mwindow.inc"
7 #include "mwindowgui.inc"
8 #include "patchbay.inc"
9 #include "samplescroll.inc"
10 #include "track.inc"
11 #include "trackcanvas.inc"
12 #include "trackscroll.inc"
13
14
15
16 class TimelinePane
17 {
18 public:
19 // coordinates are relative to the main window
20         TimelinePane(MWindow *mwindow, 
21                 int number,
22                 int x,
23                 int y,
24                 int w, 
25                 int h);
26         ~TimelinePane();
27         void create_objects();
28         void resize_event(int x, int y, int w, int h);
29         void update(int scrollbars,
30                 int do_canvas,
31                 int timebar,
32                 int patchbay);
33         void activate();
34         void create_track_scroll(int view_x, int view_y, int view_w, int view_h);
35         void create_sample_scroll(int view_x, int view_y, int view_w, int view_h);
36         Track *is_over_patchbay();
37
38         MWindow *mwindow;
39         MWindowGUI *gui;
40
41         MainCursor *cursor;
42         PatchBay *patchbay;
43         MTimeBar *timebar;
44         SampleScroll *samplescroll;
45         TrackScroll *trackscroll;
46         TrackCanvas *canvas;
47 // number of the name
48         int number;
49 // total area including widgets
50         int x, y, w, h;
51 // area for drawing tracks, excluding the widgets
52         int view_x, view_y, view_w, view_h;
53 };
54
55
56
57 #endif
58
59