X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fivtc%2Fivtcwindow.C;h=22a113ca249e9952af11d0ccaa4b612c2da90a8b;hp=e4b32c70ebaae00aeb8156b2ddb843dd18e8ede9;hb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;hpb=5a1b2bb96f2bd6b7ef4f8031763683726c02219d diff --git a/cinelerra-5.1/plugins/ivtc/ivtcwindow.C b/cinelerra-5.1/plugins/ivtc/ivtcwindow.C index e4b32c70..22a113ca 100644 --- a/cinelerra-5.1/plugins/ivtc/ivtcwindow.C +++ b/cinelerra-5.1/plugins/ivtc/ivtcwindow.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" @@ -42,13 +42,13 @@ static const char *pattern_text[] = IVTCWindow::IVTCWindow(IVTCMain *client) : PluginClientWindow(client, - 210, - 230, - 210, - 230, + 210, + 230, + 210, + 230, 0) -{ - this->client = client; +{ + this->client = client; } IVTCWindow::~IVTCWindow() @@ -58,7 +58,7 @@ IVTCWindow::~IVTCWindow() void IVTCWindow::create_objects() { int x = 10, y = 10; - + add_tool(new BC_Title(x, y, _("Pattern offset:"))); y += 20; add_tool(frame_offset = new IVTCOffset(client, x, y)); @@ -71,15 +71,15 @@ void IVTCWindow::create_objects() y += 20; for(int i = 0; i < TOTAL_PATTERNS; i++) { - add_subwindow(pattern[i] = new IVTCPattern(client, - this, - i, - _(pattern_text[i]), - x, + add_subwindow(pattern[i] = new IVTCPattern(client, + this, + i, + _(pattern_text[i]), + x, y)); y += 20; } - + if(client->config.pattern == IVTCConfig::AUTOMATIC) { frame_offset->disable(); @@ -96,10 +96,10 @@ void IVTCWindow::create_objects() IVTCOffset::IVTCOffset(IVTCMain *client, int x, int y) - : BC_TextBox(x, - y, + : BC_TextBox(x, + y, 190, - 1, + 1, client->config.frame_offset) { this->client = client; @@ -148,11 +148,11 @@ int IVTCAuto::handle_event() return 1; } -IVTCPattern::IVTCPattern(IVTCMain *client, - IVTCWindow *window, - int number, - char *text, - int x, +IVTCPattern::IVTCPattern(IVTCMain *client, + IVTCWindow *window, + int number, + char *text, + int x, int y) : BC_Radial(x, y, client->config.pattern == number, text) {