r136: This commit was manufactured by cvs2svn to create tag 'hv_1_1_8'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / localsession.h
blob054e84ce92166796f5b30741a9a685a7839eaed3
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();
36 EDL *edl;
39 // Variables specific to each EDL
40 // Number of samples if pasted from a clipboard.
41 // If 0 use longest track
42 double clipboard_length;
43 // Title if clip
44 char clip_title[BCTEXTLEN];
45 char clip_notes[BCTEXTLEN];
46 // Folder in parent EDL of clip
47 char folder[BCTEXTLEN];
49 // The reason why selection ranges and inpoints have to be separate:
50 // The selection position has to change to set new in points.
51 // For editing functions we have a precidence for what determines
52 // the selection.
54 // 1) If in_point or out_point exists they're used.
55 // The highlight is ignored except for setting in and out points.
56 // 2) If a highlighted selection exists it's used.
57 double selectionstart, selectionend;
58 double in_point, out_point;
59 int loop_playback;
60 double loop_start;
61 double loop_end;
62 // Vertical start of track view
63 int64_t track_start;
64 // Start of view in pixels. This has to be pixels since either
65 // samples or seconds would require drawing in fractional pixels.
66 int64_t view_start;
67 // Zooming of the timeline. Number of samples per pixel.
68 int64_t zoom_sample;
69 // Amplitude zoom
70 int64_t zoom_y;
71 // Track zoom
72 int64_t zoom_track;
74 // Range for CWindow and VWindow preview in seconds.
75 double preview_start;
76 double preview_end;
79 #endif