1 #include "bcdisplayinfo.h"
2 #include "agingwindow.h"
6 #define _(String) gettext(String)
7 #define gettext_noop(String) String
8 #define N_(String) gettext_noop (String)
10 PLUGIN_THREAD_OBJECT(AgingMain, AgingThread, AgingWindow)
16 AgingWindow::AgingWindow(AgingMain *client, int x, int y)
17 : BC_Window(client->gui_string,
28 this->client = client;
31 AgingWindow::~AgingWindow()
35 int AgingWindow::create_objects()
38 add_subwindow(new BC_Title(x, y,
39 _("Film aging from EffectTV\n"
40 "Copyright (C) 2001 FUKUCHI Kentarou")
44 // add_subwindow(color = new AgingColor(x, y, client));
47 // add_subwindow(scratches = new AgingScratches(x, y, client));
48 // add_subwindow(scratch_count = new AgingScratchCount(x + 100, y + 10, client));
51 // add_subwindow(pits = new AgingPits(x, y, client));
52 // add_subwindow(pit_count = new AgingPitCount(x + 100, y + 10, client));
55 // add_subwindow(dust = new AgingDust(x, y, client));
56 // add_subwindow(dust_count = new AgingDustCount(x + 100, y + 10, client));
63 int AgingWindow::close_event()
65 // Set result to 1 to indicate a client side close
76 AgingColor::AgingColor(int x, int y, AgingMain *plugin)
77 : BC_CheckBox(x, y, plugin->config.colorage, _("Grain"))
79 this->plugin = plugin;
82 int AgingColor::handle_event()
91 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
92 : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
97 int AgingScratches::handle_event()
110 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
118 plugin->config.scratch_lines)
120 this->plugin = plugin;
123 int AgingScratchCount::handle_event()
133 AgingPits::AgingPits(int x, int y, AgingMain *plugin)
134 : BC_CheckBox(x, y, plugin->config.pits, _("Pits"))
136 this->plugin = plugin;
139 int AgingPits::handle_event()
149 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
157 plugin->config.pit_count)
159 this->plugin = plugin;
162 int AgingPitCount::handle_event()
175 AgingDust::AgingDust(int x, int y, AgingMain *plugin)
176 : BC_CheckBox(x, y, plugin->config.dust, _("Dust"))
178 this->plugin = plugin;
181 int AgingDust::handle_event()
190 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
198 plugin->config.dust_count)
200 this->plugin = plugin;
203 int AgingDustCount::handle_event()