add usb_direct for shuttle, revised shuttle again, titler tweak, transportque design...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / canvastools.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef CANVASTOOLS_H
23 #define CANVASTOOLS_H
24
25 #include "edit.inc"
26 #include "guicast.h"
27 #include "mwindow.inc"
28 #include "trackcanvas.inc"
29 #include "vframe.inc"
30
31
32 // This was originally supposed to give a button feel to timeline elements.
33 // It is no longer used.
34
35
36
37 class CanvasTool : public BC_Button
38 {
39 public:
40         CanvasTool(MWindow *mwindow,
41                 TrackCanvas *trackcanvas,
42                 Edit *edit,
43                 int x,
44                 int y,
45                 VFrame **data);
46         virtual ~CanvasTool();
47
48         int visible;
49         MWindow *mwindow;
50         TrackCanvas *trackcanvas;
51         Edit *edit;
52         int x;
53         int y;
54 };
55
56
57 class CanvasTools : public ArrayList<CanvasTool*>
58 {
59 public:
60         CanvasTools(MWindow *mwindow,
61                 TrackCanvas *trackcanvas);
62         virtual ~CanvasTools();
63
64         void decrease_visible();
65         void delete_invisible();
66         int visible(int x, int y, int w, int h);
67
68         MWindow *mwindow;
69         TrackCanvas *trackcanvas;
70 };
71
72
73 #endif