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.

45 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef REPLAYBROWSER_CONFIRMQUITDLG_H
  8. #define REPLAYBROWSER_CONFIRMQUITDLG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "replaybrowserbasepanel.h"
  13. #include "vgui/IScheme.h"
  14. #include "vgui_controls/CheckButton.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose:
  17. //-----------------------------------------------------------------------------
  18. class CExButton;
  19. class CReplayConfirmQuitDialog : public CReplayBasePanel
  20. {
  21. DECLARE_CLASS_SIMPLE( CReplayConfirmQuitDialog, CReplayBasePanel );
  22. public:
  23. CReplayConfirmQuitDialog( Panel *pParent );
  24. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  25. virtual void OnCommand( const char *pCommand );
  26. virtual void OnKeyCodeTyped( vgui::KeyCode code );
  27. virtual void OnKeyCodePressed( vgui::KeyCode code );
  28. private:
  29. vgui::CheckButton *m_pDontShowAgain;
  30. CExButton *m_pQuitButton;
  31. };
  32. //-----------------------------------------------------------------------------
  33. bool ReplayUI_ShowConfirmQuitDlg();
  34. //-----------------------------------------------------------------------------
  35. #endif // REPLAYBROWSER_CONFIRMQUITDLG_H