1 #ifndef INTERFACEPREFS_H
2 #define INTERFACEPREFS_H
9 class TimeFormatSamples
;
10 class TimeFormatFrames
;
13 class TimeFormatSeconds
;
18 class ViewBehaviourText
;
21 #include "browsebutton.h"
22 #include "deleteallindexes.inc"
23 #include "mwindow.inc"
24 #include "preferencesthread.h"
27 class InterfacePrefs
: public PreferencesDialog
30 InterfacePrefs(MWindow
*mwindow
, PreferencesWindow
*pwindow
);
34 // must delete each derived class
35 int update(int new_value
);
36 char* behavior_to_text(int mode
);
41 IndexPathText
*ipathtext
;
42 DeleteAllIndexes
*deleteall
;
46 TimeFormatSamples
*samples
;
48 TimeFormatFrames
*frames
;
50 TimeFormatSeconds
*seconds
;
55 // MeterVUInt *vu_int;
56 ViewBehaviourText
*button1
, *button2
, *button3
;
57 ViewThumbnails
*thumbnails
;
61 class IndexPathText
: public BC_TextBox
64 IndexPathText(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
67 PreferencesWindow
*pwindow
;
70 class IndexSize
: public BC_TextBox
73 IndexSize(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
75 PreferencesWindow
*pwindow
;
79 class IndexCount
: public BC_TextBox
82 IndexCount(int x
, int y
, PreferencesWindow
*pwindow
, char *text
);
84 PreferencesWindow
*pwindow
;
87 class TimeFormatHMS
: public BC_Radial
90 TimeFormatHMS(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
92 PreferencesWindow
*pwindow
;
93 InterfacePrefs
*tfwindow
;
96 class TimeFormatHMSF
: public BC_Radial
99 TimeFormatHMSF(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
101 PreferencesWindow
*pwindow
;
102 InterfacePrefs
*tfwindow
;
105 class TimeFormatSamples
: public BC_Radial
108 TimeFormatSamples(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
110 PreferencesWindow
*pwindow
;
111 InterfacePrefs
*tfwindow
;
114 class TimeFormatFrames
: public BC_Radial
117 TimeFormatFrames(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
119 PreferencesWindow
*pwindow
;
120 InterfacePrefs
*tfwindow
;
123 class TimeFormatHex
: public BC_Radial
126 TimeFormatHex(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
128 PreferencesWindow
*pwindow
;
129 InterfacePrefs
*tfwindow
;
132 class TimeFormatFeet
: public BC_Radial
135 TimeFormatFeet(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
137 PreferencesWindow
*pwindow
;
138 InterfacePrefs
*tfwindow
;
141 class TimeFormatSeconds
: public BC_Radial
144 TimeFormatSeconds(PreferencesWindow
*pwindow
, InterfacePrefs
*tfwindow
, int value
, int x
, int y
);
146 PreferencesWindow
*pwindow
;
147 InterfacePrefs
*tfwindow
;
150 class TimeFormatFeetSetting
: public BC_TextBox
153 TimeFormatFeetSetting(PreferencesWindow
*pwindow
, int x
, int y
, char *string
);
155 PreferencesWindow
*pwindow
;
160 class MeterMinDB
: public BC_TextBox
163 MeterMinDB(PreferencesWindow
*pwindow
, char *text
, int x
, int y
);
165 PreferencesWindow
*pwindow
;
169 class MeterMaxDB
: public BC_TextBox
172 MeterMaxDB(PreferencesWindow
*pwindow
, char *text
, int x
, int y
);
174 PreferencesWindow
*pwindow
;
177 class MeterVUDB
: public BC_Radial
180 MeterVUDB(PreferencesWindow
*pwindow
, char *text
, int y
);
182 // MeterVUInt *vu_int;
183 PreferencesWindow
*pwindow
;
186 class MeterVUInt
: public BC_Radial
189 MeterVUInt(PreferencesWindow
*pwindow
, char *text
, int y
);
192 PreferencesWindow
*pwindow
;
195 class ViewBehaviourText
: public BC_PopupMenu
198 ViewBehaviourText(int x
,
201 PreferencesWindow
*pwindow
,
203 ~ViewBehaviourText();
205 int handle_event(); // user copies text to value here
206 int create_objects(); // add initial items
207 InterfacePrefs
*tfwindow
;
211 class ViewBehaviourItem
: public BC_MenuItem
214 ViewBehaviourItem(ViewBehaviourText
*popup
, char *text
, int behaviour
);
215 ~ViewBehaviourItem();
218 ViewBehaviourText
*popup
;
222 class ViewTheme
: public BC_PopupMenu
225 ViewTheme(int x
, int y
, PreferencesWindow
*pwindow
);
228 void create_objects();
231 PreferencesWindow
*pwindow
;
234 class ViewThumbnails
: public BC_CheckBox
237 ViewThumbnails(int x
, int y
, PreferencesWindow
*pwindow
);
239 PreferencesWindow
*pwindow
;
242 class ViewThemeItem
: public BC_MenuItem
245 ViewThemeItem(ViewTheme
*popup
, char *text
);
250 class UseTipWindow
: public BC_CheckBox
253 UseTipWindow(PreferencesWindow
*pwindow
, int x
, int y
);
255 PreferencesWindow
*pwindow
;
262 // c-file-style: "linux"