license header for review
[cinelerra_cv/ct.git] / cinelerra / performanceprefs.h
blobb736a7095aefb3cb8db01f6a861431213921bc8a
1 #ifndef PERFORMANCEPREFS_H
2 #define PERFORMANCEPREFS_H
5 #include "formattools.inc"
6 #include "mwindow.inc"
7 #include "preferencesthread.h"
10 class CICacheSize;
11 class PrefsRenderFarmEditNode;
12 class PrefsRenderFarmNodes;
13 class PrefsRenderFarmPort;
15 class PerformancePrefs : public PreferencesDialog
17 public:
18 PerformancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
19 ~PerformancePrefs();
21 int create_objects();
23 void generate_node_list();
24 void update_node_list();
26 int hot_node;
28 CICacheSize *cache_size;
30 ArrayList<BC_ListBoxItem*> nodes[4];
31 PrefsRenderFarmEditNode *edit_node;
32 PrefsRenderFarmPort *edit_port;
33 PrefsRenderFarmNodes *node_list;
34 FormatTools *brender_tools;
35 BC_Title *master_rate;
40 class PrefsUseBRender : public BC_CheckBox
42 public:
43 PrefsUseBRender(PreferencesWindow *pwindow,
44 int x,
45 int y);
46 int handle_event();
47 PreferencesWindow *pwindow;
50 class PrefsBRenderFragment : public BC_TumbleTextBox
52 public:
53 PrefsBRenderFragment(PreferencesWindow *pwindow,
54 PerformancePrefs *subwindow,
55 int x,
56 int y);
57 int handle_event();
58 PreferencesWindow *pwindow;
63 class PrefsRenderPreroll : public BC_TumbleTextBox
65 public:
66 PrefsRenderPreroll(PreferencesWindow *pwindow,
67 PerformancePrefs *subwindow,
68 int x,
69 int y);
70 ~PrefsRenderPreroll();
72 int handle_event();
74 PreferencesWindow *pwindow;
77 class PrefsBRenderPreroll : public BC_TumbleTextBox
79 public:
80 PrefsBRenderPreroll(PreferencesWindow *pwindow,
81 PerformancePrefs *subwindow,
82 int x,
83 int y);
84 int handle_event();
85 PreferencesWindow *pwindow;
88 class PrefsForceUniprocessor : public BC_CheckBox
90 public:
91 PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y);
92 ~PrefsForceUniprocessor();
94 int handle_event();
97 PreferencesWindow *pwindow;
103 class PrefsRenderFarm : public BC_CheckBox
105 public:
106 PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y);
107 ~PrefsRenderFarm();
109 int handle_event();
112 PreferencesWindow *pwindow;
115 class PrefsRenderFarmConsolidate : public BC_CheckBox
117 public:
118 PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y);
119 ~PrefsRenderFarmConsolidate();
121 int handle_event();
124 PreferencesWindow *pwindow;
128 class PrefsRenderFarmPort : public BC_TumbleTextBox
130 public:
131 PrefsRenderFarmPort(PreferencesWindow *pwindow,
132 PerformancePrefs *subwindow,
133 int x,
134 int y);
135 ~PrefsRenderFarmPort();
137 int handle_event();
139 PreferencesWindow *pwindow;
142 class PrefsRenderFarmJobs : public BC_TumbleTextBox
144 public:
145 PrefsRenderFarmJobs(PreferencesWindow *pwindow,
146 PerformancePrefs *subwindow,
147 int x,
148 int y);
149 ~PrefsRenderFarmJobs();
151 int handle_event();
153 PreferencesWindow *pwindow;
156 class PrefsRenderFarmMountpoint : public BC_TextBox
158 public:
159 PrefsRenderFarmMountpoint(PreferencesWindow *pwindow,
160 PerformancePrefs *subwindow,
161 int x,
162 int y);
163 ~PrefsRenderFarmMountpoint();
165 int handle_event();
167 PreferencesWindow *pwindow;
168 PerformancePrefs *subwindow;
171 class PrefsRenderFarmVFS : public BC_CheckBox
173 public:
174 PrefsRenderFarmVFS(PreferencesWindow *pwindow,
175 PerformancePrefs *subwindow,
176 int x,
177 int y);
178 int handle_event();
179 PreferencesWindow *pwindow;
180 PerformancePrefs *subwindow;
183 class PrefsRenderFarmNodes : public BC_ListBox
185 public:
186 PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
187 ~PrefsRenderFarmNodes();
189 int handle_event();
190 int selection_changed();
191 int column_resize_event();
193 PreferencesWindow *pwindow;
194 PerformancePrefs *subwindow;
197 class PrefsRenderFarmEditNode : public BC_TextBox
199 public:
200 PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
201 ~PrefsRenderFarmEditNode();
203 int handle_event();
205 PerformancePrefs *subwindow;
206 PreferencesWindow *pwindow;
209 class PrefsRenderFarmNewNode : public BC_GenericButton
211 public:
212 PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
213 ~PrefsRenderFarmNewNode();
215 int handle_event();
218 PerformancePrefs *subwindow;
219 PreferencesWindow *pwindow;
222 class PrefsRenderFarmReplaceNode : public BC_GenericButton
224 public:
225 PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow,
226 PerformancePrefs *subwindow,
227 int x,
228 int y);
229 ~PrefsRenderFarmReplaceNode();
231 int handle_event();
234 PerformancePrefs *subwindow;
235 PreferencesWindow *pwindow;
238 class PrefsRenderFarmDelNode : public BC_GenericButton
240 public:
241 PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
242 ~PrefsRenderFarmDelNode();
244 int handle_event();
246 PerformancePrefs *subwindow;
248 PreferencesWindow *pwindow;
251 class PrefsRenderFarmSortNodes : public BC_GenericButton
253 public:
254 PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
255 ~PrefsRenderFarmSortNodes();
257 int handle_event();
259 PerformancePrefs *subwindow;
260 PreferencesWindow *pwindow;
264 class PrefsRenderFarmReset : public BC_GenericButton
266 public:
267 PrefsRenderFarmReset(PreferencesWindow *pwindow,
268 PerformancePrefs *subwindow,
269 int x,
270 int y);
272 int handle_event();
274 PerformancePrefs *subwindow;
275 PreferencesWindow *pwindow;
280 class CICacheSize : public BC_TumbleTextBox
282 public:
283 CICacheSize(int x,
284 int y,
285 PreferencesWindow *pwindow,
286 PerformancePrefs *subwindow);
287 int handle_event();
288 PreferencesWindow *pwindow;
295 #endif
297 // Local Variables:
298 // mode: C++
299 // c-file-style: "linux"
300 // End: