Counter Strike : Global Offensive Source Code
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.

70 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef LOCALIZATIONDIALOG_H
  8. #define LOCALIZATIONDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <VGUI_controls/Frame.h>
  13. namespace vgui
  14. {
  15. class Button;
  16. class ComboBox;
  17. class Label;
  18. class TextEntry;
  19. class ListPanel;
  20. class MenuButton;
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Purpose: Main localization dialog class
  24. //-----------------------------------------------------------------------------
  25. class CLocalizationDialog : public vgui::Frame
  26. {
  27. public:
  28. CLocalizationDialog(const char *fileName);
  29. ~CLocalizationDialog();
  30. char const *GetFileName() const;
  31. private:
  32. // vgui overrides
  33. virtual void PerformLayout();
  34. virtual void OnClose();
  35. virtual void OnCommand(const char *command);
  36. // message handlers
  37. virtual void OnTokenSelected();
  38. virtual void OnTextChanged();
  39. virtual void OnApplyChanges();
  40. virtual void OnFileOpen();
  41. virtual void OnFileSave();
  42. virtual void OnCreateToken();
  43. virtual void OnTokenCreated(const char *tokenName);
  44. vgui::ListPanel *m_pTokenList;
  45. vgui::TextEntry *m_pLanguageEdit;
  46. vgui::TextEntry *m_pEnglishEdit;
  47. vgui::MenuButton *m_pFileMenuButton;
  48. vgui::Menu *m_pFileMenu;
  49. vgui::Button *m_pApplyButton;
  50. vgui::Label *m_pTestLabel;
  51. int m_iCurrentToken;
  52. char m_szFileName[512];
  53. DECLARE_PANELMAP();
  54. typedef vgui::Frame BaseClass;
  55. };
  56. #endif // LOCALIZATIONDIALOG_H