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.

42 lines
896 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef DIALOGADDSERVER_H
  8. #define DIALOGADDSERVER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <VGUI_Frame.h>
  13. class IGameList;
  14. //-----------------------------------------------------------------------------
  15. // Purpose: Dialog which lets the user add a server by IP address
  16. //-----------------------------------------------------------------------------
  17. class CDialogAddServer : public vgui::Frame
  18. {
  19. public:
  20. CDialogAddServer(IGameList *gameList);
  21. ~CDialogAddServer();
  22. // activates this dialog
  23. void Open();
  24. private:
  25. virtual void OnClose();
  26. virtual void OnCommand(const char *command);
  27. void OnOK();
  28. IGameList *m_pGameList;
  29. typedef vgui::Frame BaseClass;
  30. };
  31. #endif // DIALOGADDSERVER_H