1 #ifndef INTERFACEPREFS_H
2 #define INTERFACEPREFS_H
9 class TimeFormatSamples
;
10 class TimeFormatFrames
;
16 class ViewBehaviourText
;
19 #include "browsebutton.h"
20 #include "deleteallindexes.inc"
21 #include "mwindow.inc"
22 #include "preferencesthread.h"
25 class InterfacePrefs
: public PreferencesDialog
28 InterfacePrefs(MWindow
*mwindow
, PreferencesWindow
*pwindow
);
32 // must delete each derived class
33 int update(int new_value
);
34 char* behavior_to_text(int mode
);
39 IndexPathText
*ipathtext
;
40 DeleteAllIndexes
*deleteall
;
44 TimeFormatSamples
*samples
;
46 TimeFormatFrames
*frames
;
51 // MeterVUInt *vu_int;
52 ViewBehaviourText
*button1
, *button2
, *button3
;
53 ViewThumbnails
*thumbnails
;
57 class IndexPathText
: public BC_TextBox
60 IndexPathText(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
63 PreferencesWindow
*pwindow
;
66 class IndexSize
: public BC_TextBox
69 IndexSize(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
71 PreferencesWindow
*pwindow
;
75 class IndexCount
: public BC_TextBox
78 IndexCount(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
80 PreferencesWindow
*pwindow
;
83 class TimeFormatHMS
: public BC_Radial
86 TimeFormatHMS(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
88 PreferencesWindow
*pwindow
;
89 InterfacePrefs
*tfwindow
;
92 class TimeFormatHMSF
: public BC_Radial
95 TimeFormatHMSF(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
97 PreferencesWindow
*pwindow
;
98 InterfacePrefs
*tfwindow
;
101 class TimeFormatSamples
: public BC_Radial
104 TimeFormatSamples(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
106 PreferencesWindow
*pwindow
;
107 InterfacePrefs
*tfwindow
;
110 class TimeFormatFrames
: public BC_Radial
113 TimeFormatFrames(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
115 PreferencesWindow
*pwindow
;
116 InterfacePrefs
*tfwindow
;
119 class TimeFormatHex
: public BC_Radial
122 TimeFormatHex(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
124 PreferencesWindow
*pwindow
;
125 InterfacePrefs
*tfwindow
;
128 class TimeFormatFeet
: public BC_Radial
131 TimeFormatFeet(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
133 PreferencesWindow
*pwindow
;
134 InterfacePrefs
*tfwindow
;
137 class TimeFormatFeetSetting
: public BC_TextBox
140 TimeFormatFeetSetting(PreferencesWindow
*pwindow
, int x
, int y
, char *string
);
142 PreferencesWindow
*pwindow
;
147 class MeterMinDB
: public BC_TextBox
150 MeterMinDB(PreferencesWindow
*pwindow
, char *text
, int y
);
152 PreferencesWindow
*pwindow
;
155 class MeterVUDB
: public BC_Radial
158 MeterVUDB(PreferencesWindow
*pwindow
, char *text
, int y
);
160 // MeterVUInt *vu_int;
161 PreferencesWindow
*pwindow
;
164 class MeterVUInt
: public BC_Radial
167 MeterVUInt(PreferencesWindow
*pwindow
, char *text
, int y
);
170 PreferencesWindow
*pwindow
;
173 class ViewBehaviourText
: public BC_PopupMenu
176 ViewBehaviourText(int x
,
179 PreferencesWindow
*pwindow
,
181 ~ViewBehaviourText();
183 int handle_event(); // user copies text to value here
184 int create_objects(); // add initial items
185 InterfacePrefs
*tfwindow
;
189 class ViewBehaviourItem
: public BC_MenuItem
192 ViewBehaviourItem(ViewBehaviourText
*popup
, char *text
, int behaviour
);
193 ~ViewBehaviourItem();
196 ViewBehaviourText
*popup
;
200 class ViewTheme
: public BC_PopupMenu
203 ViewTheme(int x
, int y
, PreferencesWindow
*pwindow
);
206 void create_objects();
209 PreferencesWindow
*pwindow
;
212 class ViewThumbnails
: public BC_CheckBox
215 ViewThumbnails(int x
, int y
, PreferencesWindow
*pwindow
);
217 PreferencesWindow
*pwindow
;
220 class ViewThemeItem
: public BC_MenuItem
223 ViewThemeItem(ViewTheme
*popup
, char *text
);