prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / 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 "trackcanvas.inc"
11 #include "trackscroll.inc"
12
13
14
15 class TimelinePane
16 {
17 public:
18 // coordinates are relative to the main window
19         TimelinePane(MWindow *mwindow, 
20                 int number,
21                 int x,
22                 int y,
23                 int w, 
24                 int h);
25         ~TimelinePane();
26         void create_objects();
27         void resize_event(int x, int y, int w, int h);
28         void update(int scrollbars,
29                 int do_canvas,
30                 int timebar,
31                 int patchbay);
32         void activate();
33         void create_track_scroll(int view_x, int view_y, int view_w, int view_h);
34         void create_sample_scroll(int view_x, int view_y, int view_w, int view_h);
35
36
37         MWindow *mwindow;
38         MWindowGUI *gui;
39
40         MainCursor *cursor;
41         PatchBay *patchbay;
42         MTimeBar *timebar;
43         SampleScroll *samplescroll;
44         TrackScroll *trackscroll;
45         TrackCanvas *canvas;
46 // number of the name
47         int number;
48 // total area including widgets
49         int x, y, w, h;
50 // area for drawing tracks, excluding the widgets
51         int view_x, view_y, view_w, view_h;
52 };
53
54
55
56 #endif
57
58