rework transportque for shuttle speed codes, add rusage, cleanup
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / edl.inc
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 EDL_INC
23 #define EDL_INC
24
25 class EDL;
26
27 // Load flags for undo
28 #define LOAD_ALL        0xffffffff
29 #define LOAD_EDITS      0x00000001
30 #define LOAD_AUTOMATION 0x00000002
31 #define LOAD_PATCHES    0x00000004
32 #define LOAD_CONSOLE    0x00000008
33 #define LOAD_TIMEBAR    0x00000010
34 #define LOAD_ACONFIG    0x00000020
35 #define LOAD_VCONFIG    0x00000040
36 #define LOAD_ASSETS     0x00000080
37 #define LOAD_SESSION    0x00000100
38
39
40 #define EDITING_MODES 2
41
42 // Editing modes
43 #define EDITING_ARROW 0
44 #define EDITING_IBEAM 1
45
46
47 // default for left button
48 // default for middle button
49 // default for right button
50 #define MOVE_RIPPLE 0
51 #define MOVE_ROLL   1
52 #define MOVE_SLIP   2
53 #define MOVE_SLIDE  3
54 #define MOVE_EDGE   4
55 #define MOVE_EDITS_DISABLED 5
56 #define EDIT_HANDLE_MODES 5
57
58 // AWindow folders
59 #define AW_NO_FOLDER         -1
60 #define AW_AEFFECT_FOLDER     0
61 #define AW_VEFFECT_FOLDER     1
62 #define AW_ATRANSITION_FOLDER 2
63 #define AW_VTRANSITION_FOLDER 3
64 #define AW_LABEL_FOLDER       4
65 #define AW_CLIP_FOLDER        5
66 #define AW_MEDIA_FOLDER       6
67 #define AW_PROXY_FOLDER       7
68 #define AWINDOW_FOLDERS       8
69 #define AWINDOW_USER_FOLDERS  8
70
71
72 #define AWINDOW_MODES 2
73 // Modes for AWindow views
74 #define ASSETS_TEXT 0
75 #define ASSETS_ICONS 1
76 #define ASSETS_ICONS_PACKED 2
77 #define ASSETS_ICON_LIST 3
78 #define FOLDERS_TEXT 0
79 #define FOLDERS_ICONS 1
80
81 #define ASSET_COLUMNS 2
82
83 // Active tool in CWindow corresponds to a member of the CPanel array
84 // and the current drag operation
85
86 #define CPANEL_OPERATIONS 10
87
88
89 #define CWINDOW_NONE -1
90 #define CWINDOW_PROTECT     0
91 #define CWINDOW_ZOOM        1
92 #define CWINDOW_MASK        2
93 #define CWINDOW_RULER       3
94 #define CWINDOW_CAMERA      4
95 #define CWINDOW_PROJECTOR   5
96 #define CWINDOW_CROP        6
97 #define CWINDOW_EYEDROP     7
98 #define CWINDOW_TOOL_WINDOW 8
99 #define CWINDOW_TITLESAFE   9
100
101 // Current dragging operations not available in the CPanel
102 #define CWINDOW_SCROLL 0x10
103 #define CWINDOW_MASK_CONTROL_IN 0x15
104 #define CWINDOW_MASK_CONTROL_OUT 0x16
105 #define CWINDOW_MASK_TRANSLATE 0x17
106
107 // Inclusive limits for zoom panel
108 #define MIN_ZOOM_TIME 1
109 #define MAX_ZOOM_TIME 0x100000
110 #define DEFAULT_ZOOM_TIME 1024
111 #define MIN_AMP_ZOOM 8
112 #define MAX_AMP_ZOOM 262144
113 #define MIN_TRACK_ZOOM 32
114 #define MAX_TRACK_ZOOM 1024
115
116 #define MAX_PAN 1.0
117 #define PAN_RADIUS 50
118
119 #endif