5f33344a2aac48ecb44822478dff346a11c51929
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / yuv411 / yuv411win.h
1 #ifndef YUV411WIN_H
2 #define YUV411WIN_H
3
4 #include "filexml.inc"
5 #include "yuv411.h"
6 #include "mutex.h"
7 #include "pluginvclient.h"
8 #include "bctitle.h"
9 #include "bccolors.h"
10 #include "fonts.h"
11
12 class yuv411Toggle;
13 class yuv411Offset;
14 class yuv411Thresh;
15 class yuv411Bias;
16 class yuv411Reset;
17
18 class yuv411Window : public PluginClientWindow
19 {
20 public:
21         yuv411Window(yuv411Main *client);
22         ~yuv411Window();
23
24         void create_objects();
25         void update();
26         int close_event();
27         void update_enables();
28         void show_warning(int warn);
29
30         yuv411Main *client;
31         yuv411Toggle *avg_vertical;
32         yuv411Toggle *int_horizontal;
33         yuv411Toggle *inpainting;
34         yuv411Offset *offset;
35         yuv411Thresh *thresh;
36         yuv411Bias *bias;
37         BC_Title *yuv_warning;
38         int colormodel;
39         yuv411Reset *reset;
40 };
41
42 class yuv411Toggle : public BC_CheckBox
43 {
44 public:
45         yuv411Toggle(yuv411Main *client, int *output, char *string, int x, int y);
46         ~yuv411Toggle();
47         int handle_event();
48
49         yuv411Main *client;
50         int *output;
51 };
52
53 class yuv411Offset : public BC_FSlider
54 {
55 public:
56         yuv411Offset(yuv411Main *client, int x, int y);
57         int handle_event();
58         yuv411Main *client;
59 };
60
61 class yuv411Thresh : public BC_FSlider
62 {
63 public:
64         yuv411Thresh(yuv411Main *client, int x, int y);
65         int handle_event();
66         yuv411Main *client;
67 };
68
69 class yuv411Bias : public BC_FSlider
70 {
71 public:
72         yuv411Bias(yuv411Main *client, int x, int y);
73         int handle_event();
74         yuv411Main *client;
75 };
76
77 class yuv411Reset : public BC_GenericButton
78 {
79 public:
80         yuv411Reset(yuv411Main *client, yuv411Window *window, int x, int y);
81         ~yuv411Reset();
82         int handle_event();
83         yuv411Main *client;
84         yuv411Window *window;
85 };
86
87 #endif