Team Fortress 2 Source Code as on 22/4/2020
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.

65 lines
1.9 KiB

  1. //========= Copyright 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. class CLabeledCommandComboBox;
  15. class CCvarSlider;
  16. class CCvarToggleCheckButton;
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Audio Details, Part of OptionsDialog
  19. //-----------------------------------------------------------------------------
  20. class COptionsSubAudio : public vgui::PropertyPage
  21. {
  22. DECLARE_CLASS_SIMPLE( COptionsSubAudio, vgui::PropertyPage );
  23. public:
  24. COptionsSubAudio(vgui::Panel *parent);
  25. ~COptionsSubAudio();
  26. virtual void OnResetData();
  27. virtual void OnApplyChanges();
  28. virtual void OnCommand( const char *command );
  29. bool RequiresRestart();
  30. static char* GetUpdatedAudioLanguage() { return m_pchUpdatedAudioLanguage; }
  31. private:
  32. MESSAGE_FUNC( OnControlModified, "ControlModified" );
  33. MESSAGE_FUNC( OnTextChanged, "TextChanged" )
  34. {
  35. OnControlModified();
  36. }
  37. MESSAGE_FUNC( RunTestSpeakers, "RunTestSpeakers" );
  38. vgui::ComboBox *m_pSpeakerSetupCombo;
  39. vgui::ComboBox *m_pSoundQualityCombo;
  40. CCvarSlider *m_pSFXSlider;
  41. CCvarSlider *m_pMusicSlider;
  42. vgui::ComboBox *m_pCloseCaptionCombo;
  43. bool m_bRequireRestart;
  44. vgui::ComboBox *m_pSpokenLanguageCombo;
  45. MESSAGE_FUNC( OpenThirdPartySoundCreditsDialog, "OpenThirdPartySoundCreditsDialog" );
  46. vgui::DHANDLE<class COptionsSubAudioThirdPartyCreditsDlg> m_OptionsSubAudioThirdPartyCreditsDlg;
  47. ELanguage m_nCurrentAudioLanguage;
  48. static char *m_pchUpdatedAudioLanguage;
  49. CCvarToggleCheckButton *m_pSoundMuteLoseFocusCheckButton;
  50. };
  51. #endif // OPTIONS_SUB_AUDIO_H