dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / irissquare / irissquare.C
index c98646cb095671acbebe15f364a68aa5dd81a294..6d3d85b3eedbe5b10e1f712cf5d3c0a209d03fab 100644 (file)
@@ -2,21 +2,21 @@
 /*
  * 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 "bcdisplayinfo.h"
@@ -39,13 +39,13 @@ REGISTER_PLUGIN(IrisSquareMain)
 
 
 
-IrisSquareIn::IrisSquareIn(IrisSquareMain *plugin, 
+IrisSquareIn::IrisSquareIn(IrisSquareMain *plugin,
        IrisSquareWindow *window,
        int x,
        int y)
- : BC_Radial(x, 
-               y, 
-               plugin->direction == 0, 
+ : BC_Radial(x,
+               y,
+               plugin->direction == 0,
                _("In"))
 {
        this->plugin = plugin;
@@ -61,13 +61,13 @@ int IrisSquareIn::handle_event()
        return 0;
 }
 
-IrisSquareOut::IrisSquareOut(IrisSquareMain *plugin, 
+IrisSquareOut::IrisSquareOut(IrisSquareMain *plugin,
        IrisSquareWindow *window,
        int x,
        int y)
- : BC_Radial(x, 
-               y, 
-               plugin->direction == 1, 
+ : BC_Radial(x,
+               y,
+               plugin->direction == 1,
                _("Out"))
 {
        this->plugin = plugin;
@@ -91,11 +91,11 @@ int IrisSquareOut::handle_event()
 
 
 IrisSquareWindow::IrisSquareWindow(IrisSquareMain *plugin)
- : PluginClientWindow(plugin, 
-       320, 
-       50, 
-       320, 
-       50, 
+ : PluginClientWindow(plugin,
+       320,
+       50,
+       320,
+       50,
        0)
 {
        this->plugin = plugin;
@@ -107,12 +107,12 @@ void IrisSquareWindow::create_objects()
        int x = 10, y = 10;
        add_subwindow(new BC_Title(x, y, _("Direction:")));
        x += 100;
-       add_subwindow(in = new IrisSquareIn(plugin, 
+       add_subwindow(in = new IrisSquareIn(plugin,
                this,
                x,
                y));
        x += 100;
-       add_subwindow(out = new IrisSquareOut(plugin, 
+       add_subwindow(out = new IrisSquareOut(plugin,
                this,
                x,
                y));
@@ -133,15 +133,15 @@ IrisSquareMain::IrisSquareMain(PluginServer *server)
  : PluginVClient(server)
 {
        direction = 0;
-       
+
 }
 
 IrisSquareMain::~IrisSquareMain()
 {
-       
+
 }
 
-const char* IrisSquareMain::plugin_title() { return _("IrisSquare"); }
+const char* IrisSquareMain::plugin_title() { return N_("IrisSquare"); }
 int IrisSquareMain::is_video() { return 1; }
 int IrisSquareMain::is_transition() { return 1; }
 int IrisSquareMain::uses_gui() { return 1; }
@@ -152,7 +152,7 @@ NEW_WINDOW_MACRO(IrisSquareMain, IrisSquareWindow)
 void IrisSquareMain::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("IRISSQUARE");
        output.tag.set_property("DIRECTION", direction);
        output.append_tag();
@@ -166,7 +166,7 @@ void IrisSquareMain::read_data(KeyFrame *keyframe)
 {
        FileXML input;
 
-       input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+       input.set_shared_input(keyframe->xbuf);
 
        while(!input.read_tag())
        {