Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / cinelerra / atrack.h
diff --git a/cinelerra-5.1/cinelerra/atrack.h b/cinelerra-5.1/cinelerra/atrack.h
new file mode 100644 (file)
index 0000000..2ebd1df
--- /dev/null
@@ -0,0 +1,86 @@
+
+/*
+ * CINELERRA
+ * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * 
+ */
+
+#ifndef ATRACK_H
+#define ATRACK_H
+
+#include "arraylist.h"
+#include "autoconf.inc"
+#include "edl.inc"
+#include "filexml.inc"
+#include "floatautos.inc"
+#include "linklist.h"
+#include "maxchannels.h"
+#include "panautos.inc"
+#include "track.h"
+
+
+
+
+class ATrack : public Track
+{
+public:
+       ATrack(EDL *edl, Tracks *tracks);
+       ATrack() { };
+       ~ATrack();
+
+       void create_objects();
+       int load_defaults(BC_Hash *defaults);
+       void set_default_title();
+       PluginSet* new_plugins();
+       int vertical_span(Theme *theme);
+       int save_header(FileXML *file);
+       int save_derived(FileXML *file);
+       int load_header(FileXML *file, uint32_t load_flags);
+       int load_derived(FileXML *file, uint32_t load_flags);
+       int copy_settings(Track *track);
+       int identical(int64_t sample1, int64_t sample2);
+       void synchronize_params(Track *track);
+       int64_t to_units(double position, int round);
+       double to_doubleunits(double position);
+       double from_units(int64_t position);
+
+
+
+
+
+
+
+
+// ====================================== initialization
+       int create_derived_objs(int flash);
+
+
+
+
+// ===================================== editing
+       int paste_derived(int64_t start, int64_t end, int64_t total_length, FileXML *xml, int &current_channel);
+
+
+       int modify_handles(int64_t oldposition, int64_t newposition, int currentend);
+
+       int64_t length();
+//     int get_dimensions(double &view_start, 
+//             double &view_units, 
+//             double &zoom_units);
+};
+
+#endif