#ifndef _OPTIONS_H
#define _OPTIONS_H
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
enum
{
ID_SELECT = 1000,
ID_APPLY,
ID_MAKE_DEF,
ID_FORCE_AUDIO,
ID_AUDIO_DRIVER,
ID_FONT_DIR,
ID_CACHE_DIR,
ID_PROGRESSIVE,
ID_RTSP_PORT,
ID_RTP_OVER_RTSP,
ID_RTSP_REBUFFER,
ID_RECORD_DIR,
ID_USE_FILENAME,
ID_USE_PROXY,
};
class wxOsmo4Frame;
class wxGPACControl : public wxDialog
{
public:
wxGPACControl(wxWindow *parent);
virtual ~wxGPACControl();
private:
DECLARE_EVENT_TABLE()
wxOsmo4Frame *m_pApp;
wxComboBox *m_select;
Bool m_bWas3D;
void Apply(wxCommandEvent &event);
void OnSetSelection(wxCommandEvent &event);
void ForceAudio(wxCommandEvent &event);
void OnSetAudioDriver(wxCommandEvent &event);
void FontDir(wxCommandEvent &event);
void CacheDir(wxCommandEvent &event);
void OnProgressive(wxCommandEvent &event);
void OnUseProxy(wxCommandEvent &event);
void RTPoverRTSP(wxCommandEvent &event);
void Rebuffer(wxCommandEvent &event);
void OnSetRTSPPort(wxCommandEvent &event);
void OnUseFileName(wxCommandEvent &event);
void OnRecDir(wxCommandEvent &event);
void DoSelect();
s32 m_sel;
void SetYUVLabel();
wxBoxSizer *s_header, *s_main, *s_general, *s_mpeg4, *s_mdec, *s_rend, *s_rend2d, *s_rend3d, *s_audio, *s_video, *s_font, *s_dnld, *s_stream, *s_rec;
wxCheckBox *m_loop, *m_lookforsubs, *m_noconsole, *m_viewxmt;
wxCheckBox *m_bifsalwaysdrawn, *m_singletime;
wxComboBox *m_lang, *m_thread;
wxComboBox *m_decaudio, *m_decvideo;
wxComboBox *m_fps, *m_aa, *m_draw_bounds;
wxCheckBox *m_use3D, *m_fast, *m_force_size;
wxComboBox *m_graph;
wxCheckBox *m_noyuv, *m_direct, *m_scalable;
wxStaticText *m_yuvtxt;
wxCheckBox *m_raster_outlines, *m_polyaa, *m_nobackcull, *m_emulpow2, *m_norectext, *m_copypixels;
wxComboBox *m_wire, *m_normals;
wxComboBox *m_video;
wxCheckBox *m_switchres, *m_usehwmem;
wxSpinCtrl *m_nbbuf, *m_buflen;
wxComboBox *m_audio;
wxCheckBox *m_forcecfg, *m_noresync, *m_nomulitch;
#ifdef WIN32
wxCheckBox *m_notifs;
#endif
wxComboBox *m_font;
wxButton *m_fontdir;
wxComboBox *m_texturemode;
wxButton *m_cachedir;
wxCheckBox *m_cleancache, *m_restartcache, *m_progressive, *m_use_proxy;
wxTextCtrl *m_sax_duration, *m_proxy_name;
wxComboBox *m_port;
wxCheckBox *m_rtsp, *m_reorder, *m_dorebuffer;
wxTextCtrl *m_timeout, *m_buffer, *m_rebuffer;
wxButton *m_recdir;
wxCheckBox *m_overwrite, *m_usename;
wxTextCtrl *m_recfile;
};
#endif