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.

58 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef CL_TXVIEWPANEL_H
  9. #define CL_TXVIEWPANEL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include <vgui_controls/Frame.h>
  14. namespace vgui
  15. {
  16. class Button;
  17. class CheckButton;
  18. class Label;
  19. class ProgressBar;
  20. class FileOpenDialog;
  21. class Slider;
  22. class ListViewPanel;
  23. };
  24. //-----------------------------------------------------------------------------
  25. // Purpose:
  26. //-----------------------------------------------------------------------------
  27. class TxViewPanel : public vgui::Frame
  28. {
  29. DECLARE_CLASS_SIMPLE( TxViewPanel, vgui::Frame );
  30. public:
  31. TxViewPanel( vgui::Panel *parent );
  32. ~TxViewPanel();
  33. virtual void OnTick();
  34. // Command issued
  35. virtual void OnCommand( const char *command );
  36. virtual void OnMessage( const KeyValues *params, vgui::VPANEL fromPanel );
  37. static void Install( vgui::Panel *parent );
  38. protected:
  39. MESSAGE_FUNC_CHARPTR( OnFileSelected, "FileSelected", fullpath );
  40. protected:
  41. vgui::Button *m_pRefresh;
  42. vgui::ListViewPanel *m_pView;
  43. };
  44. extern TxViewPanel *g_pTxViewPanel;
  45. #endif // #ifndef CL_TXVIEWPANEL_H