X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fplugins%2Fwipe%2Fwipe.C;h=6b26694a11dfd6c4cf176420ecf79197a5948a73;hb=b2eb290b3f6e5c233393017aa152e67c76243130;hp=d516365269c40dd580b8561ee866f18a734df0f9;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/wipe/wipe.C b/cinelerra-5.1/plugins/wipe/wipe.C index d5163652..6b26694a 100644 --- a/cinelerra-5.1/plugins/wipe/wipe.C +++ b/cinelerra-5.1/plugins/wipe/wipe.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * 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()) {