2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
12 #include "wx/wxprec.h"
24 class wxBackgroundBitmap : public wxEvtHandler
27 typedef wxEvtHandler Inherited;
33 wxBackgroundBitmap(const wxBitmap &B) : wxEvtHandler(), Bitmap(B) { }
34 virtual bool ProcessEvent(wxEvent &Event);
37 class wxLauncherButton : public wxStaticBitmap
43 wxBitmap m_bitmap_hover;
44 wxBitmap m_bitmap_pressed;
46 wxDECLARE_EVENT_TABLE();
52 wxLauncherButton(wxWindow* parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos, const wxSize& size);
55 void onMouseDown(wxMouseEvent& event);
56 void onMouseUp(wxMouseEvent& event);
57 void onMouseEnter(wxMouseEvent& event);
58 void onMouseLeave(wxMouseEvent& event);
60 void SetBitmapHover(const wxBitmap& bitmap)
62 m_bitmap_hover = bitmap;
65 void SetBitmapPressed(const wxBitmap& bitmap)
67 m_bitmap_pressed = bitmap;
71 class Launcher : public wxDialog
77 ALCcontext *al_context;
79 ALuint m_snd_hover_buf_id;
80 ALuint m_snd_click_buf_id;
82 ALuint m_snd_hover_source_id;
83 ALuint m_snd_click_source_id;
88 wxDECLARE_EVENT_TABLE();
104 wxBackgroundBitmap *p_background;
109 wxLauncherButton* m_btn_Play;
110 wxLauncherButton* m_btn_Setup;
111 wxLauncherButton* m_btn_Readme;
112 wxLauncherButton* m_btn_Update;
113 wxLauncherButton* m_btn_Help;
114 wxLauncherButton* m_btn_Uninstall;
115 wxLauncherButton* m_btn_Volition;
116 wxLauncherButton* m_btn_PXO;
117 wxLauncherButton* m_btn_Quit;
119 wxButton* m_btn_Play;
120 wxButton* m_btn_Setup;
121 wxButton* m_btn_Readme;
122 wxButton* m_btn_Update;
123 wxButton* m_btn_Uninstall;
124 wxButton* m_btn_Volition;
125 wxButton* m_btn_Quit;
128 void OnClose(wxCloseEvent& event);
130 void OnPlay(wxCommandEvent& event);
131 void OnSetup(wxCommandEvent& event);
132 void OnReadme(wxCommandEvent& event);
133 void OnUpdate(wxCommandEvent& event);
134 void OnHelp(wxCommandEvent& event);
135 void OnUninstall(wxCommandEvent& event);
136 void OnVolition(wxCommandEvent& event);
137 void OnPXO(wxCommandEvent& event);
138 void OnQuit(wxCommandEvent& event);
142 Launcher( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Launcher"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
148 void SndPlayPressed();
149 void SndEnable(bool enabled = true);