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;
53 class TimeFormatHMS : public BC_Radial
56 TimeFormatHMS(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
58 PreferencesWindow *pwindow;
59 AppearancePrefs *tfwindow;
62 class TimeFormatHMSF : public BC_Radial
65 TimeFormatHMSF(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
67 PreferencesWindow *pwindow;
68 AppearancePrefs *tfwindow;
71 class TimeFormatSamples : public BC_Radial
74 TimeFormatSamples(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
76 PreferencesWindow *pwindow;
77 AppearancePrefs *tfwindow;
80 class TimeFormatFrames : public BC_Radial
83 TimeFormatFrames(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
85 PreferencesWindow *pwindow;
86 AppearancePrefs *tfwindow;
89 class TimeFormatHex : public BC_Radial
92 TimeFormatHex(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
94 PreferencesWindow *pwindow;
95 AppearancePrefs *tfwindow;
98 class TimeFormatFeet : public BC_Radial
101 TimeFormatFeet(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
103 PreferencesWindow *pwindow;
104 AppearancePrefs *tfwindow;
107 class TimeFormatSeconds : public BC_Radial
110 TimeFormatSeconds(PreferencesWindow *pwindow, AppearancePrefs *tfwindow, int value, int x, int y);
112 PreferencesWindow *pwindow;
113 AppearancePrefs *tfwindow;
116 class TimeFormatFeetSetting : public BC_TextBox
119 TimeFormatFeetSetting(PreferencesWindow *pwindow, int x, int y, char *string);
121 PreferencesWindow *pwindow;
126 class ViewTheme : public BC_PopupMenu
129 ViewTheme(int x, int y, PreferencesWindow *pwindow);
132 void create_objects();
135 PreferencesWindow *pwindow;
138 class ViewThemeItem : public BC_MenuItem
141 ViewThemeItem(ViewTheme *popup, const char *text);
146 class ViewPluginIcons : public BC_PopupMenu
149 ViewPluginIcons(int x, int y, PreferencesWindow *pwindow);
152 void create_objects();
155 PreferencesWindow *pwindow;
158 class ViewPluginIconItem : public BC_MenuItem
161 ViewPluginIconItem(ViewPluginIcons *popup, const char *text);
163 ViewPluginIcons *popup;
166 class ViewThumbnails : public BC_CheckBox
169 ViewThumbnails(int x, int y, PreferencesWindow *pwindow);
171 PreferencesWindow *pwindow;
174 class UseTipWindow : public BC_CheckBox
177 UseTipWindow(PreferencesWindow *pwindow, int x, int y);
179 PreferencesWindow *pwindow;
182 class UseWarnIndecies : public BC_CheckBox
185 UseWarnIndecies(PreferencesWindow *pwindow, int x, int y);
187 PreferencesWindow *pwindow;
190 class UseWarnVersion : public BC_CheckBox
193 UseWarnVersion(PreferencesWindow *pwindow, int x, int y);
195 PreferencesWindow *pwindow;
198 class BD_WarnRoot : public BC_CheckBox
201 BD_WarnRoot(PreferencesWindow *pwindow, int x, int y);
203 PreferencesWindow *pwindow;
206 class PopupMenuBtnup : public BC_CheckBox
209 PopupMenuBtnup(PreferencesWindow *pwindow, int x, int y);
211 PreferencesWindow *pwindow;
214 class GrabFocusPolicy : public BC_CheckBox
217 GrabFocusPolicy(PreferencesWindow *pwindow, int x, int y);
219 PreferencesWindow *pwindow;
222 class ActivateFocusPolicy : public BC_CheckBox
225 ActivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
227 PreferencesWindow *pwindow;
230 class DeactivateFocusPolicy : public BC_CheckBox
233 DeactivateFocusPolicy(PreferencesWindow *pwindow, int x, int y);
235 PreferencesWindow *pwindow;
238 class ForwardRenderDisplacement : public BC_CheckBox
241 ForwardRenderDisplacement(PreferencesWindow *pwindow, int x, int y);
243 PreferencesWindow *pwindow;
246 class HighlightInverseColor : public BC_TextBox
249 HighlightInverseColor(PreferencesWindow *pwindow, int x, int y, const char *hex);
251 PreferencesWindow *pwindow;