Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.0 / cinelerra / intauto.C
diff --git a/cinelerra-5.0/cinelerra/intauto.C b/cinelerra-5.0/cinelerra/intauto.C
deleted file mode 100644 (file)
index 64c366c..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-
-/*
- * 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
- * 
- */
-
-#include "edl.h"
-#include "edlsession.h"
-#include "filexml.h"
-#include "intauto.h"
-#include "intautos.h"
-
-IntAuto::IntAuto(EDL *edl, IntAutos *autos)
- : Auto(edl, (Autos*)autos)
-{
-       value = 0;
-}
-
-IntAuto::~IntAuto()
-{
-}
-
-int IntAuto::operator==(Auto &that)
-{
-       return identical((IntAuto*)&that);
-}
-
-int IntAuto::operator==(IntAuto &that)
-{
-       return identical((IntAuto*)&that);
-}
-
-int IntAuto::identical(IntAuto *that)
-{
-       return that->value == value;
-}
-
-void IntAuto::load(FileXML *file)
-{
-       value = file->tag.get_property("VALUE", value);
-//printf("IntAuto::load 1 %d\n", value);
-}
-
-void IntAuto::copy(int64_t start, int64_t end, FileXML *file, int default_auto)
-{
-       file->tag.set_title("AUTO");
-       if(default_auto)
-               file->tag.set_property("POSITION", 0);
-       else
-               file->tag.set_property("POSITION", position - start);
-       file->tag.set_property("VALUE", value);
-       file->append_tag();
-       file->append_newline();
-}
-
-
-void IntAuto::copy_from(Auto *that)
-{
-       copy_from((IntAuto*)that);
-//printf("IntAuto::copy_from(Auto *that) %d\n", value);
-}
-
-void IntAuto::copy_from(IntAuto *that)
-{
-//printf("IntAuto::copy_from(IntAuto *that) %d %d\n", value, that->value);
-       Auto::copy_from(that);
-       this->value = that->value;
-}
-
-float IntAuto::value_to_percentage()
-{
-// Only used for toggles so this should work.
-       return (float)value;
-}
-
-int IntAuto::percentage_to_value(float percentage)
-{
-       return percentage > .5;
-}
-
-