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.

54 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef CONFIGPANEL_H
  8. #define CONFIGPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Frame.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Dialog for displaying information about a game server
  15. //-----------------------------------------------------------------------------
  16. class CConfigPanel : public vgui::Frame
  17. {
  18. DECLARE_CLASS_SIMPLE( CConfigPanel, vgui::Frame );
  19. public:
  20. CConfigPanel(vgui::Panel *parent, bool autorefresh,bool savercon,int refreshtime,bool graphs, int graphsrefreshtime,bool getlogs);
  21. ~CConfigPanel();
  22. void Run();
  23. protected:
  24. // message handlers
  25. MESSAGE_FUNC_PTR( OnButtonToggled, "ButtonToggled", panel );
  26. MESSAGE_FUNC_PTR( OnRadioButtonChecked, "RadioButtonChecked", panel )
  27. {
  28. OnButtonToggled( panel );
  29. }
  30. // vgui overrides
  31. virtual void OnClose();
  32. virtual void OnCommand(const char *command);
  33. private:
  34. void SetControlText(const char *textEntryName, const char *text);
  35. vgui::Button *m_pOkayButton;
  36. vgui::Button *m_pCloseButton;
  37. vgui::CheckButton *m_pRconCheckButton;
  38. vgui::CheckButton *m_pRefreshCheckButton;
  39. vgui::TextEntry *m_pRefreshTextEntry;
  40. vgui::CheckButton *m_pGraphsButton;
  41. vgui::TextEntry *m_pGraphsRefreshTimeTextEntry;
  42. vgui::CheckButton *m_pLogsButton;
  43. };
  44. #endif // CONFIGPANEL_H