rework keyframe hide popup, keyframe auto render, textbox set_selection wide text
[goodguy/history.git] / cinelerra-5.1 / cinelerra / cpanel.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 CPANEL_H
23 #define CPANEL_H
24
25 #include "cwindowgui.inc"
26 #include "edl.inc"
27 #include "guicast.h"
28 #include "mwindow.inc"
29
30 class CPanel
31 {
32 public:
33         CPanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h);
34         ~CPanel();
35
36         void create_objects();
37         void reposition_buttons(int x, int y);
38         void set_operation(int value);
39
40         MWindow *mwindow;
41         CWindowGUI *subwindow;
42
43         int x, y, w, h;
44
45         BC_Toggle* operation[CPANEL_OPERATIONS];
46 };
47
48 class CPanelMask : public BC_Toggle
49 {
50 public:
51         CPanelMask(MWindow *mwindow, CPanel *gui, int x, int y);
52         ~CPanelMask();
53         int handle_event();
54         MWindow *mwindow;
55         CPanel *gui;
56 };
57
58 class CPanelRuler : public BC_Toggle
59 {
60 public:
61         CPanelRuler(MWindow *mwindow, CPanel *gui, int x, int y);
62         ~CPanelRuler();
63         int handle_event();
64         MWindow *mwindow;
65         CPanel *gui;
66 };
67
68 class CPanelTitleSafe : public BC_Toggle
69 {
70 public:
71         CPanelTitleSafe(MWindow *mwindow, CPanel *gui, int x, int y);
72         ~CPanelTitleSafe();
73         int handle_event();
74         MWindow *mwindow;
75         CPanel *gui;
76 };
77
78 class CPanelErase : public BC_Toggle
79 {
80 public:
81         CPanelErase(MWindow *mwindow, CPanel *gui, int x, int y);
82         ~CPanelErase();
83         int handle_event();
84         MWindow *mwindow;
85         CPanel *gui;
86 };
87
88 class CPanelAntierase : public BC_Toggle
89 {
90 public:
91         CPanelAntierase(MWindow *mwindow, CPanel *gui, int x, int y);
92         ~CPanelAntierase();
93         int handle_event();
94         MWindow *mwindow;
95         CPanel *gui;
96 };
97
98 class CPanelProtect : public BC_Toggle
99 {
100 public:
101         CPanelProtect(MWindow *mwindow, CPanel *gui, int x, int y);
102         ~CPanelProtect();
103         int handle_event();
104         MWindow *mwindow;
105         CPanel *gui;
106 };
107
108 class CPanelMagnify : public BC_Toggle
109 {
110 public:
111         CPanelMagnify(MWindow *mwindow, CPanel *gui, int x, int y);
112         ~CPanelMagnify();
113         int handle_event();
114         MWindow *mwindow;
115         CPanel *gui;
116 };
117
118 class CPanelCamera : public BC_Toggle
119 {
120 public:
121         CPanelCamera(MWindow *mwindow, CPanel *gui, int x, int y);
122         ~CPanelCamera();
123         int handle_event();
124         MWindow *mwindow;
125         CPanel *gui;
126 };
127
128 class CPanelProj : public BC_Toggle
129 {
130 public:
131         CPanelProj(MWindow *mwindow, CPanel *gui, int x, int y);
132         ~CPanelProj();
133         int handle_event();
134         MWindow *mwindow;
135         CPanel *gui;
136 };
137
138 class CPanelCrop : public BC_Toggle
139 {
140 public:
141         CPanelCrop(MWindow *mwindow, CPanel *gui, int x, int y);
142         ~CPanelCrop();
143         int handle_event();
144         MWindow *mwindow;
145         CPanel *gui;
146 };
147
148 class CPanelEyedrop : public BC_Toggle
149 {
150 public:
151         CPanelEyedrop(MWindow *mwindow, CPanel *gui, int x, int y);
152         ~CPanelEyedrop();
153         int handle_event();
154         MWindow *mwindow;
155         CPanel *gui;
156 };
157
158 class CPanelToolWindow : public BC_Toggle
159 {
160 public:
161         CPanelToolWindow(MWindow *mwindow, CPanel *gui, int x, int y);
162         ~CPanelToolWindow();
163         int handle_event();
164         int set_shown(int shown);
165         MWindow *mwindow;
166         CPanel *gui;
167 };
168
169
170
171 #endif