4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "bcdisplayinfo.h"
23 #include "agingwindow.h"
33 AgingWindow::AgingWindow(AgingMain *client)
34 : PluginClientWindow(client,
41 this->client = client;
44 AgingWindow::~AgingWindow()
48 void AgingWindow::create_objects()
51 add_subwindow(new BC_Title(x, y,
52 "Film aging from EffectTV\n"
53 "Copyright (C) 2001 FUKUCHI Kentarou")
57 // add_subwindow(color = new AgingColor(x, y, client));
60 // add_subwindow(scratches = new AgingScratches(x, y, client));
61 // add_subwindow(scratch_count = new AgingScratchCount(x + 100, y + 10, client));
64 // add_subwindow(pits = new AgingPits(x, y, client));
65 // add_subwindow(pit_count = new AgingPitCount(x + 100, y + 10, client));
68 // add_subwindow(dust = new AgingDust(x, y, client));
69 // add_subwindow(dust_count = new AgingDustCount(x + 100, y + 10, client));
82 AgingColor::AgingColor(int x, int y, AgingMain *plugin)
83 : BC_CheckBox(x, y, plugin->config.colorage, _("Grain"))
85 this->plugin = plugin;
88 int AgingColor::handle_event()
97 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
98 : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
100 this->plugin = plugin;
103 int AgingScratches::handle_event()
116 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
124 plugin->config.scratch_lines)
126 this->plugin = plugin;
129 int AgingScratchCount::handle_event()
139 AgingPits::AgingPits(int x, int y, AgingMain *plugin)
140 : BC_CheckBox(x, y, plugin->config.pits, _("Pits"))
142 this->plugin = plugin;
145 int AgingPits::handle_event()
155 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
163 plugin->config.pit_count)
165 this->plugin = plugin;
168 int AgingPitCount::handle_event()
181 AgingDust::AgingDust(int x, int y, AgingMain *plugin)
182 : BC_CheckBox(x, y, plugin->config.dust, _("Dust"))
184 this->plugin = plugin;
187 int AgingDust::handle_event()
196 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
204 plugin->config.dust_count)
206 this->plugin = plugin;
209 int AgingDustCount::handle_event()