1 #if !defined(AFX_OPTIONS_H__5C839953_58C0_4D9D_89CE_2820C7686C1B__INCLUDED_)
2 #define AFX_OPTIONS_H__5C839953_58C0_4D9D_89CE_2820C7686C1B__INCLUDED_
3 
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // Options.h : header file
8 //
9 
10 
11 class COptAudio : public CDialog
12 {
13 // Construction
14 public:
15 	COptAudio(CWnd* pParent = NULL);   // standard constructor
16 
17 // Dialog Data
18 	//{{AFX_DATA(COptAudio)
19 	enum { IDD = IDD_OPT_AUDIO };
20 	CButton	m_Notifs;
21 	CComboBox	m_DriverList;
22 	CButton	m_AudioResync;
23 	CButton	m_AudioMultiCH;
24 	CEdit	m_AudioDur;
25 	CSpinButtonCtrl	m_SpinFPS;
26 	CButton	m_ForceConfig;
27 	CSpinButtonCtrl	m_AudioSpin;
28 	CEdit	m_AudioEdit;
29 	//}}AFX_DATA
30 
31 	void SaveOptions();
32 
33 // Overrides
34 	// ClassWizard generated virtual function overrides
35 	//{{AFX_VIRTUAL(COptAudio)
36 protected:
37 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
38 	//}}AFX_VIRTUAL
39 
40 // Implementation
41 protected:
42 
43 	// Generated message map functions
44 	//{{AFX_MSG(COptAudio)
45 	virtual BOOL OnInitDialog();
46 	afx_msg void OnForceAudio();
47 	afx_msg void OnSelchangeDriverList();
48 	//}}AFX_MSG
49 	DECLARE_MESSAGE_MAP()
50 };
51 
52 /////////////////////////////////////////////////////////////////////////////
53 // OptDecoder dialog
54 
55 class OptDecoder : public CDialog
56 {
57 // Construction
58 public:
59 	OptDecoder(CWnd* pParent = NULL);   // standard constructor
60 
61 // Dialog Data
62 	//{{AFX_DATA(OptDecoder)
63 	enum { IDD = IDD_OPT_DECODER };
64 	CComboBox	m_Video;
65 	CComboBox	m_Audio;
66 	//}}AFX_DATA
67 
68 	void SaveOptions();
69 
70 // Overrides
71 	// ClassWizard generated virtual function overrides
72 	//{{AFX_VIRTUAL(OptDecoder)
73 protected:
74 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
75 	//}}AFX_VIRTUAL
76 
77 // Implementation
78 protected:
79 
80 	// Generated message map functions
81 	//{{AFX_MSG(OptDecoder)
82 	virtual BOOL OnInitDialog();
83 	//}}AFX_MSG
84 	DECLARE_MESSAGE_MAP()
85 };
86 
87 class OptFiles : public CDialog
88 {
89 // Construction
90 public:
91 	OptFiles(CWnd* pParent = NULL);   // standard constructor
92 
93 // Dialog Data
94 	//{{AFX_DATA(OptFiles)
95 	enum { IDD = IDD_OPT_FILETYPES };
96 	CButton	m_DoAssociate;
97 	CStatic	m_PlugName;
98 	CStatic	m_mimes;
99 	CStatic	m_extensions;
100 	CComboBox	m_FileDescs;
101 	//}}AFX_DATA
102 
103 	void SetSelection(u32 sel);
104 	char cur_ext[200], cur_mime[200];
105 
106 // Overrides
107 	// ClassWizard generated virtual function overrides
108 	//{{AFX_VIRTUAL(OptFiles)
109 protected:
110 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
111 	//}}AFX_VIRTUAL
112 
113 // Implementation
114 protected:
115 
116 	// Generated message map functions
117 	//{{AFX_MSG(OptFiles)
118 	virtual BOOL OnInitDialog();
119 	afx_msg void OnSelchangeFilelist();
120 	afx_msg void OnAssociate();
121 	//}}AFX_MSG
122 	DECLARE_MESSAGE_MAP()
123 };
124 
125 /////////////////////////////////////////////////////////////////////////////
126 // COptFont dialog
127 
128 class COptFont : public CDialog
129 {
130 // Construction
131 public:
132 	COptFont(CWnd* pParent = NULL);   // standard constructor
133 
134 // Dialog Data
135 	//{{AFX_DATA(COptFont)
136 	enum { IDD = IDD_OPT_FONT };
137 	CComboBox	m_TextureModes;
138 	CComboBox	m_Fonts;
139 	CButton	m_BrowseFont;
140 	//}}AFX_DATA
141 
142 
143 	void SaveOptions();
144 
145 // Overrides
146 	// ClassWizard generated virtual function overrides
147 	//{{AFX_VIRTUAL(COptFont)
148 protected:
149 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
150 	//}}AFX_VIRTUAL
151 
152 // Implementation
153 protected:
154 
155 	// Generated message map functions
156 	//{{AFX_MSG(COptFont)
157 	virtual BOOL OnInitDialog();
158 	afx_msg void OnBrowseFont();
159 	//}}AFX_MSG
160 	DECLARE_MESSAGE_MAP()
161 };
162 
163 /////////////////////////////////////////////////////////////////////////////
164 // COptGen dialog
165 
166 class COptGen : public CDialog
167 {
168 // Construction
169 public:
170 	COptGen(CWnd* pParent = NULL);   // standard constructor
171 
172 // Dialog Data
173 	//{{AFX_DATA(COptGen)
174 	enum { IDD = IDD_OPT_GEN };
175 	CButton	m_LookForSubs;
176 	CButton	m_ViewXMT;
177 	CButton	m_NoConsole;
178 	CButton	m_Loop;
179 	CButton	m_SingleInstance;
180 	//}}AFX_DATA
181 
182 	void SaveOptions();
183 
184 // Overrides
185 	// ClassWizard generated virtual function overrides
186 	//{{AFX_VIRTUAL(COptGen)
187 protected:
188 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
189 	//}}AFX_VIRTUAL
190 
191 // Implementation
192 protected:
193 
194 	// Generated message map functions
195 	//{{AFX_MSG(COptGen)
196 	virtual BOOL OnInitDialog();
197 	//}}AFX_MSG
198 	DECLARE_MESSAGE_MAP()
199 };
200 
201 
202 /////////////////////////////////////////////////////////////////////////////
203 // COptHTTP dialog
204 
205 class COptHTTP : public CDialog
206 {
207 // Construction
208 public:
209 	COptHTTP(CWnd* pParent = NULL);   // standard constructor
210 
211 // Dialog Data
212 	//{{AFX_DATA(COptHTTP)
213 	enum { IDD = IDD_OPT_HTTP };
214 	CEdit	m_ProxyName;
215 	CButton	m_useProxy;
216 	CEdit	m_SAXDuration;
217 	CButton	m_Progressive;
218 	CButton	m_DisableCache;
219 	CButton	m_CleanCache;
220 	CButton	m_CacheDir;
221 	//}}AFX_DATA
222 
223 
224 	void SaveOptions();
225 
226 // Overrides
227 	// ClassWizard generated virtual function overrides
228 	//{{AFX_VIRTUAL(COptHTTP)
229 protected:
230 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
231 	//}}AFX_VIRTUAL
232 
233 // Implementation
234 protected:
235 
236 	// Generated message map functions
237 	//{{AFX_MSG(COptHTTP)
238 	afx_msg void OnBrowseCache();
239 	virtual BOOL OnInitDialog();
240 	afx_msg void OnSaxProgressive();
241 	afx_msg void OnUseProxy();
242 	//}}AFX_MSG
243 	DECLARE_MESSAGE_MAP()
244 public:
245 	afx_msg void OnBnClickedRestartCache();
246 };
247 
248 
249 class COptMCache : public CDialog
250 {
251 // Construction
252 public:
253 	COptMCache(CWnd* pParent = NULL);   // standard constructor
254 
255 // Dialog Data
256 	//{{AFX_DATA(COptMCache)
257 	enum { IDD = IDD_OPT_MCACHE };
258 	CEdit	m_BaseName;
259 	CButton	m_UseBase;
260 	CButton	m_Overwrite;
261 	CButton	m_RecDir;
262 	//}}AFX_DATA
263 
264 
265 	void SaveOptions();
266 
267 // Overrides
268 	// ClassWizard generated virtual function overrides
269 	//{{AFX_VIRTUAL(COptMCache)
270 protected:
271 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
272 	//}}AFX_VIRTUAL
273 
274 // Implementation
275 protected:
276 
277 	// Generated message map functions
278 	//{{AFX_MSG(COptMCache)
279 	virtual BOOL OnInitDialog();
280 	afx_msg void OnBrowseMcache();
281 	afx_msg void OnMcacheUsename();
282 	//}}AFX_MSG
283 	DECLARE_MESSAGE_MAP()
284 };
285 
286 class COptRender : public CDialog
287 {
288 // Construction
289 public:
290 	COptRender(CWnd* pParent = NULL);   // standard constructor
291 
292 // Dialog Data
293 	//{{AFX_DATA(COptRender)
294 	enum { IDD = IDD_OPT_RENDER };
295 	CComboBox	m_DrawBounds;
296 	CComboBox	m_Graphics;
297 	CButton	m_Use3DRender;
298 	CComboBox	m_AntiAlias;
299 	CButton	m_ForceSize;
300 	CButton	m_HighSpeed;
301 	CComboBox	m_BIFSRate;
302 	//}}AFX_DATA
303 
304 
305 	Bool SaveOptions();
306 
307 // Overrides
308 	// ClassWizard generated virtual function overrides
309 	//{{AFX_VIRTUAL(COptRender)
310 protected:
311 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
312 	//}}AFX_VIRTUAL
313 
314 // Implementation
315 protected:
316 
317 	// Generated message map functions
318 	//{{AFX_MSG(COptRender)
319 	virtual BOOL OnInitDialog();
320 	//}}AFX_MSG
321 	DECLARE_MESSAGE_MAP()
322 };
323 
324 class COptRender2D : public CDialog
325 {
326 // Construction
327 public:
328 	COptRender2D(CWnd* pParent = NULL);   // standard constructor
329 
330 	void SaveOptions();
331 	void SetYUV();
332 
333 // Dialog Data
334 	//{{AFX_DATA(COptRender2D)
335 	enum { IDD = IDD_OPT_RENDER2D };
336 	CStatic	m_YUVFormat;
337 	CButton	m_NoYUV;
338 	CButton	m_Scalable;
339 	CButton	m_DirectRender;
340 	//}}AFX_DATA
341 
342 
343 // Overrides
344 	// ClassWizard generated virtual function overrides
345 	//{{AFX_VIRTUAL(COptRender2D)
346 protected:
347 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
348 	//}}AFX_VIRTUAL
349 
350 // Implementation
351 protected:
352 
353 	// Generated message map functions
354 	//{{AFX_MSG(COptRender2D)
355 	virtual BOOL OnInitDialog();
356 	//}}AFX_MSG
357 	DECLARE_MESSAGE_MAP()
358 };
359 
360 class COptRender3D : public CDialog
361 {
362 // Construction
363 public:
364 	COptRender3D(CWnd* pParent = NULL);   // standard constructor
365 
366 	void SaveOptions();
367 
368 // Dialog Data
369 	//{{AFX_DATA(COptRender3D)
370 	enum { IDD = IDD_OPT_RENDER3D };
371 	CButton	m_BitmapPixels;
372 	CButton	m_DisableTXRect;
373 	CButton	m_RasterOutlines;
374 	CButton	m_EmulPow2;
375 	CButton	m_PolyAA;
376 	CComboBox	m_BackCull;
377 	CComboBox	m_DrawNormals;
378 	CComboBox	m_Wireframe;
379 	//}}AFX_DATA
380 
381 
382 // Overrides
383 	// ClassWizard generated virtual function overrides
384 	//{{AFX_VIRTUAL(COptRender3D)
385 protected:
386 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
387 	//}}AFX_VIRTUAL
388 
389 // Implementation
390 protected:
391 
392 	// Generated message map functions
393 	//{{AFX_MSG(COptRender3D)
394 	virtual BOOL OnInitDialog();
395 	//}}AFX_MSG
396 	DECLARE_MESSAGE_MAP()
397 };
398 
399 class COptStream : public CDialog
400 {
401 // Construction
402 public:
403 	COptStream(CWnd* pParent = NULL);   // standard constructor
404 
405 // Dialog Data
406 	//{{AFX_DATA(COptStream)
407 	enum { IDD = IDD_OPT_STREAM };
408 	CEdit	m_RebufferLen;
409 	CButton	m_Rebuffer;
410 	CEdit	m_Buffer;
411 	CEdit	m_Timeout;
412 	CButton	m_Reorder;
413 	CButton	m_UseRTSP;
414 	CComboBox	m_Port;
415 	//}}AFX_DATA
416 
417 
418 	void SaveOptions();
419 
420 	void CheckRebuffer();
421 
422 // Overrides
423 	// ClassWizard generated virtual function overrides
424 	//{{AFX_VIRTUAL(COptStream)
425 protected:
426 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
427 	//}}AFX_VIRTUAL
428 
429 // Implementation
430 protected:
431 
432 	// Generated message map functions
433 	//{{AFX_MSG(COptStream)
434 	virtual BOOL OnInitDialog();
435 	afx_msg void OnSelchangePort();
436 	afx_msg void OnRtsp();
437 	afx_msg void OnRebuffer();
438 	afx_msg void OnUpdateRebufferLen();
439 	afx_msg void OnUpdateBuffer();
440 	//}}AFX_MSG
441 	DECLARE_MESSAGE_MAP()
442 };
443 
444 class COptSystems : public CDialog
445 {
446 // Construction
447 public:
448 	COptSystems(CWnd* pParent = NULL);   // standard constructor
449 
450 // Dialog Data
451 	//{{AFX_DATA(COptSystems)
452 	enum { IDD = IDD_OPT_SYSTEMS };
453 	CButton	m_ForceDuration;
454 	CComboBox	m_Threading;
455 	CButton	m_LateFramesAlwaysDrawn;
456 	CComboBox	m_Lang;
457 	//}}AFX_DATA
458 
459 	void SaveOptions();
460 
461 // Overrides
462 	// ClassWizard generated virtual function overrides
463 	//{{AFX_VIRTUAL(COptSystems)
464 protected:
465 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
466 	//}}AFX_VIRTUAL
467 
468 // Implementation
469 protected:
470 
471 	// Generated message map functions
472 	//{{AFX_MSG(COptSystems)
473 	virtual BOOL OnInitDialog();
474 	//}}AFX_MSG
475 	DECLARE_MESSAGE_MAP()
476 };
477 
478 class COptVideo : public CDialog
479 {
480 // Construction
481 public:
482 	COptVideo(CWnd* pParent = NULL);   // standard constructor
483 
484 // Dialog Data
485 	//{{AFX_DATA(COptVideo)
486 	enum { IDD = IDD_OPT_VIDEO };
487 	CButton	m_SwitchRes;
488 	CButton	m_UseHWMemory;
489 	CComboBox	m_Videos;
490 	//}}AFX_DATA
491 
492 
493 	void SaveOptions();
494 
495 // Overrides
496 	// ClassWizard generated virtual function overrides
497 	//{{AFX_VIRTUAL(COptVideo)
498 protected:
499 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
500 	//}}AFX_VIRTUAL
501 
502 // Implementation
503 protected:
504 
505 	// Generated message map functions
506 	//{{AFX_MSG(COptVideo)
507 	virtual BOOL OnInitDialog();
508 	//}}AFX_MSG
509 	DECLARE_MESSAGE_MAP()
510 };
511 
512 /////////////////////////////////////////////////////////////////////////////
513 // COptLogs dialog
514 
515 class COptLogs : public CDialog
516 {
517 // Construction
518 public:
519 	COptLogs(CWnd* pParent = NULL);   // standard constructor
520 	void SaveOptions();
521 
522 // Dialog Data
523 	//{{AFX_DATA(COptLogs)
524 	enum { IDD = IDD_OPT_LOGS };
525 	CButton	m_sync;
526 	CButton	m_script;
527 	CButton	m_scene;
528 	CButton	m_rtp;
529 	CButton	m_render;
530 	CButton	m_parser;
531 	CButton	m_net;
532 	CButton	m_mmio;
533 	CButton	m_media;
534 	CButton	m_core;
535 	CButton	m_container;
536 	CButton	m_compose;
537 	CButton	m_coding;
538 	CButton	m_codec;
539 	CButton	m_author;
540 	CComboBox	m_Level;
541 	//}}AFX_DATA
542 
543 
544 // Overrides
545 	// ClassWizard generated virtual function overrides
546 	//{{AFX_VIRTUAL(COptLogs)
547 protected:
548 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
549 	//}}AFX_VIRTUAL
550 
551 // Implementation
552 protected:
553 
554 	// Generated message map functions
555 	//{{AFX_MSG(COptLogs)
556 	virtual BOOL OnInitDialog();
557 	//}}AFX_MSG
558 	DECLARE_MESSAGE_MAP()
559 };
560 
561 
562 
563 /////////////////////////////////////////////////////////////////////////////
564 // COptions dialog
565 
566 class COptions : public CDialog
567 {
568 // Construction
569 public:
570 	COptions(CWnd* pParent = NULL);   // standard constructor
Create(CWnd * pParent)571 	BOOL Create(CWnd * pParent)
572 	{
573 		return CDialog::Create( COptions::IDD, pParent);
574 	}
575 
576 // Dialog Data
577 	//{{AFX_DATA(COptions)
578 	enum { IDD = IDD_OPTIONS };
579 	CComboBox	m_Selector;
580 	//}}AFX_DATA
581 
582 
583 // Overrides
584 	// ClassWizard generated virtual function overrides
585 	//{{AFX_VIRTUAL(COptions)
586 protected:
587 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
588 	//}}AFX_VIRTUAL
589 
590 // Implementation
591 protected:
592 
593 	COptGen m_general;
594 	COptSystems m_systems;
595 	COptRender m_render;
596 	COptRender2D m_render2d;
597 	COptRender3D m_render3d;
598 	COptAudio m_audio;
599 	OptDecoder m_decoder;
600 	COptVideo m_video;
601 	COptHTTP m_http;
602 	COptFont m_font;
603 	COptStream m_stream;
604 	COptMCache m_cache;
605 	OptFiles m_files;
606 	COptLogs m_logs;
607 
608 	void HideAll();
609 
610 	// Generated message map functions
611 	//{{AFX_MSG(COptions)
612 	virtual BOOL OnInitDialog();
613 	afx_msg void OnSaveopt();
614 	afx_msg void OnClose();
615 	afx_msg void OnDestroy();
616 	afx_msg void OnSelchangeSelect();
617 	//}}AFX_MSG
618 	DECLARE_MESSAGE_MAP()
619 };
620 
621 //{{AFX_INSERT_LOCATION}}
622 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
623 
624 #endif // !defined(AFX_OPTIONS_H__5C839953_58C0_4D9D_89CE_2820C7686C1B__INCLUDED_)
625