rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / cinelerra / atrack.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  * 
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  * 
20  */
21
22 #ifndef ATRACK_H
23 #define ATRACK_H
24
25 #include "arraylist.h"
26 #include "autoconf.inc"
27 #include "edl.inc"
28 #include "filexml.inc"
29 #include "floatautos.inc"
30 #include "linklist.h"
31 #include "maxchannels.h"
32 #include "panautos.inc"
33 #include "track.h"
34
35
36
37
38 class ATrack : public Track
39 {
40 public:
41         ATrack(EDL *edl, Tracks *tracks);
42         ATrack() { };
43         ~ATrack();
44
45         void create_objects();
46         int load_defaults(BC_Hash *defaults);
47         void set_default_title();
48         PluginSet* new_plugins();
49         int vertical_span(Theme *theme);
50         int save_header(FileXML *file);
51         int save_derived(FileXML *file);
52         int load_header(FileXML *file, uint32_t load_flags);
53         int load_derived(FileXML *file, uint32_t load_flags);
54         int copy_settings(Track *track);
55         int identical(int64_t sample1, int64_t sample2);
56         void synchronize_params(Track *track);
57         int64_t to_units(double position, int round);
58         double to_doubleunits(double position);
59         double from_units(int64_t position);
60
61
62
63
64
65
66
67
68 // ====================================== initialization
69         int create_derived_objs(int flash);
70
71
72
73
74 // ===================================== editing
75         int paste_derived(int64_t start, int64_t end, int64_t total_length, FileXML *xml, int &current_channel);
76
77
78         int modify_handles(int64_t oldposition, int64_t newposition, int currentend);
79
80         int64_t length();
81 //      int get_dimensions(double &view_start, 
82 //              double &view_units, 
83 //              double &zoom_units);
84 };
85
86 #endif