4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
22 #ifndef APPEARANCEPREFS_H
23 #define APPEARANCEPREFS_H
25 #include "appearanceprefs.inc"
26 #include "browsebutton.h"
27 #include "deleteallindexes.inc"
28 #include "mwindow.inc"
29 #include "preferencesthread.h"
30 #include "shbtnprefs.inc"
33 class AppearancePrefs : public PreferencesDialog
36 AppearancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
39 void create_objects();
41 int update(int new_value);
44 TimeFormatSamples *samples;
46 TimeFormatFrames *frames;
48 TimeFormatSeconds *seconds;
49 ViewThumbnails *thumbnails;
50 ViewThumbnailSize *thumbnail_size;
51 YuvColorSpace *yuv_color_space;
52 YuvColorRange *yuv_color_range;
56 class TimeFormatHMS : public BC_Radial
59 TimeFormatHMS(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
61 PreferencesWindow *pwindow;
62 AppearancePrefs *tfwindow;
65 class TimeFormatHMSF : public BC_Radial
68 TimeFormatHMSF(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
70 PreferencesWindow *pwindow;
71 AppearancePrefs *tfwindow;
74 class TimeFormatSamples : public BC_Radial
77 TimeFormatSamples(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
79 PreferencesWindow *pwindow;
80 AppearancePrefs *tfwindow;
83 class TimeFormatFrames : public BC_Radial
86 TimeFormatFrames(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
88 PreferencesWindow *pwindow;
89 AppearancePrefs *tfwindow;
92 class TimeFormatHex : public BC_Radial
95 TimeFormatHex(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
97 PreferencesWindow *pwindow;
98 AppearancePrefs *tfwindow;
101 class TimeFormatFeet : public BC_Radial
104 TimeFormatFeet(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
106 PreferencesWindow *pwindow;
107 AppearancePrefs *tfwindow;
110 class TimeFormatSeconds : public BC_Radial
113 TimeFormatSeconds(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
115 PreferencesWindow *pwindow;
116 AppearancePrefs *tfwindow;
119 class TimeFormatFeetSetting : public BC_TextBox
122 TimeFormatFeetSetting(PreferencesWindow *pwindow, int x, int y, char *string);
124 PreferencesWindow *pwindow;
129 class ViewTheme : public BC_PopupMenu
132 ViewTheme(int x, int y, PreferencesWindow *pwindow);
135 void create_objects();
138 PreferencesWindow *pwindow;
141 class ViewThemeItem : public BC_MenuItem
144 ViewThemeItem(ViewTheme *popup, const char *text);
149 class ViewPluginIcons : public BC_PopupMenu
152 ViewPluginIcons(int x, int y, PreferencesWindow *pwindow);
155 void create_objects();
158 PreferencesWindow *pwindow;
161 class ViewPluginIconItem : public BC_MenuItem
164 ViewPluginIconItem(ViewPluginIcons *popup, const char *text);
166 ViewPluginIcons *popup;
169 class ViewThumbnails : public BC_CheckBox
172 ViewThumbnails(int x, int y, PreferencesWindow *pwindow);
174 PreferencesWindow *pwindow;
177 class ViewThumbnailSize : public BC_TumbleTextBox
180 ViewThumbnailSize(PreferencesWindow *pwindow,
181 AppearancePrefs *aprefs, int x, int y);
183 AppearancePrefs *aprefs;
184 PreferencesWindow *pwindow;
187 class UseTipWindow : public BC_CheckBox
190 UseTipWindow(PreferencesWindow *pwindow, int x, int y);
192 PreferencesWindow *pwindow;
195 class UseWarnIndecies : public BC_CheckBox
198 UseWarnIndecies(PreferencesWindow *pwindow, int x, int y);
200 PreferencesWindow *pwindow;
203 class UseWarnVersion : public BC_CheckBox
206 UseWarnVersion(PreferencesWindow *pwindow, int x, int y);
208 PreferencesWindow *pwindow;
211 class BD_WarnRoot : public BC_CheckBox
214 BD_WarnRoot(PreferencesWindow *pwindow, int x, int y);
216 PreferencesWindow *pwindow;
219 class PopupMenuBtnup : public BC_CheckBox
222 PopupMenuBtnup(PreferencesWindow *pwindow, int x, int y);
224 PreferencesWindow *pwindow;
227 class GrabFocusPolicy : public BC_CheckBox
230 GrabFocusPolicy(PreferencesWindow *pwindow, int x, int y);
232 PreferencesWindow *pwindow;
235 class ActivateFocusPolicy : public BC_CheckBox
238 ActivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
240 PreferencesWindow *pwindow;
243 class DeactivateFocusPolicy : public BC_CheckBox
246 DeactivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
248 PreferencesWindow *pwindow;
251 class ForwardRenderDisplacement : public BC_CheckBox
254 ForwardRenderDisplacement(PreferencesWindow *pwindow, int x, int y);
256 PreferencesWindow *pwindow;
259 class HighlightInverseColor : public BC_TextBox
262 HighlightInverseColor(PreferencesWindow *pwindow, int x, int y, const char *hex);
264 PreferencesWindow *pwindow;
267 class YuvColorSpace : public BC_PopupMenu
269 static const char *color_space[3];
271 YuvColorSpace(int x, int y, PreferencesWindow *pwindow);
274 void create_objects();
277 PreferencesWindow *pwindow;
280 class YuvColorSpaceItem : public BC_MenuItem
283 YuvColorSpaceItem(YuvColorSpace *popup, const char *text, int id);
285 YuvColorSpace *popup;
289 class YuvColorRange : public BC_PopupMenu
291 static const char *color_range[2];
293 YuvColorRange(int x, int y, PreferencesWindow *pwindow);
296 void create_objects();
299 PreferencesWindow *pwindow;
302 class YuvColorRangeItem : public BC_MenuItem
305 YuvColorRangeItem(YuvColorRange *popup, const char *text, int id);
307 YuvColorRange *popup;
311 class PerpetualSession : public BC_CheckBox
314 PerpetualSession(int x, int y, PreferencesWindow *pwindow);
316 PreferencesWindow *pwindow;