r553: Modern gccs require __attribute__((used)) for variables used only in assembly.
[cinelerra_cv/mob.git] / cinelerra / auto.h
blobf0eaeef03b87b19fdaadcefb1c8931dd25513e80
1 #ifndef AUTO_H
2 #define AUTO_H
4 #include "auto.inc"
5 #include "edl.inc"
6 #include "guicast.h"
7 #include "filexml.inc"
8 #include "autos.inc"
15 // The default constructor is used for menu effects.
17 class Auto : public ListItem<Auto>
19 public:
20 Auto();
21 Auto(EDL *edl, Autos *autos);
22 virtual ~Auto() {};
24 virtual Auto& operator=(Auto &that);
25 virtual int operator==(Auto &that);
26 virtual void copy_from(Auto *that);
27 /* for interpolation creation */
28 /* if not possible, copy from a1 and return 0*/
29 virtual int interpolate_from(Auto *a1, Auto *a2, int64_t position);
30 virtual void copy(int64_t start, int64_t end, FileXML *file, int default_only);
32 virtual void load(FileXML *file);
34 virtual void get_caption(char *string) {};
35 virtual float value_to_percentage();
36 virtual float invalue_to_percentage();
37 virtual float outvalue_to_percentage();
39 int skip; // if added by selection event for moves
40 EDL *edl;
41 Autos *autos;
42 int WIDTH, HEIGHT;
43 // Units native to the track
44 int is_default;
45 int64_t position;
47 private:
48 virtual int value_to_str(char *string, float value) {};
53 #endif