emacs vars for .inc files
[cinelerra_cv/ct.git] / cinelerra / batch.h
blobbe95c50bee1af435b9dfd019e5629ad9e656fcc5
1 #ifndef RECORDBATCH_H
2 #define RECORDBATCH_H
4 #include "asset.inc"
5 #include "channel.inc"
6 #include "edl.inc"
7 #include "file.inc"
8 #include "guicast.h"
9 #include "mwindow.inc"
10 #include "record.inc"
11 #include "recordlabel.inc"
13 #include <vector>
15 class Batch
17 public:
18 Batch(MWindow *mwindow, Record *record);
19 ~Batch();
21 int create_objects();
22 static char* mode_to_text(int record_mode);
23 static int text_to_mode(char *text);
24 Asset_GC get_current_asset();
25 char* get_source_text();
26 Channel* get_current_channel_struct();
27 void calculate_news();
28 void create_default_path();
29 void copy_from(Batch *batch);
30 void toggle_label(double position);
31 void start_over();
33 MWindow *mwindow;
34 Record *record;
35 // List of assets for every file created.
36 // First asset is the default asset.
37 std::vector<Asset_GC> assets;
38 // Created during recording if scene to scene.
39 // Created after recording if NULL
40 EDL *edl;
42 int current_asset;
43 int recorded;
45 // Add new sources for every input device
46 // Entry in channel table to record from
47 int channel;
49 // Time offset of start of current file from batch start
50 double file_offset;
51 // Type of start time to begin at
52 int start_type;
53 // Batch is enabled
54 int enabled;
55 // Start time of batch
56 double start_time;
57 int start_day;
58 // Number of seconds for all recording except infinite
59 double duration;
60 // Flash the color of the display while waiting for start.of batch
61 int waiting;
62 RecordLabels *labels;
63 // Totals for current batch
64 long total_samples, total_frames;
65 // Current positions
66 long current_sample, current_frame;
67 // Totals for synchronization
68 long session_samples, session_frames;
70 // Info for warning field
71 int file_exists;
72 // Record mode #define
73 int record_mode;
74 char news[BCTEXTLEN];
77 #endif
79 // Local Variables:
80 // mode: C++
81 // c-file-style: "linux"
82 // End: