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.

85 lines
2.4 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef OPTIONS_SUB_VIDEO_H
  8. #define OPTIONS_SUB_VIDEO_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Panel.h>
  13. #include <vgui_controls/ComboBox.h>
  14. #include <vgui_controls/PropertyPage.h>
  15. #include "engineinterface.h"
  16. #include "IGameUIFuncs.h"
  17. #include "urlbutton.h"
  18. #include "vgui_controls/Frame.h"
  19. class CCvarSlider;
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Video Details, Part of OptionsDialog
  22. //-----------------------------------------------------------------------------
  23. class COptionsSubVideo : public vgui::PropertyPage
  24. {
  25. DECLARE_CLASS_SIMPLE( COptionsSubVideo, vgui::PropertyPage );
  26. public:
  27. explicit COptionsSubVideo(vgui::Panel *parent);
  28. ~COptionsSubVideo();
  29. virtual void OnResetData();
  30. virtual void OnApplyChanges();
  31. virtual void PerformLayout();
  32. virtual bool RequiresRestart();
  33. MESSAGE_FUNC( OpenGammaDialog, "OpenGammaDialog" );
  34. static vgui::DHANDLE<class CGammaDialog> m_hGammaDialog;
  35. private:
  36. void SetCurrentResolutionComboItem();
  37. MESSAGE_FUNC( OnDataChanged, "ControlModified" );
  38. MESSAGE_FUNC_PTR_CHARPTR( OnTextChanged, "TextChanged", panel, text );
  39. MESSAGE_FUNC( OpenAdvanced, "OpenAdvanced" );
  40. MESSAGE_FUNC( LaunchBenchmark, "LaunchBenchmark" );
  41. void PrepareResolutionList();
  42. int m_nSelectedMode; // -1 if we are running in a nonstandard mode
  43. vgui::ComboBox *m_pMode;
  44. vgui::ComboBox *m_pWindowed;
  45. vgui::ComboBox *m_pAspectRatio;
  46. vgui::Button *m_pGammaButton;
  47. vgui::Button *m_pAdvanced;
  48. vgui::Button *m_pBenchmark;
  49. vgui::DHANDLE<class COptionsSubVideoAdvancedDlg> m_hOptionsSubVideoAdvancedDlg;
  50. bool m_bRequireRestart;
  51. MESSAGE_FUNC( OpenThirdPartyVideoCreditsDialog, "OpenThirdPartyVideoCreditsDialog" );
  52. vgui::URLButton *m_pThirdPartyCredits;
  53. vgui::DHANDLE<class COptionsSubVideoThirdPartyCreditsDlg> m_OptionsSubVideoThirdPartyCreditsDlg;
  54. };
  55. class COptionsSubVideoThirdPartyCreditsDlg : public vgui::Frame
  56. {
  57. DECLARE_CLASS_SIMPLE( COptionsSubVideoThirdPartyCreditsDlg, vgui::Frame );
  58. public:
  59. explicit COptionsSubVideoThirdPartyCreditsDlg( vgui::VPANEL hParent );
  60. virtual void Activate();
  61. void OnKeyCodeTyped(vgui::KeyCode code);
  62. protected:
  63. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  64. };
  65. #endif // OPTIONS_SUB_VIDEO_H