labels follow edits fix, group only ungrouped edits, add reset to 7 plugins, add...
[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 class BlurReset;
46
47 class BlurWindow : public PluginClientWindow
48 {
49 public:
50         BlurWindow(BlurMain *client);
51         ~BlurWindow();
52
53         void create_objects();
54         void update();
55
56         BlurMain *client;
57         BlurVertical *vertical;
58         BlurHorizontal *horizontal;
59         BlurRadius *radius;
60         BlurRadiusText *radius_text;
61         BlurA *a;
62         BlurR *r;
63         BlurG *g;
64         BlurB *b;
65         BlurAKey *a_key;
66         BlurReset *reset;
67 };
68
69 class BlurAKey : public BC_CheckBox
70 {
71 public:
72         BlurAKey(BlurMain *client, int x, int y);
73         int handle_event();
74         BlurMain *client;
75 };
76
77 class BlurA : public BC_CheckBox
78 {
79 public:
80         BlurA(BlurMain *client, int x, int y);
81         int handle_event();
82         BlurMain *client;
83 };
84 class BlurR : public BC_CheckBox
85 {
86 public:
87         BlurR(BlurMain *client, int x, int y);
88         int handle_event();
89         BlurMain *client;
90 };
91 class BlurG : public BC_CheckBox
92 {
93 public:
94         BlurG(BlurMain *client, int x, int y);
95         int handle_event();
96         BlurMain *client;
97 };
98 class BlurB : public BC_CheckBox
99 {
100 public:
101         BlurB(BlurMain *client, int x, int y);
102         int handle_event();
103         BlurMain *client;
104 };
105
106
107 class BlurRadius : public BC_IPot
108 {
109 public:
110         BlurRadius(BlurMain *client, BlurWindow *gui, int x, int y);
111         ~BlurRadius();
112         int handle_event();
113         BlurMain *client;
114         BlurWindow *gui;
115 };
116
117 class BlurRadiusText : public BC_TextBox
118 {
119 public:
120         BlurRadiusText(BlurMain *client, BlurWindow *gui, int x, int y, int w);
121         int handle_event();
122         BlurMain *client;
123         BlurWindow *gui;
124 };
125
126 class BlurVertical : public BC_CheckBox
127 {
128 public:
129         BlurVertical(BlurMain *client, BlurWindow *window, int x, int y);
130         ~BlurVertical();
131         int handle_event();
132
133         BlurMain *client;
134         BlurWindow *window;
135 };
136
137 class BlurHorizontal : public BC_CheckBox
138 {
139 public:
140         BlurHorizontal(BlurMain *client, BlurWindow *window, int x, int y);
141         ~BlurHorizontal();
142         int handle_event();
143
144         BlurMain *client;
145         BlurWindow *window;
146 };
147
148 class BlurReset : public BC_GenericButton
149 {
150 public:
151         BlurReset(BlurMain *client, BlurWindow *window, int x, int y);
152         ~BlurReset();
153         int handle_event();
154         BlurMain *client;
155         BlurWindow *window;
156 };
157
158
159 #endif