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;
65 PrefsFFMPEGMarkerIndecies *ffmpeg_marker_indecies;
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 PrefsFileForking : public BC_CheckBox
151 PrefsFileForking(PerformancePrefs *perf_prefs, int x, int y);
157 PerformancePrefs *perf_prefs;
160 class PrefsFFMPEGEarlyProbe : public BC_CheckBox
163 PrefsFFMPEGEarlyProbe(PerformancePrefs *perf_prefs, int x, int y);
164 ~PrefsFFMPEGEarlyProbe();
168 PerformancePrefs *perf_prefs;
171 class PrefsFFMPEGMarkerIndecies : public BC_CheckBox
174 PrefsFFMPEGMarkerIndecies(PerformancePrefs *perf_prefs, int x, int y);
175 ~PrefsFFMPEGMarkerIndecies();
179 PerformancePrefs *perf_prefs;
185 class PrefsRenderFarm : public BC_CheckBox
188 PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y);
194 PreferencesWindow *pwindow;
197 class PrefsRenderFarmConsolidate : public BC_CheckBox
200 PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y);
201 ~PrefsRenderFarmConsolidate();
206 PreferencesWindow *pwindow;
210 class PrefsRenderFarmPort : public BC_TumbleTextBox
213 PrefsRenderFarmPort(PreferencesWindow *pwindow,
214 PerformancePrefs *subwindow,
217 ~PrefsRenderFarmPort();
221 PreferencesWindow *pwindow;
224 class PrefsRenderFarmJobs : public BC_TumbleTextBox
227 PrefsRenderFarmJobs(PreferencesWindow *pwindow,
228 PerformancePrefs *subwindow,
231 ~PrefsRenderFarmJobs();
235 PreferencesWindow *pwindow;
238 class PrefsRenderFarmMountpoint : public BC_TextBox
241 PrefsRenderFarmMountpoint(PreferencesWindow *pwindow,
242 PerformancePrefs *subwindow,
245 ~PrefsRenderFarmMountpoint();
249 PreferencesWindow *pwindow;
250 PerformancePrefs *subwindow;
253 class PrefsRenderFarmVFS : public BC_CheckBox
256 PrefsRenderFarmVFS(PreferencesWindow *pwindow,
257 PerformancePrefs *subwindow,
261 PreferencesWindow *pwindow;
262 PerformancePrefs *subwindow;
265 class PrefsRenderFarmNodes : public BC_ListBox
268 PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
269 ~PrefsRenderFarmNodes();
272 int selection_changed();
273 int column_resize_event();
275 PreferencesWindow *pwindow;
276 PerformancePrefs *subwindow;
279 class PrefsRenderFarmEditNode : public BC_TextBox
282 PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
283 ~PrefsRenderFarmEditNode();
287 PerformancePrefs *subwindow;
288 PreferencesWindow *pwindow;
291 class PrefsRenderFarmNewNode : public BC_GenericButton
294 PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
295 ~PrefsRenderFarmNewNode();
300 PerformancePrefs *subwindow;
301 PreferencesWindow *pwindow;
304 class PrefsRenderFarmReplaceNode : public BC_GenericButton
307 PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow,
308 PerformancePrefs *subwindow,
311 ~PrefsRenderFarmReplaceNode();
316 PerformancePrefs *subwindow;
317 PreferencesWindow *pwindow;
320 class PrefsRenderFarmDelNode : public BC_GenericButton
323 PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
324 ~PrefsRenderFarmDelNode();
328 PerformancePrefs *subwindow;
330 PreferencesWindow *pwindow;
333 class PrefsRenderFarmSortNodes : public BC_GenericButton
336 PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
337 ~PrefsRenderFarmSortNodes();
341 PerformancePrefs *subwindow;
342 PreferencesWindow *pwindow;
346 class PrefsRenderFarmReset : public BC_GenericButton
349 PrefsRenderFarmReset(PreferencesWindow *pwindow,
350 PerformancePrefs *subwindow,
356 PerformancePrefs *subwindow;
357 PreferencesWindow *pwindow;
362 class CICacheSize : public BC_TumbleTextBox
367 PreferencesWindow *pwindow,
368 PerformancePrefs *subwindow);
370 PreferencesWindow *pwindow;