X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fslide%2Fslide.C;h=99a2df8335959fce9f683bc2fcc5bff95745893e;hb=0d3917a4eda0344055badf0bd6e235c15c3b6cb8;hp=ad03b5c133bafb0c3fb08fdc6a9d9c6b8e885f88;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/slide/slide.C b/cinelerra-5.1/plugins/slide/slide.C index ad03b5c1..99a2df83 100644 --- a/cinelerra-5.1/plugins/slide/slide.C +++ b/cinelerra-5.1/plugins/slide/slide.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" @@ -40,13 +40,13 @@ REGISTER_PLUGIN(SlideMain) -SlideLeft::SlideLeft(SlideMain *plugin, +SlideLeft::SlideLeft(SlideMain *plugin, SlideWindow *window, int x, int y) - : BC_Radial(x, - y, - plugin->motion_direction == 0, + : BC_Radial(x, + y, + plugin->motion_direction == 0, _("Left")) { this->plugin = plugin; @@ -62,13 +62,13 @@ int SlideLeft::handle_event() return 0; } -SlideRight::SlideRight(SlideMain *plugin, +SlideRight::SlideRight(SlideMain *plugin, SlideWindow *window, int x, int y) - : BC_Radial(x, - y, - plugin->motion_direction == 1, + : BC_Radial(x, + y, + plugin->motion_direction == 1, _("Right")) { this->plugin = plugin; @@ -84,13 +84,13 @@ int SlideRight::handle_event() return 0; } -SlideIn::SlideIn(SlideMain *plugin, +SlideIn::SlideIn(SlideMain *plugin, SlideWindow *window, int x, int y) - : BC_Radial(x, - y, - plugin->direction == 0, + : BC_Radial(x, + y, + plugin->direction == 0, _("In")) { this->plugin = plugin; @@ -106,13 +106,13 @@ int SlideIn::handle_event() return 0; } -SlideOut::SlideOut(SlideMain *plugin, +SlideOut::SlideOut(SlideMain *plugin, SlideWindow *window, int x, int y) - : BC_Radial(x, - y, - plugin->direction == 1, + : BC_Radial(x, + y, + plugin->direction == 1, _("Out")) { this->plugin = plugin; @@ -136,11 +136,11 @@ int SlideOut::handle_event() SlideWindow::SlideWindow(SlideMain *plugin) - : PluginClientWindow(plugin, - 320, - 100, - 320, - 100, + : PluginClientWindow(plugin, + 320, + 100, + 320, + 100, 0) { this->plugin = plugin; @@ -156,12 +156,12 @@ void SlideWindow::create_objects() int x = 10, y = 10; add_subwindow(new BC_Title(x, y, _("Direction:"))); x += 100; - add_subwindow(left = new SlideLeft(plugin, + add_subwindow(left = new SlideLeft(plugin, this, x, y)); x += 100; - add_subwindow(right = new SlideRight(plugin, + add_subwindow(right = new SlideRight(plugin, this, x, y)); @@ -170,12 +170,12 @@ void SlideWindow::create_objects() x = 10; add_subwindow(new BC_Title(x, y, _("Direction:"))); x += 100; - add_subwindow(in = new SlideIn(plugin, + add_subwindow(in = new SlideIn(plugin, this, x, y)); x += 100; - add_subwindow(out = new SlideOut(plugin, + add_subwindow(out = new SlideOut(plugin, this, x, y)); @@ -199,15 +199,15 @@ SlideMain::SlideMain(PluginServer *server) { motion_direction = 0; direction = 0; - + } SlideMain::~SlideMain() { - + } -const char* SlideMain::plugin_title() { return _("Slide"); } +const char* SlideMain::plugin_title() { return N_("Slide"); } int SlideMain::is_video() { return 1; } int SlideMain::is_transition() { return 1; } int SlideMain::uses_gui() { return 1; } @@ -218,7 +218,7 @@ NEW_WINDOW_MACRO(SlideMain, SlideWindow) void SlideMain::save_data(KeyFrame *keyframe) { FileXML output; - output.set_shared_output(keyframe->get_data(), MESSAGESIZE); + output.set_shared_output(keyframe->xbuf); output.tag.set_title("SLIDE"); output.tag.set_property("MOTION_DIRECTION", motion_direction); output.tag.set_property("DIRECTION", direction); @@ -233,7 +233,7 @@ void SlideMain::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()) { @@ -356,7 +356,7 @@ int SlideMain::process_realtime(VFrame *incoming, VFrame *outgoing) SLIDE(uint16_t, 4) break; } - + // int64_t dif= get_difference(&start_time); // printf("diff: %lli\n", dif);