r105: This commit was manufactured by cvs2svn to create tag
[cinelerra_cv/mob.git] / hvirtual / cinelerra / localsession.h
blob2d1028883913465e52d4a6ce7618fabcecf6b041
1 #ifndef LOCALSESSION_H
2 #define LOCALSESSION_H
4 #include "bcwindowbase.inc"
5 #include "defaults.inc"
6 #include "edl.inc"
7 #include "filexml.inc"
11 // Unique session for every EDL
13 class LocalSession
15 public:
16 LocalSession(EDL *edl);
17 ~LocalSession();
20 // Get selected range based on precidence of in/out points and
21 // highlighted region.
22 double get_selectionstart();
23 double get_selectionend();
26 void copy_from(LocalSession *that);
27 void save_xml(FileXML *file, double start);
28 void load_xml(FileXML *file, unsigned long load_flags);
29 int load_defaults(Defaults *defaults);
30 int save_defaults(Defaults *defaults);
31 void synchronize_params(LocalSession *that);
33 void boundaries();
35 EDL *edl;
38 // Variables specific to each EDL
39 // Number of samples if pasted from a clipboard.
40 // If 0 use longest track
41 double clipboard_length;
42 // Title if clip
43 char clip_title[BCTEXTLEN];
44 char clip_notes[BCTEXTLEN];
45 // Folder in parent EDL of clip
46 char folder[BCTEXTLEN];
48 // The reason why selection ranges and inpoints have to be separate:
49 // The selection position has to change to set new in points.
50 // For editing functions we have a precidence for what determines
51 // the selection.
53 // 1) If in_point or out_point exists they're used.
54 // The highlight is ignored except for setting in and out points.
55 // 2) If a highlighted selection exists it's used.
56 double selectionstart, selectionend;
57 double in_point, out_point;
58 int loop_playback;
59 double loop_start;
60 double loop_end;
61 // Vertical start of track view
62 int64_t track_start;
63 // Start of view in pixels. This has to be pixels since either
64 // samples or seconds would require drawing in fractional pixels.
65 int64_t view_start;
66 // Zooming of the timeline. Number of samples per pixel.
67 int64_t zoom_sample;
68 // Amplitude zoom
69 int64_t zoom_y;
70 // Track zoom
71 int64_t zoom_track;
73 // Range for CWindow and VWindow in seconds
74 double preview_start;
75 double preview_end;
78 #endif