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.

60 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef BUDGETPANELCONTAINER_H
  7. #define BUDGETPANELCONTAINER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <KeyValues.h>
  12. #include <vgui_controls/Frame.h>
  13. #include <vgui_controls/PHandle.h>
  14. #include <vgui_controls/ListPanel.h>
  15. #include <vgui_controls/PropertyPage.h>
  16. #include "utlvector.h"
  17. #include "RemoteServer.h"
  18. class CBudgetPanelAdmin;
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Dialog for displaying information about a game server
  21. //-----------------------------------------------------------------------------
  22. class CBudgetPanelContainer : public vgui::PropertyPage, public IServerDataResponse
  23. {
  24. DECLARE_CLASS_SIMPLE( CBudgetPanelContainer, vgui::PropertyPage );
  25. public:
  26. CBudgetPanelContainer(vgui::Panel *parent, const char *name);
  27. ~CBudgetPanelContainer();
  28. // Panel overrides.
  29. public:
  30. virtual void Paint();
  31. virtual void PerformLayout();
  32. // PropertyPage overrides.
  33. public:
  34. void OnPageShow();
  35. void OnPageHide();
  36. // IServerDataResponse overrides.
  37. public:
  38. virtual void OnServerDataResponse(const char *value, const char *response);
  39. private:
  40. CBudgetPanelAdmin *m_pBudgetPanelAdmin;
  41. };
  42. #endif // BUDGETPANELCONTAINER_H