00001 #ifndef MAINSESSION_H
00002 #define MAINSESSION_H
00003
00004 #include "asset.inc"
00005 #include "assets.inc"
00006 #include "auto.inc"
00007 #include "bchash.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
00021 class MainSession
00022 {
00023 public:
00024 MainSession(MWindow *mwindow);
00025 ~MainSession();
00026
00027 int load_defaults(BC_Hash *defaults);
00028 int save_defaults(BC_Hash *defaults);
00029 void default_window_positions();
00030 void boundaries();
00031
00032
00033
00034
00035
00036
00037
00038
00039 Track *track_highlighted;
00040
00041 Edit *edit_highlighted;
00042
00043 PluginSet *pluginset_highlighted;
00044
00045 Plugin *plugin_highlighted;
00046
00047 int vcanvas_highlighted;
00048
00049 int ccanvas_highlighted;
00050
00051 int current_operation;
00052
00053 ArrayList <PluginServer*> *drag_pluginservers;
00054 Plugin *drag_plugin;
00055
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
00063 Edit *drag_edit;
00064
00065 ArrayList<Edit*> *drag_edits;
00066
00067 int drag_button;
00068
00069 int drag_handle;
00070
00071 double drag_position;
00072
00073 double drag_start;
00074
00075 int drag_origin_x, drag_origin_y;
00076
00077 float drag_start_percentage;
00078 long drag_start_position;
00079
00080 double brender_end;
00081
00082
00083 int cwindow_controls;
00084
00085
00086 int clip_number;
00087
00088
00089 int changes_made;
00090
00091
00092 char filename[BCTEXTLEN];
00093
00094 int batchrender_x, batchrender_y, batchrender_w, batchrender_h;
00095
00096
00097
00098 int lwindow_x, lwindow_y, lwindow_w, lwindow_h;
00099
00100 int mwindow_x, mwindow_y, mwindow_w, mwindow_h;
00101
00102 int vwindow_x, vwindow_y, vwindow_w, vwindow_h;
00103
00104 int cwindow_x, cwindow_y, cwindow_w, cwindow_h;
00105 int ctool_x, ctool_y;
00106
00107 int awindow_x, awindow_y, awindow_w, awindow_h;
00108 int gwindow_x, gwindow_y;
00109
00110 int rmonitor_x, rmonitor_y, rmonitor_w, rmonitor_h;
00111
00112 int rwindow_x, rwindow_y, rwindow_w, rwindow_h;
00113
00114 int ewindow_w, ewindow_h;
00115 int afolders_w;
00116 int show_vwindow, show_awindow, show_cwindow, show_gwindow, show_lwindow;
00117 int plugindialog_w, plugindialog_h;
00118 int menueffect_w, menueffect_h;
00119
00120 int cwindow_fullscreen;
00121 int rwindow_fullscreen;
00122 int vwindow_fullscreen;
00123
00124
00125 int current_tip;
00126
00127 MWindow *mwindow;
00128 };
00129
00130 #endif