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 PrefsFFMPEGEarlyProbe *ffmpeg_early_probe;
64 PrefsYUV420P_DVDlace *yuv420p_dvdlace;
65 PrefsFFMPEGMarkerIndecies *ffmpeg_marker_indexes;
70 class PrefsUseBRender : public BC_CheckBox
73 PrefsUseBRender(PreferencesWindow *pwindow,
77 PreferencesWindow *pwindow;
80 class PrefsBRenderFragment : public BC_TumbleTextBox
83 PrefsBRenderFragment(PreferencesWindow *pwindow,
84 PerformancePrefs *subwindow,
88 PreferencesWindow *pwindow;
93 class PrefsRenderPreroll : public BC_TumbleTextBox
96 PrefsRenderPreroll(PreferencesWindow *pwindow,
97 PerformancePrefs *subwindow,
100 ~PrefsRenderPreroll();
104 PreferencesWindow *pwindow;
107 class PrefsBRenderPreroll : public BC_TumbleTextBox
110 PrefsBRenderPreroll(PreferencesWindow *pwindow,
111 PerformancePrefs *subwindow,
115 PreferencesWindow *pwindow;
118 class PrefsForceUniprocessor : public BC_CheckBox
121 PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y);
122 ~PrefsForceUniprocessor();
125 PreferencesWindow *pwindow;
128 class PrefsTrapSigSEGV : public BC_CheckBox
131 PrefsTrapSigSEGV(PerformancePrefs *perf_prefs, int x, int y);
135 PerformancePrefs *perf_prefs;
138 class PrefsTrapSigINTR : public BC_CheckBox
141 PrefsTrapSigINTR(PerformancePrefs *perf_prefs, int x, int y);
145 PerformancePrefs *perf_prefs;
148 class PrefsFFMPEGEarlyProbe : public BC_CheckBox
151 PrefsFFMPEGEarlyProbe(PerformancePrefs *perf_prefs, int x, int y);
152 ~PrefsFFMPEGEarlyProbe();
156 PerformancePrefs *perf_prefs;
159 class PrefsFFMPEGMarkerIndecies : public BC_CheckBox
162 PrefsFFMPEGMarkerIndecies(PerformancePrefs *perf_prefs, int x, int y);
163 ~PrefsFFMPEGMarkerIndecies();
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,
343 PerformancePrefs *subwindow;
344 PreferencesWindow *pwindow;
348 class PrefsYUV420P_DVDlace : public BC_CheckBox
351 PrefsYUV420P_DVDlace(PreferencesWindow *pwindow,
352 PerformancePrefs *subwindow,
357 PerformancePrefs *subwindow;
358 PreferencesWindow *pwindow;
363 class CICacheSize : public BC_TumbleTextBox
368 PreferencesWindow *pwindow,
369 PerformancePrefs *subwindow);
371 PreferencesWindow *pwindow;