213d998e690e6cf8e9285a857d69cb82aadf23e5
[goodguy/history.git] / cinelerra-5.1 / plugins / aging / agingwindow.C
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #include "bcdisplayinfo.h"
23 #include "agingwindow.h"
24 #include "language.h"
25
26
27
28
29
30
31
32
33 AgingWindow::AgingWindow(AgingMain *client)
34  : PluginClientWindow(client,
35         300,
36         170,
37         300,
38         170,
39         0)
40 {
41         this->client = client;
42 }
43
44 AgingWindow::~AgingWindow()
45 {
46 }
47
48 void AgingWindow::create_objects()
49 {
50         int x = 10, y = 10;
51         add_subwindow(new BC_Title(x, y,
52                 "Film aging from EffectTV\n"
53                 "Copyright (C) 2001 FUKUCHI Kentarou")
54         );
55 // 
56 //      y += 50;
57 //      add_subwindow(color = new AgingColor(x, y, client));
58 // 
59 //      y += 25;
60 //      add_subwindow(scratches = new AgingScratches(x, y, client));
61 //      add_subwindow(scratch_count = new AgingScratchCount(x + 100, y + 10, client));
62 // 
63 //      y += 25;
64 //      add_subwindow(pits = new AgingPits(x, y, client));
65 //      add_subwindow(pit_count = new AgingPitCount(x + 100, y + 10, client));
66 // 
67 //      y += 25;
68 //      add_subwindow(dust = new AgingDust(x, y, client));
69 //      add_subwindow(dust_count = new AgingDustCount(x + 100, y + 10, client));
70
71         show_window();
72         flush();
73 }
74
75
76
77
78
79
80
81
82 AgingColor::AgingColor(int x, int y, AgingMain *plugin)
83  : BC_CheckBox(x, y, plugin->config.colorage, _("Grain"))
84 {
85         this->plugin = plugin;
86 }
87
88 int AgingColor::handle_event()
89 {
90         return 1;
91 }
92
93
94
95
96
97 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
98  : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
99 {
100         this->plugin = plugin;
101 }
102
103 int AgingScratches::handle_event()
104 {
105         return 1;
106 }
107
108
109
110
111
112
113
114
115
116 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
117  : BC_ISlider(x,
118                         y,
119                         0,
120                         180,
121                         180,
122                         0,
123                         SCRATCH_MAX,
124                         plugin->config.scratch_lines)
125 {
126         this->plugin = plugin;
127 }
128
129 int AgingScratchCount::handle_event()
130 {
131         return 1;
132 }
133
134
135
136
137
138
139 AgingPits::AgingPits(int x, int y, AgingMain *plugin)
140  : BC_CheckBox(x, y, plugin->config.pits, _("Pits"))
141 {
142         this->plugin = plugin;
143 }
144
145 int AgingPits::handle_event()
146 {
147         return 1;
148 }
149
150
151
152
153
154
155 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
156  : BC_ISlider(x,
157                         y,
158                         0,
159                         180,
160                         180,
161                         0,
162                         100,
163                         plugin->config.pit_count)
164 {
165         this->plugin = plugin;
166 }
167
168 int AgingPitCount::handle_event()
169 {
170         return 1;
171 }
172
173
174
175
176
177
178
179
180
181 AgingDust::AgingDust(int x, int y, AgingMain *plugin)
182  : BC_CheckBox(x, y, plugin->config.dust, _("Dust"))
183 {
184         this->plugin = plugin;
185 }
186
187 int AgingDust::handle_event()
188 {
189         return 1;
190 }
191
192
193
194
195
196 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
197  : BC_ISlider(x,
198                         y,
199                         0,
200                         180,
201                         180,
202                         0,
203                         100,
204                         plugin->config.dust_count)
205 {
206         this->plugin = plugin;
207 }
208
209 int AgingDustCount::handle_event()
210 {
211         return 1;
212 }
213
214
215
216
217
218