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.
 
 
 
 
 
 

58 lines
1.2 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#ifndef CL_TXVIEWPANEL_H
#define CL_TXVIEWPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
namespace vgui
{
class Button;
class CheckButton;
class Label;
class ProgressBar;
class FileOpenDialog;
class Slider;
class ListViewPanel;
};
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class TxViewPanel : public vgui::Frame
{
DECLARE_CLASS_SIMPLE( TxViewPanel, vgui::Frame );
public:
TxViewPanel( vgui::Panel *parent );
~TxViewPanel();
virtual void OnTick();
// Command issued
virtual void OnCommand( const char *command );
virtual void OnMessage( const KeyValues *params, vgui::VPANEL fromPanel );
static void Install( vgui::Panel *parent );
protected:
MESSAGE_FUNC_CHARPTR( OnFileSelected, "FileSelected", fullpath );
protected:
vgui::Button *m_pRefresh;
vgui::ListViewPanel *m_pView;
};
extern TxViewPanel *g_pTxViewPanel;
#endif // #ifndef CL_TXVIEWPANEL_H