r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / mainsession.h
blob72899c7e869bbac2e6996beaba43f2b9fc3aaa8b
1 #ifndef MAINSESSION_H
2 #define MAINSESSION_H
4 #include "assets.inc"
5 #include "auto.inc"
6 #include "defaults.inc"
7 #include "edit.inc"
8 #include "guicast.h"
9 #include "mainsession.inc"
10 #include "maxchannels.h"
11 #include "mwindow.inc"
12 #include "plugin.inc"
13 #include "pluginset.inc"
14 #include "pluginserver.inc"
15 #include "track.inc"
17 // Options not in EDL but not changed in preferences
18 class MainSession
20 public:
21 MainSession(MWindow *mwindow);
22 ~MainSession();
24 int load_defaults(Defaults *defaults);
25 int save_defaults(Defaults *defaults);
26 void default_window_positions();
27 void boundaries();
33 // For drag and drop events
35 // The entire track where the dropped asset is going to go
36 Track *track_highlighted;
37 // The edit after the point where the media is going to be dropped.
38 Edit *edit_highlighted;
39 // The plugin set where the plugin is going to be dropped.
40 PluginSet *pluginset_highlighted;
41 // The plugin after the point where the plugin is going to be dropped.
42 Plugin *plugin_highlighted;
43 // Viewer canvas highlighted
44 int vcanvas_highlighted;
45 // Compositor canvas highlighted
46 int ccanvas_highlighted;
47 // Current drag operation
48 int current_operation;
49 // Item being dragged
50 ArrayList <PluginServer*> *drag_pluginservers;
51 Plugin *drag_plugin;
52 ArrayList<Asset*> *drag_assets;
53 ArrayList<EDL*> *drag_clips;
54 Auto *drag_auto;
56 // Edit whose handle is being dragged
57 Edit *drag_edit;
58 // Edits who are being dragged
59 ArrayList<Edit*> *drag_edits;
60 // Button pressed during drag
61 int drag_button;
62 // Handle being dragged
63 int drag_handle;
64 // Current position of drag cursor
65 double drag_position;
66 // Starting position of drag cursor
67 double drag_start;
68 // Cursor position when button was pressed
69 int drag_origin_x, drag_origin_y;
70 // Value of keyframe when button was pressed
71 float drag_start_percentage;
72 long drag_start_position;
73 // Records for redrawing brender position in timebar
74 double brender_end;
76 // Clip number for automatic title generation
77 int clip_number;
79 // Audio session
80 int changes_made;
82 // filename of the current project for window titling and saving
83 char filename[BCTEXTLEN];
86 // Window positions
87 int lwindow_x, lwindow_y, lwindow_w, lwindow_h;
88 int mwindow_x, mwindow_y, mwindow_w, mwindow_h;
89 int vwindow_x, vwindow_y, vwindow_w, vwindow_h;
90 int cwindow_x, cwindow_y, cwindow_w, cwindow_h;
91 int ctool_x, ctool_y;
92 int awindow_x, awindow_y, awindow_w, awindow_h;
93 int rmonitor_x, rmonitor_y, rmonitor_w, rmonitor_h;
94 int rwindow_x, rwindow_y, rwindow_w, rwindow_h;
95 int afolders_w;
96 int show_vwindow, show_awindow, show_cwindow, show_lwindow;
97 int plugindialog_w, plugindialog_h;
98 int menueffect_w, menueffect_h;
100 MWindow *mwindow;
103 #endif