r105: This commit was manufactured by cvs2svn to create tag
[cinelerra_cv/mob.git] / hvirtual / cinelerra / performanceprefs.h
blob93fc0575485bce7653c10aa5a015648f24d46c12
1 #ifndef PERFORMANCEPREFS_H
2 #define PERFORMANCEPREFS_H
4 class CICacheSize;
5 class PrefsSMP;
7 #include "formattools.inc"
8 #include "mwindow.inc"
9 #include "preferencesthread.h"
12 class PrefsRenderFarmEditNode;
13 class PrefsRenderFarmNodes;
14 class PrefsRenderFarmPort;
16 class PerformancePrefs : public PreferencesDialog
18 public:
19 PerformancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
20 ~PerformancePrefs();
22 int create_objects();
24 void generate_node_list();
25 void update_node_list();
27 int hot_node;
29 CICacheSize *csize;
30 PrefsSMP *smp;
32 ArrayList<BC_ListBoxItem*> nodes[4];
33 PrefsRenderFarmEditNode *edit_node;
34 PrefsRenderFarmPort *edit_port;
35 PrefsRenderFarmNodes *node_list;
36 FormatTools *brender_tools;
37 BC_Title *master_rate;
42 class PrefsUseBRender : public BC_CheckBox
44 public:
45 PrefsUseBRender(PreferencesWindow *pwindow,
46 int x,
47 int y);
48 int handle_event();
49 PreferencesWindow *pwindow;
52 class PrefsBRenderFragment : public BC_TumbleTextBox
54 public:
55 PrefsBRenderFragment(PreferencesWindow *pwindow,
56 PerformancePrefs *subwindow,
57 int x,
58 int y);
59 int handle_event();
60 PreferencesWindow *pwindow;
65 class PrefsRenderPreroll : public BC_TumbleTextBox
67 public:
68 PrefsRenderPreroll(PreferencesWindow *pwindow,
69 PerformancePrefs *subwindow,
70 int x,
71 int y);
72 ~PrefsRenderPreroll();
74 int handle_event();
76 PreferencesWindow *pwindow;
79 class PrefsBRenderPreroll : public BC_TumbleTextBox
81 public:
82 PrefsBRenderPreroll(PreferencesWindow *pwindow,
83 PerformancePrefs *subwindow,
84 int x,
85 int y);
86 int handle_event();
87 PreferencesWindow *pwindow;
90 class PrefsForceUniprocessor : public BC_CheckBox
92 public:
93 PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y);
94 ~PrefsForceUniprocessor();
96 int handle_event();
99 PreferencesWindow *pwindow;
105 class PrefsRenderFarm : public BC_CheckBox
107 public:
108 PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y);
109 ~PrefsRenderFarm();
111 int handle_event();
114 PreferencesWindow *pwindow;
117 class PrefsRenderFarmConsolidate : public BC_CheckBox
119 public:
120 PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y);
121 ~PrefsRenderFarmConsolidate();
123 int handle_event();
126 PreferencesWindow *pwindow;
130 class PrefsRenderFarmPort : public BC_TumbleTextBox
132 public:
133 PrefsRenderFarmPort(PreferencesWindow *pwindow,
134 PerformancePrefs *subwindow,
135 int x,
136 int y);
137 ~PrefsRenderFarmPort();
139 int handle_event();
141 PreferencesWindow *pwindow;
144 class PrefsRenderFarmJobs : public BC_TumbleTextBox
146 public:
147 PrefsRenderFarmJobs(PreferencesWindow *pwindow,
148 PerformancePrefs *subwindow,
149 int x,
150 int y);
151 ~PrefsRenderFarmJobs();
153 int handle_event();
155 PreferencesWindow *pwindow;
158 class PrefsRenderFarmMountpoint : public BC_TextBox
160 public:
161 PrefsRenderFarmMountpoint(PreferencesWindow *pwindow,
162 PerformancePrefs *subwindow,
163 int x,
164 int y);
165 ~PrefsRenderFarmMountpoint();
167 int handle_event();
169 PreferencesWindow *pwindow;
170 PerformancePrefs *subwindow;
173 class PrefsRenderFarmVFS : public BC_CheckBox
175 public:
176 PrefsRenderFarmVFS(PreferencesWindow *pwindow,
177 PerformancePrefs *subwindow,
178 int x,
179 int y);
180 int handle_event();
181 PreferencesWindow *pwindow;
182 PerformancePrefs *subwindow;
185 class PrefsRenderFarmNodes : public BC_ListBox
187 public:
188 PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
189 ~PrefsRenderFarmNodes();
191 int handle_event();
192 int selection_changed();
193 int column_resize_event();
195 PreferencesWindow *pwindow;
196 PerformancePrefs *subwindow;
199 class PrefsRenderFarmEditNode : public BC_TextBox
201 public:
202 PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
203 ~PrefsRenderFarmEditNode();
205 int handle_event();
207 PerformancePrefs *subwindow;
208 PreferencesWindow *pwindow;
211 class PrefsRenderFarmNewNode : public BC_GenericButton
213 public:
214 PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
215 ~PrefsRenderFarmNewNode();
217 int handle_event();
220 PerformancePrefs *subwindow;
221 PreferencesWindow *pwindow;
224 class PrefsRenderFarmReplaceNode : public BC_GenericButton
226 public:
227 PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow,
228 PerformancePrefs *subwindow,
229 int x,
230 int y);
231 ~PrefsRenderFarmReplaceNode();
233 int handle_event();
236 PerformancePrefs *subwindow;
237 PreferencesWindow *pwindow;
240 class PrefsRenderFarmDelNode : public BC_GenericButton
242 public:
243 PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
244 ~PrefsRenderFarmDelNode();
246 int handle_event();
248 PerformancePrefs *subwindow;
250 PreferencesWindow *pwindow;
253 class PrefsRenderFarmSortNodes : public BC_GenericButton
255 public:
256 PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
257 ~PrefsRenderFarmSortNodes();
259 int handle_event();
261 PerformancePrefs *subwindow;
262 PreferencesWindow *pwindow;
266 class PrefsRenderFarmReset : public BC_GenericButton
268 public:
269 PrefsRenderFarmReset(PreferencesWindow *pwindow,
270 PerformancePrefs *subwindow,
271 int x,
272 int y);
274 int handle_event();
276 PerformancePrefs *subwindow;
277 PreferencesWindow *pwindow;
287 class PrefsSMP : public BC_TextBox
289 public:
290 PrefsSMP(int x, int y, PreferencesWindow *pwindow);
291 ~PrefsSMP();
293 int handle_event();
294 PreferencesWindow *pwindow;
298 class CICacheSize : public BC_TextBox
300 public:
301 CICacheSize(int x, int y, PreferencesWindow *pwindow, char *text);
302 int handle_event();
303 PreferencesWindow *pwindow;
309 #endif