Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

68 lines
2.0 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef REPLAYBROWSER_BASEPAGE_H
#define REPLAYBROWSER_BASEPAGE_H
#ifdef _WIN32
#pragma once
#endif
#include "vgui_controls/PropertyPage.h"
#include "replaybrowseritemmanager.h"
#include "replay/genericclassbased_replay.h"
using namespace vgui;
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CReplayListPanel;
class CExLabel;
class CReplayDetailsPanel;
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class CReplayBrowserBasePage : public PropertyPage
{
DECLARE_CLASS_SIMPLE( CReplayBrowserBasePage, PropertyPage );
public:
CReplayBrowserBasePage( Panel *pParent );
virtual ~CReplayBrowserBasePage();
void DeleteDetailsPanelAndShowReplayList();
bool IsDetailsViewOpen();
void GoBack();
// Movie-only stuff
void FreeDetailsPanelMovieLock();
virtual void ApplySchemeSettings( IScheme *pScheme );
virtual void OnCommand( const char *pCommand );
virtual void PerformLayout();
MESSAGE_FUNC( OnPageShow, "PageShow" );
MESSAGE_FUNC( OnSelectionStarted, "SelectionStarted" );
MESSAGE_FUNC( OnSelectionEnded, "SelectionEnded" );
MESSAGE_FUNC( OnCancelSelection, "CancelSelection" );
MESSAGE_FUNC_PARAMS( OnReplayItemDeleted, "ReplayItemDeleted", pParams );
MESSAGE_FUNC_PARAMS( OnTextChanged, "TextChanged", data );
void AddReplay( ReplayHandle_t hReplay );
void DeleteReplay( ReplayHandle_t hReplay );
void OnTick();
virtual void CleanupUIForReplayItem( ReplayItemHandle_t hReplayItem );
vgui::TextEntry *m_pSearchTextEntry;
CReplayListPanel *m_pReplayList;
DHANDLE< CReplayDetailsPanel > m_hReplayDetailsPanel;
};
#endif // REPLAYBROWSER_BASEPAGE_H