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.

56 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CREATETOKENDIALOG_H
  8. #define CREATETOKENDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <VGUI_controls/Frame.h>
  13. namespace vgui
  14. {
  15. class Button;
  16. class TextEntry;
  17. };
  18. class CLocalizationDialog;
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Creates a new token
  21. //-----------------------------------------------------------------------------
  22. class CCreateTokenDialog : public vgui::Frame
  23. {
  24. public:
  25. CCreateTokenDialog( CLocalizationDialog *pLocalizationDialog );
  26. ~CCreateTokenDialog();
  27. // prompts user to create a single token
  28. virtual void CreateSingleToken();
  29. // loads a token file to prompt the user to create multiple tokens
  30. virtual void CreateMultipleTokens();
  31. private:
  32. virtual void OnCommand(const char *command);
  33. virtual void OnClose();
  34. virtual void OnOK();
  35. virtual void OnSkip();
  36. vgui::Button *m_pSkipButton;
  37. vgui::TextEntry *m_pTokenName;
  38. vgui::TextEntry *m_pTokenValue;
  39. CLocalizationDialog *m_pLocalizationDialog;
  40. bool m_bMultiToken;
  41. typedef vgui::Frame BaseClass;
  42. };
  43. #endif // CREATETOKENDIALOG_H