/*
* 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"
IVTCWindow::IVTCWindow(IVTCMain *client)
: PluginClientWindow(client,
- 210,
- 230,
- 210,
- 230,
+ 210,
+ 230,
+ 210,
+ 230,
0)
-{
- this->client = client;
+{
+ this->client = client;
}
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));
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();
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;
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)
{