dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / wipe / wipe.C
index d516365269c40dd580b8561ee866f18a734df0f9..6b26694a11dfd6c4cf176420ecf79197a5948a73 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(WipeMain)
 
 
 
-WipeLeft::WipeLeft(WipeMain *plugin, 
+WipeLeft::WipeLeft(WipeMain *plugin,
        WipeWindow *window,
        int x,
        int y)
- : BC_Radial(x, 
-               y, 
-               plugin->direction == 0, 
+ : BC_Radial(x,
+               y,
+               plugin->direction == 0,
                _("Left"))
 {
        this->plugin = plugin;
@@ -61,13 +61,13 @@ int WipeLeft::handle_event()
        return 0;
 }
 
-WipeRight::WipeRight(WipeMain *plugin, 
+WipeRight::WipeRight(WipeMain *plugin,
        WipeWindow *window,
        int x,
        int y)
- : BC_Radial(x, 
-               y, 
-               plugin->direction == 1, 
+ : BC_Radial(x,
+               y,
+               plugin->direction == 1,
                _("Right"))
 {
        this->plugin = plugin;
@@ -91,11 +91,11 @@ int WipeRight::handle_event()
 
 
 WipeWindow::WipeWindow(WipeMain *plugin)
- : PluginClientWindow(plugin, 
-       320, 
-       50, 
-       320, 
-       50, 
+ : PluginClientWindow(plugin,
+       320,
+       50,
+       320,
+       50,
        0)
 {
        this->plugin = plugin;
@@ -109,12 +109,12 @@ void WipeWindow::create_objects()
        int x = 10, y = 10;
        add_subwindow(new BC_Title(x, y, _("Direction:")));
        x += 100;
-       add_subwindow(left = new WipeLeft(plugin, 
+       add_subwindow(left = new WipeLeft(plugin,
                this,
                x,
                y));
        x += 100;
-       add_subwindow(right = new WipeRight(plugin, 
+       add_subwindow(right = new WipeRight(plugin,
                this,
                x,
                y));
@@ -135,15 +135,15 @@ WipeMain::WipeMain(PluginServer *server)
  : PluginVClient(server)
 {
        direction = 0;
-       
+
 }
 
 WipeMain::~WipeMain()
 {
-       
+
 }
 
-const char* WipeMain::plugin_title() { return _("Wipe"); }
+const char* WipeMain::plugin_title() { return N_("Wipe"); }
 int WipeMain::is_video() { return 1; }
 int WipeMain::is_transition() { return 1; }
 int WipeMain::uses_gui() { return 1; }
@@ -154,7 +154,7 @@ NEW_WINDOW_MACRO(WipeMain, WipeWindow)
 void WipeMain::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("WIPE");
        output.tag.set_property("DIRECTION", direction);
        output.append_tag();
@@ -168,7 +168,7 @@ void WipeMain::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())
        {