12 #include "mainsession.inc"
13 #include "maxchannels.h"
14 #include "mwindow.inc"
16 #include "pluginset.inc"
17 #include "pluginserver.inc"
20 // Options not in EDL but not changed in preferences
24 MainSession(MWindow
*mwindow
);
27 int load_defaults(BC_Hash
*defaults
);
28 int save_defaults(BC_Hash
*defaults
);
29 void default_window_positions();
36 // For drag and drop events
38 // The entire track where the dropped asset is going to go
39 Track
*track_highlighted
;
40 // The edit after the point where the media is going to be dropped.
41 Edit
*edit_highlighted
;
42 // The plugin set where the plugin is going to be dropped.
43 PluginSet
*pluginset_highlighted
;
44 // The plugin after the point where the plugin is going to be dropped.
45 Plugin
*plugin_highlighted
;
46 // Viewer canvas highlighted
47 int vcanvas_highlighted
;
48 // Compositor canvas highlighted
49 int ccanvas_highlighted
;
50 // Current drag operation
51 int current_operation
;
53 ArrayList
<PluginServer
*> *drag_pluginservers
;
55 // When trim should only affect the selected edits or plugins
57 ArrayList
<Asset
*> *drag_assets
;
58 ArrayList
<EDL
*> *drag_clips
;
60 ArrayList
<Auto
*> *drag_auto_gang
;
62 // Edit whose handle is being dragged
64 // Edits who are being dragged
65 ArrayList
<Edit
*> *drag_edits
;
66 // Button pressed during drag
68 // Handle being dragged
70 // Current position of drag cursor
72 // Starting position of drag cursor
74 // Cursor position when button was pressed
75 int drag_origin_x
, drag_origin_y
;
76 // Value of keyframe when button was pressed
77 float drag_start_percentage
;
78 long drag_start_position
;
79 // Records for redrawing brender position in timebar
82 // Show controls in CWindow
85 // Clip number for automatic title generation
91 // filename of the current project for window titling and saving
92 char filename
[BCTEXTLEN
];
94 int batchrender_x
, batchrender_y
, batchrender_w
, batchrender_h
;
98 int lwindow_x
, lwindow_y
, lwindow_w
, lwindow_h
;
100 int mwindow_x
, mwindow_y
, mwindow_w
, mwindow_h
;
102 int vwindow_x
, vwindow_y
, vwindow_w
, vwindow_h
;
104 int cwindow_x
, cwindow_y
, cwindow_w
, cwindow_h
;
105 int ctool_x
, ctool_y
;
107 int awindow_x
, awindow_y
, awindow_w
, awindow_h
;
108 int gwindow_x
, gwindow_y
;
110 int rmonitor_x
, rmonitor_y
, rmonitor_w
, rmonitor_h
;
112 int rwindow_x
, rwindow_y
, rwindow_w
, rwindow_h
;
114 int ewindow_w
, ewindow_h
;
116 int show_vwindow
, show_awindow
, show_cwindow
, show_gwindow
, show_lwindow
;
117 int plugindialog_w
, plugindialog_h
;
118 int menueffect_w
, menueffect_h
;
120 int cwindow_fullscreen
;
121 int rwindow_fullscreen
;
122 int vwindow_fullscreen
;