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 PERFORMANCEPREFS_H
23 #define PERFORMANCEPREFS_H
26 #include "formattools.inc"
27 #include "mwindow.inc"
28 #include "performanceprefs.inc"
29 #include "preferencesthread.h"
32 class PerformancePrefs : public PreferencesDialog
35 PerformancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
38 void create_objects();
40 void generate_node_list();
41 void update_node_list();
46 CICacheSize *cache_size;
57 ArrayList<BC_ListBoxItem*> nodes[4];
58 PrefsRenderFarmEditNode *edit_node;
59 PrefsRenderFarmPort *edit_port;
60 PrefsRenderFarmNodes *node_list;
61 FormatTools *brender_tools;
62 BC_Title *master_rate;
63 PrefsFileForking *file_forking;
64 PrefsFFMPEGEarlyProbe *ffmpeg_early_probe;
69 class PrefsUseBRender : public BC_CheckBox
72 PrefsUseBRender(PreferencesWindow *pwindow,
76 PreferencesWindow *pwindow;
79 class PrefsBRenderFragment : public BC_TumbleTextBox
82 PrefsBRenderFragment(PreferencesWindow *pwindow,
83 PerformancePrefs *subwindow,
87 PreferencesWindow *pwindow;
92 class PrefsRenderPreroll : public BC_TumbleTextBox
95 PrefsRenderPreroll(PreferencesWindow *pwindow,
96 PerformancePrefs *subwindow,
99 ~PrefsRenderPreroll();
103 PreferencesWindow *pwindow;
106 class PrefsBRenderPreroll : public BC_TumbleTextBox
109 PrefsBRenderPreroll(PreferencesWindow *pwindow,
110 PerformancePrefs *subwindow,
114 PreferencesWindow *pwindow;
117 class PrefsForceUniprocessor : public BC_CheckBox
120 PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y);
121 ~PrefsForceUniprocessor();
124 PreferencesWindow *pwindow;
127 class PrefsTrapSigSEGV : public BC_CheckBox
130 PrefsTrapSigSEGV(PerformancePrefs *perf_prefs, int x, int y);
134 PerformancePrefs *perf_prefs;
137 class PrefsTrapSigINTR : public BC_CheckBox
140 PrefsTrapSigINTR(PerformancePrefs *perf_prefs, int x, int y);
144 PerformancePrefs *perf_prefs;
147 class PrefsFileForking : public BC_CheckBox
150 PrefsFileForking(PerformancePrefs *perf_prefs, int x, int y);
156 PerformancePrefs *perf_prefs;
159 class PrefsFFMPEGEarlyProbe : public BC_CheckBox
162 PrefsFFMPEGEarlyProbe(PerformancePrefs *perf_prefs, int x, int y);
163 ~PrefsFFMPEGEarlyProbe();
167 PerformancePrefs *perf_prefs;
173 class PrefsRenderFarm : public BC_CheckBox
176 PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y);
182 PreferencesWindow *pwindow;
185 class PrefsRenderFarmConsolidate : public BC_CheckBox
188 PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y);
189 ~PrefsRenderFarmConsolidate();
194 PreferencesWindow *pwindow;
198 class PrefsRenderFarmPort : public BC_TumbleTextBox
201 PrefsRenderFarmPort(PreferencesWindow *pwindow,
202 PerformancePrefs *subwindow,
205 ~PrefsRenderFarmPort();
209 PreferencesWindow *pwindow;
212 class PrefsRenderFarmJobs : public BC_TumbleTextBox
215 PrefsRenderFarmJobs(PreferencesWindow *pwindow,
216 PerformancePrefs *subwindow,
219 ~PrefsRenderFarmJobs();
223 PreferencesWindow *pwindow;
226 class PrefsRenderFarmMountpoint : public BC_TextBox
229 PrefsRenderFarmMountpoint(PreferencesWindow *pwindow,
230 PerformancePrefs *subwindow,
233 ~PrefsRenderFarmMountpoint();
237 PreferencesWindow *pwindow;
238 PerformancePrefs *subwindow;
241 class PrefsRenderFarmVFS : public BC_CheckBox
244 PrefsRenderFarmVFS(PreferencesWindow *pwindow,
245 PerformancePrefs *subwindow,
249 PreferencesWindow *pwindow;
250 PerformancePrefs *subwindow;
253 class PrefsRenderFarmNodes : public BC_ListBox
256 PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
257 ~PrefsRenderFarmNodes();
260 int selection_changed();
261 int column_resize_event();
263 PreferencesWindow *pwindow;
264 PerformancePrefs *subwindow;
267 class PrefsRenderFarmEditNode : public BC_TextBox
270 PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
271 ~PrefsRenderFarmEditNode();
275 PerformancePrefs *subwindow;
276 PreferencesWindow *pwindow;
279 class PrefsRenderFarmNewNode : public BC_GenericButton
282 PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
283 ~PrefsRenderFarmNewNode();
288 PerformancePrefs *subwindow;
289 PreferencesWindow *pwindow;
292 class PrefsRenderFarmReplaceNode : public BC_GenericButton
295 PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow,
296 PerformancePrefs *subwindow,
299 ~PrefsRenderFarmReplaceNode();
304 PerformancePrefs *subwindow;
305 PreferencesWindow *pwindow;
308 class PrefsRenderFarmDelNode : public BC_GenericButton
311 PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
312 ~PrefsRenderFarmDelNode();
316 PerformancePrefs *subwindow;
318 PreferencesWindow *pwindow;
321 class PrefsRenderFarmSortNodes : public BC_GenericButton
324 PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
325 ~PrefsRenderFarmSortNodes();
329 PerformancePrefs *subwindow;
330 PreferencesWindow *pwindow;
334 class PrefsRenderFarmReset : public BC_GenericButton
337 PrefsRenderFarmReset(PreferencesWindow *pwindow,
338 PerformancePrefs *subwindow,
344 PerformancePrefs *subwindow;
345 PreferencesWindow *pwindow;
350 class CICacheSize : public BC_TumbleTextBox
355 PreferencesWindow *pwindow,
356 PerformancePrefs *subwindow);
358 PreferencesWindow *pwindow;