7fbeeb9259b50f6d40cc0badcb2a682200abf6ec
[goodguy/history.git] / cinelerra-5.1 / cinelerra / appearanceprefs.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 APPEARANCEPREFS_H
23 #define APPEARANCEPREFS_H
24
25 #include "appearanceprefs.inc"
26 #include "browsebutton.h"
27 #include "deleteallindexes.inc"
28 #include "mwindow.inc"
29 #include "preferencesthread.h"
30 #include "shbtnprefs.inc"
31
32
33 class AppearancePrefs : public PreferencesDialog
34 {
35 public:
36         AppearancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
37         ~AppearancePrefs();
38
39         void create_objects();
40
41         int update(int new_value);
42         TimeFormatHMS *hms;
43         TimeFormatHMSF *hmsf;
44         TimeFormatSamples *samples;
45         TimeFormatHex *hex;
46         TimeFormatFrames *frames;
47         TimeFormatFeet *feet;
48         TimeFormatSeconds *seconds;
49         ViewThumbnails *thumbnails;
50 };
51
52
53 class TimeFormatHMS : public BC_Radial
54 {
55 public:
56         TimeFormatHMS(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
57         int handle_event();
58         PreferencesWindow *pwindow;
59         AppearancePrefs *tfwindow;
60 };
61
62 class TimeFormatHMSF : public BC_Radial
63 {
64 public:
65         TimeFormatHMSF(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
66         int handle_event();
67         PreferencesWindow *pwindow;
68         AppearancePrefs *tfwindow;
69 };
70
71 class TimeFormatSamples : public BC_Radial
72 {
73 public:
74         TimeFormatSamples(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
75         int handle_event();
76         PreferencesWindow *pwindow;
77         AppearancePrefs *tfwindow;
78 };
79
80 class TimeFormatFrames : public BC_Radial
81 {
82 public:
83         TimeFormatFrames(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
84         int handle_event();
85         PreferencesWindow *pwindow;
86         AppearancePrefs *tfwindow;
87 };
88
89 class TimeFormatHex : public BC_Radial
90 {
91 public:
92         TimeFormatHex(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
93         int handle_event();
94         PreferencesWindow *pwindow;
95         AppearancePrefs *tfwindow;
96 };
97
98 class TimeFormatFeet : public BC_Radial
99 {
100 public:
101         TimeFormatFeet(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
102         int handle_event();
103         PreferencesWindow *pwindow;
104         AppearancePrefs *tfwindow;
105 };
106
107 class TimeFormatSeconds : public BC_Radial
108 {
109 public:
110         TimeFormatSeconds(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
111         int handle_event();
112         PreferencesWindow *pwindow;
113         AppearancePrefs *tfwindow;
114 };
115
116 class TimeFormatFeetSetting : public BC_TextBox
117 {
118 public:
119         TimeFormatFeetSetting(PreferencesWindow *pwindow, int x, int y, char *string);
120         int handle_event();
121         PreferencesWindow *pwindow;
122 };
123
124
125
126 class ViewTheme : public BC_PopupMenu
127 {
128 public:
129         ViewTheme(int x, int y, PreferencesWindow *pwindow);
130         ~ViewTheme();
131
132         void create_objects();
133         int handle_event();
134
135         PreferencesWindow *pwindow;
136 };
137
138 class ViewThemeItem : public BC_MenuItem
139 {
140 public:
141         ViewThemeItem(ViewTheme *popup, const char *text);
142         int handle_event();
143         ViewTheme *popup;
144 };
145
146 class ViewPluginIcons : public BC_PopupMenu
147 {
148 public:
149         ViewPluginIcons(int x, int y, PreferencesWindow *pwindow);
150         ~ViewPluginIcons();
151
152         void create_objects();
153         int handle_event();
154
155         PreferencesWindow *pwindow;
156 };
157
158 class ViewPluginIconItem : public BC_MenuItem
159 {
160 public:
161         ViewPluginIconItem(ViewPluginIcons *popup, const char *text);
162         int handle_event();
163         ViewPluginIcons *popup;
164 };
165
166 class ViewThumbnails : public BC_CheckBox
167 {
168 public:
169         ViewThumbnails(int x, int y, PreferencesWindow *pwindow);
170         int handle_event();
171         PreferencesWindow *pwindow;
172 };
173
174 class UseTipWindow : public BC_CheckBox
175 {
176 public:
177         UseTipWindow(PreferencesWindow *pwindow, int x, int y);
178         int handle_event();
179         PreferencesWindow *pwindow;
180 };
181
182 class UseWarnIndecies : public BC_CheckBox
183 {
184 public:
185         UseWarnIndecies(PreferencesWindow *pwindow, int x, int y);
186         int handle_event();
187         PreferencesWindow *pwindow;
188 };
189
190 class UseWarnVersion : public BC_CheckBox
191 {
192 public:
193         UseWarnVersion(PreferencesWindow *pwindow, int x, int y);
194         int handle_event();
195         PreferencesWindow *pwindow;
196 };
197
198 class BD_WarnRoot : public BC_CheckBox
199 {
200 public:
201         BD_WarnRoot(PreferencesWindow *pwindow, int x, int y);
202         int handle_event();
203         PreferencesWindow *pwindow;
204 };
205
206 class PopupMenuBtnup : public BC_CheckBox
207 {
208 public:
209         PopupMenuBtnup(PreferencesWindow *pwindow, int x, int y);
210         int handle_event();
211         PreferencesWindow *pwindow;
212 };
213
214 class GrabFocusPolicy : public BC_CheckBox
215 {
216 public:
217         GrabFocusPolicy(PreferencesWindow *pwindow, int x, int y);
218         int handle_event();
219         PreferencesWindow *pwindow;
220 };
221
222 class ActivateFocusPolicy : public BC_CheckBox
223 {
224 public:
225         ActivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
226         int handle_event();
227         PreferencesWindow *pwindow;
228 };
229
230 class DeactivateFocusPolicy : public BC_CheckBox
231 {
232 public:
233         DeactivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
234         int handle_event();
235         PreferencesWindow *pwindow;
236 };
237
238 class ForwardRenderDisplacement : public BC_CheckBox
239 {
240 public:
241         ForwardRenderDisplacement(PreferencesWindow *pwindow, int x, int y);
242         int handle_event();
243         PreferencesWindow *pwindow;
244 };
245
246 class HighlightInverseColor : public BC_TextBox
247 {
248 public:
249         HighlightInverseColor(PreferencesWindow *pwindow, int x, int y, const char *hex);
250         int handle_event();
251         PreferencesWindow *pwindow;
252 };
253
254 #endif