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.

67 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef REPLAYBROWSER_BASEPAGE_H
  8. #define REPLAYBROWSER_BASEPAGE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vgui_controls/PropertyPage.h"
  13. #include "replaybrowseritemmanager.h"
  14. #include "replay/genericclassbased_replay.h"
  15. using namespace vgui;
  16. //-----------------------------------------------------------------------------
  17. // Forward declarations
  18. //-----------------------------------------------------------------------------
  19. class CReplayListPanel;
  20. class CExLabel;
  21. class CReplayDetailsPanel;
  22. //-----------------------------------------------------------------------------
  23. // Purpose:
  24. //-----------------------------------------------------------------------------
  25. class CReplayBrowserBasePage : public PropertyPage
  26. {
  27. DECLARE_CLASS_SIMPLE( CReplayBrowserBasePage, PropertyPage );
  28. public:
  29. CReplayBrowserBasePage( Panel *pParent );
  30. virtual ~CReplayBrowserBasePage();
  31. void DeleteDetailsPanelAndShowReplayList();
  32. bool IsDetailsViewOpen();
  33. void GoBack();
  34. // Movie-only stuff
  35. void FreeDetailsPanelMovieLock();
  36. virtual void ApplySchemeSettings( IScheme *pScheme );
  37. virtual void OnCommand( const char *pCommand );
  38. virtual void PerformLayout();
  39. MESSAGE_FUNC( OnPageShow, "PageShow" );
  40. MESSAGE_FUNC( OnSelectionStarted, "SelectionStarted" );
  41. MESSAGE_FUNC( OnSelectionEnded, "SelectionEnded" );
  42. MESSAGE_FUNC( OnCancelSelection, "CancelSelection" );
  43. MESSAGE_FUNC_PARAMS( OnReplayItemDeleted, "ReplayItemDeleted", pParams );
  44. MESSAGE_FUNC_PARAMS( OnTextChanged, "TextChanged", data );
  45. void AddReplay( ReplayHandle_t hReplay );
  46. void DeleteReplay( ReplayHandle_t hReplay );
  47. void OnTick();
  48. virtual void CleanupUIForReplayItem( ReplayItemHandle_t hReplayItem );
  49. vgui::TextEntry *m_pSearchTextEntry;
  50. CReplayListPanel *m_pReplayList;
  51. DHANDLE< CReplayDetailsPanel > m_hReplayDetailsPanel;
  52. };
  53. #endif // REPLAYBROWSER_BASEPAGE_H