Credit User for Gain plugin mods + Andrew for Debian 12 bld fix
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / gain / gainwindow.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 GAINWINDOW_H
23 #define GAINWINDOW_H
24
25 #define TOTAL_LOADS 5
26 #define GAINLEVEL_MAX 40
27
28 class GainThread;
29 class GainWindow;
30 class GainLevelText;
31 class GainLevelSlider;
32 class GainLevelClr;
33
34 #include "filexml.h"
35 #include "gain.h"
36 #include "guicast.h"
37 #include "mutex.h"
38 #include "pluginclient.h"
39
40
41
42 class GainWindow : public PluginClientWindow
43 {
44 public:
45         GainWindow(GainMain *plugin);
46         ~GainWindow();
47
48         void create_objects();
49         void update();
50
51         GainMain *plugin;
52         GainLevelText *level_text;
53         GainLevelSlider *level_slider;
54         GainLevelClr *level_clr;
55 };
56
57 class GainLevelText : public BC_TumbleTextBox
58 {
59 public:
60         GainLevelText(GainWindow *window, GainMain *plugin, int x, int y);
61         ~GainLevelText();
62         int handle_event();
63
64         GainWindow *window;
65         GainMain *plugin;
66 };
67
68 class GainLevelSlider : public BC_FSlider
69 {
70 public:
71         GainLevelSlider(GainWindow *window, GainMain *plugin, int x, int y);
72         ~GainLevelSlider();
73         int handle_event();
74
75         GainWindow *window;
76         GainMain *plugin;
77 };
78
79 class GainLevelClr : public BC_Button
80 {
81 public:
82         GainLevelClr(GainWindow *window, GainMain *plugin, int x, int y);
83         ~GainLevelClr();
84         int handle_event();
85
86         GainWindow *window;
87         GainMain *plugin;
88 };
89
90
91
92
93 #endif