00001 #ifndef PERFORMANCEPREFS_H
00002 #define PERFORMANCEPREFS_H
00003
00004
00005 #include "formattools.inc"
00006 #include "mwindow.inc"
00007 #include "preferencesthread.h"
00008
00009
00010 class CICacheSize;
00011 class PrefsRenderFarmEditNode;
00012 class PrefsRenderFarmNodes;
00013 class PrefsRenderFarmPort;
00014
00015 class PerformancePrefs : public PreferencesDialog
00016 {
00017 public:
00018 PerformancePrefs(MWindow *mwindow, PreferencesWindow *pwindow);
00019 ~PerformancePrefs();
00020
00021 int create_objects();
00022
00023 void generate_node_list();
00024 void update_node_list();
00025
00026 int hot_node;
00027
00028 CICacheSize *cache_size;
00029
00030 ArrayList<BC_ListBoxItem*> nodes[4];
00031 PrefsRenderFarmEditNode *edit_node;
00032 PrefsRenderFarmPort *edit_port;
00033 PrefsRenderFarmNodes *node_list;
00034 FormatTools *brender_tools;
00035 BC_Title *master_rate;
00036 };
00037
00038
00039
00040 class PrefsUseBRender : public BC_CheckBox
00041 {
00042 public:
00043 PrefsUseBRender(PreferencesWindow *pwindow,
00044 int x,
00045 int y);
00046 int handle_event();
00047 PreferencesWindow *pwindow;
00048 };
00049
00050 class PrefsBRenderFragment : public BC_TumbleTextBox
00051 {
00052 public:
00053 PrefsBRenderFragment(PreferencesWindow *pwindow,
00054 PerformancePrefs *subwindow,
00055 int x,
00056 int y);
00057 int handle_event();
00058 PreferencesWindow *pwindow;
00059 };
00060
00061
00062
00063 class PrefsRenderPreroll : public BC_TumbleTextBox
00064 {
00065 public:
00066 PrefsRenderPreroll(PreferencesWindow *pwindow,
00067 PerformancePrefs *subwindow,
00068 int x,
00069 int y);
00070 ~PrefsRenderPreroll();
00071
00072 int handle_event();
00073
00074 PreferencesWindow *pwindow;
00075 };
00076
00077 class PrefsBRenderPreroll : public BC_TumbleTextBox
00078 {
00079 public:
00080 PrefsBRenderPreroll(PreferencesWindow *pwindow,
00081 PerformancePrefs *subwindow,
00082 int x,
00083 int y);
00084 int handle_event();
00085 PreferencesWindow *pwindow;
00086 };
00087
00088 class PrefsForceUniprocessor : public BC_CheckBox
00089 {
00090 public:
00091 PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y);
00092 ~PrefsForceUniprocessor();
00093
00094 int handle_event();
00095
00096
00097 PreferencesWindow *pwindow;
00098 };
00099
00100
00101
00102
00103 class PrefsRenderFarm : public BC_CheckBox
00104 {
00105 public:
00106 PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y);
00107 ~PrefsRenderFarm();
00108
00109 int handle_event();
00110
00111
00112 PreferencesWindow *pwindow;
00113 };
00114
00115 class PrefsRenderFarmConsolidate : public BC_CheckBox
00116 {
00117 public:
00118 PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y);
00119 ~PrefsRenderFarmConsolidate();
00120
00121 int handle_event();
00122
00123
00124 PreferencesWindow *pwindow;
00125 };
00126
00127
00128 class PrefsRenderFarmPort : public BC_TumbleTextBox
00129 {
00130 public:
00131 PrefsRenderFarmPort(PreferencesWindow *pwindow,
00132 PerformancePrefs *subwindow,
00133 int x,
00134 int y);
00135 ~PrefsRenderFarmPort();
00136
00137 int handle_event();
00138
00139 PreferencesWindow *pwindow;
00140 };
00141
00142 class PrefsRenderFarmJobs : public BC_TumbleTextBox
00143 {
00144 public:
00145 PrefsRenderFarmJobs(PreferencesWindow *pwindow,
00146 PerformancePrefs *subwindow,
00147 int x,
00148 int y);
00149 ~PrefsRenderFarmJobs();
00150
00151 int handle_event();
00152
00153 PreferencesWindow *pwindow;
00154 };
00155
00156 class PrefsRenderFarmMountpoint : public BC_TextBox
00157 {
00158 public:
00159 PrefsRenderFarmMountpoint(PreferencesWindow *pwindow,
00160 PerformancePrefs *subwindow,
00161 int x,
00162 int y);
00163 ~PrefsRenderFarmMountpoint();
00164
00165 int handle_event();
00166
00167 PreferencesWindow *pwindow;
00168 PerformancePrefs *subwindow;
00169 };
00170
00171 class PrefsRenderFarmVFS : public BC_CheckBox
00172 {
00173 public:
00174 PrefsRenderFarmVFS(PreferencesWindow *pwindow,
00175 PerformancePrefs *subwindow,
00176 int x,
00177 int y);
00178 int handle_event();
00179 PreferencesWindow *pwindow;
00180 PerformancePrefs *subwindow;
00181 };
00182
00183 class PrefsRenderFarmNodes : public BC_ListBox
00184 {
00185 public:
00186 PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
00187 ~PrefsRenderFarmNodes();
00188
00189 int handle_event();
00190 int selection_changed();
00191 int column_resize_event();
00192
00193 PreferencesWindow *pwindow;
00194 PerformancePrefs *subwindow;
00195 };
00196
00197 class PrefsRenderFarmEditNode : public BC_TextBox
00198 {
00199 public:
00200 PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
00201 ~PrefsRenderFarmEditNode();
00202
00203 int handle_event();
00204
00205 PerformancePrefs *subwindow;
00206 PreferencesWindow *pwindow;
00207 };
00208
00209 class PrefsRenderFarmNewNode : public BC_GenericButton
00210 {
00211 public:
00212 PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
00213 ~PrefsRenderFarmNewNode();
00214
00215 int handle_event();
00216
00217
00218 PerformancePrefs *subwindow;
00219 PreferencesWindow *pwindow;
00220 };
00221
00222 class PrefsRenderFarmReplaceNode : public BC_GenericButton
00223 {
00224 public:
00225 PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow,
00226 PerformancePrefs *subwindow,
00227 int x,
00228 int y);
00229 ~PrefsRenderFarmReplaceNode();
00230
00231 int handle_event();
00232
00233
00234 PerformancePrefs *subwindow;
00235 PreferencesWindow *pwindow;
00236 };
00237
00238 class PrefsRenderFarmDelNode : public BC_GenericButton
00239 {
00240 public:
00241 PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
00242 ~PrefsRenderFarmDelNode();
00243
00244 int handle_event();
00245
00246 PerformancePrefs *subwindow;
00247
00248 PreferencesWindow *pwindow;
00249 };
00250
00251 class PrefsRenderFarmSortNodes : public BC_GenericButton
00252 {
00253 public:
00254 PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y);
00255 ~PrefsRenderFarmSortNodes();
00256
00257 int handle_event();
00258
00259 PerformancePrefs *subwindow;
00260 PreferencesWindow *pwindow;
00261 };
00262
00263
00264 class PrefsRenderFarmReset : public BC_GenericButton
00265 {
00266 public:
00267 PrefsRenderFarmReset(PreferencesWindow *pwindow,
00268 PerformancePrefs *subwindow,
00269 int x,
00270 int y);
00271
00272 int handle_event();
00273
00274 PerformancePrefs *subwindow;
00275 PreferencesWindow *pwindow;
00276 };
00277
00278
00279
00280 class CICacheSize : public BC_TumbleTextBox
00281 {
00282 public:
00283 CICacheSize(int x,
00284 int y,
00285 PreferencesWindow *pwindow,
00286 PerformancePrefs *subwindow);
00287 int handle_event();
00288 PreferencesWindow *pwindow;
00289 };
00290
00291
00292
00293
00294
00295 #endif