fixes and upgrades to guicast
[goodguy/history.git] / cinelerra-5.0 / plugins / quark / quarkwindow.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 SHARPENWINDOW_H
23 #define SHARPENWINDOW_H
24
25 #include "guicast.h"
26
27 class SharpenThread;
28 class SharpenWindow;
29 class SharpenInterlace;
30
31 #include "filexml.h"
32 #include "mutex.h"
33 #include "sharpen.h"
34
35 class SharpenThread : public Thread
36 {
37 public:
38         SharpenThread(SharpenMain *client);
39         ~SharpenThread();
40
41         void run();
42
43 // prevent loading data until the GUI is started
44         Mutex gui_started, completion;
45         SharpenMain *client;
46         SharpenWindow *window;
47 };
48
49 class SharpenSlider;
50 class SharpenHorizontal;
51 class SharpenLuminance;
52
53 class SharpenWindow : public BC_Window
54 {
55 public:
56         SharpenWindow(SharpenMain *client, int x, int y);
57         ~SharpenWindow();
58         
59         void create_objects();
60         int close_event();
61         
62         SharpenMain *client;
63         SharpenSlider *sharpen_slider;
64         SharpenInterlace *sharpen_interlace;
65         SharpenHorizontal *sharpen_horizontal;
66         SharpenLuminance *sharpen_luminance;
67 };
68
69 class SharpenSlider : public BC_ISlider
70 {
71 public:
72         SharpenSlider(SharpenMain *client, float *output, int x, int y);
73         ~SharpenSlider();
74         int handle_event();
75
76         SharpenMain *client;
77         float *output;
78 };
79
80 class SharpenInterlace : public BC_CheckBox
81 {
82 public:
83         SharpenInterlace(SharpenMain *client, int x, int y);
84         ~SharpenInterlace();
85         int handle_event();
86
87         SharpenMain *client;
88 };
89
90 class SharpenHorizontal : public BC_CheckBox
91 {
92 public:
93         SharpenHorizontal(SharpenMain *client, int x, int y);
94         ~SharpenHorizontal();
95         int handle_event();
96
97         SharpenMain *client;
98 };
99
100 class SharpenLuminance : public BC_CheckBox
101 {
102 public:
103         SharpenLuminance(SharpenMain *client, int x, int y);
104         ~SharpenLuminance();
105         int handle_event();
106
107         SharpenMain *client;
108 };
109
110
111 #endif