r370: Heroine Virutal's official release 1.2.1
[cinelerra_cv/mob.git] / hvirtual / plugins / aging / agingwindow.C
blob052513a677b31e6ea2effda8727b37d3f3cb7818
1 #include "bcdisplayinfo.h"
2 #include "agingwindow.h"
5 #include <libintl.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, 
18         x,
19         y,
20         300, 
21         170, 
22         300, 
23         170, 
24         0, 
25         0,
26         1)
27
28         this->client = client; 
31 AgingWindow::~AgingWindow()
35 int AgingWindow::create_objects()
37         int x = 10, y = 10;
38         add_subwindow(new BC_Title(x, y, 
39                 _("Film aging from EffectTV\n"
40                 "Copyright (C) 2001 FUKUCHI Kentarou")
41         ));
42 //      
43 //      y += 50;
44 //      add_subwindow(color = new AgingColor(x, y, client));    
45 //      
46 //      y += 25;
47 //      add_subwindow(scratches = new AgingScratches(x, y, client));
48 //      add_subwindow(scratch_count = new AgingScratchCount(x + 100, y + 10, client));
49 //      
50 //      y += 25;
51 //      add_subwindow(pits = new AgingPits(x, y, client));
52 //      add_subwindow(pit_count = new AgingPitCount(x + 100, y + 10, client));
53 //      
54 //      y += 25;
55 //      add_subwindow(dust = new AgingDust(x, y, client));
56 //      add_subwindow(dust_count = new AgingDustCount(x + 100, y + 10, client));
58         show_window();
59         flush();
60         return 0;
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()
79         return 1;
86 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
87  : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
89         this->plugin;
92 int AgingScratches::handle_event()
94         return 1;
105 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
106  : BC_ISlider(x, 
107                         y,
108                         0,
109                         180, 
110                         180, 
111                         0, 
112                         SCRATCH_MAX, 
113                         plugin->config.scratch_lines)
115         this->plugin = plugin;
118 int AgingScratchCount::handle_event()
120         return 1;
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()
136         return 1;
144 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
145  : BC_ISlider(x, 
146                         y,
147                         0,
148                         180, 
149                         180, 
150                         0, 
151                         100, 
152                         plugin->config.pit_count)
154         this->plugin = plugin;
157 int AgingPitCount::handle_event()
159         return 1;
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()
178         return 1;
185 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
186  : BC_ISlider(x, 
187                         y,
188                         0,
189                         180, 
190                         180, 
191                         0, 
192                         100, 
193                         plugin->config.dust_count)
195         this->plugin = plugin;
198 int AgingDustCount::handle_event()
200         return 1;