#if !defined(AFX_OPTIONS_H__5C839953_58C0_4D9D_89CE_2820C7686C1B__INCLUDED_)
#define AFX_OPTIONS_H__5C839953_58C0_4D9D_89CE_2820C7686C1B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
class COptAudio : public CDialog
{
public:
COptAudio(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_AUDIO };
CButton m_Notifs;
CComboBox m_DriverList;
CButton m_AudioResync;
CButton m_AudioMultiCH;
CEdit m_AudioDur;
CSpinButtonCtrl m_SpinFPS;
CButton m_ForceConfig;
CSpinButtonCtrl m_AudioSpin;
CEdit m_AudioEdit;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
afx_msg void OnForceAudio();
afx_msg void OnSelchangeDriverList();
DECLARE_MESSAGE_MAP()
};
class OptDecoder : public CDialog
{
public:
OptDecoder(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_DECODER };
CComboBox m_Video;
CComboBox m_Audio;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class OptFiles : public CDialog
{
public:
OptFiles(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_FILETYPES };
CButton m_DoAssociate;
CStatic m_PlugName;
CStatic m_mimes;
CStatic m_extensions;
CComboBox m_FileDescs;
void SetSelection(u32 sel);
char cur_ext[200], cur_mime[200];
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeFilelist();
afx_msg void OnAssociate();
DECLARE_MESSAGE_MAP()
};
class COptFont : public CDialog
{
public:
COptFont(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_FONT };
CComboBox m_TextureModes;
CComboBox m_Fonts;
CButton m_BrowseFont;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
afx_msg void OnBrowseFont();
DECLARE_MESSAGE_MAP()
};
class COptGen : public CDialog
{
public:
COptGen(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_GEN };
CButton m_LookForSubs;
CButton m_ViewXMT;
CButton m_NoConsole;
CButton m_Loop;
CButton m_SingleInstance;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptHTTP : public CDialog
{
public:
COptHTTP(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_HTTP };
CEdit m_ProxyName;
CButton m_useProxy;
CEdit m_SAXDuration;
CButton m_Progressive;
CButton m_DisableCache;
CButton m_CleanCache;
CButton m_CacheDir;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
afx_msg void OnBrowseCache();
virtual BOOL OnInitDialog();
afx_msg void OnSaxProgressive();
afx_msg void OnUseProxy();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedRestartCache();
};
class COptMCache : public CDialog
{
public:
COptMCache(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_MCACHE };
CEdit m_BaseName;
CButton m_UseBase;
CButton m_Overwrite;
CButton m_RecDir;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
afx_msg void OnBrowseMcache();
afx_msg void OnMcacheUsename();
DECLARE_MESSAGE_MAP()
};
class COptRender : public CDialog
{
public:
COptRender(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_RENDER };
CComboBox m_DrawBounds;
CComboBox m_Graphics;
CButton m_Use3DRender;
CComboBox m_AntiAlias;
CButton m_ForceSize;
CButton m_HighSpeed;
CComboBox m_BIFSRate;
Bool SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptRender2D : public CDialog
{
public:
COptRender2D(CWnd* pParent = NULL);
void SaveOptions();
void SetYUV();
enum { IDD = IDD_OPT_RENDER2D };
CStatic m_YUVFormat;
CButton m_NoYUV;
CButton m_Scalable;
CButton m_DirectRender;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptRender3D : public CDialog
{
public:
COptRender3D(CWnd* pParent = NULL);
void SaveOptions();
enum { IDD = IDD_OPT_RENDER3D };
CButton m_BitmapPixels;
CButton m_DisableTXRect;
CButton m_RasterOutlines;
CButton m_EmulPow2;
CButton m_PolyAA;
CComboBox m_BackCull;
CComboBox m_DrawNormals;
CComboBox m_Wireframe;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptStream : public CDialog
{
public:
COptStream(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_STREAM };
CEdit m_RebufferLen;
CButton m_Rebuffer;
CEdit m_Buffer;
CEdit m_Timeout;
CButton m_Reorder;
CButton m_UseRTSP;
CComboBox m_Port;
void SaveOptions();
void CheckRebuffer();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
afx_msg void OnSelchangePort();
afx_msg void OnRtsp();
afx_msg void OnRebuffer();
afx_msg void OnUpdateRebufferLen();
afx_msg void OnUpdateBuffer();
DECLARE_MESSAGE_MAP()
};
class COptSystems : public CDialog
{
public:
COptSystems(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_SYSTEMS };
CButton m_ForceDuration;
CComboBox m_Threading;
CButton m_LateFramesAlwaysDrawn;
CComboBox m_Lang;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptVideo : public CDialog
{
public:
COptVideo(CWnd* pParent = NULL);
enum { IDD = IDD_OPT_VIDEO };
CButton m_SwitchRes;
CButton m_UseHWMemory;
CComboBox m_Videos;
void SaveOptions();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptLogs : public CDialog
{
public:
COptLogs(CWnd* pParent = NULL);
void SaveOptions();
enum { IDD = IDD_OPT_LOGS };
CButton m_sync;
CButton m_script;
CButton m_scene;
CButton m_rtp;
CButton m_render;
CButton m_parser;
CButton m_net;
CButton m_mmio;
CButton m_media;
CButton m_core;
CButton m_container;
CButton m_compose;
CButton m_coding;
CButton m_codec;
CButton m_author;
CComboBox m_Level;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
};
class COptions : public CDialog
{
public:
COptions(CWnd* pParent = NULL);
BOOL Create(CWnd * pParent)
{
return CDialog::Create( COptions::IDD, pParent);
}
enum { IDD = IDD_OPTIONS };
CComboBox m_Selector;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
protected:
COptGen m_general;
COptSystems m_systems;
COptRender m_render;
COptRender2D m_render2d;
COptRender3D m_render3d;
COptAudio m_audio;
OptDecoder m_decoder;
COptVideo m_video;
COptHTTP m_http;
COptFont m_font;
COptStream m_stream;
COptMCache m_cache;
OptFiles m_files;
COptLogs m_logs;
void HideAll();
virtual BOOL OnInitDialog();
afx_msg void OnSaveopt();
afx_msg void OnClose();
afx_msg void OnDestroy();
afx_msg void OnSelchangeSelect();
DECLARE_MESSAGE_MAP()
};
#endif