WOLEDIT.H 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. #ifdef WOLAPI_INTEGRATION
  15. /***************************************************************************
  16. * WOLEditClass -- Derived from EditClass, includes changes I wanted for
  17. * wolapi integration stuff.
  18. *
  19. * HISTORY: 07/17/1998 ajw : Created.
  20. *=========================================================================*/
  21. #include "Function.h"
  22. class WOLEditClass : public EditClass
  23. {
  24. public:
  25. WOLEditClass(int id, char * text, int max_len, TextPrintType flags, int x, int y, int w, int h, EditStyle style) :
  26. EditClass( id, text, max_len, flags, x, y, w, h, style ) {}
  27. virtual int Action (unsigned flags, KeyNumType &key); // Override of base
  28. protected:
  29. virtual void Draw_Text( char const * text ); // Override of base
  30. };
  31. #endif