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 WINDOW_CLOSE_EVENT(AgingWindow)
71 AgingColor::AgingColor(int x, int y, AgingMain *plugin)
72 : BC_CheckBox(x, y, plugin->config.colorage, _("Grain"))
74 this->plugin = plugin;
77 int AgingColor::handle_event()
86 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
87 : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
92 int AgingScratches::handle_event()
105 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
113 plugin->config.scratch_lines)
115 this->plugin = plugin;
118 int AgingScratchCount::handle_event()
128 AgingPits::AgingPits(int x, int y, AgingMain *plugin)
129 : BC_CheckBox(x, y, plugin->config.pits, _("Pits"))
131 this->plugin = plugin;
134 int AgingPits::handle_event()
144 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
152 plugin->config.pit_count)
154 this->plugin = plugin;
157 int AgingPitCount::handle_event()
170 AgingDust::AgingDust(int x, int y, AgingMain *plugin)
171 : BC_CheckBox(x, y, plugin->config.dust, _("Dust"))
173 this->plugin = plugin;
176 int AgingDust::handle_event()
185 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
193 plugin->config.dust_count)
195 this->plugin = plugin;
198 int AgingDustCount::handle_event()