4 #include "bcwindowbase.inc"
5 #include "defaults.inc"
11 // Unique session for every EDL
16 LocalSession(EDL
*edl
);
20 // Get selected range based on precidence of in/out points and
21 // highlighted region.
22 // 1) If a highlighted selection exists it's used.
23 // 2) If in_point or out_point exists they're used.
24 // 3) If no in/out points exist, the insertion point is returned.
25 // highlight_only - forces it to use highlighted region only.
26 double get_selectionstart(int highlight_only
= 0);
27 double get_selectionend(int highlight_only
= 0);
29 double get_outpoint();
32 void set_selectionstart(double value
);
33 void set_selectionend(double value
);
34 void set_inpoint(double value
);
35 void set_outpoint(double value
);
37 void unset_outpoint();
40 void copy_from(LocalSession
*that
);
41 void save_xml(FileXML
*file
, double start
);
42 void load_xml(FileXML
*file
, unsigned long load_flags
);
43 int load_defaults(Defaults
*defaults
);
44 int save_defaults(Defaults
*defaults
);
45 // Used to copy parameters that affect rendering.
46 void synchronize_params(LocalSession
*that
);
54 // Variables specific to each EDL
55 // Number of samples if pasted from a clipboard.
56 // If 0 use longest track
57 double clipboard_length
;
59 char clip_title
[BCTEXTLEN
];
60 char clip_notes
[BCTEXTLEN
];
61 // Folder in parent EDL of clip
62 char folder
[BCTEXTLEN
];
67 // Vertical start of track view
69 // Horizontal start of view in pixels. This has to be pixels since either
70 // samples or seconds would require drawing in fractional pixels.
72 // Zooming of the timeline. Number of samples per pixel.
78 // Vertical automation scale
83 float red
, green
, blue
;
85 // Range for CWindow and VWindow preview in seconds.
90 // The reason why selection ranges and inpoints have to be separate:
91 // The selection position has to change to set new in points.
92 // For editing functions we have a precidence for what determines
95 double selectionstart
, selectionend
;
96 double in_point
, out_point
;