add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / deinterlace-cv / deinterwindow-cv.h
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 #ifndef DEINTERWINDOW_H
23 #define DEINTERWINDOW_H
24
25
26 class DeInterlaceThread;
27 class DeInterlaceWindow;
28
29 #include "guicast.h"
30 #include "mutex.h"
31 #include "deinterlace-cv.h"
32 #include "pluginclient.h"
33
34
35 class DeInterlaceOption;
36 class DeInterlaceMode;
37 class DeInterlaceDominanceTop;
38 class DeInterlaceDominanceBottom;
39 class DeInterlaceAdaptive;
40 class DeInterlaceThreshold;
41
42 class DeInterlaceWindow : public PluginClientWindow
43 {
44 public:
45         DeInterlaceWindow(DeInterlaceMain *client);
46         ~DeInterlaceWindow();
47
48         void create_objects();
49         int set_mode(int mode, int recursive);
50         void get_status_string(char *string, int changed_rows);
51
52         DeInterlaceMain *client;
53         DeInterlaceMode *mode;
54         DeInterlaceAdaptive *adaptive;
55         DeInterlaceDominanceTop *dominance_top;
56         DeInterlaceDominanceBottom *dominance_bottom;
57         DeInterlaceThreshold *threshold;
58         int optional_controls_x,optional_controls_y;
59         BC_Title *status;
60 };
61
62 class DeInterlaceOption : public BC_Radial
63 {
64 public:
65         DeInterlaceOption(DeInterlaceMain *client,
66                 DeInterlaceWindow *window,
67                 int output,
68                 int x,
69                 int y,
70                 char *text);
71         ~DeInterlaceOption();
72         int handle_event();
73
74         DeInterlaceMain *client;
75         DeInterlaceWindow *window;
76         int output;
77 };
78
79 class DeInterlaceAdaptive : public BC_CheckBox
80 {
81 public:
82         DeInterlaceAdaptive(DeInterlaceMain *client, int x, int y);
83         int handle_event();
84         DeInterlaceMain *client;
85 };
86
87 class DeInterlaceDominanceTop : public BC_Radial
88 {
89 public:
90         DeInterlaceDominanceTop(DeInterlaceMain *client, DeInterlaceWindow *window, int x, int y, char * title);
91         int handle_event();
92         DeInterlaceMain *client;
93         DeInterlaceWindow *window;
94
95 };
96 class DeInterlaceDominanceBottom : public BC_Radial
97 {
98 public:
99         DeInterlaceDominanceBottom(DeInterlaceMain *client, DeInterlaceWindow *window, int x, int y, const char * title);
100         int handle_event();
101         DeInterlaceMain *client;
102         DeInterlaceWindow *window;
103 };
104
105 class DeInterlaceThreshold : public BC_IPot
106 {
107 public:
108         DeInterlaceThreshold(DeInterlaceMain *client, int x, int y);
109         ~DeInterlaceThreshold();
110
111         int handle_event();
112         DeInterlaceMain *client;
113         BC_Title *title_caption;
114 };
115
116
117
118 class DeInterlaceMode : public BC_PopupMenu
119 {
120 public:
121         DeInterlaceMode(DeInterlaceMain *client,
122                 DeInterlaceWindow *window,
123                 int x,
124                 int y);
125         void create_objects();
126         static char* to_text(int shape);
127         static int from_text(char *text);
128         int handle_event();
129         DeInterlaceMain *plugin;
130         DeInterlaceWindow *gui;
131 };
132
133
134 #endif