Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

mainsession.h

Go to the documentation of this file.
00001 #ifndef MAINSESSION_H
00002 #define MAINSESSION_H
00003 
00004 #include "asset.inc"
00005 #include "assets.inc"
00006 #include "auto.inc"
00007 #include "defaults.inc"
00008 #include "edit.inc"
00009 #include "edits.inc"
00010 #include "edl.inc"
00011 #include "guicast.h"
00012 #include "mainsession.inc"
00013 #include "maxchannels.h"
00014 #include "mwindow.inc"
00015 #include "plugin.inc"
00016 #include "pluginset.inc"
00017 #include "pluginserver.inc"
00018 #include "track.inc"
00019 
00020 // Options not in EDL but not changed in preferences
00021 class MainSession
00022 {
00023 public:
00024         MainSession(MWindow *mwindow);
00025         ~MainSession();
00026 
00027         int load_defaults(Defaults *defaults);
00028         int save_defaults(Defaults *defaults);
00029         void default_window_positions();
00030         void boundaries();
00031 
00032 
00033 
00034 
00035 
00036 // For drag and drop events
00037 
00038 // The entire track where the dropped asset is going to go
00039         Track *track_highlighted;
00040 // The edit after the point where the media is going to be dropped.
00041         Edit *edit_highlighted;
00042 // The plugin set where the plugin is going to be dropped.
00043         PluginSet *pluginset_highlighted;
00044 // The plugin after the point where the plugin is going to be dropped.
00045         Plugin *plugin_highlighted;
00046 // Viewer canvas highlighted
00047         int vcanvas_highlighted;
00048 // Compositor canvas highlighted
00049         int ccanvas_highlighted;
00050 // Current drag operation
00051         int current_operation;
00052 // Item being dragged
00053         ArrayList <PluginServer*> *drag_pluginservers;
00054         Plugin *drag_plugin;
00055 // When trim should only affect the selected edits or plugins
00056         Edits *trim_edits;
00057         ArrayList<Asset*> *drag_assets;
00058         ArrayList<EDL*> *drag_clips;
00059         Auto *drag_auto;
00060         ArrayList<Auto*> *drag_auto_gang;
00061 
00062 // Edit whose handle is being dragged
00063         Edit *drag_edit;
00064 // Edits who are being dragged
00065         ArrayList<Edit*> *drag_edits;
00066 // Button pressed during drag
00067         int drag_button;
00068 // Handle being dragged
00069         int drag_handle;
00070 // Current position of drag cursor
00071         double drag_position;
00072 // Starting position of drag cursor
00073         double drag_start;
00074 // Cursor position when button was pressed
00075         int drag_origin_x, drag_origin_y;
00076 // Value of keyframe when button was pressed
00077         float drag_start_percentage;
00078         long drag_start_position;
00079 // Records for redrawing brender position in timebar
00080         double brender_end;
00081 
00082 // Show controls in CWindow
00083         int cwindow_controls;
00084 
00085 // Clip number for automatic title generation
00086         int clip_number;
00087 
00088 // Audio session
00089         int changes_made;
00090 
00091 // filename of the current project for window titling and saving
00092         char filename[BCTEXTLEN];
00093 
00094         int batchrender_x, batchrender_y, batchrender_w, batchrender_h;
00095 
00096 // Window positions
00097         int lwindow_x, lwindow_y, lwindow_w, lwindow_h;
00098         int mwindow_x, mwindow_y, mwindow_w, mwindow_h;
00099         int vwindow_x, vwindow_y, vwindow_w, vwindow_h;
00100         int cwindow_x, cwindow_y, cwindow_w, cwindow_h;
00101         int ctool_x, ctool_y;
00102         int awindow_x, awindow_y, awindow_w, awindow_h;
00103         int gwindow_x, gwindow_y;
00104         int rmonitor_x, rmonitor_y, rmonitor_w, rmonitor_h;
00105         int rwindow_x, rwindow_y, rwindow_w, rwindow_h;
00106         int afolders_w;
00107         int show_vwindow, show_awindow, show_cwindow, show_gwindow, show_lwindow;
00108         int plugindialog_w, plugindialog_h;
00109         int menueffect_w, menueffect_h;
00110 
00111 
00112 // Tip of the day
00113         int current_tip;
00114 
00115         MWindow *mwindow;
00116 };
00117 
00118 #endif

Generated on Sun Jan 8 13:38:56 2006 for Cinelerra-svn by  doxygen 1.4.4