/*
* 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"
RGB601Window::RGB601Window(RGB601Main *client)
: PluginClientWindow(client, 235, 100, 235, 100, 0)
-{
- this->client = client;
+{
+ this->client = client;
}
RGB601Window::~RGB601Window()
void RGB601Window::create_objects()
{
int x = 10, y = 10;
-
- add_tool(forward = new RGB601Direction(this,
- x,
- y,
- &client->config.direction,
- 1,
+
+ add_tool(forward = new RGB601Direction(this,
+ x,
+ y,
+ &client->config.direction,
+ 1,
_("RGB -> 601 compression")));
y += 30;
- add_tool(reverse = new RGB601Direction(this,
- x,
- y,
- &client->config.direction,
- 2,
+ add_tool(reverse = new RGB601Direction(this,
+ x,
+ y,
+ &client->config.direction,
+ 2,
_("601 -> RGB expansion")));
show_window();
RGB601Direction::~RGB601Direction()
{
}
-
+
int RGB601Direction::handle_event()
{
*output = get_value() ? true_value : 0;