03dc14d902bf025848f1af4fd1445074c7a36455
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / blur / blurwindow.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2010 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 BLURWINDOW_H
23 #define BLURWINDOW_H
24
25
26 class BlurThread;
27 class BlurWindow;
28
29 #include "blur.inc"
30 #include "filexml.inc"
31 #include "guicast.h"
32 #include "mutex.h"
33 #include "thread.h"
34
35
36 class BlurVertical;
37 class BlurHorizontal;
38 class BlurRadius;
39 class BlurRadiusText;
40 class BlurA;
41 class BlurR;
42 class BlurG;
43 class BlurB;
44 class BlurAKey;
45
46 class BlurWindow : public PluginClientWindow
47 {
48 public:
49         BlurWindow(BlurMain *client);
50         ~BlurWindow();
51
52         void create_objects();
53
54         BlurMain *client;
55         BlurVertical *vertical;
56         BlurHorizontal *horizontal;
57         BlurRadius *radius;
58         BlurRadiusText *radius_text;
59         BlurA *a;
60         BlurR *r;
61         BlurG *g;
62         BlurB *b;
63         BlurAKey *a_key;
64 };
65
66 class BlurAKey : public BC_CheckBox
67 {
68 public:
69         BlurAKey(BlurMain *client, int x, int y);
70         int handle_event();
71         BlurMain *client;
72 };
73
74 class BlurA : public BC_CheckBox
75 {
76 public:
77         BlurA(BlurMain *client, int x, int y);
78         int handle_event();
79         BlurMain *client;
80 };
81 class BlurR : public BC_CheckBox
82 {
83 public:
84         BlurR(BlurMain *client, int x, int y);
85         int handle_event();
86         BlurMain *client;
87 };
88 class BlurG : public BC_CheckBox
89 {
90 public:
91         BlurG(BlurMain *client, int x, int y);
92         int handle_event();
93         BlurMain *client;
94 };
95 class BlurB : public BC_CheckBox
96 {
97 public:
98         BlurB(BlurMain *client, int x, int y);
99         int handle_event();
100         BlurMain *client;
101 };
102
103
104 class BlurRadius : public BC_IPot
105 {
106 public:
107         BlurRadius(BlurMain *client, BlurWindow *gui, int x, int y);
108         ~BlurRadius();
109         int handle_event();
110         BlurMain *client;
111         BlurWindow *gui;
112 };
113
114 class BlurRadiusText : public BC_TextBox
115 {
116 public:
117         BlurRadiusText(BlurMain *client, BlurWindow *gui, int x, int y, int w);
118         int handle_event();
119         BlurMain *client;
120         BlurWindow *gui;
121 };
122
123 class BlurVertical : public BC_CheckBox
124 {
125 public:
126         BlurVertical(BlurMain *client, BlurWindow *window, int x, int y);
127         ~BlurVertical();
128         int handle_event();
129
130         BlurMain *client;
131         BlurWindow *window;
132 };
133
134 class BlurHorizontal : public BC_CheckBox
135 {
136 public:
137         BlurHorizontal(BlurMain *client, BlurWindow *window, int x, int y);
138         ~BlurHorizontal();
139         int handle_event();
140
141         BlurMain *client;
142         BlurWindow *window;
143 };
144
145
146 #endif