OSDisplay.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. ////////////////////////////////////////////////////////////////////////////////
  19. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // Overridable.h //////////////////////////////////////////////////////////////////////////////////
  24. // Electronic Arts Pacific
  25. // Do Not Distribute
  26. #pragma once
  27. #ifndef __OSDISPLAY_H__
  28. #define __OSDISPLAY_H__
  29. #include "Lib/Basetype.h"
  30. class AsciiString;
  31. enum OSDisplayButtonType
  32. {
  33. OSDBT_OK = 0x00000001,
  34. OSDBT_CANCEL = 0x00000002,
  35. OSDBT_ERROR = 0x80000000
  36. };
  37. enum OSDisplayOtherFlags
  38. {
  39. OSDOF_SYSTEMMODAL = 0x00000001,
  40. OSDOF_APPLICATIONMODAL = 0x00000002,
  41. OSDOF_TASKMODAL = 0x00000004,
  42. OSDOF_EXCLAMATIONICON = 0x00000008,
  43. OSDOF_INFORMATIONICON = 0x00000010,
  44. OSDOF_ERRORICON = 0x00000011,
  45. OSDOF_STOPICON = 0x00000012,
  46. ODDOF_ERROR = 0x80000000
  47. };
  48. // Display a warning box to the user with the specified localized prompt, message, and
  49. // buttons. (Feel free to add buttons as appropriate to the enum above).
  50. // This function will return the button pressed to close the dialog.
  51. OSDisplayButtonType OSDisplayWarningBox(AsciiString p, AsciiString m, UnsignedInt buttonFlags, UnsignedInt otherFlags);
  52. #endif /* __OSDISPLAY_H__ */