Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef OPTIONS_SUB_AUDIO_H
  8. #define OPTIONS_SUB_AUDIO_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vgui_controls/PropertyPage.h"
  13. #include <language.h>
  14. #include "vgui_controls/frame.h"
  15. #include "vgui/keycode.h"
  16. class CLabeledCommandComboBox;
  17. class CCvarSlider;
  18. //-----------------------------------------------------------------------------
  19. // Purpose: Audio Details, Part of OptionsDialog
  20. //-----------------------------------------------------------------------------
  21. class COptionsSubAudio : public vgui::PropertyPage
  22. {
  23. DECLARE_CLASS_SIMPLE( COptionsSubAudio, vgui::PropertyPage );
  24. public:
  25. COptionsSubAudio(vgui::Panel *parent);
  26. ~COptionsSubAudio();
  27. virtual void OnResetData();
  28. virtual void OnApplyChanges();
  29. virtual void OnCommand( const char *command );
  30. bool RequiresRestart();
  31. static char* GetUpdatedAudioLanguage() { return m_pchUpdatedAudioLanguage; }
  32. private:
  33. MESSAGE_FUNC( OnControlModified, "ControlModified" );
  34. MESSAGE_FUNC( OnTextChanged, "TextChanged" )
  35. {
  36. OnControlModified();
  37. }
  38. MESSAGE_FUNC( RunTestSpeakers, "RunTestSpeakers" );
  39. vgui::ComboBox *m_pSpeakerSetupCombo;
  40. vgui::ComboBox *m_pSoundQualityCombo;
  41. CCvarSlider *m_pSFXSlider;
  42. CCvarSlider *m_pMusicSlider;
  43. vgui::ComboBox *m_pCloseCaptionCombo;
  44. bool m_bRequireRestart;
  45. vgui::ComboBox *m_pSpokenLanguageCombo;
  46. MESSAGE_FUNC( OpenThirdPartySoundCreditsDialog, "OpenThirdPartySoundCreditsDialog" );
  47. vgui::DHANDLE<class COptionsSubAudioThirdPartyCreditsDlg> m_OptionsSubAudioThirdPartyCreditsDlg;
  48. ELanguage m_nCurrentAudioLanguage;
  49. static char *m_pchUpdatedAudioLanguage;
  50. };
  51. //-----------------------------------------------------------------------------
  52. // Purpose: third-party audio credits dialog
  53. //-----------------------------------------------------------------------------
  54. class COptionsSubAudioThirdPartyCreditsDlg : public vgui::Frame
  55. {
  56. DECLARE_CLASS_SIMPLE( COptionsSubAudioThirdPartyCreditsDlg, vgui::Frame );
  57. public:
  58. COptionsSubAudioThirdPartyCreditsDlg( vgui::VPANEL hParent );
  59. virtual void Activate();
  60. void OnKeyCodeTyped(vgui::KeyCode code);
  61. protected:
  62. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  63. };
  64. #endif // OPTIONS_SUB_AUDIO_H