LocStringForm.h 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef LOCALIZED_STRING_EDIT_FORM
  2. #define LOCALIZED_STRING_EDIT_FORM
  3. #include "..\..\..\common_h\gui.h"
  4. #include "..\..\..\common_h\templates.h"
  5. #define STRINGEDIT_WINDOWNAME "String"
  6. class LocStringAttribute;
  7. class TLocStringEdit : public GUIWindow
  8. {
  9. long currentValue;
  10. bool bLocked;
  11. public:
  12. LocStringAttribute* MasterAttrib;
  13. GUIButton* btnOK;
  14. GUIButton* btnCancel;
  15. GUIButton* btnTakeFromTranslatedString;
  16. GUIEdit* TextValue;
  17. TLocStringEdit (int posX, int posY);
  18. ~TLocStringEdit ();
  19. void _cdecl OnButtonPressed (GUIControl* sender);
  20. void _cdecl OnButtonOK (GUIControl* sender);
  21. void _cdecl OnButtonCancel (GUIControl* sender);
  22. void _cdecl OnSelectFromLocalText (GUIControl* sender);
  23. void _cdecl OnSelectFromLocalTextClose (GUIControl* sender);
  24. void KeyPressed(int key, bool bSysKey);
  25. };
  26. #endif