ctrl_toggle preference, dblclk select single group/edit, update shortcuts
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / adcuts.h
1 #ifndef _ADCUTS_H_
2 #define _ADCUTS_H_
3
4 #include "adcuts.inc"
5 #include "bcwindowbase.inc"
6 #include "filexml.inc"
7 #include "file.inc"
8 #include "linklist.h"
9
10 class AdCut : public ListItem<AdCut>
11 {
12 public:
13         double time;
14         int action;
15
16         AdCut(double t, int a) : time(t), action(a) {}
17         ~AdCut() {}
18 };
19
20 class AdCuts : public List<AdCut>
21 {
22         int save(FileXML &xml);
23         int load(FileXML &xml);
24 public:
25         int fd, pid;
26         char filename[BCTEXTLEN];
27
28         void write_cuts(const char *filename);
29         static AdCuts *read_cuts(const char *filename);
30
31         AdCuts(int pid, int fd, const char *fn);
32         ~AdCuts();
33 };
34
35 #endif