r802: Remove renderframfsclient and renderfarmfsserver .h and .C from Makefile.am...
[cinelerra_cv/mob.git] / cinelerra / localsession.h
blobe79480017bec7b523b73dfc479405b3ee95104ed
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 // 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);
28 double get_inpoint();
29 double get_outpoint();
30 int inpoint_valid();
31 int outpoint_valid();
32 void set_selectionstart(double value);
33 void set_selectionend(double value);
34 void set_inpoint(double value);
35 void set_outpoint(double value);
36 void unset_inpoint();
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);
48 void boundaries();
51 EDL *edl;
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;
58 // Title if clip
59 char clip_title[BCTEXTLEN];
60 char clip_notes[BCTEXTLEN];
61 // Folder in parent EDL of clip
62 char folder[BCTEXTLEN];
64 int loop_playback;
65 double loop_start;
66 double loop_end;
67 // Vertical start of track view
68 int64_t track_start;
69 // Horizontal start of view in pixels. This has to be pixels since either
70 // samples or seconds would require drawing in fractional pixels.
71 int64_t view_start;
72 // Zooming of the timeline. Number of samples per pixel.
73 int64_t zoom_sample;
74 // Amplitude zoom
75 int64_t zoom_y;
76 // Track zoom
77 int64_t zoom_track;
78 // Vertical automation scale
79 float automation_min;
80 float automation_max;
82 // Eye dropper
83 float red, green, blue;
85 // Range for CWindow and VWindow preview in seconds.
86 double preview_start;
87 double preview_end;
89 private:
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
93 // the selection.
95 double selectionstart, selectionend;
96 double in_point, out_point;
99 #endif